/* Custom styles for Aurora Coffee Shop */

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

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

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

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

#navbar.scrolled {
    background-color: rgba(250, 245, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(45, 15, 51, 0.7) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #7b2d8e !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #7b2d8e, #d4852a);
    transition: width 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7b2d8e, #d4852a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b2d8e;
}

/* Selection color */
::selection {
    background-color: #d4852a;
    color: #2d0f33;
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply float to specific cards */
.z-30 {
    animation: float 4s ease-in-out infinite;
}

.z-25 {
    animation: float 5s ease-in-out infinite 0.5s;
}

.z-20 {
    animation: float 4.5s ease-in-out infinite 1s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-marquee {
        animation: none;
    }
}

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

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

/* Print styles */
@media print {
    #navbar, .animate-marquee, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
