:root {

    --bg: #f4f9ff;
    --bg-soft: #ffffff;
    --bg-elev: #ffffff;
    --surface: rgba(255, 255, 255, 0.6);
    --surface-strong: rgba(255, 255, 255, 0.85);

    --ink: #0b1e3a;
    --ink-soft: #2c3e60;
    --muted: #5a6b85;
    --line: rgba(96, 165, 250, 0.18);
    --line-strong: rgba(96, 165, 250, 0.32);

    --primary: #3b82f6;
    --primary-soft: #60a5fa;
    --primary-pale: #bfdbfe;
    --primary-ice: #dbeafe;
    --primary-deep: #1d4ed8;
    --accent: #06b6d4;

    --shadow-sm: 0 2px 8px rgba(30, 64, 175, 0.06);
    --shadow-md: 0 8px 24px rgba(30, 64, 175, 0.08);
    --shadow-lg: 0 20px 50px rgba(30, 64, 175, 0.12);
    --shadow-xl: 0 30px 80px rgba(30, 64, 175, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

[data-theme="dark"] {
    --bg: #0a1628;
    --bg-soft: #0f1f3a;
    --bg-elev: #142544;
    --surface: rgba(30, 50, 90, 0.4);
    --surface-strong: rgba(30, 50, 90, 0.7);
    --ink: #e8f1ff;
    --ink-soft: #c4d4ed;
    --muted: #8aa0c2;
    --line: rgba(96, 165, 250, 0.18);
    --line-strong: rgba(96, 165, 250, 0.35);
    --primary-pale: #1e3a8a;
    --primary-ice: #1e293b;
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 900px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

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

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

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

input,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--primary-pale);
    color: var(--primary-deep);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-soft), var(--primary));
    border-radius: 10px;
    border: 2px solid var(--bg);
}


.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary-soft);
    transition: transform 0.2s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
    background: rgba(96, 165, 250, 0.08);
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--accent));
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}


.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    z-index: -2;
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #93c5fd, transparent 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #a5f3fc, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c7d2fe, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -40px) scale(1.1);
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1240px;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-inner {
    background: rgba(15, 31, 58, 0.7);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.brand-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--ink-soft);
    transition: all 0.25s ease;
    position: relative;
}

.nav-link .nav-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.6;
}

.nav-link:hover {
    color: var(--primary-deep);
    background: var(--primary-ice);
}

.nav-link.active {
    color: var(--primary-deep);
    background: var(--primary-ice);
}

.nav-link.active .nav-num {
    opacity: 1;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-ice);
    color: var(--primary-deep);
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}


.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 4rem;
    overflow: hidden;
}

