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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled #navbar {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 56, 17, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #1e3811 !important;
}

.nav-scrolled .nav-subtext-color {
    color: #2d5517 !important;
}

.nav-scrolled .nav-link {
    color: #2d5517 !important;
}

/* Hero floating cards animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

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

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

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

.floating-card-1 { animation: float-1 6s ease-in-out infinite; }
.floating-card-2 { animation: float-2 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float-3 7s ease-in-out infinite 1s; }
.floating-card-4 { animation: float-4 4.5s ease-in-out infinite 0.3s; }

/* Scroll reveal animations */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .section-reveal {
        transition: none;
    }
    
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 85, 23, 0.1);
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 138, 36, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8dc363;
}

/* Selection */
::selection {
    background: rgba(74, 138, 36, 0.2);
    color: #1e3811;
}
