/* Custom styles for The Nutrition Den */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0B;
}
::-webkit-scrollbar-thumb {
    background: #4A235A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C2C6A;
}

/* Selection */
::selection {
    background: rgba(232, 168, 56, 0.3);
    color: #F9F0FD;
}

/* Reduced motion */
@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;
    }
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Hero image hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 10, 11, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #23102C 0%, #1C1C1E 100%);
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}
