/* Custom styles for Kaya's Vegan Express */

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-images {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-floating-card {
    animation: floatCard 3s ease-in-out infinite;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

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

/* Default state for reveal elements (visible without JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 61, 92, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #0F3D5C;
}

#navbar.scrolled .nav-link {
    color: #0F3D5C;
}

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

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0FB888;
}

/* Selection */
::selection {
    background: #2DD4A8;
    color: #0F3D5C;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

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