/* ============================================
   RENEGADE FIREWORKS — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 50, 0.3);
    color: #f0f3f9;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 15, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(212, 168, 50, 0.1);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: #d9e0ef;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #e4bc42;
}

/* ---------- Floating Cards (Hero) ---------- */
.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}

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

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

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

/* ---------- Product Cards ---------- */
.product-card,
.product-card-2,
.product-card-3,
.product-card-4,
.product-card-5,
.product-card-6 {
    opacity: 1;
}

/* ---------- Safety Cards ---------- */
.safety-card,
.safety-card-2,
.safety-card-3,
.safety-card-4,
.safety-card-5,
.safety-card-6 {
    opacity: 1;
}

/* ---------- 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 ---------- */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1a35;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4168af;
}

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

/* ---------- Mobile menu button animation ---------- */
.menu-line {
    display: block;
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}
