/* Custom styles for Angelo Nutrition */

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

/* Navbar transitions */
.nav-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-serif {
    color: #1F1F1F !important;
}

.nav-scrolled .mobile-link {
    color: #2D2D2D !important;
}

.nav-scrolled #menuIcon span {
    background: #2D2D2D !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu icon animation */
.menu-active #menuIcon span:first-child {
    transform: rotate(45deg) translateY(4px);
}

.menu-active #menuIcon span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-active #menuIcon span:last-child {
    transform: rotate(-45deg) translateY(-4px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* For browsers that don't support JS, content is still visible */
/* The .reveal class is added via JS only, so non-JS users see everything */

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

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #FFD4CC;
    color: #1F1F1F;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #F97066;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #FFF3E4 0%, #FFEAE6 100%);
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
