/* === BASE & RESET === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* === NAV SCROLLED STATE === */
nav.scrolled {
    background: rgba(6, 12, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === SELECTION === */
::selection {
    background: rgba(46, 204, 113, 0.3);
    color: #f0f4f8;
}

/* === FOCUS === */
:focus-visible {
    outline: 2px solid #2ecc71;
    outline-offset: 2px;
}

/* === MOBILE MENU ANIMATION === */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

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

::-webkit-scrollbar-track {
    background: #0d1724;
}

::-webkit-scrollbar-thumb {
    background: #2d4a6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2ecc71;
}

/* === DECORATIVE PATTERN === */
.pattern-dots {
    background-image: radial-gradient(rgba(46, 204, 113, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
