/* ========================================
   BLENDZ NUTRITION — Custom Styles
   Premium Dark Luxury Theme
   Teal + Slate Grey + Gold Accents
======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f1f5f9;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
    background: #1e2d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d4a5e;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a853, #14b8a6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #d4a853;
}

/* --- CTA Buttons --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #d4a853 0%, #c49a3c 100%);
    color: #0a0f1a;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
    letter-spacing: 0.02em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.35);
    color: #0a0f1a;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(100, 116, 139, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.cta-button-secondary:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    transform: translateY(-2px);
}

/* --- Hero Orbs --- */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.6) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -5%;
    left: -5%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.5) 0%, transparent 70%);
    animation-delay: -3s;
}

.orb-3 {
    top: 40%;
    left: 20%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.6) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Menu Cards --- */
.menu-card {
    perspective: 1000px;
}

.menu-card > div {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 83, 0.1);
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Default visible state for progressive enhancement */
.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Animated states — applied by JS */
.reveal-up.animated {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left.animated {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right.animated {
    opacity: 0;
    transform: translateX(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up.animated,
    .reveal-left.animated,
    .reveal-right.animated {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-orb {
        animation: none;
    }
}

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

#mobile-menu.open .mobile-nav-link {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu Button --- */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Form Styles --- */
select option {
    background: #1e293b;
    color: #f1f5f9;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* --- Gold Divider --- */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cta-button,
    .cta-button-secondary {
        padding: 12px 24px;
        font-size: 0.8125rem;
        width: 100%;
        justify-content: center;
    }
}
