/* Custom styles for M & M Liquor Store */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a1628;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    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 text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > .max-w-7xl {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Product card hover */
.group:hover img {
    transform: scale(1.1);
}

/* Custom selection color */
::selection {
    background-color: rgba(52, 212, 168, 0.3);
    color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d4a8;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Map dark theme override */
iframe[title*="map"] {
    border-radius: 16px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #34d4a8;
    outline-offset: 2px;
}
