/* ============================================
   BLENDED NUTRITION — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-scroll-line {
    animation: scrollLine 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.reveal-on-scroll[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-on-scroll[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .animate-scroll-line {
        animation: none;
        opacity: 0.5;
        top: 0;
    }
}

/* ---------- Navbar Scrolled State ---------- */
#navbar.scrolled {
    background: rgba(4, 13, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(184, 134, 11, 0.1);
}

#navbar.scrolled #hero-img {
    filter: brightness(0.7);
}

/* ---------- Mobile Menu Transitions ---------- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ---------- Custom Select Styling ---------- */
select option {
    background: #0A1F3F;
    color: #f3eac8;
    padding: 12px;
}

/* ---------- Input Autofill ---------- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f2d58 inset !important;
    -webkit-text-fill-color: #f3eac8 !important;
    caret-color: #f3eac8;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(184, 134, 11, 0.3);
    color: #faf6eb;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1e;
}
::-webkit-scrollbar-thumb {
    background: rgba(184, 134, 11, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 134, 11, 0.5);
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid rgba(184, 134, 11, 0.6);
    outline-offset: 2px;
}

/* ---------- Image Loading ---------- */
img {
    image-rendering: auto;
}
