/* Custom styles and overrides */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5ec7ab;
}

/* Selection color */
::selection {
    background: #c3efe1;
    color: #0a1621;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll.delay-100 { transition-delay: 100ms; }
.animate-on-scroll.delay-200 { transition-delay: 200ms; }
.animate-on-scroll.delay-300 { transition-delay: 300ms; }
.animate-on-scroll.delay-400 { transition-delay: 400ms; }
.animate-on-scroll.delay-500 { transition-delay: 500ms; }

/* Hero image parallax-like effect */
.hero-image {
    transition: transform 0.3s ease;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #5ec7ab;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(94, 199, 171, 0.2);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scroll state */
.nav-scrolled #nav-bg {
    opacity: 1;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

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

/* Gradient text support */
.text-gradient {
    background: linear-gradient(135deg, #1a8a6a, #5ec7ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
