/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f4f7fa;
}
::-webkit-scrollbar-thumb {
    background: #96afc4;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #537897;
}

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

/* Base Typography Adjustments */
body {
    font-feature-settings: "cv11", "ss01";
}

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

/* Fade In Animation Classes (Progressive Enhancement) */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Fallback for no JS - ensure content is visible */
@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        transition: none;
    }
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(56, 170, 132, 0.2);
}

/* Navbar Scroll State */
.nav-scrolled #nav-bg {
    opacity: 1;
}
