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

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

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

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

#navbar.scrolled .nav-logo {
    color: #0f3a1f;
}

#navbar.scrolled .nav-logo span {
    color: #166534;
}

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

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

.floating-card:nth-child(2) {
    animation-delay: -1.3s;
}

.floating-card:nth-child(3) {
    animation-delay: -2.6s;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Selection */
::selection {
    background: #166534;
    color: #fefdf8;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7fb87f;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}
