/* Custom styles for Patriot Fireworks */

:root {
    --midnight-900: #0D1B2A;
    --midnight-950: #040B14;
    --mint: #00D4AA;
    --mint-light: #33DDBB;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-900);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Product card hover effects */
.product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(0, 212, 170, 0.15);
}

/* Gallery hover effects */
.gallery-item {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background-color: rgba(4, 11, 20, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--midnight-950);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 170, 0.5);
}

/* Selection color */
::selection {
    background-color: rgba(0, 212, 170, 0.3);
    color: #ffffff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-card,
    .gallery-item {
        transition: none;
    }

    .product-card:hover,
    .gallery-item:hover {
        transform: none;
    }

    .animate-pulse,
    .animate-bounce {
        animation: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .product-card {
        transform: translateY(0);
    }
}

/* Ensure all text meets contrast requirements */
.text-white { color: #ffffff; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }

/* Mint accent */
.text-\[\#00D4AA\] { color: #00D4AA; }
.bg-\[\#00D4AA\] { background-color: #00D4AA; }
.bg-\[\#00D4AA\]\/10 { background-color: rgba(0, 212, 170, 0.1); }
.bg-\[\#00D4AA\]\/15 { background-color: rgba(0, 212, 170, 0.15); }
.bg-\[\#00D4AA\]\/20 { background-color: rgba(0, 212, 170, 0.2); }
.border-\[\#00D4AA\]\/20 { border-color: rgba(0, 212, 170, 0.2); }
.border-\[\#00D4AA\]\/30 { border-color: rgba(0, 212, 170, 0.3); }
.shadow-\[00D4AA\]\/20 { box-shadow: 0 10px 40px -10px rgba(0, 212, 170, 0.2); }
