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

/* ── Custom Properties ────────────────────────────────────────────── */
:root {
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --slate-950: #080e1a;
}

/* ── Navigation ───────────────────────────────────────────────────── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-400);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu .mobile-link {
  transition: color 0.2s, transform 0.2s;
}
#mobile-menu .mobile-link:hover { color: var(--teal-400); transform: translateY(-2px); }
.bar { transition: transform 0.3s ease, opacity 0.3s ease; }
#menu-btn.active .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menu-btn.active .bar:nth-child(2) { opacity: 0; }
#menu-btn.active .bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); width: 1.25rem; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { will-change: transform; }
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(8, 14, 26, 0.96) 0%,
    rgba(8, 14, 26, 0.85) 50%,
    rgba(8, 14, 26, 0.50) 100%
  );
}
@keyframes heroBgShift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.hero-img { animation: heroBgShift 12s ease-in-out infinite; }

/* ── CTA Buttons ──────────────────────────────────────────────────── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 60px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}
.cta-primary:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45);
}
.cta-arrow { transition: transform 0.2s; }
.cta-primary:hover .cta-arrow { transform: translate(4px, -2px); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 60px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ── Section Labels & Titles ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ── Service Cards ────────────────────────────────────────────────── */
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(45, 212, 191, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(45, 212, 191, 0.15);
}

/* ── Why Cards ────────────────────────────────────────────────────── */
.why-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s, transform 0.25s;
}
.why-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

/* ── Form Inputs ──────────────────────────────────────────────────── */
.input-field {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: rgba(255,255,255,0.3); }
.input-field:focus {
  border-color: var(--teal-400);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
select.input-field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.input-field option { background: #1e293b; color: #fff; }

/* ── Scroll Reveal (progressive enhancement) ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    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; }
}

/* ── Stats ────────────────────────────────────────────────────────── */
.stat-item {
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 640px) {
  .stat-item:not(:last-child)::after { display: none; }
}

/* ── Responsive tweaks ────────────────────────────────────────────── */
@media (max-width: 767px) {
  #nav { background: rgba(8, 14, 26, 0.95); backdrop-filter: blur(16px); }
  .hero { min-height: 100svh; }
}
