/* Custom styles for TNT Fireworks - Lehighton */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020510;
}
::-webkit-scrollbar-thumb {
    background: #2EC4A6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4FD4B8;
}

/* Selection color */
::selection {
    background: rgba(46, 196, 166, 0.3);
    color: #fff;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(2, 5, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero section - ensure text is always visible */
#hero h1,
#hero p,
#hero a,
#hero .font-serif,
#hero .text-white,
#hero .text-mint-400,
#hero .text-white\/60,
#hero .text-white\/50,
#hero .text-white\/30,
#hero .text-white\/80 {
    opacity: 1 !important;
    transform: none !important;
}

/* Section reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Product card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulse glow for CTA */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(46, 196, 166, 0.2); }
    50% { box-shadow: 0 0 40px rgba(46, 196, 166, 0.4); }
}

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

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

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #4FD4B8;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Map dark mode override */
iframe[title*="location"] {
    border-radius: 0 0 1rem 1rem;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

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

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .reveal {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