#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.86;
    filter: contrast(1.18) saturate(1.12);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-accent {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-shimmer {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 620px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: rise 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sub em {
    color: var(--primary-deep);
    font-style: normal;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: rise 0.9s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(59, 130, 246, 0.45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-ghost {
    background: var(--surface-strong);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--primary-ice);
    border-color: var(--primary);
    color: var(--primary-deep);
    transform: translateY(-3px);
}

.btn-cmd {
    background: var(--surface-strong);
    border: 1px solid var(--line-strong);
    padding: 0.7rem 1rem;
    gap: 0.3rem;
}

.btn-cmd kbd {
    background: var(--primary-ice);
    color: var(--primary-deep);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid var(--line);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 700px;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: rise 0.9s 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat {
    text-align: left;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-deep);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50% {
        transform: scaleY(0.3);
        transform-origin: top;
    }
}

.hero-side {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.hero-side a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-side a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-4px);
}


.marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: scroll-x 40s linear infinite;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.marquee-track span:nth-child(odd) {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes scroll-x {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


.section {
    padding: 7rem 0;
    position: relative;
}

.section-head {
    margin-bottom: 4rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.dash {
    width: 32px;
    height: 1px;
    background: var(--primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 800px;
    color: var(--ink);
}

.section-sub {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 600px;
    font-size: 1.05rem;
}


.glass {
    background: var(--surface-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


.about-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.about-card {
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.about-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transition: transform 0.6s ease;
}

.about-card:hover .about-portrait img {
    transform: scale(1.05);
}

.portrait-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, var(--primary-pale), transparent 60%);
    z-index: 0;
    filter: blur(30px);
    opacity: 0.6;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

.portrait-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--primary-soft);
    border-radius: var(--radius-md);
    opacity: 0.4;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.portrait-meta {
    display: grid;
    gap: 0.7rem;
    font-size: 0.9rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.meta-row:last-child {
    border: none;
}

.meta-row span {
    color: var(--muted);
}

.meta-row strong {
    color: var(--ink);
    font-weight: 500;
}

.status-dot::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.about-body {
    padding-top: 0.5rem;
}

.lede {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-body p {
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.about-body em {
    font-style: normal;
    color: var(--primary-deep);
    font-weight: 500;
}

.skill-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.skill-head span:first-child {
    color: var(--ink);
    font-weight: 500;
}

.skill-pct {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.skill-track {
    height: 6px;
    background: var(--primary-ice);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.timeline {
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--line);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 2rem;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pale), var(--primary));
    border-radius: 2px;
}

.tl-item {
    position: relative;
    padding-top: 30px;
}

.tl-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.tl-dot-now {
    background: var(--primary);
    animation: pulse 2s infinite;
}

.tl-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.tl-body strong {
    display: block;
    font-family: var(--font-display);
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.tl-body span {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}


.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.exp-card {
    padding: 2.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-soft), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-soft);
}

.exp-card:hover::before {
    transform: scaleX(1);
}

.exp-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-ice), var(--primary-pale));
    color: var(--primary-deep);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.exp-card:hover .exp-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
}

.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.exp-card p {
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.exp-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: var(--primary-ice);
    color: var(--primary-deep);
    border-radius: 6px;
}


.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.chip {
    padding: 0.5rem 1.1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    transition: all 0.25s ease;
}

.chip::after {
    content: attr(data-count);
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--primary-ice);
    color: var(--primary-deep);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary-deep);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-sm);
}

.chip.active::after {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.project-note {
    display: inline-flex;
    align-items: center;
    margin: -0.75rem 0 1.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}

.project-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-soft);
}

.project-card.hide {
    display: none;
}

.project-visual {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.proj-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.proj-num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-deep);
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.project-body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.proj-type {
    color: var(--primary);
}

.project-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.project-body p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 1.15rem;
}

.proj-stack span {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    background: var(--primary-ice);
    color: var(--primary-deep);
    border-radius: 6px;
    font-family: var(--font-mono);
}

.proj-links {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.proj-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.proj-links a:hover {
    color: var(--primary);
}

.more-cta {
    margin-top: 3rem;
    text-align: center;
}


.play-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.play-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.play-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.play-head h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.play-head h3 i {
    color: var(--primary);
}

.play-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-ice);
    color: var(--primary-deep);
    border-radius: 4px;
}

.play-desc {
    color: var(--muted);
    font-size: 0.88rem;
}

.play-card textarea,
.play-card input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink);
    resize: vertical;
    transition: border-color 0.2s;
}

.play-card textarea {
    min-height: 80px;
}

.play-card textarea:focus,
.play-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ice);
}

.tok-output {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0.8rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.token {
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 4px;
    color: var(--primary-deep);
    transition: transform 0.15s;
}

.token:hover {
    transform: translateY(-2px);
}

.tok-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.tok-stats strong {
    color: var(--primary-deep);
}

.sent-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sent-bar {
    flex: 1;
    height: 12px;
    background: var(--primary-ice);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.sent-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #ef4444, #f59e0b 50%, #22c55e);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.sent-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-deep);
    min-width: 80px;
    text-align: right;
}

.sim-result {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.sim-result strong {
    color: var(--primary-deep);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.sim-bar {
    margin-top: 0.6rem;
    height: 8px;
    background: var(--primary-ice);
    border-radius: 100px;
    overflow: hidden;
}

.sim-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-soft), var(--accent));
    transition: width 0.5s ease;
}

