/* ========== Base & Typography ========== */
*, *::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;
}

::selection {
    background: rgba(110, 231, 183, 0.3);
    color: #e8eef5;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d4d71;
}

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

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

/* ========== Navbar ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 12, 20, 0.85);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(26, 58, 92, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== Mobile Menu ========== */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 58, 92, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========== Flavor Cards ========== */
.flavor-card {
    transform: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.flavor-card:hover {
    box-shadow: 0 8px 40px rgba(110, 231, 183, 0.08);
}

/* ========== Button Focus States ========== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 2px;
}

/* ========== Floating Cards Animation ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: no-preference) {
    .float-1 { animation: float 4s ease-in-out infinite; }
    .float-2 { animation: float 5s ease-in-out infinite 0.5s; }
    .float-3 { animation: float 3.5s ease-in-out infinite 1s; }
}

/* ========== Custom Select Arrow ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237897be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== Smooth Image Loading ========== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ========== Section Spacing ========== */
section {
    position: relative;
}

/* ========== Contact Form Transitions ========== */
#contactForm,
#formSuccess {
    transition: opacity 0.3s ease;
}
