/* ============================================
   Jeff's Shave Ice Blasters — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #064e3b;
    background-color: #fefdf8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(145deg, #022c22 0%, #064e3b 30%, #047857 60%, #059669 100%);
    position: relative;
}

.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, rgba(52, 211, 153, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(167, 243, 208, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-1 { animation-delay: 0s; }
.hero-float-2 { animation-delay: -2s; }
.hero-float-3 { animation-delay: -4s; }
.hero-float-4 { animation-delay: -1s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-title {
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

.hero-scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* --- Navbar --- */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

.nav.scrolled .nav-logo-text,
.nav.scrolled .nav-link {
    color: #064e3b;
}

.nav.scrolled .hamburger-line {
    background: #064e3b;
}

/* --- Section Layout --- */
.section-label {
    letter-spacing: 0.2em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-subtitle {
    line-height: 1.7;
}

/* --- Flavor Cards --- */
.flavor-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

/* --- About --- */
.about-img-accent {
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
}

/* --- Experience --- */
.experience-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.experience-card {
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

/* --- Visit --- */
.visit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.08);
}

/* --- CTA --- */
.cta-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* --- Footer --- */
.footer {
    background: #022c22;
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
    opacity: 0;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-img-accent {
        display: none;
    }
    
    .about-badge {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 7.5rem;
    }
}
