/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ── Navbar ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #38d9b8;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ── */
.mobile-nav-link { position: relative; }
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }

/* ── Service cards ── */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38d9b8, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before { opacity: 1; }

/* ── Testimonial cards ── */
.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: #1a3560; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2dd4a8; }

/* ── Selection ── */
::selection { background: rgba(45, 212, 168, 0.3); color: #fff; }
