/* ========================================
   HWY 105 FIREWORKS — Custom Styles
   Forest Green + Cream + Gold Palette
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img, svg {
    display: block;
    max-width: 100%;
}

/* ---------- Navbar ---------- */
.nav-header {
    background: rgba(253, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(53, 110, 53, 0.1);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(253, 253, 248, 0.97);
    box-shadow: 0 4px 20px rgba(17, 34, 17, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* ---------- Geometric Blobs ---------- */
.geo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.geo-blob--1 {
    width: 400px;
    height: 400px;
    background: rgba(173, 207, 173, 0.4);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.geo-blob--2 {
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.12);
    bottom: 20%;
    left: -80px;
    animation-delay: -5s;
}

.geo-blob--3 {
    width: 200px;
    height: 200px;
    background: rgba(53, 110, 53, 0.2);
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

.geo-blob--4 {
    width: 250px;
    height: 250px;
    background: rgba(249, 115, 22, 0.08);
    bottom: 5%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ---------- Hero Geometric Shapes ---------- */
.hero-shape {
    position: absolute;
    opacity: 0.15;
    animation: shapeFloat 12s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #fbbf24;
}

.shape-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #adcfad;
    border-radius: 50%;
}

.shape-square {
    width: 60px;
    height: 60px;
    background: #fbbf24;
    border-radius: 8px;
    transform: rotate(45deg);
}

.shape-diamond {
    width: 50px;
    height: 50px;
    background: #529252;
    transform: rotate(45deg);
    border-radius: 4px;
}

.shape-ring {
    width: 70px;
    height: 70px;
    border: 4px solid #fbbf24;
    border-radius: 50%;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.25; }
}

/* ---------- Product Cards ---------- */
.product-card {
    will-change: transform;
}

.product-card:hover .product-card-img {
    transform: scale(1.1);
}

/* ---------- Season Cards ---------- */
.season-card {
    will-change: transform;
}

.season-card:hover {
    transform: translateY(-6px);
}

/* ---------- Fireworks Canvas ---------- */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#fireworks-canvas.active {
    opacity: 1;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 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;
    }

    .geo-blob,
    .hero-shape {
        animation: none;
        opacity: 0.3;
    }

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

/* ---------- Utility ---------- */
.pt-18 {
    padding-top: 4.5rem;
}

/* ---------- Focus visible ---------- */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f5f0;
}

::-webkit-scrollbar-thumb {
    background: #adcfad;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7ab37a;
}
