/* ===== Custom Styles for Freerider Café ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* ===== Animations ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Mobile Menu ===== */

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Menu Item Hover ===== */

#menu ul li {
    transition: transform 0.2s ease;
}

#menu ul li:hover {
    transform: translateX(4px);
}

/* ===== Custom Scrollbar ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060b18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ===== Focus Styles ===== */

input:focus, textarea:focus, button:focus {
    outline: none;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #story h2,
    #menu h2,
    #experience h2,
    #visit h2,
    #contact h2 {
        font-size: 2.25rem;
    }
    
    .grid lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Hide the asymmetric image composition on mobile */
    .hidden lg\:block {
        display: none !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #menu .grid {
        grid-template-columns: 1fr;
    }
    
    #contact .grid {
        grid-template-columns: 1fr;
    }
}
