/* Custom styles for Rollin Moose Ice Cream */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4f6db3, #2a4075);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #365294, #1a2648);
}

/* Selection color */
::selection {
    background-color: #ffc020;
    color: #1a2648;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 253, 227, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(26, 38, 72, 0.1);
}

.nav-scrolled .nav-link {
    color: #1a2648;
}

.nav-scrolled .nav-link:hover {
    color: #4f6db3;
}

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

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(-8px) rotate(-1deg); }
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse animation for CTA buttons */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 192, 32, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 192, 32, 0); }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #4f6db3, #ffc020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(26, 38, 72, 0.15);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

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

/* Print styles */
@media print {
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow,
    .animate-bounce-subtle {
        animation: none !important;
    }
    
    nav,
    .fixed {
        display: none;
    }
}
