/* Custom styles for Chill and Shakes Ice Cream Bar */

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

/* Base styles */
body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(145, 224, 204, 0.3);
    color: #91e0cc;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background-color: rgba(10, 25, 41, 0.95);
    border-bottom: 1px solid rgba(145, 224, 204, 0.1);
}

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

#mobileMenu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobileMenu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Mobile menu icon animation */
#menuBtn.active #menuIcon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}

#menuBtn.active #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 100%;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .group-hover\:scale-105:hover,
    img:hover {
        transform: none;
    }
}

/* Image hover effects */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #56c9b0;
}

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

/* Map dark mode override */
iframe[title*="location"] {
    border-radius: 0.75rem;
}

/* Thin line decorations */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(51, 78, 104, 0.5), transparent);
}

/* Flavor card hover lift */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle pulse for decorative elements */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Contact link hover */
a[href^="tel:"]:hover {
    text-decoration: none;
}
