/* ===== Custom Styles for Granite Falls Kiwanis Popcorn Stand ===== */

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

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

body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin-bottom: 0.5rem;
}

/* Section Headings */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.15;
}

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

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

h1 {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-badge, h1 {
    animation-fill-mode: both;
}

.hero-image {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-float {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1.2s;
    opacity: 0;
    animation-fill-mode: both;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* About Section */
.about-image {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.about-float {
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: both;
}

/* Flavor Cards */
.flavor-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.flavor-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Community Section */
.community-image {
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.community-float {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0;
    animation-fill-mode: both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

.mobile-link {
    font-size: 1.1rem;
    position: relative;
}

/* Parallax subtle on hero image */
.hero-image img {
    transition: transform 0.3s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Large screen tweaks */
@media (min-width: 1024px) {
    .section-heading {
        font-size: 3.5rem;
    }
}
