/* Base styles and custom animations */

/* Custom animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Scroll reveal base state - content is visible by default */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply hidden state when JS adds the class */
.reveal-on-scroll.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

/* Selection color */
::selection {
    background-color: rgb(198 223 202);
    color: rgb(31 52 37);
}

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

::-webkit-scrollbar-track {
    background: rgb(250 249 246);
}

::-webkit-scrollbar-thumb {
    background: rgb(156 197 163);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(111 160 120);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239cc5a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid rgb(77 127 90);
    outline-offset: 2px;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}
