@import "tailwindcss";

/* --- Basic Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
}
/* body {
  overflow-x: hidden; /* Prevents horizontal scrollbar */
/*}*/

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.container { width: 95%; max-width: 1400px; margin: 0 auto; }

/* --- Header Styling --- */
.header { background-color: #ffffff; border-bottom: 1px solid #e9ecef; height: 9vh; display: flex; align-items: center; }
.header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 48px; width: auto; }
.logo h1 { font-size: 1.5rem; font-weight: 600; color: #004B87; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; color: #343a40; font-weight: 500; font-size: 1rem; transition: color 0.2s ease-in-out; }
.nav a:hover { color: #0056b3; }
.nav a.btn-contact { display: inline-block; background-color: #003E6B; color: #ffffff; padding: 0.6rem 1.4rem; border-radius: 8px; transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; }
.nav a.btn-contact:hover { transform: scale(0.98); background-color: #005A99; }

/* --- HERO SECTION STYLES --- */
.hero { height: 85vh; position: relative; display: flex; align-items: center; background-image: url("../assets/HeroSection.png"); background-size: cover; background-position: center; color: #fff; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(13, 44, 74, 0.9); z-index: 1; }
.hero .hero-content.container { position: relative; z-index: 2; display: block; }
.hero h2 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin: 0 0 20px 0; min-height: 8.5rem;  }
.hero h2 .cursor { display: inline-block; background-color: white; margin-left: 0.1rem; width: 3px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { background-color: white; } 49% { background-color: white; } 50%, 99% { background-color: transparent; } }
.hero p { font-size: 1.25rem; font-weight: 300; margin: 0 0 30px 0; max-width: 500px; }
.btn-hero { background-color: #f8f9fa; color: #0d2c4a; padding: 12px 28px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid #ced4da; transition: all 0.3s ease; }
.btn-hero:hover { background-color: #fff; border-color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

/* --- TICKER SECTION STYLES --- */
.ticker-wrap { width: 100%; overflow: hidden; background-color: #ffffff; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; padding: 20px 0; white-space: nowrap; }
.ticker { display: inline-block; animation: ticker-scroll 25s linear infinite; }
.ticker span { font-family: 'Cutive Mono', monospace; font-size: 1.1rem; color: #1f558b; padding-right: 30px; letter-spacing: 0.05em;font-style: italic; font-weight: bold;font-size: larger; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- ABOUT SECTION STYLES --- */
.about-section { padding: 80px 0; background-color: #ffffff; }
.about-main-content { display: flex; align-items: center; gap: 60px; margin-bottom: 70px; }
.about-text, .about-image { flex: 1; }

/* 
  NEW: Added overflow: hidden. 
  This creates a "window" and clips the image as it moves, 
  so it doesn't spill out of its container.
*/
.about-image {
  overflow: hidden;
}

.about-text h2 { font-size: 2.5rem; font-weight: 600; color: #004B87; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; line-height: 1.7; color: #5a6470; margin-bottom: 30px; }
.about-text p strong { color: #004B87; font-weight: 600; }
.btn-primary { display: inline-block; background-color: #003E6B; color: #ffffff; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out; }
.btn-primary:hover { background-color: #005A99; transform: translateY(-2px); }
.about-image img { max-width: 100%; height: auto; }

/* 
  NEW: A style rule for our specific parallax image.
  The transition makes the movement smooth and not jerky.
*/
#parallax-image {
  transition: transform 0.2s ease-out;
}

.mission-card { display: flex; align-items: stretch; max-width: 850px; margin: 0 auto; background-color: #ffffff; border: 1px solid #e9ecef; border-radius: 12px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06); overflow: hidden; }
.mission-icon { width: 180px; object-fit: cover; }
.mission-text { padding: 30px 40px; }
.mission-text h3 { font-size: 1.5rem; font-weight: 600; color: #004B87; margin-bottom: 8px; }
.mission-text p { font-size: 1rem; line-height: 1.6; color: #5a6470; }
#about-heading {
  min-height: 2.9rem;
}
#mission-heading {
  min-height: 1.8rem;
}

/* --- CORRECTED SERVICES SECTION STYLES --- */
.services-section {
  background-color: #fff; 
  padding: 100px 0;
}

.services-intro {
  max-width: 750px; 
  margin-bottom: 60px;
}

.services-intro h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 20px;

  min-height: 3.4rem;
}

.services-intro h2 .highlight {
  color: #004B87;
}

.services-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5a6470;
}

.services-intro p strong {
  color: #004B87;
  font-weight: 600;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.service-card {
  flex: 1; 
  max-width: 380px; 
  text-align: left;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 4; 
  object-fit: cover;
  border-radius: 20px; 
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5a6470;
}

/* ------------------------------------- */
/* --- CHOOSE US SECTION STYLES START -- */
/* ------------------------------------- */

.choose-us-section {
  background-color: #fff;
  padding: 100px 0;
}

.choose-us-intro {
  max-width: 750px; 
  margin-bottom: 60px;
}

.choose-us-intro h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 20px;
  min-height: 3.4rem; /* Prevents layout shift from JS animation */
}

/* Re-using the highlight class for the blue text */
.choose-us-intro h2 .highlight {
  color: #004B87;
}

.choose-us-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5a6470;
}

.choose-us-grid {
  display: flex;
  gap: 30px;
}

.reason-card {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 16px; /* Slightly more rounded corners */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-color: #ffffff;
  
  /* --- Card Animation Setup --- */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease-out, transform 0.6s ease-out;
}

.reason-card:hover {
  transform: translateY(0) scale(1.1); /* 👈 Slight zoom */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); /* Deeper shadow for depth */
}

/* Staggered delay for the animation */
.reason-card:nth-child(2) {
  transition-delay: 0.2s;
}
.reason-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* This class will be added by JavaScript to trigger the animation */
.reason-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reason-card img {
  width: 100%;
  display: block; /* Removes any bottom space under the image */
}

.reason-text {
  padding: 25px 30px 30px;
}

.reason-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #004B87;
  margin-bottom: 10px;
}

.reason-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5a6470;
}

/* --- Responsive styles for Tablet and Mobile --- */
@media (max-width: 992px) {
  .choose-us-grid {
    flex-direction: column; /* Stack the cards vertically */
    align-items: center;   /* Center them in the container */
  }
  .reason-card {
    width: 100%;
    max-width: 450px; /* Constrain width on smaller screens */
  }
}

/* ------------------------------------------- */
/* --- GET IN TOUCH (TYPEFORM STYLE) SECTION --- */
/* ------------------------------------------- */
.contact-tf-section {
  background-color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-tf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* align-items: center; */
  gap: 80px;
}

.contact-tf-text h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: #004B87;
  margin-bottom: 20px;
}

.contact-tf-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5a6470;
  max-width: 450px;
}

/* --- Form Wrapper & Progress Bar --- */
.contact-tf-form-wrapper {
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #dbeaff;
  border-radius: 4px;
  position: absolute;
  top: -40px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background-color: #005A99;
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
}

/* --- Multi-Step Form Core --- */
.multi-step-form {
  position: relative;
}

.form-steps {
  position: relative;
  min-height: 250px; /* Prevents layout jump */
  overflow: hidden;
}

.form-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
}

.form-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Form Elements Styling --- */
.form-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 500;
  color: #343a40;
  margin-bottom: 40px;
}

.form-step label span, .form-step label svg {
  color: #005A99;
}

.form-step label svg {
  width: 20px;
}

.form-step input,
.form-step textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ced4da;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: 500;
  color: #004B87;
  background-color: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.form-step input:focus,
.form-step textarea:focus {
  border-bottom-color: #004B87;
}

.form-step input::placeholder,
.form-step textarea::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.form-step textarea {
  resize: none;
  line-height: 1.4;
  font-size: 1.5rem; /* Slightly smaller for textarea */
}

/* --- Buttons & Hints --- */
.button-group {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-ok, .btn-submit {
  background-color: #003E6B;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-ok:hover, .btn-submit:hover {
  background-color: #005A99;
  transform: scale(0.98);
}
.btn-submit.loading {
  pointer-events: none;
  background-color: #005A99;
}

.key-hint {
  font-size: 0.9rem;
  color: #6c757d;
}
.key-hint.small {
  margin-top: 10px;
  display: block;
}

/* --- Navigation Arrows & Powered By --- */
.form-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
}
.nav-arrow {
  background: #003E6B;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-arrow:disabled {
  background-color: #ced4da;
  cursor: not-allowed;
}

.powered-by {
  /* margin-left: auto; */
  background-color: #003E6B;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* --- Error & Success States --- */
.form-step .error-message {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}
.form-step.has-error .error-message {
  display: block;
}
.form-step.has-error input {
  border-bottom-color: #d9534f;
}

.success-step .success-content {
  text-align: center;
  padding: 40px 0;
}
.success-content p {
  font-size: 1.5rem;
  color: #343a40;
  margin-bottom: 25px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-icons a {
  color: #003E6B;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: #005A99;
}
.social-icons svg {
  width: 32px;
  height: 32px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablet view */
  .contact-tf-grid {
    grid-template-columns: 1fr; /* Stack them */
    gap: 60px;
  }
  .contact-tf-text {
    text-align: center;
  }
  .contact-tf-text p {
    margin: 0 auto;
  }
}

.contact-tf-text #get-in-touch-heading {
  min-height: 3.4rem; /* Prevents layout shift during animation */
}

/* ------------------------------------------- */
/* --- CONTACT INFO & LOCATION SECTION --- */
/* ------------------------------------------- */
.info-location-section {
  background-color: #fff;
  /* padding: 100px 0; */
  padding-bottom: 10vh;
  /* border-top: 1px solid #e9ecef */
}

.info-location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 80px;
}

.info-details h3 {
  font-size: 2.2rem; /* A bit smaller than the h2s */
  font-weight: 600;
  color: #004B87;
  margin-bottom: 15px;
  min-height: 2.7rem; /* Prevents layout shift from animation */
  display: inline-block; /* Important for the cursor */
}

/* This adds the blinking cursor using an ::after pseudo-element */
.info-details h3:not(:empty)::after {
  content: '|';
  color: #004B87;
  display: inline-block;
  margin-left: 5px;
  font-weight: 300;
  animation: blink 1s infinite;
}

/* Add spacing between the two info blocks */
.info-details h3#location-heading {
  margin-top: 40px;
}

.info-details p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5a6470;
}

.info-details p a {
  color: #5a6470;
  text-decoration: none;
  transition: color 0.2s;
}

.info-details p a:hover {
  color: #005A99;
}

.info-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for the new section */
@media (max-width: 992px) {
  .info-location-grid {
    grid-template-columns: 1fr; /* Stack the columns on smaller screens */
    gap: 60px;
  }
}

/* ------------------------------------------- */
/* --- SITE FOOTER STYLES (FINAL & CORRECT) --- */
/* ------------------------------------------- */
.site-footer {
  background-color: #0D2C4A;
  color: #ffffff;
  padding: 80px 0;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;
  gap: 40px;
}

/* --- Left Column: About & Socials --- */
.footer-about {
  max-width: 450px;
}

.footer-about h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Georgia", "Times New Roman", serif;
}

