/* Custom styles for Bemidji Starbucks */

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

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

::-webkit-scrollbar-track {
    background: #020c1b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1a2f54;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) rotate(-2deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: -4s;
}

/* Reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Menu card hover effects */
.menu-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(125, 206, 160, 0.05);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Navbar styles */
.nav-link {
    position: relative;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.3s ease;
}

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

/* Mobile link hover */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* Glass morphism utility */
.glass {
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .reveal {
        animation: none;
        transition: none;
    }
    
    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Selection color */
::selection {
    background: rgba(125, 206, 160, 0.3);
    color: #ffffff;
}
