/* Saratoga Capital - Modern Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  /* Primary Colors - Dark Navy Theme */
  --primary-blue: #1e293b;
  --primary-blue-dark: #0F2345;
  --primary-blue-light: #334155;

  /* Navy Palette */
  --dark-navy: #0F2345;
  --navy: #1e293b;
  --navy-light: #334155;

  /* Neutrals */
  --light-gray: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --border-color: #e2e8f0;

  /* Accent Colors */
  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e293b 0%, #0F2345 100%);
  --gradient-hero: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 35, 69, 0.95) 100%);
  --gradient-dark: linear-gradient(180deg, #0F2345 0%, #1e293b 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(30, 41, 59, 0.05) 0%, rgba(15, 35, 69, 0.02) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(30, 41, 59, 0.15);

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--primary-blue);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: all var(--transition-base);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

header.transparent {
  background: transparent;
}

header.transparent.scrolled {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

/* When over dark background (hero sections) - keep white text */
header.over-dark nav ul li > a {
  color: var(--white);
}

header.over-dark nav ul li > a:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

header.over-dark .mobile-toggle span {
  background: var(--white);
}

/* Logo is white by default in SVG - no filter needed over dark backgrounds */
header.over-dark .logo img {
  filter: none !important;
}

/* When scrolled past hero onto light background - use dark text */
header.scrolled:not(.over-dark) nav ul li > a {
  color: var(--text-dark);
}

header.scrolled:not(.over-dark) nav ul li > a:hover {
  color: var(--primary-blue);
  background: var(--gray-100);
}

header.scrolled:not(.over-dark) .mobile-toggle span {
  background: var(--dark-navy);
}

/* Make white SVG logo match header link color (--text-dark: #1e293b) when on light background */
header.scrolled:not(.over-dark) .logo img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(800%) hue-rotate(185deg) brightness(97%) contrast(90%) !important;
}

/* Legacy/fallback for transparent header - logo stays white */
header.transparent:not(.scrolled) nav ul li > a {
  color: var(--white);
}

header.transparent:not(.scrolled) nav ul li > a:hover {
  color: rgba(255, 255, 255, 0.8);
}

header.transparent:not(.scrolled) .mobile-toggle span {
  background: var(--white);
}

header.transparent:not(.scrolled) .logo img {
  filter: none !important;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 100;
}

.logo img {
  height: 56px;
  width: auto;
  transition: transform var(--transition-base), filter var(--transition-base);
}

.logo:hover img {
  transform: scale(1.02);
}

nav {
  display: flex;
  align-items: center;
}

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

nav ul li {
  position: relative;
}

nav ul li > a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

nav ul li > a:hover {
  color: var(--primary-blue);
  background: var(--gray-100);
}

/* Dropdown Arrow */
nav ul li.has-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-base);
}

nav ul li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
nav ul li .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  padding: 8px;
  border: 1px solid var(--border-color);
}

nav ul li .dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: var(--white);
  transform: rotate(45deg);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul li .dropdown li {
  display: block;
}

nav ul li .dropdown li a {
  padding: 12px 16px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

nav ul li .dropdown li a:hover {
  background: var(--gray-100);
  color: var(--primary-blue);
  transform: translateX(4px);
}

/* ==========================================
   MEGA MENU
   ========================================== */
.has-mega-menu {
  position: static;
}

.has-mega-menu > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-base);
  margin-left: 6px;
}

.has-mega-menu:hover > a::after {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  border-top: 3px solid var(--primary-blue);
  z-index: 1000;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.mega-menu-info {
  padding-right: 40px;
  border-right: 1px solid var(--border-color);
}

.mega-menu-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-navy) !important;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.mega-menu-info p {
  font-size: 15px;
  color: var(--text-light) !important;
  line-height: 1.7;
  margin-bottom: 24px;
}

.mega-menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-blue) !important;
  transition: gap var(--transition-base);
}

.mega-menu-cta:hover {
  gap: 12px;
}

.mega-menu-links {
  display: flex;
  gap: 48px;
}

