/* Custom styles for Frozen House Ice Cream */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1f;
}
::-webkit-scrollbar-thumb {
    background: #52525e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7a42;
}

/* Selection color */
::selection {
    background: #ff5a1a;
    color: #fff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 15, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Flavor card hover effects */
.flavor-card {
    transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .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 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;
    }
}

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent content flash on load */
body {
    background: #1a1a1f;
}

/* Form styles (for future contact forms) */
input, textarea {
    background: #242429;
    border: 1px solid #3d3d47;
    color: #ececee;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #ff7a42;
}
input::placeholder, textarea::placeholder {
    color: #737380;
}
