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

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

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

/* Selection color */
::selection {
    background-color: #c5dfcc;
    color: #16321e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #458554;
}

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

/* Print styles */
@media print {
    header,
    footer,
    #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .bg-forest-800 {
        background-color: ButtonText;
    }
    
    .text-forest-800 {
        color: ButtonText;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

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

/* Subtle hover effects for links */
a {
    transition: color 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Form input focus ring */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px #c5dfcc;
}
