/* === Custom Styles for Active Nutrition === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
    background: #9d2342;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #811e38;
}

/* === Navbar === */
.navbar-scrolled {
    background: rgba(253, 248, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(157, 35, 66, 0.08);
}

.navbar-scrolled .nav-link {
    color: #6c1c32 !important;
}

.navbar-scrolled .font-display {
    color: #6c1c32 !important;
}

/* === Hero Animations === */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Scroll Reveal === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* === Mobile Menu === */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(157, 35, 66, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* === Button Hover Effects === */
a {
    transition: all 0.3s ease;
}

/* === Card Hover Glow === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Image Aspect Ratio Fixes === */
img {
    max-width: 100%;
    height: auto;
}

/* === Selection Color === */
::selection {
    background: #f9cdd8;
    color: #3a0a16;
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9d2342;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Tablet adjustments === */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* === 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;
    }
    
    .fade-in {
        opacity: 1;
        animation: none;
    }
}
