:root {
  --primary-color: #004080;
  --secondary-color: #f8b400;
  --accent-color: #6a11cb;
  --background-light: #f8f9fa;
  --text-dark: #002147;
  --text-light: #ffffff;
  --text-gray: #555555;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Arial", sans-serif;
  --transition-speed: 0.3s;
}
/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6; /* Improved readability */
}

.container {
  padding: 0 15px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(0, 64, 128, 0.85),
      rgba(0, 33, 71, 0.85)
    ),
    url(/static/images/hero-background.jpg) no-repeat center center / cover;
  min-height: 80vh;
  padding-top: 30px; /* Reduced from 60px */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero Section Improvements */
.hero-section h1,
.hero-section p {
  position: relative;
  z-index: 1;
}
/* Improved Button Styles */
.hero-section .btn {
  font-size: 1.3rem;
  padding: 14px 35px;
  border-radius: 8px;
  box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-section .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(255, 255, 255, 0.5);
}

.hero-section .btn-primary {
  background-color: #ff8c00; /* Bright Orange */
  border: 2px solid #ff8c00;
  color: white;
  transition: all 0.3s ease-in-out;
}
.hero-section .btn-primary:hover {
  background-color: #f8b400; /* Gold on hover */
  border-color: #f8b400;
  color: #002147;
}

.hero-section .btn-outline-light {
  background-color: transparent;
  border: 2px solid #004080;
  color: wheat;
  transition: all 0.3s ease-in-out;
}
.hero-section .btn-outline-light:hover {
  background-color: #004080;
  color: white;
}

.hero-section {
  min-height: 80vh;
  padding: 60px 20px;
}

.hero-section h1 {
  font-size: 3rem;
  line-height: 1.3;
}
.hero-section p {
  font-size: 1.3rem;
  line-height: 1.6;
}

#main-content {
  padding-left: 12px;
  padding-right: 12px;
}

