/* Custom styles for Al Karawan Lounge */

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

/* Navbar transition */
.navbar-scrolled #navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .nav-logo-text {
    color: #fff;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Scroll animation for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal.scroll-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.scroll-visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Gallery scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

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

.mobile-nav-link {
    opacity: 1;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

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