.mega-menu-column h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 20px;
}

.mega-menu-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu-column ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mega-menu-column ul li a:hover {
  background: var(--gray-100);
  color: var(--primary-blue) !important;
  transform: translateX(4px);
}

.mega-menu-column ul li a .link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-menu-column ul li a .link-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-blue);
  transition: fill var(--transition-fast);
}

.mega-menu-column ul li a:hover .link-icon svg {
  fill: var(--primary-blue-dark);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-navy);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Force dark X when menu is open (white background) */
.mobile-toggle.active span {
  background: var(--dark-navy) !important;
}

/* Make mobile toggle appear above nav when menu is open */
.mobile-toggle.active {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 1100;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 0 24px;
}

.hero-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero p {
  font-size: clamp(18px, 2.5vw, 22px);
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.hero .btn-primary,
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-primary:hover,
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========================================
   VIDEO HERO SECTION
   ========================================== */
.hero-video {
  background: none;
}

.hero-video::before,
.hero-video::after {
  display: none;
}

.hero-video-container {
  position: absolute;
  inset: -1px;
  overflow: hidden;
  background: #000;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  border: none;
  outline: none;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Mobile: show static image, hide video */
@media (max-width: 768px) {
  .hero-video-container {
    background: url('/assets/videos/welding-mobile.jpg?v=1') center/cover no-repeat;
  }
  .hero-video-bg {
    display: none !important;
    visibility: hidden !important;
  }
  .hero-video-fallback {
    display: none !important;
  }
}

/* ==========================================
   GEOMETRIC HERO STYLES - Choreographed Sliding
   ========================================== */

.hero-geometric {
  background: var(--dark-navy);
}

.hero-geometric::before,
.hero-geometric::after {
  display: none;
}

.hero-geo-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-geo-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a3a5c 50%, var(--dark-navy) 100%);
}

/* ==========================================
   SIMPLE HERO WITH BACKGROUND IMAGE
   Starting point - will add geometric shapes later
   ========================================== */

.hero-simple {
  background: var(--dark-navy);
}

.hero-simple::before,
.hero-simple::after {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Second background - revealed with diagonal wipe
   Expands from top-right toward bottom-left */
.hero-bg-reveal {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%);
  animation: diagonalReveal 2.5s ease-in-out 3.6s forwards;
}

/* When JS takes control, disable CSS animation */
.hero-bg-reveal.js-controlled {
  animation: none;
}

@keyframes diagonalReveal {
  0% {
    /* Everything hidden, plane is beyond top-right */
    clip-path: polygon(
      100% 0%,
      100% 0%,
      100% 0%,
      100% 0%
    );
  }

  100% {
    /* Entire screen revealed */
    clip-path: polygon(
      -100% 0%,
      100% -100%,
      200% 100%,
      0% 200%
    );
  }
}




/* ==========================================
   HERO GEOMETRIC TRIANGLES
   ========================================== */

/* Right side - Blue triangle (pointing left)
   Width: 25vw, Height: 100vh */
.hero-triangle-left {
  position: absolute;
  height: 100vh;
  width: 25vw;
  top: 0;
  right: 0;
  background: var(--primary-blue);
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
  z-index: 2;
  opacity: 0;
  animation: triangleSlideIn 1.5s ease-out 1s forwards;
}

/* Right side - Image triangle */
.hero-triangle-img {
  position: absolute;
  height: 100vh;
  width: 25vw;
  top: 0;
  right: -10px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
  z-index: 3;
  opacity: 0;
  animation: triangleSlideIn 1.5s ease-out 1.15s forwards;
}