#netCanvas {
    width: 100%;
    height: auto;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.play-foot {
    text-align: center;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.play-foot i {
    color: var(--primary);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
}

.info-card > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-ice), var(--primary-pale));
    color: var(--primary-deep);
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .info-card > i {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.info-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.socials-block {
    margin-top: 1rem;
    padding: 1.3rem 1.5rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.socials-block>span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.socials {
    display: flex;
    gap: 0.6rem;
}

.socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: all 0.3s ease;
}

.socials a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

.contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.7rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.field label {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    color: var(--muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.95rem;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.field input:focus~.field-line,
.field textarea:focus~.field-line {
    width: 100%;
}

.form-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.form-note i {
    color: var(--primary);
    margin-right: 0.3rem;
}


.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-left strong {
    display: block;
    font-family: var(--font-display);
    color: var(--ink);
}

.footer-left span {
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-mid {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-copy {
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

.footer-right {
    text-align: right;
}

.back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-deep);
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap 0.3s;
}

.back-top:hover {
    gap: 0.8rem;
}


.cmd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 30, 58, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: cmdFade 0.2s ease;
}

.cmd-overlay.open {
    display: flex;
}

@keyframes cmdFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cmd-panel {
    width: 90%;
    max-width: 580px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--line);
}

[data-theme="dark"] .cmd-panel {
    background: var(--bg-elev);
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--line);
}

.cmd-header i {
    color: var(--muted);
}

.cmd-header input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--ink);
}

.cmd-header kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-ice);
    color: var(--primary-deep);
    border-radius: 4px;
}

.cmd-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cmd-list li {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--ink-soft);
    transition: background 0.15s;
    font-size: 0.92rem;
}

.cmd-list li i {
    color: var(--primary);
    width: 16px;
}

.cmd-list li:hover,
.cmd-list li.active {
    background: var(--primary-ice);
    color: var(--primary-deep);
}

.cmd-footer {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 1.3rem;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--muted);
}

.cmd-footer kbd {
    font-family: var(--font-mono);
    padding: 0.1rem 0.35rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-right: 0.2rem;
    font-size: 0.7rem;
}


.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pre-inner {
    text-align: center;
    width: 90%;
    max-width: 340px;
}

.pre-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
}

.pre-ring-bg {
    fill: none;
    stroke: var(--primary-ice);
    stroke-width: 6;
}

.pre-ring {
    fill: none;
    stroke: url(#preGrad);
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: preFill 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preFill {
    to {
        stroke-dashoffset: 0;
    }
}

.pre-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    fill: var(--primary-deep);
}

.pre-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.pre-label span {
    display: inline-block;
    opacity: 0;
    animation: preLetter 0.4s ease forwards;
}

.pre-label span:nth-child(1) {
    animation-delay: 0.05s;
}

.pre-label span:nth-child(2) {
    animation-delay: 0.10s;
}

.pre-label span:nth-child(3) {
    animation-delay: 0.15s;
}

.pre-label span:nth-child(4) {
    animation-delay: 0.20s;
}

.pre-label span:nth-child(5) {
    animation-delay: 0.25s;
}

.pre-label span:nth-child(6) {
    animation-delay: 0.30s;
}

.pre-label span:nth-child(7) {
    animation-delay: 0.35s;
}

.pre-label span:nth-child(8) {
    animation-delay: 0.40s;
}

.pre-label span:nth-child(9) {
    animation-delay: 0.45s;
}

.pre-label span:nth-child(10) {
    animation-delay: 0.50s;
}

.pre-label span:nth-child(11) {
    animation-delay: 0.55s;
}

.pre-label span:nth-child(12) {
    animation-delay: 0.60s;
}

.pre-dot {
    animation: preDot 1s infinite !important;
}

@keyframes preLetter {
    to {
        opacity: 1;
    }
}

@keyframes preDot {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.pre-progress {
    height: 2px;
    background: var(--primary-ice);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.pre-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.pre-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
}


.three-hero {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.three-hero canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#neuralCanvas {
    z-index: 0;
    opacity: 0.82;
}


.currently {
    padding: 5rem 0;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink);
}

.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1.2rem;
}

