/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #061523; }
::-webkit-scrollbar-thumb { background: #1e4566; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d9b6e; }

/* ─── Selection ─── */
::selection { background: rgba(74, 179, 138, 0.3); color: #f0faf5; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.1; }

/* ─── Section Label ─── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #72ccaa;
  font-weight: 500;
}

/* ─── Section Title ─── */
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: #ffffff;
  line-height: 1.05;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2d9b6e;
  color: #f0faf5;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #4ab38a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 155, 110, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: #72ccaa;
  background: rgba(114, 204, 170, 0.08);
  transform: translateY(-2px);
}

/* ─── Nav Links ─── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #72ccaa;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ─── Header ─── */
#site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
#site-header.scrolled {
  background: rgba(6, 21, 35, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

/* ─── Hero Animations ─── */
.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}
.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}
.hero-desc {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}
.hero-subtitle, .hero-title, .hero-desc {
  will-change: opacity, transform;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.scroll-indicator span {
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ─── Service Cards ─── */
.service-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.5s ease, border-color 0.5s ease;
}
.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ─── Mobile Menu ─── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .service-card {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 767px) {
  .section-title { font-size: clamp(2rem, 8vw, 2.75rem); }
}
