/* Base & Utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content is visible by default (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion: disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .floating-card {
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    img, .group-hover\:hover\:scale-105 {
        transition: none !important;
    }
}

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

.card-float-1 {
    animation-delay: 0s;
}

.card-float-2 {
    animation-delay: -2s;
}

.card-float-3 {
    animation-delay: -4s;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 248, 244, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 24px rgba(45, 90, 61, 0.06);
}

nav.scrolled .nav-link {
    color: #2d5a3d;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Smooth image loading */
img {
    background-color: #e8efe9;
}

/* Custom selection color */
::selection {
    background-color: #b9d3bc;
    color: #1c3627;
}

/* Subtle gradient text for display headings */
.gradient-text {
    background: linear-gradient(135deg, #2d5a3d 0%, #63996a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #63996a;
    outline-offset: 2px;
}

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

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

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

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