:root {
  --primary-color: #003366; /* Deep blue */
  --secondary-color: #00509E; /* Lighter blue */
  --text-color: #333333;
  --bg-color: #ffffff;
  --light-bg: #f4f7f6;
  --white: #ffffff;
  /* Sticky header glass (same hue family as primary) */
  --nav-glass-tint: rgba(0, 51, 102, 0.78);
  --nav-glass-tint-scrolled: rgba(0, 51, 102, 0.5);
  --nav-text: rgba(255, 255, 255, 0.95);
  --nav-text-muted: rgba(255, 255, 255, 0.78);
  /* Hero glass cards (match header feel) */
  --hero-glass-tint: rgba(0, 51, 102, 0.76);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

/* Navbar — sticky frosted glass + animated halos */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 26, 51, 0.25);
}

.navbar-halos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Soft drifting veil — extra depth behind halos */
.navbar-halos::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(0, 140, 220, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 75% 80%, rgba(180, 230, 255, 0.12), transparent 50%);
  opacity: 0.85;
  animation: navbar-veil 28s ease-in-out infinite;
}

@keyframes navbar-veil {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.75; }
  50% { transform: translate(-3%, 2%) rotate(2deg); opacity: 0.95; }
}

.navbar-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.68;
  will-change: transform;
}

.navbar-halo--1 {
  width: min(55vw, 380px);
  height: min(55vw, 380px);
  background: radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.55), transparent 62%);
  left: -8%;
  top: -60%;
  animation: navbar-halo-1 26s ease-in-out infinite;
}

.navbar-halo--2 {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  background: radial-gradient(circle at 60% 40%, rgba(0, 120, 210, 0.5), transparent 65%);
  right: -5%;
  bottom: -70%;
  animation: navbar-halo-2 32s ease-in-out infinite;
}

.navbar-halo--3 {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 60%);
  left: 35%;
  top: -40%;
  animation: navbar-halo-3 20s ease-in-out infinite;
}

@keyframes navbar-halo-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.08); }
}

@keyframes navbar-halo-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -6%) scale(1.12); }
}

@keyframes navbar-halo-3 {
  0%, 100% { transform: translate(-6%, 4%) scale(1); }
  50% { transform: translate(8%, -8%) scale(1.15); }
}

.navbar-frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--nav-glass-tint);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

.navbar.navbar--scrolled .navbar-frost {
  background: var(--nav-glass-tint-scrolled);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Tiny light specks — slow, low-contrast motion */
.navbar-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(190, 230, 255, 0.55);
  opacity: 0.35;
  animation: navbar-particle-drift 22s ease-in-out infinite;
  will-change: transform, opacity;
}

.navbar-particle:nth-child(4) { left: 10%; top: 42%; animation-duration: 24s; animation-delay: -1s; }
.navbar-particle:nth-child(5) { left: 28%; top: 28%; animation-duration: 19s; animation-delay: -4s; width: 3px; height: 3px; opacity: 0.28; }
.navbar-particle:nth-child(6) { left: 52%; top: 55%; animation-duration: 26s; animation-delay: -7s; }
.navbar-particle:nth-child(7) { left: 68%; top: 32%; animation-duration: 21s; animation-delay: -2s; width: 3px; height: 3px; }
.navbar-particle:nth-child(8) { left: 82%; top: 48%; animation-duration: 30s; animation-delay: -9s; opacity: 0.3; }
.navbar-particle:nth-child(9) { left: 44%; top: 38%; animation-duration: 17s; animation-delay: -5s; width: 2px; height: 2px; box-shadow: 0 0 6px rgba(200, 235, 255, 0.45); }

@keyframes navbar-particle-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.22; }
  35% { transform: translate(6px, -4px); opacity: 0.42; }
  70% { transform: translate(-4px, 5px); opacity: 0.3; }
}

.navbar-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  flex: 1;
  min-width: 0;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--nav-text);
  transition: opacity 0.2s ease;
}

.nav-brand-link:hover {
  opacity: 0.92;
  color: var(--nav-text);
}

.nav-brand img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--nav-text);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-shrink: 0;
  z-index: 3;
}

.nav-links li {
  margin-left: 1.75rem;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a:not(.nav-link-cta) {
  font-weight: 500;
  position: relative;
  color: var(--nav-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-link-cta):hover {
  color: var(--white);
}

.nav-links a:not(.nav-link-cta)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: rgba(160, 210, 255, 0.95);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-link-cta):hover::after {
  width: 100%;
}

.nav-item-cta {
  margin-left: 1.5rem !important;
}

.nav-link-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--primary-color) !important;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 51, 102, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link-cta:hover {
  color: var(--primary-color) !important;
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 51, 102, 0.1);
}

