/* Custom styles to complement Tailwind */

html {
    scroll-behavior: smooth;
}

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

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 26, 43, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1e2f4a;
}

#navbar.scrolled .nav-link:hover {
    color: #2fa877;
}

/* Form styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(47, 168, 119, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f7fb;
}
::-webkit-scrollbar-thumb {
    background: #9bb3d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #708fc4;
}

/* Selection color */
::selection {
    background: rgba(47, 168, 119, 0.2);
    color: #111a2b;
}
