/* Base styles & custom properties */
:root {
    --color-coral-400: #ff705c;
    --color-coral-500: #ff5a3f;
    --color-coral-600: #ee4428;
    --color-charcoal-900: #2a2a38;
    --color-charcoal-950: #111118;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement via JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(17, 17, 24, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1e1e2a;
}
::-webkit-scrollbar-thumb {
    background: #565670;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a3f;
}

/* Selection color */
::selection {
    background: #ff5a3f;
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    img, .group:hover img {
        transform: none;
    }
}