@keyframes triangleSlideIn {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bottom - Blue triangle (pointing up)
   Width: 50vw, Height: 50vh */
.hero-triangle-bottom {
  position: absolute;
  height: 50vh;
  width: 50vw;
  bottom: 0;
  right: 0;
  background: var(--primary-blue);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  z-index: 2;
  opacity: 0;
  animation: triangleSlideUp 1.5s ease-out 1.3s forwards;
}

/* Bottom - Image triangle */
.hero-triangle-bottom-img {
  position: absolute;
  height: 50vh;
  width: 50vw;
  bottom: -10px;
  right: 0;
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  z-index: 3;
  opacity: 0;
  animation: triangleSlideUp 1.5s ease-out 1.5s forwards;
}

@keyframes triangleSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Top - Blue triangle (pointing down)
   Width: 50vw, Height: 50vh */
.hero-triangle-top {
  position: absolute;
  height: 50vh;
  width: 50vw;
  top: 0;
  left: 0;
  background: var(--primary-blue);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  z-index: 2;
  opacity: 0;
  animation: triangleSlideDown 1.5s ease-out 1.3s forwards;
}

/* Top - Image triangle */
.hero-triangle-top-img {
  position: absolute;
  height: 50vh;
  width: 50vw;
  top: -10px;
  left: 0;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  z-index: 3;
  opacity: 0;
  animation: triangleSlideDown 1.5s ease-out 1.5s forwards;
}

@keyframes triangleSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Left - Blue triangle (right angle at bottom-left, point at bottom-right)
   Width: 50vw, Height: 100vh */
.hero-triangle-corner-bl {
  position: absolute;
  width: 50vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: var(--primary-blue);
  clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
  z-index: 1;
  opacity: 0;
  animation: triangleSlideLeft 1.5s ease-out 1.4s forwards;
}

/* Left - Image triangle (offset 10px bottom-left) */
.hero-triangle-corner-bl-img {
  position: absolute;
  width: 50vw;
  height: 100vh;
  top: 0;
  left: -10px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
  z-index: 1;
  opacity: 0;
  animation: triangleSlideLeft 1.5s ease-out 1.6s forwards;
}

@keyframes triangleSlideLeft {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* When JS takes control, disable CSS animations */
.hero-triangle-left.js-controlled,
.hero-triangle-img.js-controlled,
.hero-triangle-bottom.js-controlled,
.hero-triangle-bottom-img.js-controlled,
.hero-triangle-top.js-controlled,
.hero-triangle-top-img.js-controlled,
.hero-triangle-corner-bl.js-controlled,
.hero-triangle-corner-bl-img.js-controlled {
  animation: none;
  opacity: 1;
}

/* Mobile: Adjust triangle sizes (to be customized later) */
@media (max-width: 768px) {
  /* Triangles remain visible - sizes to be adjusted */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 69, 0.4);
  z-index: 1;
}

/* Rotating Text Animation */
.hero-rotating-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.rotating-text-static {
  font-size: 0.5em;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rotating-text-wrapper {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  display: block;
}

.rotating-text-items {
  display: flex;
  flex-direction: column;
  animation: rotateText 9s ease-in-out infinite;
}

.rotating-text-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes rotateText {
  0%, 25% {
    transform: translateY(0);
  }
  30%, 55% {
    transform: translateY(-1.2em);
  }
  60%, 85% {
    transform: translateY(-2.4em);
  }
  90%, 100% {
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

/* Page Hero */
.page-hero {
  height: 60vh;
  min-height: 450px;
  max-height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  padding-top: 74px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 35, 69, 0.9) 100%);
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  z-index: 1;
}

.page-hero-content,
.page-hero h1 {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease forwards;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  position: relative;
  z-index: 2;
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.page-hero .hero-label {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0s;
  opacity: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

section.alt-bg {
  background: var(--light-gray);
  padding: 60px 0;
}

section.gradient-bg {
  background: var(--gradient-subtle);
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  max-width: 560px;
}

.about-content .section-label {
  display: block;
  margin-bottom: 16px;
}

.about-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 17px;
}

.about-content p:last-of-type {
  margin-bottom: 32px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.1;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
  background: linear-gradient(135deg, #1e293b 0%, #0F2345 100%);
  padding: 80px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Animated graph line background */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 120%;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0,150 Q150,120 300,130 T600,80 T900,100 T1200,60' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Cpath d='M0,180 Q200,150 400,160 T800,110 T1200,90' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
  animation: graphMove 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

@keyframes graphMove {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-10px) scaleY(1.05); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 20px;
}

.stat-item h3 {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid.five-col {
  grid-template-columns: repeat(5, 1fr);
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(30, 41, 59, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition-spring);
}

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

.service-card .icon svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  flex-grow: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.service-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   NEWS GRID
   ========================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card .date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color var(--transition-base);
}

.news-card:hover h3 {
  color: var(--primary-blue);
}

.news-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #777;
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--transition-base);
}

.news-card:hover .read-more {
  gap: 10px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  background: var(--gradient-dark);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.15) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

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

.cta-section h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ==========================================
   CONTENT PAGES
   ========================================== */
.page-content {
  padding: 80px 0;
}

.page-content .container {
  max-width: 900px;
}

.page-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 16px;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.page-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 16px;
  margin-top: 32px;
}

.page-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 17px;
}

