/* ==========================================================================
   Nugian Portfolio - Stylesheet
   ========================================================================== */

/* 1. Base Setup & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Scroll margin for section anchors */
section[id], footer[id] {
    scroll-margin-top: 5.5rem;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #a1a1aa;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #71717a;
}

.dark ::-webkit-scrollbar-thumb {
    background: #3f3f46;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

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