/* Custom styles for Good Life Ice Cream & Treats */

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

/* Custom blob animation */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 50px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-blob {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(255, 253, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7e7;
    color: #761a1a;
}

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

/* Image aspect ratio fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all interactive elements are clickable */
a, button {
    touch-action: manipulation;
}

/* Print styles */
@media print {
    nav, .animate-blob, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
