/* Custom styles and animations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.1);
}

/* Subtle fade-in for sections below fold */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animation - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is always visible as fallback */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022C22;
}

/* Selection color */
::selection {
    background-color: #A7F3D0;
    color: #022C22;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #064E3B;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background-color: #F5F4ED;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input focus transitions */
input:focus, textarea:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover lift effect */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient text effect (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #064E3B, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