.bento-cell {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-cell:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-now {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-music {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-reading {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-stack {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-github {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-quote {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bento-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: var(--primary-ice);
    color: var(--primary-deep);
    border-radius: 6px;
}

.bento-cell h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.3;
}

.bento-cell h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.4;
    font-weight: 500;
}

.bento-cell p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.bento-cell .hl {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bento-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: auto;
}

.bento-progress {
    display: grid;
    gap: 0.4rem;
    margin-top: auto;
}

.bp-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.bp-bar {
    height: 4px;
    background: var(--primary-ice);
    border-radius: 4px;
    overflow: hidden;
}

.bp-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-soft), var(--accent));
    border-radius: 4px;
    animation: bpGrow 1.2s ease-out;
}

@keyframes bpGrow {
    from {
        width: 0 !important;
    }
}


.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.np-cover {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.np-equalizer {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 24px;
}

.np-equalizer span {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: eq 1s ease-in-out infinite;
}

.np-equalizer span:nth-child(1) {
    animation-delay: -0.2s;
}

.np-equalizer span:nth-child(2) {
    animation-delay: -0.4s;
}

.np-equalizer span:nth-child(3) {
    animation-delay: -0.6s;
}

.np-equalizer span:nth-child(4) {
    animation-delay: -0.8s;
}

@keyframes eq {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 22px;
    }
}

.np-info {
    flex: 1;
    min-width: 0;
}

.np-info strong {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-info span {
    font-size: 0.78rem;
    color: var(--muted);
}

.np-bar {
    margin-top: 0.6rem;
    height: 3px;
    background: var(--primary-ice);
    border-radius: 3px;
    overflow: hidden;
}

.np-bar-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: npProgress 30s linear infinite;
}

@keyframes npProgress {
    to {
        width: 100%;
    }
}


.stack-orbit {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 140px;
}

.orb-tech {
    position: absolute;
    padding: 0.4rem 0.9rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-deep);
    box-shadow: var(--shadow-sm);
    animation: orbit 12s linear infinite;
    white-space: nowrap;
}

.orb-tech.t1 {
    animation-delay: 0s;
    transform: translate(0, -70px);
}

.orb-tech.t2 {
    animation-delay: -2.4s;
    transform: translate(70px, -20px);
}

.orb-tech.t3 {
    animation-delay: -4.8s;
    transform: translate(40px, 60px);
}

.orb-tech.t4 {
    animation-delay: -7.2s;
    transform: translate(-40px, 60px);
}

.orb-tech.t5 {
    animation-delay: -9.6s;
    transform: translate(-70px, -20px);
}

@keyframes orbit {

    0%,
    100% {
        transform: translate(0, -70px);
    }

    20% {
        transform: translate(70px, -20px);
    }

    40% {
        transform: translate(40px, 60px);
    }

    60% {
        transform: translate(-40px, 60px);
    }

    80% {
        transform: translate(-70px, -20px);
    }
}


.gh-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.gh-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--primary-ice);
    border-radius: 8px;
}

.gh-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-deep);
    line-height: 1;
}

.gh-stat span {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gh-grid {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 3px;
    margin-top: auto;
}

.gh-grid span {
    aspect-ratio: 1;
    background: var(--primary-ice);
    border-radius: 2px;
}

.gh-grid span.l1 {
    background: #bfdbfe;
}

.gh-grid span.l2 {
    background: #60a5fa;
}

.gh-grid span.l3 {
    background: #3b82f6;
}

.gh-grid span.l4 {
    background: #1d4ed8;
}

.bento-quote-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
}


.ach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ach-card {
    padding: 1.8rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ach-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-pale), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.ach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-soft);
}

.ach-card:hover::after {
    opacity: 0.3;
}

.ach-card>* {
    position: relative;
    z-index: 1;
}

.ach-medal {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: white;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.medal-2 {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-deep));
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.medal-3 {
    background: linear-gradient(135deg, #a5f3fc, #06b6d4);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.medal-4 {
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.ach-year {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ach-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0.5rem 0;
    line-height: 1.3;
}

.ach-card p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}


[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.magnetic {
    transition: transform 0.2s ease-out;
}


.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    z-index: 9996;
    mix-blend-mode: difference;
    opacity: 0.6;
}


@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .bento-now,
    .bento-stack,
    .bento-github {
        grid-column: span 2;
    }

    .bento-music,
    .bento-reading,
    .bento-quote {
        grid-column: span 2;
    }

    .ach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        position: static;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .play-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }
}

