/* Custom styles for Pi's 1 Lounge */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
}

/* Custom selection color */
::selection {
    background-color: #34a85b;
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #34a85b;
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

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

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

/* Hero gradient overlay for text readability */
.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 26, 46, 0.95) 0%, rgba(16, 42, 67, 0.85) 100%);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}
