/* Custom Styles for National Ave Nutrition */

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

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

::-webkit-scrollbar-track {
    background: #1C1C1C;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #FF7F5F;
}

/* Selection Color */
::selection {
    background-color: #FF7F5F;
    color: white;
}

/* Hero Image Grid Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtle pulse for decorative elements */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.35;
    }
}

/* Apply float animation to hero images */
.order-1 lg\:order-2 .rounded-3xl:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.order-1 lg\:order-2 .rounded-3xl:nth-child(2) {
    animation: float 6s ease-in-out infinite 1s;
}

.order-1 lg\:order-2 .rounded-3xl:nth-child(3) {
    animation: float 6s ease-in-out infinite 2s;
}

.order-1 lg\:order-2 .rounded-3xl:nth-child(4) {
    animation: float 6s ease-in-out infinite 3s;
}

/* Decorative blur animation */
.absolute.blur-2xl {
    animation: soft-pulse 4s ease-in-out infinite;
}

/* Mobile menu transitions */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu open state */
#mobile-menu.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6347;
    outline-offset: 2px;
}

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

/* Loading state for form button */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

/* Smooth card hover effects */
.group:hover .group-hover\:scale-110 {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text gradient for special headings */
.text-gradient {
    background: linear-gradient(135deg, #FF7F5F 0%, #FF9F80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