.nav-link-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  color: var(--nav-text);
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 3rem 5%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-glass-tint);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  z-index: 1;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%; /* 4 images */
  height: 100%;
  display: flex;
  z-index: 0;
  animation: scrollHero 40s linear infinite;
}

.hero-bg-layer {
  width: 25%; /* 1/4 of container width to fit perfectly */
  height: 100%;
  background: url('/assets/hero.png') center/cover no-repeat;
}

.hero-bg-layer.flipped {
  transform: scaleX(-1);
}

@keyframes scrollHero {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scrolls exactly 2 images to perfectly loop */
}

body.page-home .hero {
  min-height: calc(100vh - 72px);
}

.center {
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center; 
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.75rem;
}

.hero-glass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 auto 2.25rem;
  text-align: left;
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 1.65rem 1.5rem;
  border-radius: 14px;
  background: var(--hero-glass-tint);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 40px rgba(0, 26, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 30%, rgba(120, 200, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.glass-card p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.93);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.hero .btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Sections */
section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Cards / Directors */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.director-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.director-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.director-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--light-bg);
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

/* Home Page Specific Sections */
.milestone-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 5%;
  text-align: center;
}

.milestone-banner h3 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

.two-col-section, .three-col-section {
  padding: 5rem 5%;
  background: var(--light-bg);
}

.three-col-section {
  background: var(--white);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.three-col-section .info-card {
  background: var(--light-bg);
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: #555;
}

.info-card ul {
  list-style-position: inside;
  color: #555;
  margin-top: 1rem;
}

.info-card li {
  margin-bottom: 0.5rem;
}

.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.focus-tag {
  background: var(--secondary-color);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 80, 158, 0.2);
  transition: transform 0.2s ease;
}

.focus-tag:hover {
  transform: translateY(-5px);
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.multistep-container {
  max-width: 800px;
  padding: 2.5rem;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: #e0e0e0;
  z-index: 0;
}

.progress-step {
  width: 35px;
  height: 35px;
  background: var(--light-bg);
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #888;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
}

.progress-step.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.progress-step.active::after {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-step.completed {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.form-steps-overflow {
  overflow: hidden;
  width: 100%;
}

.form-steps-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  align-items: flex-start;
}

.form-step {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.form-step.active {
  opacity: 1;
  pointer-events: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--white);
}

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

.form-group input[disabled],
.form-group select[disabled] {
  background-color: #f9f9f9;
  cursor: not-allowed;
  color: #777;
}

/* Form Errors */
.error-summary {
  background-color: #ffe6e6;
  border: 1px solid #ff9999;
  border-left: 4px solid #cc0000;
  color: #cc0000;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.error-summary ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.error-summary li {
  margin-bottom: 0.25rem;
}

.error-summary li a {
  color: #cc0000;
  text-decoration: underline;
  cursor: pointer;
}

.error-text {
  color: #cc0000;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: block;
}

.form-group input.error-input,
.form-group select.error-input,
.form-group textarea.error-input {
  border-color: #cc0000;
  background-color: #fffafa;
}

.form-group input.error-input:focus,
.form-group select.error-input:focus,
.form-group textarea.error-input:focus {
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 5% 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: left;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--light-bg);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  transform: translateY(20px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in.appear, .fade-in-left.appear, .fade-in-right.appear {
  opacity: 1;
  transform: translate(0);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: wrap;
    padding: 0.75rem 5%;
  }

  .hero-glass-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    max-height: 420px;
  }
  
  .nav-links li {
    margin: 0 !important;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item-cta {
    padding: 0.5rem 1rem 1rem;
    border-top: none;
  }
  
  .nav-links a:not(.nav-link-cta) {
    display: block;
    padding: 1rem;
  }

  .nav-link-cta {
    display: block;
    width: calc(100% - 2rem);
    max-width: 280px;
    margin: 0.25rem auto 0.75rem;
    text-align: center;
  }
  
  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .nav-brand-name {
    font-size: 1.2rem;
  }

  .nav-brand img {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-halo--1,
  .navbar-halo--2,
  .navbar-halo--3,
  .navbar-halos::before,
  .navbar-particle {
    animation: none !important;
  }

  .navbar-halos::before {
    transform: none;
    opacity: 0.8;
  }
}
