/* Custom styles for Far View Terrace Café */

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

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

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

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(168, 230, 207, 0.3);
    color: #fff;
}

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hero floating cards animation */
@media (prefers-reduced-motion: no-preference) {
    .relative.z-20 {
        animation: float1 6s ease-in-out infinite;
    }
    
    .relative.z-10 {
        animation: float2 7s ease-in-out infinite;
    }
    
    .relative.z-30 {
        animation: float3 5s ease-in-out infinite;
    }
    
    @keyframes float1 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    @keyframes float2 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
    
    @keyframes float3 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-12px); }
    }
}

/* Button hover effects */
a[href^="tel:"],
a[href^="#"] {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
}

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

/* Mobile menu link styles */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #A8E6CF;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(168, 230, 207, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Ensure text contrast on all backgrounds */
.text-midnight-200 {
    color: #d9e2ec;
}

.text-midnight-300 {
    color: #9fb3cc;
}

.text-midnight-400 {
    color: #829abb;
}

/* Menu item hover card effect */
.group:hover .group-hover\\:text-accent {
    color: #A8E6CF;
}

/* Gallery hover overlay */
.rounded-3xl.overflow-hidden {
    position: relative;
}

.rounded-3xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.rounded-3xl.overflow-hidden:hover::after {
    opacity: 1;
}
