/* Custom styles for Ashby's Sterling Ice Cream and Candy Shoppe */

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

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

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

/* Reveal animations for scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled .logo-text {
    color: #102a43 !important;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #3ec480;
    border-radius: 5px;
}

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

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

/* Reduced motion preference */
@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-float {
        animation: none;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .reveal {
        transition-delay: 100ms;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .reveal {
        transition-delay: 200ms;
    }
}