.page-content ul,
.page-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-content ul li,
.page-content ol li {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content blockquote {
  background: var(--light-gray);
  border-left: 4px solid var(--primary-blue);
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 18px;
  color: var(--dark-navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-content a {
  color: var(--primary-blue);
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Tables - break out of narrow container */
.page-content table {
  width: calc(100% + 300px);
  max-width: 1100px;
  margin: 32px -150px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
  .page-content table {
    width: 100%;
    margin: 32px 0;
  }
}

.page-content thead {
  background: var(--dark-navy);
  color: var(--white);
}

.page-content th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.page-content td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  line-height: 1.6;
  vertical-align: top;
}

.page-content tbody tr:last-child td {
  border-bottom: none;
}

.page-content tbody tr:nth-child(even) {
  background: var(--light-gray);
}

.page-content tbody tr:hover {
  background: var(--gray-100);
}

@media (max-width: 900px) {
  .page-content table {
    width: 100%;
    margin: 32px 0;
    font-size: 13px;
    table-layout: fixed;
  }

  .page-content th,
  .page-content td {
    padding: 10px 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .page-content th {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .page-content table {
    font-size: 11px;
  }

  .page-content th,
  .page-content td {
    padding: 8px 5px;
  }

  .page-content th {
    font-size: 10px;
  }
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.two-column img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
}

/* Content Block - Standardized text styling */
.content-block {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.content-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Form Container */
.form-container {
  max-width: 600px;
  margin: 40px auto 0;
}

/* ==========================================
   PILLARS SECTION
   ========================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.pillar-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

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

.pillar-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 16px;
}

.pillar-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.contact-card a {
  color: var(--primary-blue);
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Office Locations */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.office-card {
  background: var(--light-gray);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.office-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.office-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-card p {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary,
.btn {
  background: var(--dark-navy);
  color: var(--white);
}

.btn-primary:hover,
.btn:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--dark-navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-light);
}

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

.btn-outline:hover {
  background: var(--dark-navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--dark-navy);
}

.btn-white:hover {
  background: var(--gray-100);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(255, 255, 255);
}

/* Folded corner effect */
footer::before {
  content: '';
  position: absolute;
  top: -2px;
  right: 0;
  width: 80px;
  height: 82px;
  background: rgba(0, 0, 0, 0.12);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 2;
}

footer::after {
  content: '';
  position: absolute;
  top: -2px;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 80px 82px 0;
  border-color: transparent var(--light-gray) transparent transparent;
  z-index: 3;
}

/* Fold border lines (L-shape like the logo) */
footer .container {
  position: relative;
}

/* Vertical line - left edge of fold */
footer .container::before {
  content: '';
  position: absolute;
  top: -82px;
  right: calc(-50vw + 50% + 78px);
  width: 2px;
  height: 82px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 4;
}

/* Horizontal line - bottom edge of fold */
footer .container::after {
  content: '';
  position: absolute;
  top: -2px;
  right: calc(-50vw + 50%);
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 4;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-col p {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.7;
}

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

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

.footer-col ul li a {
  font-size: 15px;
  opacity: 0.7;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-col ul li a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-logo img {
  height: 52px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

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

.footer-bottom p {
  font-size: 14px;
  opacity: 0.6;
}

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

.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-navy);
  font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition-base);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-blue); }
.text-dark { color: var(--dark-navy); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-gray); }
.bg-primary { background-color: var(--primary-blue); }
.bg-dark { background-color: var(--dark-navy); }

.mb-0 { margin-bottom: 0; }
.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; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Reveal animations for scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid.five-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .about-section,
  .two-column {
    gap: 60px;
  }

}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .mobile-toggle {
    display: flex;
  }

  nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1001;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
  }

  /* Force dark text in mobile menu regardless of header state */
  nav ul li > a,
  nav ul li .dropdown li a,
  .mega-menu-column ul li a {
    color: var(--text-dark) !important;
  }

  nav ul li > a:hover,
  nav ul li .dropdown li a:hover,
  .mega-menu-column ul li a:hover {
    color: var(--primary-blue) !important;
    background: var(--gray-100);
  }

  nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    width: 100%;
    max-width: 400px;
    padding: 0 24px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  nav ul li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid var(--border-color);
    visibility: visible !important;
    opacity: 1 !important;
  }

  nav ul li > a {
    padding: 18px 0;
    font-size: 18px;
    justify-content: space-between;
  }

  nav ul li .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 16px 16px;
    display: none;
    border: none;
    background: transparent;
  }

  nav ul li .dropdown::before {
    display: none;
  }

  nav ul li.dropdown-open .dropdown {
    display: block;
  }

  /* Mobile Mega Menu */
  .mega-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    border-top: none;
    background: var(--gray-100);
    margin: 0 -24px;
    padding: 0;
  }

  .has-mega-menu.dropdown-open .mega-menu {
    display: block;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .mega-menu-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .mega-menu-info h3 {
    font-size: 18px;
  }

  .mega-menu-info p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .mega-menu-links {
    flex-direction: column;
    gap: 16px;
  }

  .mega-menu-column h4 {
    margin-bottom: 12px;
  }

  .mega-menu-column ul li a {
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Rotating text mobile */
  .hero-rotating-text {
    font-size: clamp(28px, 8vw, 40px);
  }

  .rotating-text-static {
    font-size: 0.45em;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-content {
    padding: 32px 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero .btn {
    width: 100%;
    max-width: 280px;
  }

  .page-hero {
    min-height: 300px;
    margin-top: 0;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .about-section,
  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-column.reverse {
    direction: ltr;
  }

  .about-image::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-item h3 {
    font-size: 42px;
  }

  .services-grid,
  .services-grid.five-col,
  .news-grid,
  .pillars-grid,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .service-card,
  .pillar-card {
    padding: 32px 24px;
  }

  .news-card-content {
    padding: 20px;
  }

  .btn {
    padding: 12px 24px;
  }
}

/* ==========================================
   PROJECT TEAM CARDS
   ========================================== */
.project-team {
  margin-top: 48px;
}

.project-team h2 {
  margin-bottom: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-base);
}

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

.team-card .team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 4px;
}

.team-card .team-title {
  font-size: 14px;
  color: var(--text-light);
}

/* LinkedIn link styling for team members */
.team-name a.linkedin-link {
  color: var(--dark-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-name a.linkedin-link:hover {
  color: #0077b5;
}

.linkedin-icon {
  color: #0077b5;
  flex-shrink: 0;
}

.team-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video container for responsive embeds */
.video-container {
  position: relative;
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  display: block;
  border-radius: var(--radius-md);
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  header,
  footer,
  .hero,
  .page-hero,
  .cta-section,
  .scroll-indicator {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .page-content {
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary);
}

.cookie-banner-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.cookie-banner-content a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-buttons .btn {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-cookie-accept {
  background: #0f2137 !important;
  color: #ffffff !important;
  border: none;
}

.btn-cookie-accept:hover {
  background: #0a1628 !important;
  color: #ffffff !important;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-cookie-reject:hover {
  background: var(--background);
  color: var(--text);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner-buttons .btn {
    flex: 1;
    max-width: 150px;
  }
}
