/* Custom styles and animations */

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

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

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

/* Hero fade-in animations */
.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-fade:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-fade:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-fade:nth-child(4) {
    animation-delay: 0.6s;
}

.hero-image-container {
    opacity: 0;
    transform: translateX(30px);
    animation: heroImageIn 1s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section fade-in for scroll animations */
.section-fade {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

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

/* Reduced motion preference */
@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;
    }
}

/* Navbar active state */
.nav-active {
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-active #nav-bg {
    opacity: 1;
}
