:root {
    color-scheme: dark;
    font-family: 'Inter', 'Noto Serif SC', serif;
    background: #101821;
    color: #fff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    --nav-text: #1f2328;
    --nav-wash: rgb(255 255 255 / 48%);
    --title-rgb: 24 31 40;
    --shade-top: rgb(255 255 255 / 12%);
    --shade-bottom: rgb(255 255 255 / 6%);
    color-scheme: light;
}
body[data-theme="dark"] {
    --nav-text: #e6edf3;
    --nav-wash: rgb(8 15 24 / 38%);
    --title-rgb: 255 255 255;
    --shade-top: rgb(8 15 24 / 20%);
    --shade-bottom: rgb(8 15 24 / 35%);
    color-scheme: dark;
}
.landing-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    height: 100px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(var(--nav-wash), transparent);
    color: var(--nav-text);
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-brand {
    color: inherit;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 5px;
}
.view-projects-btn {
    position: relative;
    display: inline-block;
    padding: 6px 10px;
    margin: 0 10px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    font-family: 'Fira Code', 'Courier New', monospace;
    letter-spacing: 2px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.view-projects-btn::before, .view-projects-btn::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid transparent;
    transition: all .3s ease-out;
}
.view-projects-btn::before { top: 0; left: -5px; border-top-color: currentColor; border-left-color: currentColor; }
.view-projects-btn::after { bottom: 0; right: -5px; border-bottom-color: currentColor; border-right-color: currentColor; }
.view-projects-btn:hover {
    letter-spacing: 4px;
    text-shadow: 0 0 8px color-mix(in srgb, var(--nav-text) 12%, transparent);
}
.view-projects-btn:hover::before, .view-projects-btn:hover::after {
    width: calc(100% + 10px);
    height: 100%;
    border-color: currentColor;
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--nav-text) 12%, transparent);
}
.theme-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 58px;
    height: 30px;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--nav-text) 10%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--nav-text) 5%, transparent);
    cursor: pointer;
}
.theme-switch-thumb {
    position: absolute;
    left: 4px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0969da;
    color: #ffd600;
    font-size: 17px;
    line-height: 1;
    transform: translateX(28px);
    transition: transform .4s cubic-bezier(.68, -.55, .265, 1.55);
}
.theme-switch-thumb svg { width: 14px; height: 14px; fill: white; }
.icon-moon { display: none; }
[data-theme="dark"] .theme-switch-thumb { transform: translateX(0); color: white; background: #58a6ff; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.landing-nav a:focus-visible, .theme-switch:focus-visible { outline: 2px solid #58a6ff; outline-offset: 5px; }
.landing {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}
.landing-background {
    position: absolute;
    inset: -36px;
    z-index: -2;
    background: url('../images/Atri.jpg') center / cover no-repeat;
    transform: translate3d(var(--background-x, 0px), var(--background-y, 0px), 0);
    will-change: transform;
}
.landing-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(16px);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 28%, rgb(0 0 0 / 35%) 52%, #000 78%);
    mask-image: radial-gradient(ellipse at center, transparent 28%, rgb(0 0 0 / 35%) 52%, #000 78%);
}
.landing-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--shade-top), var(--shade-bottom)),
        radial-gradient(ellipse at center, transparent 20%, rgb(8 15 24 / 25%));
    transition: background .3s;
}
.landing-title {
    width: 100%;
    padding: 32px 20px;
    text-align: center;
    text-shadow: 0 3px 30px rgb(0 0 0 / 30%);
}
.landing-title h1 {
    margin: 0;
    font-size: clamp(2.6rem, 8.5vw, 7.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: clamp(6px, 1.4vw, 20px);
    color: rgb(var(--title-rgb) / 15%);
    background: linear-gradient(to right, rgb(var(--title-rgb) / 10%) 0%, rgb(var(--title-rgb) / 10%) 40%, rgb(var(--title-rgb) / 80%) 50%, rgb(var(--title-rgb) / 10%) 60%, rgb(var(--title-rgb) / 10%) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    from { background-position: -200% center; }
    to { background-position: 200% center; }
}
.landing-title p {
    margin: 24px 0 0;
    font-size: clamp(.65rem, 1.55vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 8px;
    line-height: 1.8;
    color: rgb(var(--title-rgb) / 85%);
}
@media (max-width: 480px) {
    .landing-nav { height: 72px; padding-inline: 18px; }
    .nav-left { gap: 14px; }
    .nav-brand { font-size: .95rem; letter-spacing: 3px; }
    .view-projects-btn { margin-inline: 0; padding: 8px; font-size: .68rem; letter-spacing: 1px; }
    .view-projects-btn:hover { letter-spacing: 2px; }
    .theme-switch { flex-shrink: 0; }
    .landing-title p { letter-spacing: 2px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    .landing-background { transform: none; will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-title h1 { animation: none; background: none; color: rgb(var(--title-rgb)); }
    .theme-switch-thumb { transition: none; }
    .view-projects-btn, .view-projects-btn::before, .view-projects-btn::after { transition: none; }
}
