/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf9; }
::-webkit-scrollbar-thumb { background: #99f6e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2dd4bf; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(10,22,40,0.06);
  padding: 0;
}
.bar { transition: all 0.3s ease; }
#mobile-menu-btn.active .bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
#mobile-menu-btn.active .bar:nth-child(3) { width: 24px; }
.mobile-link { border-bottom: 1px solid transparent; }
.mobile-link:hover { border-bottom-color: #99f6e0; }

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 35%, #0f766e 70%, #14b8a6 100%);
}
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
}
.hero-float-1 { animation: float 6s ease-in-out infinite; }
.hero-float-2 { animation: float 8s ease-in-out infinite reverse; }
.hero-float-3 { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
.hero-title { opacity: 0; animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.hero-subtitle { opacity: 0; animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }
.hero-badge { opacity: 0; animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.hero-buttons { opacity: 0; animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 0.2; transform: scaleY(0.6); }
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: white;
  border-radius: 9999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13,148,136,0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,148,136,0.4);
}
.btn-hero-primary {
  background: white;
  color: #0a1628;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

/* ── Section Labels & Titles ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d9488;
  background: rgba(13,148,136,0.08);
  padding: 6px 14px;
  border-radius: 9999px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #0a1628;
  line-height: 1.15;
}
.section-text {
  color: #4a6c85;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* ── Stats ── */
.stat-number {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ── Cards ── */
.card-hover { cursor: default; }
.card-hover:hover { transform: translateY(-6px); }

/* ── Gallery ── */
.gallery-item { cursor: default; }
.gallery-item img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

/* ── Inputs ── */
.input-field {
  background: white;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #0a1628;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: #94a3b8; }
.input-field:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20,184,166,0.1);
}
.input-field:hover { border-color: #99f6e0; }

/* ── Reveal Animations (progressive enhancement) ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-up { opacity: 0; transform: translateY(40px); }
  .reveal-left { opacity: 0; transform: translateX(-40px); }
  .reveal-right { opacity: 0; transform: translateX(40px); }
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2rem; }
}
