/* Custom styles — progressive enhancement only; page is fully readable without JS */

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

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

.nav-scrolled .nav-title {
    color: #1e293b !important;
}

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

.nav-scrolled .nav-accent {
    fill: #0d9488 !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Subtle gradient backgrounds */
.gradient-subtle {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #f0fdfa 100%);
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 20px 60px -15px rgba(13, 148, 136, 0.15);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
