/* ─── BASE & UTILITIES ─── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── ANIMATIONS ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-up {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── SCROLL REVEAL ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ─── */
#site-header {
  background: rgba(240, 253, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.08);
}

#site-header.scrolled {
  background: rgba(240, 253, 249, 0.95);
  box-shadow: 0 1px 20px rgba(26, 39, 68, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #14b8a6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

.menu-line {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── HERO ─── */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-headline {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-body {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-stats {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* ─── CTA BUTTONS ─── */
.cta-primary {
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.2);
}

.cta-primary:hover {
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.3);
}

.cta-secondary {
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(20, 184, 166, 0.05);
}

/* ─── EYEBROW ─── */
.eyebrow {
  letter-spacing: 0.25em;
}

/* ─── GALLERY ─── */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ─── TESTIMONIAL CARDS ─── */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── SERVICE CARDS ─── */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── FORM ─── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a2744' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0f1a2e;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0fdf9;
}

::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}
