.nav-shell {
    width: 100%;
    border-radius: 1001px;
    padding: 0.6rem 1.25rem;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
    align-items: center;
    gap: 1.25rem;
}
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;

.nav-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex: 1 1 auto;
}
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(94, 234, 212, 0.2), transparent 40%),
        radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.15), transparent 35%),
        var(--bg-night);

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
    position: relative;
    overflow-x: hidden;
}

body.light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #0f172a;
}

body.light .grain {
    opacity: 0.08;
    mix-blend-mode: normal;
}

body.light .glow {
    opacity: 0.12;
    filter: blur(140px);
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.08;
    z-index: 0;
}

.glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    z-index: 0;
}

.glow-one {
    top: 6rem;
    right: 10%;
    background: radial-gradient(circle, #ff7a18, transparent 60%);
}

.glow-two {
    bottom: 6rem;
    left: 5%;
    background: radial-gradient(circle, #5eead4, transparent 60%);
}

.relative {
    position: relative;
    z-index: 1;
}

.nav-shell {
    width: 100%;
    border-radius: 1001px;
    padding: 0.6rem 1.25rem;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: transparent;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
}

.nav-toggle:hover {
    border-color: rgba(94, 234, 212, 0.6);
}

.nav-toggle-line {
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
    transition: background 200ms ease;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f8fafc;
    transition: transform 200ms ease, top 200ms ease;
}

.nav-toggle-line::before {
    top: -6px;
}

.nav-toggle-line::after {
    top: 6px;
}

.nav-shell.is-open .nav-toggle-line {
    background: transparent;
}

.nav-shell.is-open .nav-toggle-line::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-shell.is-open .nav-toggle-line::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-brand {
    font-family: "Clash Display", serif;
    letter-spacing: 0.35em;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #f8fafc;
}

.nav-links a {
    position: relative;
    color: #cbd5f5;
    transition: color 200ms ease;
    padding-bottom: 0.4rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(120deg, #5eead4, #fb923c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(94, 234, 212, 0.35);
    background: rgba(94, 234, 212, 0.12);
    box-shadow: 0 15px 30px rgba(94, 234, 212, 0.25);
}

.hero-title {
    font-family: "Clash Display", serif;
    font-size: clamp(2.5rem, 8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #f8fafc;
}

.text-glow {
    background: linear-gradient(120deg, #5eead4, #facc15, #fb923c);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 15px 30px rgba(251, 146, 60, 0.35);
}

.hero-subhead {
    font-size: 1.15rem;
    color: #cbd5f5;
    max-width: 55ch;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.metric-card {
    position: relative;
    border-radius: 22px;
    padding: 1.4rem 1.7rem;
    border: 1px solid rgba(94, 234, 212, 0.15);
    background: rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(94, 234, 212, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card dt {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metric-card dd {
    margin-top: 0.4rem;
    font-family: "Clash Display", serif;
    font-size: 2.7rem;
    color: #f8fafc;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #5eead4, #22d3ee, #fb923c, #f97316);
    background-size: 220% 220%;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #020617;
    font-weight: 600;
    transition: transform 220ms ease, box-shadow 200ms ease, background-position 300ms ease;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    animation: gradientPulse 14s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: 100% 50%;
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #e2e8f0;
    transition: background 200ms ease;
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.15);
}

.btn-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.btn-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
    border-radius: 999px;
}

body.light nav a,
body.light #themeToggle {
    color: #1e293b;
    border-color: rgba(15, 23, 42, 0.15);
}

body.light .nav-shell {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .nav-brand,
body.light .nav-links a {
    color: #0f172a;
}

body.light .nav-toggle {
    border-color: rgba(15, 23, 42, 0.2);
}

body.light .nav-toggle-line,
body.light .nav-toggle-line::before,
body.light .nav-toggle-line::after {
    background: #0f172a;
}

body.light .hero-pill {
    background: rgba(148, 163, 184, 0.18);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}

body.light .hero-subhead {
    color: #0f172a;
}

body.light .metric-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .metric-card dd {
    color: #0f172a;
}

.card {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
}

.glass {
    backdrop-filter: blur(24px);
}

.card-highlight {
    padding: 1.6rem;
    border-radius: 18px;
    border: 1px solid rgba(94, 234, 212, 0.2);
    background: rgba(8, 47, 73, 0.35);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.light .eyebrow {
    color: #94a3b8;
}

.section-title {
    font-family: "Clash Display", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #f8fafc;
    line-height: 1.1;
}

.timeline {
    position: relative;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

body.light .timeline {
    border-left-color: rgba(100, 116, 139, 0.4);
}

body.light .timeline li::before {
    border-color: #f8fafc;
    background: #0f172a;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.25);
}

.timeline li {
    position: relative;
    list-style: none;
    padding-left: 0.5rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -2.8rem;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-night);
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.3rem;
}

.skill-chip {
    border: 1px solid rgba(226, 232, 240, 0.15);
    border-radius: 16px;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0.2rem 0 0;
}

.skill-stack li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.stack-icon {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.open-source-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

.open-source-list li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.open-source-list strong {
    font-family: "Clash Display", serif;
    font-size: 1.1rem;
}

.open-source-list span {
    color: var(--text-muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    display: block;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 6, 23, 0.75);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

body.light .project-card::after {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.25), transparent 60%);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card h3 {
    font-family: "Clash Display", serif;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-frame {
    position: relative;
    border-radius: 28px;
    padding: 0.75rem;
    background: linear-gradient(145deg, rgba(94, 234, 212, 0.35), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(94, 234, 212, 0.3);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.5);
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    border-radius: 22px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.app-card {
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(94, 234, 212, 0.3);
    background: rgba(8, 47, 73, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.chip-list li {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #cbd5f5;
    transition: color 200ms ease, transform 200ms ease;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-icon {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
    opacity: 0.85;
}

#focusList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#focusList li span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric {
    font-family: "Clash Display", serif;
    font-size: 2rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
}

#projectFilter {
    transition: transform 200ms ease;
}

#projectFilter.active {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-panel {
    border-radius: 28px;
    padding: 3rem;
    background: linear-gradient(125deg, rgba(94, 234, 212, 0.12), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(94, 234, 212, 0.25);
    box-shadow: 0 25px 60px rgba(5, 6, 10, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.6);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.25);
}

body.light .card,
body.light .project-card,
body.light .app-card,
body.light .cta-panel,
body.light .card-highlight {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .cta-panel {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.35), rgba(255, 255, 255, 0.95));
    box-shadow: 0 20px 45px rgba(148, 163, 184, 0.35);
}

body.light .form-input {
    background: rgba(255, 255, 255, 0.9);
    color: #020617;
}

body.light .btn-ghost {
    border-color: rgba(15, 23, 42, 0.25);
    color: #0f172a;
    background: rgba(255, 255, 255, 0.4);
}

body.light .btn-ghost:hover {
    background: rgba(15, 23, 42, 0.08);
}

body.light .btn-link {
    color: #0f172a;
}

body.light .section-title,
body.light h1,
body.light h2,
body.light h3 {
    color: #0b1120;
}

body.light .text-slate-300 {
    color: #475569 !important;
}

body.light .text-slate-400 {
    color: #64748b !important;
}

body.light .card-highlight {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .chip-list li {
    background: rgba(226, 232, 240, 0.7);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}

body.light .skill-chip {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .skill-stack li {
    background: rgba(226, 232, 240, 0.8);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}

body.light .open-source-list span {
    color: #475569;
}

body.light .project-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light .app-card {
    background: rgba(248, 250, 252, 0.9);
}

body.light .profile-frame {
    background: linear-gradient(145deg, rgba(94, 234, 212, 0.2), rgba(255, 255, 255, 0.85));
    box-shadow: 0 25px 55px rgba(100, 116, 139, 0.35);
}

body.light #focusList li {
    border-bottom-color: rgba(100, 116, 139, 0.25);
}

body.light .footer-link {
    color: #475569;
}

body.light .footer-link:hover {
    color: #0f172a;
}

body.light .badge {
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 1023px) {
    .nav-shell {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nav-header {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .nav-actions #themeToggle,
    .nav-actions .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-shell.js-enabled .nav-content {
        display: none;
    }

    .nav-shell.js-enabled.is-open .nav-content {
        display: flex;
    }
}
