/* Custom styles — overrides and enhancements beyond Tailwind */

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #0f2140 !important;
}

.nav-scrolled .nav-sub-text-color {
    color: #1f4786 !important;
}

.nav-scrolled .nav-link {
    color: #1f4786 !important;
}

.nav-scrolled .nav-link:hover {
    color: #0d9488 !important;
}

.nav-scrolled .nav-border-color {
    border-color: #e2e8f0 !important;
    color: #0f2140 !important;
}

.nav-scrolled .nav-border-color svg {
    stroke: #0f2140 !important;
}

/* Hero scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Fade-in animation for scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Form focus ring animation */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1f4786;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f2140;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: #fff;
}

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

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}
