/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Nav transition */
.nav-scrolled {
    background: rgba(6, 13, 31, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-scrolled .nav-link { color: rgba(255,255,255,0.7) !important; }

/* Mobile menu */
.mobile-menu-open { opacity: 1 !important; pointer-events: all !important; }

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Selection */
::selection {
    background: rgba(12, 184, 122, 0.2);
    color: inherit;
}

/* Thin scrollbar for webkit */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
