/* ====== CSS Variables & Theme Options ====== */
:root {
  /* Brand Colors */
  --primary-navy: #1B2A4A;
  --primary-blue: #2F4E85;
  --bg-color: #F5F6F8;
  --bg-alt: #FFFFFF;
  --text-primary: #2B2B2B;
  --text-secondary: #6A6A6A;
  --accent: #3A63C6;
  --accent-hover: #284B9B;
  --border-color: #E4E6EB;
  --white: #FFFFFF;
  --dark-bg: #0B132B;

  /* Typography */
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', 'Open Sans', sans-serif;
  
  /* Transitions & Animations */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Premium Shadows */
  --shadow-sm: 0 4px 6px rgba(27, 42, 74, 0.04);
  --shadow-md: 0 12px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 24px 48px rgba(27, 42, 74, 0.12);
  --shadow-glow: 0 0 30px rgba(58, 99, 198, 0.3);
  
  /* Sizing */
  --radius: 12px;
  --radius-lg: 24px;
}

/* ====== Resets & Global ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Let GSAP handle scrolling when needed, though smooth is okay for anchors */
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 18px; /* Increased base size */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(48px, 6vw, 72px); /* 56-72px requirement */
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 4vw, 42px); /* 36-42px requirement */
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: 26px;
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 18px; /* Requirement */
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== Layout & Components ====== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: 140px 0;
  position: relative;
}

section.alt-bg {
  background-color: var(--bg-alt);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

/* ====== Header & Navigation ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

header.transparent {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* Logo SVG Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 24px;
  font-family: var(--font-heading);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: height var(--transition-normal);
}

header.scrolled .nav-container {
  height: 70px; /* Shrinks on scroll */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color var(--transition-fast);
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-navy);
  transition: all 0.3s;
}

/* ====== Footer ====== */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

footer .logo {
  color: var(--white);
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-col p {
  color: rgba(255,255,255,0.7);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* ====== Animations ====== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Base Utilities ====== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ====== Component Styles ====== */
.hero {
  padding: 180px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.hero-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 80% 20%, rgba(58, 99, 198, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(47, 78, 133, 0.05) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 850px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-navy);
  margin-bottom: 24px;
}

.hero-title .line {
  display: inline-block;
}

.hero-subtitle {
  font-size: 22px;
  max-width: 650px;
  margin-bottom: 48px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 16px;
  margin-bottom: 0;
  flex-grow: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 700;
  font-size: 24px;
}

/* ====== Timeline / Process Section ====== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--border-color);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  background-color: var(--accent);
  transform: translateX(-50%);
  border-radius: 4px;
  height: 0%; /* Will be animated */
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 24px;
  height: 24px;
  background-color: var(--white);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-dot.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(58, 99, 198, 0.15);
}

.timeline-content {
  width: 45%;
  position: relative;
}

/* Alternate left/right */
.timeline-item:nth-child(even) {
  justify-content: flex-start;
}
.timeline-item:nth-child(odd) {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .timeline-line, .timeline-line-progress {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-item {
    justify-content: flex-end !important;
  }
  .timeline-content {
    width: calc(100% - 60px);
  }
}


.stat-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--primary-navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  color: var(--white);
  font-size: clamp(32px, 3vw, 48px);
  margin-bottom: 8px;
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin: 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Testimonial Slider */
.testimonial-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.testimonial-card {
  min-width: 350px;
  flex: 0 0 350px;
  scroll-snap-align: start;
}

.testimonial-card p {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.testimonial-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-info h4 {
  margin: 0;
  font-size: 16px;
}

.author-info span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ====== CTA Section ====== */
.cta-card {
  background: var(--primary-navy);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 24px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  margin-bottom: 40px;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(58, 99, 198, 0.4) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
  .footer-grid, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }

  .hamburger {
    display: flex;
    z-index: 1001; /* Above nav */
  }
  
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-normal);
    z-index: 1000;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-cta {
    display: none; /* Hide top right cta on mobile to save space or move to menu */
  }
  
  nav ul li {
    font-size: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  section {
    padding: 60px 0;
  }
}
