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

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6fa373;
}

/* Selection */
::selection {
    background: #9bc6a0;
    color: #1f3523;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Reveal on Scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal-animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scrolled State */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(46, 81, 51, 0.1);
}

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

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #e3efe6 0%, #c6dfc9 100%);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img[lazy="true"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    button[type="submit"] {
        display: none;
    }
    
    body {
        color: #1f3523;
        background: white;
    }
}
