/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f4f0;
}
::-webkit-scrollbar-thumb {
    background: #9bbe78;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #315020;
}

/* Floating Cards Animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.floating-card {
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.animate-float-slow {
    animation-name: float-slow;
}

.animate-float-medium {
    animation-name: float-medium;
}

.animate-float-fast {
    animation-name: float-fast;
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9bbe78;
    transition: width 0.3s ease;
}

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

.nav-text {
    color: #1f3315;
    transition: color 0.3s ease;
}

.nav-text-secondary {
    transition: color 0.3s ease;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    border-bottom: 1px solid #e3ecd9;
    padding-bottom: 12px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Reduced Motion */
@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;
    }
    .floating-card {
        animation: none;
    }
}

/* Focus Styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #9bbe78;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print */
@media print {
    nav, #mobile-menu, .floating-card, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
