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

/* ── Scroll Reveal (progressive enhancement — hidden by default, shown via JS) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS is active, add hidden initial state for below-fold reveals */
.js-active .reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Stagger delays */
.js-active .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-active .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-active .reveal:nth-child(4) { transition-delay: 0.3s; }
.js-active .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ── Navbar ── */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
    background: rgba(8, 15, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Hero Scroll Indicator ── */
.scroll-indicator {
    opacity: 0.7;
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── Selection ── */
::selection { background: rgba(13, 148, 136, 0.4); color: white; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .service-card:hover { transform: none; }
    .animate-bounce { animation: none; }
}