.typing-container {
  max-width: none;
  height: 7rem; /* ✅ FIXED height to prevent movement */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ✅ Lock Text Height */
.typing-text,
.typing-text.translated {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f8b400;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  height: 2rem; /* ✅ Adjusted height to prevent excessive spacing */
  margin-bottom: 0.1rem; /* ✅ Further reduces space */
}
.typing-text.translated {
  font-size: 1.6rem;
  color: #f8b400;
  font-weight: bold;
  margin-top: -8px; /* ✅ Pulls translation text closer */
}

/* ✅ Keep CTA Buttons in Place */
.cta-buttons {
  margin-top: 20px; /* ✅ Space between text and buttons */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .typing-text,
  .typing-text.translated {
    font-size: 1rem;
    height: 2rem;
  }
  .typing-container {
    height: 5rem; /* ✅ Adjusted for mobile */
  }
  .cta-buttons {
    margin-top: 15px;
  }
}
.cta-section {
  background: linear-gradient(
    to right,
    #004080,
    #002147
  ); /* ✅ Professional Blue Gradient */
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.cta-section .btn {
  font-size: 1.3rem;
  padding: 14px 35px;
  font-weight: bold;
  border-radius: 8px;
  background-color: #f8b400; /* ✅ Gold Button for contrast */
  color: #002147;
  border: 2px solid #f8b400;
  transition: all 0.3s ease-in-out;
  margin-top: 30px; /* ✅ Adds spacing above the button */
}

.cta-section .btn:hover {
  background-color: white;
  color: #004080; /* ✅ Blue hover effect for interactivity */
  border-color: #004080;
  transform: translateY(-3px);
}

.cta-section.visible .btn {
  opacity: 1;
  transform: translateY(0);
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* ✅ Helps readability */
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  color: #dddddd; /* ✅ Softer contrast than pure white */
  max-width: 700px;
  margin: auto;
}

/* Sticky Navbar */
.navbar {
  background-color: #002147 !important;
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-quote-btn {
  background-color: #f8b400 !important;
  color: #002147 !important;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.nav-quote-btn:hover {
  background-color: #004080 !important;
  color: white !important;
}

/* Active Link Indicator */
.navbar-nav .nav-link.active {
  font-weight: bold;
  color: #f8b400 !important;
  border-bottom: none; /* ✅ Gold underline to show the active page */
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s;
}
.navbar-brand:hover {
  color: #f8b400 !important;
}
.navbar a {
  color: white !important;
  font-weight: 600;
  transition: all 0.3s;
}
.navbar a:hover {
  color: #f8b400 !important;
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  background-color: #f8f9fa; /* ✅ Light background for separation */
  padding: 70px 0;
  text-align: center;
}

/* Cards */
.feature-box,
.testimonial-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-box:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-box i {
  font-size: 3rem;
  color: #004080; /* ✅ Dark blue for trust & professionalism */
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.feature-box:hover i {
  color: #f8b400; /* ✅ Gold accent for engagement */
  transform: scale(1.2);
}

.features-section p {
  max-width: 85%;
  margin: auto;
}

/* Feature Headings */
.feature-box h4 {
  font-size: 1.5rem; /* ✅ Slightly larger for better readability */
  font-weight: bold;
  color: #002147; /* ✅ Deep blue for emphasis */
  margin-top: 15px;
}

/* Feature Descriptions */
.feature-box p {
  font-size: 1.1rem;
  color: #555555; /* ✅ Dark gray for clarity */
  line-height: 1.6;
  max-width: 90%;
  margin: auto;
}

/* Languages Section */
.languages-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.languages-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #002147;
  text-align: center;
}

.languages-section p {
  font-size: 1.2rem;
  color: #555;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

#languageSearch {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.language-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.language-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.language-code {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004080;
  display: block;
  margin-bottom: 10px;
}

.language-name {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}
/* Language Code Styling */
.language-code {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #004080;
  margin-bottom: 5px;
}

.about-section {
  background-color: #f8f9fa;
  padding: 10px 0;
}

/* Hero Section */
.about-hero {
  text-align: center;
  background: linear-gradient(to right, #004080, #002147);
  color: white;
  padding: 60px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.about-hero h2 {
  font-size: 2.8rem; /* Increased for impact */
  font-weight: bold;
  margin-bottom: 10px;
}

.about-hero p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

/* About Content */

.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 3px solid #f8b400;
  margin-left: 1rem;
}
.timeline li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 1rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -9px;
  width: 12px;
  height: 12px;
  background-color: #f8b400;
  border-radius: 50%;
}

.about-content {
  max-width: 900px;
  margin: auto;
  font-size: 1.3rem;
  color: #333;
  line-height: 1.8;
  padding: 25px 15px; /* ← Better on mobile */
}

/* Key Benefits List */
.about-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-content ul li {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.about-content ul i {
  color: #f8b400;
  margin-right: 12px;
  font-size: 1.4rem;
}

/* CTA */
.about-cta {
  text-align: center;
  margin-top: 60px;
}

.about-cta .btn {
  background-color: #f8b400;
  color: #002147;
  font-size: 1.3rem; /* Slightly larger for better emphasis */
  padding: 16px 40px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.about-cta .btn:hover {
  background-color: #004080;
  color: white;
}

/* Services Page */
.services-section {
  background-color: #f8f9fa;
  padding: 36px 0;
  text-align: center;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  text-align: center;
  min-height: 270px;
  margin-bottom: 30px; /* ✅ Adds space between cards */
}

.row {
  row-gap: 5px; /* ✅ Increases space between rows */
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 4px solid #f8b400; /* ✅ Gold underline effect */
}

.service-card i {
  font-size: 3rem;
  color: #004080;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #002147;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  max-width: 90%;
  margin: 0 auto;
}

/* Buttons */
.btn {
  font-size: 1.1em;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn-primary {
  background-color: #f8b400;
  border: 2px solid #f8b400;
  color: #002147;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: #e6a200; /* Darker gold on hover */
  border-color: #e6a200;
}
/* Contact Page Container */
.contact-page {
  background: #f8f9fa;
  padding: 30px 0;
  border-radius: 10px;
}

/* Heading */
.contact-page h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #002147;
}

.contact-page p.lead {
  font-size: 1.2rem;
  color: #555;
  max-width: 600px;
  margin: auto;
  margin-bottom: 0.5rem;
}

.row.justify-content-center {
  margin-top: 1rem; /* add small space above form */
}

/* Contact Form */
#contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

/* Form Labels */
.contact-page .form-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
}

/* Form Fields */
.contact-page .form-control {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Error Messages */
/* Error Messages - Styled Like Subject Errors */
.text-danger {
  font-size: 0.9rem;
  margin-top: 5px;
  display: none; /* Initially hidden */
}

/* Show error messages when triggered */
.text-danger.active {
  display: block;
  color: #dc3545; /* Bootstrap danger color */
  font-weight: 500;
}

/* Submit Button */
#submit-btn {
  background-color: #f8b400;
  color: #002147;
  font-size: 1.2rem;
  padding: 12px 35px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  border: none;
}

#submit-btn:hover {
  background-color: #004080;
  color: white;
}

/* Quote Page Container */
/* Quote Page */
.quote-page {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.quote-page h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #002147;
  text-align: center;
}

.quote-page .lead {
  font-size: 1.2rem;
  color: #555;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.quote-form .form-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
}

.quote-form .form-control,
.quote-form .form-select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.quote-form .btn-primary {
  background-color: #f8b400;
  border: 2px solid #f8b400;
  color: #002147;
  transition: all 0.3s ease-in-out;
}

.quote-form .btn-primary:hover {
  background-color: #e6a200;
  border-color: #e6a200;
}

.progress {
  position: relative;
  max-width: 400px;
  height: 12px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #e9ecef; /* Light gray background */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  background-color: #004080;
  height: 100%;
  min-width: 40px;
  color: white;
  font-weight: bold;
  text-align: center;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* prevent text wrap */
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  user-select: none;
}

.progress-bar.bg-success {
  background-color: #28a745 !important; /* Green for success */
}

#progress-percentage {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #004080;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 576px) {
  .progress {
    height: 8px;
  }
  .progress-bar {
    font-size: 0.75rem;
  }
}

input.is-invalid {
  border-color: #dc3545; /* Bootstrap danger red */
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Error Messages */
.text-danger {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #dc3545; /* Matches Bootstrap's danger color */
  font-weight: 500;
}

/* Submit Button */
#submit-btn {
  background-color: #28a745;
  color: white;
  font-size: 1.2rem;
  padding: 14px 35px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  width: 100%;
}

#submit-btn:hover {
  background-color: #1e7e34;
}

/* Success & Error Messages */
/* Form-Level Success & Error Messages */
#success-message,
#form-error-message {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 0 auto 20px auto; /* Centers the message */
  max-width: 600px; /* Matches form width */
  width: 100%;
}

