/* Custom styles for Golden Rose Ice Cream Bar */

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

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.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-reveal="delayed"] {
    transition-delay: 0.15s;
}

.reveal[data-reveal="delayed-2"] {
    transition-delay: 0.3s;
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu:not(.open) .mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobileMenu:not(.open) .mobile-link:nth-child(1) { transition-delay: 0s; }
#mobileMenu:not(.open) .mobile-link:nth-child(2) { transition-delay: 0.05s; }
#mobileMenu:not(.open) .mobile-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu:not(.open) .mobile-link:nth-child(4) { transition-delay: 0.15s; }

/* Hamburger menu animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: translateY(-4px) rotate(-45deg);
    margin-left: 16px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 212, 173, 0.08);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: rgba(79, 212, 173, 0.25);
    color: #e1fbf3;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(79, 212, 173, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 212, 173, 0.35);
}
