/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(15, 22, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #fff;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

#navbar.scrolled .nav-link:hover {
    color: #fff;
}

/* ===== Mobile Menu ===== */
.mobile-menu-line {
    display: block;
}

#mobile-menu.open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ===== Selection ===== */
::selection {
    background: rgba(185, 46, 21, 0.2);
    color: #b92e15;
}

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

::-webkit-scrollbar-track {
    background: #0f1623;
}

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

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b92e15;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
