/* ===== BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1e6b1e;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-link {
    position: relative;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-menu-link {
    animation: fadeUp 0.3s ease forwards;
}

#mobileMenu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }

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

/* ===== MARQUEE ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* ===== HERO FLOATING CARDS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

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

.floating-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-medium {
    animation: float-medium 4s ease-in-out infinite;
}

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

.floating-card-1 {
    animation: float-slow 5s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-medium 4.5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-slow 5.5s ease-in-out infinite reverse;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion support */
@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;
    }
    
    .animate-marquee {
        animation: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-card-1 {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
    }
    
    .floating-card-2 {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
    }
    
    .floating-card-3 {
        position: relative;
        top: auto;
        right: auto;
    }
}