.footer-about p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-size: 1rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-socials a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.footer-socials a:hover {
  transform: translateY(-3px);
}

.footer-socials svg {
  width: 28px;
  height: 28px;
}

/* --- Right Column: Sitemap --- */
.footer-links {
  /* This ensures the text inside this block is aligned to the left */
  text-align: left; 
}

.footer-links h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- Responsive styles for Footer --- */
@media (max-width: 768px) {
  .footer-content {
    /* Stacks the columns vertically on small screens */
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links {
    margin-top: 40px;
  }
}

/* ------------------------------------------- */
/* --- KNOW MORE PAGE STYLES --- */
/* ------------------------------------------- */
.know-more-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.know-more-content {
  max-width: 1300px; /* Constrains the width of the content */
  margin: 0 auto;   /* Centers the content block */
  text-align: center;
}

.know-more-content .subheading {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

.know-more-content .main-heading {
  font-size: 3.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 50px;
}

/* This wrapper makes the video responsive */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px; /* Rounded corners for the video */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================= */
/* === SIMPLE RESPONSIVE STYLES === */
/* ========================================= */

/* --- Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .about-main-content {
    flex-direction: column;
  }
  
  .services-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .choose-us-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-tf-grid,
  .info-location-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Just make fonts smaller */
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.9rem; }
  a { font-size: 0.9rem; }
  
  .hero h2 {
    font-size: 1.8rem;
    min-height: auto;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-primary,
  .btn-hero,
  .btn-contact {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Make containers full width */
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  /* Stack flex items */
  .services-grid,
  .choose-us-grid {
    flex-direction: column;
  }
  
  .service-card,
  .reason-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
  }
  
  /* Adjust spacing */
  section {
    padding: 40px 0;
  }
  
  /* Form adjustments */
  .form-step input,
  .form-step textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Mission card */
  .mission-card {
    flex-direction: column;
  }
  
  .mission-icon {
    width: 100%;
    height: 120px;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  /* Hide company name to save space */
  .logo h1 {
    display: none;
  }
  
  /* Even smaller fonts */
  .hero h2 {
    font-size: 1.5rem;
  }
  
  /* Smaller nav */
  .nav ul {
    gap: 0.5rem;
  }
  
  .nav a {
    font-size: 0.8rem;
  }
}