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

html {
    scroll-behavior: smooth;
}

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

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
    top: -100px;
    right: -200px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    opacity: 0.03;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #a855f7;
    top: 60%;
    left: 3%;
    opacity: 0.03;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
    bottom: -50px;
    right: 30%;
    opacity: 0.025;
}

/* ===== Floating Card Animations ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-float-1 {
    animation-delay: 0s;
}

.card-float-2 {
    animation-delay: 1.3s;
}

.card-float-3 {
    animation-delay: 2.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* When JS is enabled, set initial hidden state for below-fold elements */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
.js-enabled .reveal-delay-4 { transition-delay: 0.4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Flavor Card Hover ===== */
.flavor-card {
    will-change: transform;
}

/* ===== Process Card Hover ===== */
.process-card {
    will-change: transform;
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(59, 7, 100, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-not-scrolled {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* ===== Mobile Menu Transition ===== */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* ===== Utility ===== */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #faf5ff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-square-1 {
        width: 100px;
        height: 100px;
    }
    .geo-triangle-1 {
        border-left-width: 80px;
        border-right-width: 80px;
        border-bottom-width: 140px;
    }
}
