/* Custom styles for Fourth On Third Bakery and Community Center */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334e68;
}

/* Selection color */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #f0fdf4;
}

/* Base animations - progressive enhancement only below the fold */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(36, 59, 83, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating card animations on hero */
@media (prefers-reduced-motion: no-preference) {
    .hero-card-1 { animation: float-1 6s ease-in-out infinite; }
    .hero-card-2 { animation: float-2 5s ease-in-out infinite; }
    .hero-card-3 { animation: float-3 7s ease-in-out infinite; }
    .hero-card-4 { animation: float-4 4s ease-in-out infinite; }
}

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

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-6px) translateX(4px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

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

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4/3;
}

/* Subtle gradient text fallback */
.text-gradient-mint {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
