/* Custom styles beyond Tailwind */

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Nav link color transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ee734f;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Menu tab styles */
.menu-tab {
    cursor: pointer;
}

.active-tab {
    background: #d44018;
    color: #fff;
}

.menu-tab:not(.active-tab) {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.menu-tab:not(.active-tab):hover {
    color: #fff;
}

/* Mobile link styles */
.mobile-link {
    position: relative;
    display: block;
    padding: 8px 0;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d44018;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #1c1917;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e8552a;
}

/* Light theme scrollbar */
body:not(.dark) ::-webkit-scrollbar-track {
    background: #fefdfb;
}

/* Print styles */
@media print {
    nav, .hero-bg, #experience {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
