/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

nav.scrolled .nav-logo {
    color: #1a3a2a;
}

nav:not(.scrolled) .nav-logo {
    color: #f8f6f0;
}

nav:not(.scrolled) .nav-link {
    color: rgba(248, 246, 240, 0.8);
}

nav:not(.scrolled) .nav-link:hover {
    color: #f8f6f0;
}

nav.scrolled .nav-link {
    color: #1a3a2a;
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

.hamburger-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

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

.card-1 { animation: float-1 4s ease-in-out infinite; }
.card-2 { animation: float-2 3.5s ease-in-out infinite; }
.card-3 { animation: float-3 4.5s ease-in-out infinite; }
.card-4 { animation: float-4 3s ease-in-out infinite; }

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3a6330;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #3a6330;
    color: #f8f6f0;
}
