/* ========================================
   RITA'S FIREWORKS BARN — Custom Styles
   ======================================== */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0f1e;
    color: #ffffff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: #1a2d56;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* ========================================
   GEOMETRIC SHAPES (Hero & CTA Decorations)
   ======================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #4ade80;
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-radius: 50%;
    bottom: 15%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 300px;
    height: 300px;
    border: 3px solid #4ade80;
    border-radius: 50%;
    top: 20%;
    left: -80px;
    animation: float 10s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #ec4899;
    top: 25%;
    left: 10%;
    animation: rotate 12s linear infinite;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #fbbf24;
    bottom: 20%;
    right: 5%;
    animation: rotate 8s linear infinite reverse;
}

.shape-square {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    top: 60%;
    right: 15%;
    animation: rotate 15s linear infinite;
    border-radius: 12px;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    top: 40%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    transform: rotate(45deg);
    border-radius: 8px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 15, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all duration-300;
}

#navbar.scrolled {
    background: rgba(10, 15, 30, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.1);
}

/* ========================================
   OCCASION CARDS
   ======================================== */
.occasion-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.occasion-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   PARTICLES
   ======================================== */
#particles {
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-40px) scale(1);
    }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* ========================================
   UTILITY ANIMATIONS
   ======================================== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ========================================
   FOCUS STYLES
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #ffffff;
}
