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

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

::selection {
    background-color: rgba(27, 67, 50, 0.2);
    color: #1B4332;
}

/* Navbar */
.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #faf8f4;
}

#navbar:not(.scrolled) a:not(.bg-forest-600):not(.bg-forest-600 *) {
    color: rgba(250, 248, 244, 0.85);
}

#navbar:not(.scrolled) a:not(.bg-forest-600):not(.bg-forest-600 *):hover {
    color: #faf8f4;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Hamburger */
#bar1.open { transform: rotate(45deg) translate(4px, 4px); }
#bar2.open { opacity: 0; }
#bar3.open { transform: rotate(-45deg) translate(4px, -4px); width: 24px; margin-left: 0; }

/* Floating Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Menu card hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Smooth image loading */
img {
    transition: opacity 0.5s ease;
}

img[data-loaded="false"] {
    opacity: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #84bc8a;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}
