/* Custom overrides and enhancements */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F6F7F9;
}
::-webkit-scrollbar-thumb {
    background: #C8CCD4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A4ABB8;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #FF5A3A;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #FFE8E2;
    color: #2D323C;
}

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

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

/* Mobile responsive tweaks */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    .float-card, .float-card-delay, .float-card-delay2 {
        display: none;
    }
}
