/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: #0d1a2e;
    color: #f0f4f8;
    font-family: 'Nunito', sans-serif;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(7, 14, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 158, 109, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1a2e;
}
::-webkit-scrollbar-thumb {
    background: #1d3454;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2c5282;
}

/* ===== Selection ===== */
::selection {
    background: rgba(74, 158, 109, 0.3);
    color: #bbf7d0;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== Flavor Card Hover Glow ===== */
.group:hover .w-14 {
    transform: scale(1.1) rotate(-3deg);
    transition: transform 0.3s ease;
}

.w-14 {
    transition: transform 0.3s ease;
}
