/* Base & utilities */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 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; }
}

/* Reveal animations — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal="left"] {
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    transform: translateX(24px);
}

.reveal[data-reveal="scale"] {
    transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Inline reveal (no scroll delay) */
.reveal-inline {
    opacity: 1;
    transform: none;
}

/* Card stagger delays */
.reveal-card:nth-child(1) { transition-delay: 0ms; }
.reveal-card:nth-child(2) { transition-delay: 80ms; }
.reveal-card:nth-child(3) { transition-delay: 160ms; }
.reveal-card:nth-child(4) { transition-delay: 240ms; }
.reveal-card:nth-child(5) { transition-delay: 320ms; }
.reveal-card:nth-child(6) { transition-delay: 400ms; }

/* Header scroll state */
#site-header.scrolled {
    background: rgba(4, 11, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040B16; }
::-webkit-scrollbar-thumb { background: rgba(52,211,153,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(52,211,153,0.5); }

/* Selection */
::selection { background: rgba(52,211,153,0.3); color: #fff; }
</style>