#success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Field-Level Error Messages */
.text-danger {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #dc3545; /* Matches Bootstrap's danger color */
  font-weight: 500;
}

/* Ensure "Message is required" Matches "Subject is required" */
#error-message-field {
  font-size: 0.9rem;
  font-weight: 500;
  color: #dc3545;
  margin-top: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #success-message,
  #error-message {
    max-width: 100%; /* Adjusts width on smaller screens */
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quote-page h1 {
    font-size: 2rem;
  }

  .quote-page p.lead {
    font-size: 1.1rem;
  }

  #quote-form {
    padding: 20px;
  }

  #submit-btn {
    width: 100%;
  }
}

/* Newsletter Section */
.newsletter-section {
  background-color: #f8f9fa;
}

.newsletter-form .form-control {
  border-radius: 8px 0 0 8px;
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
}

/* Statistics Section */
.statistics-section {
  background-color: #004080;
}

.statistic-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.statistic-label {
  font-size: 1.1rem;
  color: #ddd;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #f8f9fa;
}

.testimonial-card {
  transition: transform 0.3s ease-in-out;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.9rem;
  color: #002147;
  font-weight: bold;
  margin-top: 10px;
}

/* Gradient background */
.gradient-bg {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

/* Hover effect for buttons */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Custom button styles */
.btn-custom {
  background-color: #ffffff;
  color: #6a11cb;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-custom:hover {
  background-color: #f8f9fa;
  color: #2575fc;
}

/* Custom outline button styles */
.btn-outline-custom {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline-custom:hover {
  background-color: #ffffff;
  color: #6a11cb;
}

/* Fun fact text styling */
.fun-fact {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-top: 20px;
}

/* Illustration styling */
.illustration {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Footer Styling */
.footer {
  background-color: #002147; /* ✅ Dark blue for branding */
  color: white;
  padding: 40px 0; /* ✅ Reduced padding for a smaller footer */
  text-align: center;
  margin-top: 2rem;
}

.footer h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #f8b400; /* Gold */
}
.footer p {
  font-size: 0.9rem;
  color: #ddd;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.footer-links a:hover {
  color: #f8b400;
}

/* Social Media Icons */
.footer-social a {
  color: white;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: transform 0.3s ease-in-out;
}
.footer-social a:hover {
  transform: translateY(-3px);
  color: #f8b400;
}

/* Footer Divider */
.footer-line {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

/* Copyright Text */
.footer p.text-center {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #bbb;
}

.footer-link.active {
  font-weight: bold;
  text-decoration: underline;
  color: #ffc107; /* Bootstrap warning color */
}

/* Success & Error Messages */
.alert {
  font-size: 1rem;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.alert-success {
  background-color: #28a745;
  color: white;
}

/* Simplified Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.invalid-feedback {
  display: none;
}

.invalid-feedback.show {
  display: block;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or center */
  color: white;
}