/* ===== CUSTOM STYLES ===== */

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

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-slow {
    animation: float-slow 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal base — content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled (via .js class on body) */
.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
}

.js .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .js .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(6, 95, 70, 0.08);
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
}

/* Image aspect ratio fallbacks */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: #065f46;
    color: #fefdf8;
}

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

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

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

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