@media (max-width: 768px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-cell {
        min-height: 160px;
    }

    .bento-now,
    .bento-stack,
    .bento-github,
    .bento-music,
    .bento-reading,
    .bento-quote {
        grid-column: span 1;
    }

    .ach-grid {
        grid-template-columns: 1fr;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        padding: 1.5rem;
        background: var(--surface-strong);
        backdrop-filter: blur(20px);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-btn {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.8rem 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-scroll {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .btn-cmd {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .section-head {
        margin-bottom: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .timeline-track {
        grid-template-columns: 1fr;
    }

    .timeline-track::before {
        top: 0;
        left: 8px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-pale), var(--primary));
    }

    .tl-item {
        padding-top: 0;
        padding-left: 30px;
    }

    .tl-dot {
        left: 0;
        top: 4px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left {
        justify-content: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* ---------- Synced & Optimized Portfolio Enhancements ---------- */
.bento-quote {
    grid-column: 1 / -1;
}

.gh-repos {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
}

.gh-repo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    background: var(--primary-ice);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gh-repo-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.gh-repo-name {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--primary-deep);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .gh-repo-name {
    color: var(--primary-soft);
}

.gh-repo-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-groups {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.skill-group {
    display: grid;
    gap: 0.45rem;
}

.skill-group-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-deep);
}

[data-theme="dark"] .skill-group-label {
    color: var(--primary-soft);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag {
    padding: 0.3rem 0.7rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--ink);
}

.ach-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.ach-authors {
    font-size: 0.84rem;
    color: var(--primary-deep);
    margin-bottom: 0.45rem;
}

[data-theme="dark"] .ach-authors {
    color: var(--primary-soft);
}

.ach-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.ach-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--primary-deep);
    transition: color 0.2s ease;
}

[data-theme="dark"] .ach-link {
    color: var(--primary-soft);
}

.ach-link:hover {
    color: var(--primary);
}

.proj-confidential {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.info-card-email {
    justify-content: space-between;
}

.info-card-body {
    flex: 1;
    min-width: 0;
}

.email-link {
    color: var(--ink);
    word-break: break-all;
}

.email-link:hover {
    color: var(--primary);
}

.copy-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    height: 32px;
    padding: 0 0.72rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-deep);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-email-btn i {
    width: auto;
    height: auto;
    display: inline-block;
    background: none;
    border-radius: 0;
    font-size: 0.76rem;
    line-height: 1;
    color: currentColor;
}

.copy-email-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.copy-email-btn.copied {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.45);
    color: #047857;
}

[data-theme="dark"] .copy-email-btn {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

[data-theme="dark"] .copy-email-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .copy-email-btn.copied {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.42);
    color: #6ee7b7;
}

[data-theme="dark"] .bento-tag {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .gh-stat {
    background: rgba(30, 58, 138, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .gh-stat strong {
    color: #93c5fd;
}

[data-theme="dark"] .gh-repo-item {
    background: rgba(30, 58, 138, 0.28);
    border-color: rgba(96, 165, 250, 0.26);
}

[data-theme="dark"] .gh-repo-name {
    color: #bfdbfe;
}

[data-theme="dark"] .orb-tech {
    color: #bfdbfe;
    background: rgba(30, 58, 138, 0.36);
    border-color: rgba(96, 165, 250, 0.32);
}

[data-theme="dark"] .play-tag,
[data-theme="dark"] .proj-stack span,
[data-theme="dark"] .proj-type {
    color: #93c5fd;
}

[data-theme="dark"] .proj-stack span {
    background: rgba(30, 58, 138, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

@media (max-width: 768px) {
    .ach-grid--two {
        grid-template-columns: 1fr;
    }

    .info-card-email {
        flex-wrap: wrap;
    }
}
