/* ===================================
   Sughosha K Joshi Portfolio
   Full UI refresh: kinetic studio + 3D portfolio lab
   =================================== */

:root {
    color-scheme: dark;
    --bg: #070a10;
    --bg-soft: #0c111a;
    --panel: rgba(14, 20, 32, 0.82);
    --panel-solid: #0f1726;
    --panel-lift: rgba(19, 28, 44, 0.94);
    --ink: #f8fafc;
    --muted: #94a3b8;
    --dim: #64748b;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(148, 163, 184, 0.22);
    --aqua: #38bdf8;
    --accent: #2563eb;
    --accent-glow: rgba(56, 189, 248, 0.22);
    --coral: #f43f5e;
    --amber: #f59e0b;
    --lime: #10b981;
    --violet: #818cf8;
    --radius: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --panel-lift: rgba(248, 250, 252, 0.96);
    --ink: #0f172a;
    --muted: #475569;
    --dim: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.16);
    --aqua: #0284c7;
    --accent: #2563eb;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.05), transparent 32%),
        radial-gradient(circle at 82% 38%, rgba(37, 99, 235, 0.04), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-soft) 50%, var(--bg));
    line-height: 1.65;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [role="button"],
body.has-custom-cursor [tabindex="0"] {
    cursor: none !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 88%);
}

body.light-mode::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(56, 189, 248, 0.28);
    color: #ffffff;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border: 2px solid var(--bg);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aqua);
}

a {
    color: inherit;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 4px;
}

body .container {
    width: min(1160px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
}

/* ===================================
   Kinetic Background
   =================================== */

.hero-3d-container {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.82;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.background-animation {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.particle,
.bubble,
.parallax-element {
    position: absolute;
    display: block;
    border-radius: 2px;
    opacity: 0.22;
    transform: rotate(var(--angle, 0deg));
    animation: driftPanel var(--duration, 18s) linear infinite;
}

.particle {
    width: var(--w, 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c, var(--aqua)), transparent);
}

.bubble {
    width: var(--s, 38px);
    height: var(--s, 38px);
    border: 1px solid color-mix(in srgb, var(--c, var(--amber)) 70%, transparent);
    background: linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--c, var(--amber)) 20%, transparent));
}

.parallax-element {
    width: 170px;
    height: 170px;
    border: 1px solid var(--line);
    transform: rotate(45deg);
    animation-duration: 36s;
}

.particle-1 { left: 6%; top: 18%; --c: var(--aqua); --angle: 18deg; --duration: 19s; }
.particle-2 { left: 46%; top: 11%; --c: var(--coral); --angle: -12deg; --duration: 21s; }
.particle-3 { left: 73%; top: 24%; --c: var(--amber); --angle: 32deg; --duration: 24s; }
.particle-4 { left: 18%; top: 44%; --c: var(--violet); --angle: -28deg; --duration: 17s; }
.particle-5 { left: 62%; top: 51%; --c: var(--lime); --angle: 8deg; --duration: 28s; }
.particle-6 { left: 86%; top: 65%; --c: var(--aqua); --angle: -18deg; --duration: 23s; }
.particle-7 { left: 9%; top: 77%; --c: var(--coral); --angle: 42deg; --duration: 20s; }
.particle-8 { left: 38%; top: 86%; --c: var(--amber); --angle: -8deg; --duration: 30s; }
.particle-9 { left: 78%; top: 82%; --c: var(--violet); --angle: 20deg; --duration: 26s; }
.particle-10 { left: 31%; top: 27%; --c: var(--lime); --angle: 50deg; --duration: 18s; }
.particle-11 { left: 55%; top: 73%; --c: var(--aqua); --angle: -38deg; --duration: 25s; }
.particle-12 { left: 93%; top: 35%; --c: var(--coral); --angle: 14deg; --duration: 22s; }
.particle-13 { left: 3%; top: 57%; --c: var(--amber); --angle: -18deg; --duration: 31s; }
.particle-14 { left: 67%; top: 9%; --c: var(--violet); --angle: 29deg; --duration: 24s; }
.particle-15 { left: 22%; top: 8%; --c: var(--lime); --angle: -45deg; --duration: 19s; }
.particle-16 { left: 49%; top: 39%; --c: var(--aqua); --angle: 35deg; --duration: 33s; }
.particle-17 { left: 89%; top: 9%; --c: var(--amber); --angle: -32deg; --duration: 27s; }
.particle-18 { left: 42%; top: 62%; --c: var(--coral); --angle: 25deg; --duration: 21s; }
.particle-19 { left: 14%; top: 94%; --c: var(--violet); --angle: -11deg; --duration: 28s; }
.particle-20 { left: 70%; top: 94%; --c: var(--lime); --angle: 11deg; --duration: 24s; }

.bubble-full-1 { left: 11%; top: 26%; --c: var(--aqua); --s: 54px; }
.bubble-full-2 { left: 80%; top: 13%; --c: var(--coral); --s: 44px; animation-delay: -6s; }
.bubble-full-3 { left: 27%; top: 67%; --c: var(--amber); --s: 36px; animation-delay: -3s; }
.bubble-full-4 { left: 92%; top: 78%; --c: var(--lime); --s: 50px; animation-delay: -9s; }
.bubble-full-5 { left: 48%; top: 18%; --c: var(--violet); --s: 30px; animation-delay: -10s; }
.bubble-full-6 { left: 5%; top: 83%; --c: var(--coral); --s: 42px; animation-delay: -13s; }
.bubble-full-7 { left: 58%; top: 87%; --c: var(--aqua); --s: 40px; animation-delay: -4s; }
.bubble-full-8 { left: 36%; top: 35%; --c: var(--lime); --s: 34px; animation-delay: -15s; }
.bubble-full-9 { left: 73%; top: 56%; --c: var(--amber); --s: 46px; animation-delay: -7s; }
.bubble-full-10 { left: 16%; top: 6%; --c: var(--violet); --s: 32px; animation-delay: -11s; }

.parallax-element:nth-last-child(4) { left: -70px; top: 18%; }
.parallax-element:nth-last-child(3) { right: -90px; top: 44%; animation-delay: -12s; }
.parallax-element:nth-last-child(2) { left: 28%; bottom: -95px; animation-delay: -18s; }
.parallax-element:nth-last-child(1) { right: 18%; top: -110px; animation-delay: -7s; }

@keyframes driftPanel {
    0% { translate: 0 0; opacity: 0.18; }
    40% { opacity: 0.55; }
    100% { translate: 0 -130px; opacity: 0.12; }
}

.scanlines,
.noise-overlay,
.rgb-glitch {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
}

.scanlines {
    display: none;
}

.noise-overlay {
    opacity: 0.006;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rgb-glitch {
    display: none;
}

.rgb-glitch.is-active {
    animation: softGlitch 0.28s steps(2) both;
}

@keyframes softGlitch {
    0% { opacity: 0; transform: translateX(0); }
    35% { opacity: 0.45; transform: translateX(-8px); }
    70% { opacity: 0.25; transform: translateX(6px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0 20px;
    pointer-events: none;
}

.nav-container {
    width: min(1180px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 10px 8px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--soft-shadow);
}

.nav-logo {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(141, 152, 170, 0.16)),
        var(--panel-solid);
    border: 1px solid var(--line-strong);
    font-weight: 900;
}

.logo-text {
    font-weight: 800;
    white-space: nowrap;
}

.nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn,
.mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.theme-btn:hover,
.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--aqua) 70%, var(--line));
    background: rgba(56, 189, 248, 0.09);
}

.mobile-menu-toggle {
    display: none;
    gap: 5px;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 10px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.code-rain {
    display: none;
}

/* ===================================
   Hero
   =================================== */

.hero-section {
    position: relative;
    min-height: 96svh;
    display: grid;
    align-items: center;
    padding: 124px 20px 76px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 90px 20px 28px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(110deg, rgba(56, 189, 248, 0.055), transparent 30%);
}

.hero-content {
    width: min(1160px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.hero-text {
    max-width: 780px;
}

.hero-greeting,
.section-tag,
.timeline-date,
.meta-item,
.skill-percent,
.tag,
.tech-tag,
.badge {
    font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 0 12px;
    color: var(--aqua);
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius);
    font-weight: 800;
}

.hero-title {
    margin: 0;
    max-width: 790px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 4.65rem;
    line-height: 1;
    font-weight: 820;
    color: var(--ink);
    text-wrap: balance;
}

.hero-title .cursor-blink {
    color: var(--aqua);
}

.hero-subtitle {
    margin: 24px 0 0;
    font-size: 1.35rem;
    color: var(--aqua);
    font-weight: 750;
}

.hero-description {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-buttons {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn,
.project-btn,
.chat-send,
.filter-chip,
.project-modal-close {
    min-height: 44px;
    border-radius: var(--radius);
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--aqua);
    color: #ffffff;
}

.hero-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.social-icon,
.footer-social-link {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.social-icon:hover,
.footer-social-link:hover {
    color: var(--ink);
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--aqua) 58%, var(--line));
    background: rgba(56, 189, 248, 0.09);
}

#floating-icons-3d {
    position: absolute;
    top: 50%;
    right: max(24px, calc((100vw - 1160px) / 2));
    width: min(420px, 38vw);
    height: 430px;
    transform: translateY(-45%);
    z-index: 1;
    pointer-events: auto;
    perspective: 900px;
}

.tech-orbit {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: orbitTilt 24s var(--ease) infinite alternate;
}

.floating-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size, 54px);
    height: var(--size, 54px);
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--soft-shadow);
    color: var(--icon-color, var(--aqua));
    transform: translate(-50%, -50%) translateZ(var(--z, 0px)) rotate(var(--r, 0deg));
    animation: iconFloat var(--speed, 5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.floating-icon i {
    font-size: 1.55rem;
    filter: saturate(0.62) brightness(1.08);
}

.floating-icon:hover {
    border-color: var(--aqua);
    transform: translate(-50%, -56%) translateZ(36px) scale(1.04) rotate(var(--r, 0deg));
}

@keyframes orbitTilt {
    from { transform: rotateX(8deg) rotateY(-12deg); }
    to { transform: rotateX(-6deg) rotateY(16deg); }
}

@keyframes iconFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -16px; }
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-size: 0.88rem;
}

.scroll-indicator i {
    color: var(--aqua);
    animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(5px); }
}

/* ===================================
   Sections
   =================================== */

.section {
    position: relative;
    padding: 104px 0;
    scroll-margin-top: 105px;
}

.section + .section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
    margin-bottom: 38px;
}

.section-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    color: var(--aqua);
    border: 1px solid color-mix(in srgb, var(--aqua) 40%, transparent);
    background: rgba(56, 189, 248, 0.07);
}

.section-title {
    margin: 0;
    font-size: 2.65rem;
    line-height: 1.08;
    text-wrap: balance;
}

.about-content,
.contact-content,
.stats-recap-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--soft-shadow);
}

.about-content {
    padding: 38px;
}

.about-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
}

.about-text p {
    margin: 0 0 18px;
    color: var(--muted);
}

.about-lead {
    grid-column: 1 / 2;
    color: var(--ink) !important;
    font-size: 1.25rem;
    font-weight: 760;
}

.about-stats {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stat-item,
.recap-stat {
    min-height: 124px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.075), transparent),
        rgba(255, 255, 255, 0.045);
}

.stat-number,
.recap-number {
    font-family: Orbitron, Inter, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--amber);
    font-weight: 900;
}

.stat-label,
.recap-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.section-background-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-background-animation .bubble {
    opacity: 0.14;
}

/* Timeline */

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--aqua), var(--coral), var(--amber));
}

.timeline-item {
    position: relative;
    padding-left: 58px;
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 26px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 3px solid var(--aqua);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.07);
}

.timeline-content,
.skill-category,
.project-card,
.contact-method,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--soft-shadow);
}

.timeline-content {
    padding: 24px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: color-mix(in srgb, var(--aqua) 50%, var(--line));
    background: var(--panel-lift);
}

.timeline-date {
    color: var(--amber);
    font-size: 0.88rem;
}

.timeline-title,
.category-header h3,
.project-title,
.contact-info h3 {
    margin: 6px 0 10px;
    line-height: 1.16;
}

.timeline-title {
    font-size: 1.35rem;
}

.timeline-description,
.project-description,
.contact-info p {
    color: var(--muted);
}

.timeline-tags,
.project-tech,
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.tech-tag,
.badge,
.meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.88rem;
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skill-category {
    padding: 24px;
    min-height: 100%;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--coral) 55%, var(--line));
    background: var(--panel-lift);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-header i,
.method-icon,
.recap-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #061014;
    background: linear-gradient(135deg, var(--aqua), var(--lime));
}

.skill-item {
    margin-bottom: 18px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
}

.skill-name {
    color: var(--ink);
    font-weight: 760;
}

.skill-bar {
    height: 12px;
    padding: 3px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    overflow: hidden;
}

.skill-progress {
    width: 0;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--aqua), var(--violet), var(--coral));
    transition: width 1.25s var(--ease);
}

/* ===================================
   Project Lab
   =================================== */

.projects-section {
    overflow: hidden;
}

.projects-section .container {
    position: relative;
}

.project-nexus {
    position: relative;
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

/* -----------------------------------
   Nexus Master Control Bar
   ----------------------------------- */
.nexus-control-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.nexus-perspective-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s var(--ease);
}

.view-btn:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.nexus-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.sfx-hud-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.sfx-hud-toggle:hover {
    border-color: var(--aqua);
    color: var(--ink);
}

.sfx-hud-toggle.is-active {
    border-color: var(--aqua);
    color: var(--aqua);
    background: rgba(56, 189, 248, 0.08);
}

.sfx-waves {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.sfx-waves span {
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 1px;
    transition: height 0.15s ease;
}

.sfx-hud-toggle.is-active .sfx-waves span:nth-child(1) { animation: sfxBounce 0.8s infinite 0.1s; }
.sfx-hud-toggle.is-active .sfx-waves span:nth-child(2) { animation: sfxBounce 0.8s infinite 0.25s; }
.sfx-hud-toggle.is-active .sfx-waves span:nth-child(3) { animation: sfxBounce 0.8s infinite 0.15s; }
.sfx-hud-toggle.is-active .sfx-waves span:nth-child(4) { animation: sfxBounce 0.8s infinite 0.3s; }

@keyframes sfxBounce {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.nexus-warp-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.warp-label {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: var(--dim);
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.warp-num-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.warp-num-btn:hover {
    color: var(--ink);
    border-color: var(--aqua);
    transform: translateY(-2px);
}

.warp-num-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* -----------------------------------
   VIEW 1: 3D Holographic Orbit Deck
   ----------------------------------- */
.project-lab-main {
    position: relative;
    min-height: clamp(580px, 58vw, 670px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 52%, rgba(56, 189, 248, 0.1), transparent 36%),
        linear-gradient(135deg, rgba(56, 189, 248, 0.07), transparent 42%),
        rgba(11, 15, 20, 0.4);
    perspective: 1600px;
}

.project-ambient-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.18) 0%, transparent 65%);
    transition: background 0.6s var(--ease);
    z-index: 1;
}

.project-lab-main::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 82px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    transform: translateZ(-120px);
    opacity: 0.85;
    z-index: 2;
}

.project-rail-header {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 0;
}

.project-lab-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aqua);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--aqua);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--aqua);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.project-lab-title {
    margin: 8px 0;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.project-lab-desc {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.project-nexus.is-copy-changing .project-lab-title,
.project-nexus.is-copy-changing .project-lab-desc {
    opacity: 0.3;
    transform: translateY(4px);
}

.project-rail-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.hud-tag {
    color: var(--aqua);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.project-counter {
    color: var(--dim);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.9rem;
    border-left: 1px solid var(--line);
    padding-left: 10px;
}

.project-rail-shell {
    position: relative;
    min-height: 500px;
    display: grid;
    align-items: center;
    padding: 16px 0 28px;
    z-index: 5;
}

.project-rail-viewport {
    position: relative;
    z-index: 2;
    min-height: 500px;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
}

.project-rail-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    perspective: 1600px;
}

.project-rail-track .project-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(530px, calc(100% - 160px));
    min-height: 480px;
    opacity: var(--rail-opacity, 0);
    z-index: var(--rail-z-index, 1);
    pointer-events: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-solid);
    transform:
        translate(-50%, -50%)
        translate3d(var(--rail-x, 0), var(--rail-y, 0), var(--rail-z, 0))
        scale(var(--rail-scale, 1))
        rotateY(var(--rail-rotate, 0));
    transition:
        transform 640ms var(--ease),
        opacity 500ms var(--ease),
        filter 500ms var(--ease),
        border-color 260ms var(--ease),
        box-shadow 260ms var(--ease);
}

.project-rail-track .project-card.is-active {
    pointer-events: auto;
    border-color: color-mix(in srgb, var(--project-accent, var(--aqua)) 55%, var(--line-strong));
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.6), 0 0 40px color-mix(in srgb, var(--project-accent, var(--aqua)) 22%, transparent);
}

.project-rail-track .project-card:not(.is-active) {
    pointer-events: auto;
    cursor: pointer;
}

.project-rail-track .project-card:not(.is-active) * {
    pointer-events: none !important;
}

.project-rail-track .project-card:not(.is-active) .project-overlay {
    opacity: 0 !important;
    display: none !important;
}

.project-rail-track .project-card:not(.is-active)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(7, 10, 16, 0.58);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-rail-track .project-card.is-offrail {
    visibility: hidden;
}

.card-specular-sheen {
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    border-radius: inherit;
    transition: background 0.1s ease;
}

.card-inspect-badge {
    display: none !important;
}

.project-nav {
    position: absolute;
    top: 50%;
    z-index: 120;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.22s var(--ease);
}

.project-prev {
    left: 20px;
    min-width: 48px;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(12px);
}

.project-prev:hover:not(:disabled) {
    transform: translateY(calc(-50% - 2px));
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aqua);
}

.project-next {
    right: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.project-next:hover:not(:disabled) {
    transform: translateY(calc(-50% - 2px));
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.nexus-keyboard-hud {
    position: relative;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--dim);
    font-family: "Share Tech Mono", monospace;
}

.hud-key {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--ink);
}

.hud-sep {
    color: var(--line-strong);
}

.project-rail-dots {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 14px;
    z-index: 8;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.project-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.project-dot.is-active {
    width: 28px;
    background: var(--aqua);
    border-color: transparent;
}

.project-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.search-wrap {
    position: relative;
    flex: 1 1 280px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    pointer-events: none;
}

.project-search {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 42px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.project-search:focus {
    border-color: var(--aqua);
    background: rgba(255, 255, 255, 0.07);
}

.project-search::placeholder {
    color: var(--dim);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 999 1 480px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.filter-chip:hover {
    color: var(--ink);
    border-color: var(--line-light);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.filter-chip.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* -----------------------------------
   VIEW 2: Living Bento Grid
   ----------------------------------- */
.bento-container {
    display: grid;
    gap: 22px;
}

.bento-header {
    margin-bottom: 6px;
}

.bento-headline {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.bento-subline {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.bento-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(14px);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    cursor: pointer;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.bento-item:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--item-accent, var(--aqua)) 60%, var(--line-strong));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 24px color-mix(in srgb, var(--item-accent, var(--aqua)) 15%, transparent);
}

.bento-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.bento-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bento-category {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: var(--item-accent, var(--aqua));
    letter-spacing: 0.06em;
}

.bento-inspect-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bento-item:hover .bento-inspect-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: transparent;
}

.bento-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.bento-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

/* Living Bento Micro-Widgets */
.bento-widget {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
}

/* Spotify Widget */
.spotify-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eq-bars-wrap {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.eq-bar {
    width: 3px;
    height: 6px;
    background: #1db954;
    border-radius: 1px;
}

.eq-bar.playing:nth-child(1) { animation: eqAnim 0.7s infinite 0.1s; }
.eq-bar.playing:nth-child(2) { animation: eqAnim 0.7s infinite 0.3s; }
.eq-bar.playing:nth-child(3) { animation: eqAnim 0.7s infinite 0.15s; }
.eq-bar.playing:nth-child(4) { animation: eqAnim 0.7s infinite 0.4s; }
.eq-bar.playing:nth-child(5) { animation: eqAnim 0.7s infinite 0.2s; }
.eq-bar.playing:nth-child(6) { animation: eqAnim 0.7s infinite 0.35s; }

@keyframes eqAnim {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

.music-info {
    flex: 1;
    overflow: hidden;
}

.track-title {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.74rem;
    color: var(--dim);
}

.btn-widget-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #1db954;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-widget-play:hover {
    transform: scale(1.1);
}

/* ECG Medical Widget */
.ecg-screen {
    position: relative;
    background: rgba(0, 242, 254, 0.04);
    border-radius: 4px;
    overflow: hidden;
    padding: 6px 8px;
}

.ecg-svg {
    width: 100%;
    height: 38px;
}

.ecg-path {
    fill: none;
    stroke: #00f2fe;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: ecgStroke 2.4s linear infinite;
}

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

.ecg-telemetry {
    display: flex;
    justify-content: space-between;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: #00f2fe;
    margin-top: 4px;
}

/* AI Stream Widget */
.ai-stream-box {
    margin-bottom: 8px;
}

.ai-prompt-badge {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: #a855f7;
    display: block;
    margin-bottom: 4px;
}

.ai-typing-stream {
    font-size: 0.84rem;
    color: var(--ink);
    min-height: 38px;
    font-family: "Share Tech Mono", monospace;
}

.btn-widget-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-widget-ai:hover {
    background: rgba(168, 85, 247, 0.35);
}

/* CRDT Collaborative Vector Widget */
.crdt-widget {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
}

.crdt-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.74rem;
    color: #a78bfa;
}

.crdt-sync-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.5s infinite;
}

.crdt-sim-editor {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: var(--ink);
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    line-height: 1.45;
}

.crdt-cursor {
    display: inline-block;
    width: 2px;
    height: 13px;
    background: #8b5cf6;
    vertical-align: middle;
    margin-right: 4px;
    animation: typingPulse 0.8s infinite;
}

/* Arcade Canvas Widget */
.arcade-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arcade-card-canvas {
    border-radius: 4px;
    background: #070b0e;
    width: 100%;
    height: 80px;
}

.arcade-card-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.75rem;
    color: #f59e0b;
}

.btn-widget-game {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Matrix Vault Widget */
.matrix-vault {
    margin-bottom: 8px;
}

.vault-tag {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: #10b981;
}

.scramble-text {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.85rem;
    color: var(--ink);
    margin-top: 4px;
}

.btn-widget-decrypt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #10b981;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.78rem;
    cursor: pointer;
}

/* Theme Swatches Widget */
.theme-label {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: var(--dim);
    display: block;
    margin-bottom: 6px;
}

.accent-dots {
    display: flex;
    gap: 10px;
}

.accent-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.accent-dot:hover {
    transform: scale(1.2);
}

.bento-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* -----------------------------------
   VIEW 3: Cyber Hacker Terminal CLI Studio
   ----------------------------------- */
.terminal-window {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #070b0f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    font-family: "Share Tech Mono", monospace;
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--dim);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.terminal-body {
    padding: 18px;
    min-height: 480px;
    max-height: 580px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.t-ascii {
    color: var(--aqua);
    font-size: 0.65rem;
    line-height: 1.1;
    margin: 0;
    overflow-x: auto;
}

.t-line .green { color: #10b981; }
.t-line .cyan { color: #00d4ff; }
.t-line .yellow { color: #f59e0b; }
.t-line .red { color: #f43f5e; }
.t-line .dim { color: var(--dim); }

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}

.t-prompt {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.t-user { color: #10b981; }
.t-at { color: var(--dim); }
.t-host { color: #00d4ff; }
.t-path { color: #f59e0b; }

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}

.project-source-grid,
.project-source-heading {
    display: none !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    perspective: 1400px;
}

.projects-grid + .section-header {
    margin-top: 68px !important;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease), filter 0.25s var(--ease);
    will-change: transform;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 34%);
    transition: opacity 0.2s var(--ease);
}

.project-card:hover,
.project-card.is-active {
    border-color: color-mix(in srgb, var(--aqua) 48%, var(--line));
}

.project-card:hover::before,
.project-card.is-active::before {
    opacity: 1;
}

.project-card.is-filtered-out {
    opacity: 0.16;
    filter: grayscale(0.9);
    pointer-events: none;
}

.project-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 7, 9, 0.78), transparent 60%),
        linear-gradient(135deg, rgba(56, 189, 248, 0.11), transparent 45%);
    pointer-events: none;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.04);
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease), opacity 0.3s ease;
}

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

img.loaded,
img:not([data-src]) {
    opacity: 1;
}

.project-card:hover .project-screenshot {
    transform: scale(1.13);
    filter: saturate(1.2) contrast(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

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

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tech-icon,
.project-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 7, 9, 0.62);
    backdrop-filter: blur(12px);
}

.project-link {
    color: var(--ink);
    text-decoration: none;
}

.project-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.project-title {
    font-size: 1.28rem;
}

.project-description {
    margin: 0 0 18px;
    font-size: 0.96rem;
}

.project-tech {
    margin-top: auto;
    margin-bottom: 18px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(14, 165, 233, 0.88));
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
    transition: all 0.22s var(--ease);
}

.project-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Contact and Stats
   =================================== */

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.62fr);
    gap: 20px;
    padding: 20px;
}

.contact-info {
    padding: 18px;
}

.contact-info h3 {
    font-size: 2rem;
}

.contact-methods {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.contact-method {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    box-shadow: none;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-method:hover {
    transform: translateX(6px);
    border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
    background: var(--panel-lift);
}

.method-details h4 {
    margin: 0;
}

.method-details a {
    color: var(--muted);
    text-decoration: none;
    word-break: break-word;
}

.method-details a:hover {
    color: var(--aqua);
}

.contact-form {
    padding: 22px;
    box-shadow: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    outline: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-group textarea {
    min-height: 132px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--aqua);
    background: rgba(56, 189, 248, 0.07);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--coral);
}

.error-message,
.form-message {
    margin-top: 7px;
    color: var(--coral);
    font-size: 0.88rem;
}

.form-message.success {
    color: var(--lime);
}

.form-message.error {
    color: var(--coral);
}

.stats-recap-section {
    padding-top: 74px;
}

.stats-recap-content {
    padding: 28px;
}

.stats-recap-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-recap-header h3 {
    margin: 0;
    font-size: 2rem;
}

.stats-recap-header p {
    margin: 0;
    color: var(--muted);
}

.stats-recap-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.recap-stat {
    min-height: 150px;
}

.recap-icon {
    margin-bottom: 10px;
}

/* ===================================
   Footer, Progress, Tooltip
   =================================== */

.progress-container {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 16px;
    z-index: 850;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.progress-bar {
    position: relative;
    flex: 1;
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--aqua), var(--coral), var(--amber));
}

.progress-dots {
    display: flex;
    gap: 7px;
    pointer-events: auto;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    cursor: pointer;
}

.progress-dot.active {
    background: var(--aqua);
}

.footer {
    padding: 42px 0 70px;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer-text p {
    margin: 0 0 4px;
    color: var(--muted);
}

.footer-text i {
    color: var(--coral);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tooltips completely disabled per user preference */
.tooltip {
    display: none !important;
}

/* ===================================
   Customized Elite Cursor
   =================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 10000000 !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-cursor.active {
    opacity: 1 !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    pointer-events: none !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.95);
    transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
    z-index: 10000001 !important;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    border-radius: 50%;
    pointer-events: none !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    transition: width 0.22s var(--ease),
                height 0.22s var(--ease),
                background-color 0.22s ease,
                border-color 0.22s ease;
    z-index: 10000000 !important;
}

.custom-cursor.hovering .cursor-ring {
    width: 52px;
    height: 52px;
    background-color: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.custom-cursor.hovering .cursor-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: 0 0 16px #38bdf8;
}

.custom-cursor.clicking .cursor-ring {
    width: 26px;
    height: 26px;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.25);
}

.custom-cursor.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(0.65);
}

@media (pointer: coarse), (hover: none) {
    .custom-cursor {
        display: none !important;
    }
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    background: var(--bg);
    transform: scaleX(0);
    transform-origin: left center;
}

.section-separator {
    display: none;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 840;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--aqua);
    color: #061014;
}

/* ===================================
   Project Modal
   =================================== */

/* ===================================
   Cinematic Holo-Deck Project Inspector
   =================================== */

.holodeck-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.holodeck-modal.open {
    opacity: 1;
    visibility: visible;
}

.holodeck-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 15, 0.82);
    backdrop-filter: blur(20px);
}

.holodeck-panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: min(840px, calc(100vh - 40px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0d131a;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.12);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s var(--ease);
}

.holodeck-modal.open .holodeck-panel {
    transform: translateY(0) scale(1);
}

/* Holo-Deck Status Bar */
.holodeck-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
    font-family: "Share Tech Mono", monospace;
}

.holo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dim);
}

.holo-glitch-icon {
    color: var(--aqua);
    font-size: 1rem;
}

.holo-sys-id {
    letter-spacing: 0.06em;
}

#holo-sys-name {
    color: var(--aqua);
    font-weight: 700;
}

.holodeck-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.holodeck-close:hover {
    background: var(--coral);
    color: #fff;
    border-color: transparent;
    transform: rotate(90deg);
}

/* Holo-Deck Tabs */
.holodeck-tabs {
    display: flex;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    gap: 6px;
}

.holo-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.holo-tab:hover {
    color: var(--ink);
}

.holo-tab.is-active {
    color: var(--aqua);
    border-bottom-color: var(--aqua);
    background: rgba(56, 189, 248, 0.05);
}

/* Holo-Deck Content & Panes */
.holodeck-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.holo-pane {
    display: none;
    animation: paneFadeIn 0.25s var(--ease);
}

.holo-pane.is-active {
    display: block;
}

@keyframes paneFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Blueprint */
.blueprint-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr);
    gap: 24px;
}

.blueprint-img-wrap {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    background: #000;
}

.holo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.blueprint-img-wrap:hover .holo-image {
    transform: scale(1.04);
}

.blueprint-hud-overlay span {
    position: absolute;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: var(--aqua);
    background: rgba(7, 11, 15, 0.75);
    padding: 2px 6px;
    border-radius: 2px;
    pointer-events: none;
}

.hud-coord-tl { top: 8px; left: 8px; }
.hud-coord-tr { top: 8px; right: 8px; }
.hud-coord-bl { bottom: 8px; left: 8px; }
.hud-coord-br { bottom: 8px; right: 8px; }

.blueprint-quick-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.meta-box {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    font-family: "Share Tech Mono", monospace;
}

.m-lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--dim);
}

.m-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

.m-val.green { color: #10b981; }

.holo-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.15;
}

.holo-desc {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.holo-highlight-box {
    border: 1px solid color-mix(in srgb, var(--aqua) 40%, var(--line));
    border-radius: var(--radius);
    background: rgba(56, 189, 248, 0.05);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.holo-highlight-box h4 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    color: var(--aqua);
    display: flex;
    align-items: center;
    gap: 8px;
}

.holo-solved {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.5;
}

.holo-metrics-row h4,
.holo-tech-wrap h4 {
    font-size: 0.85rem;
    font-family: "Share Tech Mono", monospace;
    color: var(--dim);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metrics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.m-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    color: var(--aqua);
}

.holo-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Tab 2: Live Sandbox */
.sandbox-shell {
    min-height: 380px;
}

/* Spotify Sandbox */
.sandbox-spotify {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
}

.sb-player-card {
    width: min(540px, 100%);
    border: 1px solid #1db954;
    border-radius: var(--radius);
    background: rgba(29, 185, 84, 0.06);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(29, 185, 84, 0.15);
}

.spotify-big-icon {
    font-size: 4rem;
    color: #1db954;
}

.sb-player-details h3 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.sb-player-details p {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.sb-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
    margin-bottom: 14px;
}

.sb-bars span {
    width: 4px;
    height: 6px;
    background: #1db954;
    border-radius: 2px;
}

.sandbox-spotify.is-playing .sb-bars span {
    animation: sfxBounce 0.8s infinite alternate ease-in-out;
}
.sandbox-spotify.is-playing .sb-bars span:nth-child(2) { animation-delay: 0.15s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(3) { animation-delay: 0.3s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(4) { animation-delay: 0.2s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(5) { animation-delay: 0.4s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(6) { animation-delay: 0.1s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(7) { animation-delay: 0.35s; }
.sandbox-spotify.is-playing .sb-bars span:nth-child(8) { animation-delay: 0.25s; }

.sb-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #1db954;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sb-play-btn:hover {
    transform: scale(1.05);
}

/* Arcade Sandbox */
.sandbox-arcade {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.arcade-hud-row {
    display: flex;
    justify-content: space-between;
    width: min(600px, 100%);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.95rem;
    color: #f59e0b;
}

.a-restart-btn {
    border: 1px solid #f59e0b;
    border-radius: 4px;
    background: transparent;
    color: #f59e0b;
    padding: 2px 10px;
    cursor: pointer;
}

.arcade-full-canvas {
    width: min(600px, 100%);
    height: auto;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0b0f14;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.arcade-instructions {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    color: var(--dim);
}

/* AI Sandbox */
.sandbox-ai h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: #a855f7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sandbox-ai p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.sb-ai-options {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.sb-ai-chip {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    cursor: pointer;
}

.sb-ai-chip.is-active {
    background: #a855f7;
    color: #fff;
    border-color: transparent;
}

.sb-ai-terminal {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #080c10;
    padding: 16px;
}

.sb-ai-output {
    min-height: 80px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* NexusDoc AI Sandbox */
.sandbox-nexusdoc {
    padding: 10px 4px;
}

.nd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.85rem;
    color: #a78bfa;
}

.nd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: #10b981;
}

.nd-terminal-box {
    background: #06090e;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.84rem;
}

.nd-prompt-line {
    margin-bottom: 12px;
    color: var(--ink);
}

.nd-results {
    display: grid;
    gap: 8px;
    border-top: 1px dashed rgba(139, 92, 246, 0.2);
    padding-top: 10px;
}

.nd-result-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid #8b5cf6;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

.nd-metric {
    font-size: 0.72rem;
    color: #a78bfa;
    font-weight: 700;
}

.nd-text {
    font-size: 0.82rem;
    color: var(--ink);
}

.sandbox-generic {
    text-align: center;
    padding: 40px 20px;
}

.sg-icon {
    font-size: 3rem;
    color: var(--aqua);
    margin-bottom: 12px;
}

.sg-box {
    max-width: 500px;
    margin: 16px auto 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--muted);
}

/* Tab 3: Radar */
.radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.radar-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
}

.radar-card h3 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--aqua);
}

.stack-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.si-title {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.75rem;
    color: var(--dim);
}

.si-val {
    font-size: 0.9rem;
    color: var(--ink);
}

.radar-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.radar-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rb-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: "Share Tech Mono", monospace;
    color: var(--muted);
}

.rb-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.rb-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--aqua), #00d4ff);
    border-radius: 4px;
    transition: width 0.8s var(--ease);
}

/* Tab 4: Launch */
.launch-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 10px;
}

.launch-card h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--aqua);
}

.launch-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 20px;
}

.clone-command-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #06090d;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 24px;
    font-family: "Share Tech Mono", monospace;
}

.clone-command-box code {
    color: var(--aqua);
    font-size: 0.92rem;
    overflow-x: auto;
}

.btn-copy-clone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-clone:hover {
    background: var(--aqua);
    color: #000;
}

.btn-copy-clone.copied {
    background: #10b981;
    color: #000;
}

.launch-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-launch {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.live-btn {
    background: var(--aqua);
    color: #061014;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.5);
}

.repo-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.repo-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ===================================
   Roaming Chatbot
   =================================== */

.chatbot-runner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1250;
    width: 96px;
    height: 108px;
    transform: translate3d(calc(100vw - 120px), calc(100vh - 180px), 0);
    transition: transform 0.36s var(--ease);
    will-change: transform;
}

.chatbot-runner.is-dragging {
    transition: none;
}

.chatbot-avatar {
    position: absolute;
    left: 13px;
    top: 12px;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(205, 218, 230, 0.35);
    border-radius: 23px;
    background: linear-gradient(145deg, #d9e5e8, #91aeb3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: grab;
    transform-style: preserve-3d;
    animation: botBreathe 3.8s ease-in-out infinite;
    touch-action: none;
    user-select: none;
    will-change: transform;
}

.chatbot-avatar:active {
    cursor: grabbing;
}

.bot-antenna {
    position: absolute;
    left: 50%;
    top: -13px;
    width: 2px;
    height: 15px;
    border-radius: 2px;
    background: #91aeb3;
    transform: translateX(-50%);
    transform-origin: bottom;
}

.bot-antenna::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    transform: translateX(-50%);
}

.bot-arm,
.bot-leg {
    position: absolute;
    z-index: -1;
    display: block;
    background: #91aeb3;
    border: 1px solid rgba(205, 218, 230, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bot-arm {
    top: 29px;
    width: 13px;
    height: 32px;
    border-radius: 10px;
    transform-origin: top center;
}

.bot-arm::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 15px;
    height: 11px;
    border-radius: 50%;
    background: #d9e5e8;
    transform: translateX(-50%);
}

.bot-arm-left {
    left: -10px;
    transform: rotate(15deg);
}

.bot-arm-right {
    right: -10px;
    transform: rotate(-15deg);
}

.bot-leg {
    bottom: -21px;
    width: 14px;
    height: 28px;
    border-radius: 0 0 8px 8px;
    transform-origin: top center;
}

.bot-leg::after {
    content: "";
    position: absolute;
    bottom: -3px;
    width: 20px;
    height: 9px;
    border-radius: 7px 7px 4px 4px;
    background: #d9e5e8;
}

.bot-leg-left {
    left: 13px;
}

.bot-leg-left::after {
    right: 0;
}

.bot-leg-right {
    right: 13px;
}

.bot-leg-right::after {
    left: 0;
}

.bot-face {
    position: relative;
    width: 51px;
    height: 42px;
    overflow: hidden;
    border-radius: 17px;
    background: #17232c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.bot-face::before,
.bot-face::after {
    content: "";
    position: absolute;
    top: 13px;
    width: 7px;
    height: 9px;
    border-radius: 50%;
    background: #d8f7f3;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
    transform: translate(var(--eye-x, 0), var(--eye-y, 0)) scaleY(var(--eye-scale, 1));
    animation: botBlink 5.8s infinite;
}

.bot-face::before {
    left: 12px;
}

.bot-face::after {
    right: 12px;
}

.bot-mouth {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 14px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
    border: 2px solid #d8f7f3;
    border-top: 0;
    background: transparent;
}

.bot-blush {
    position: absolute;
    bottom: 8px;
    width: 10px;
    height: 5px;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.25;
    filter: blur(0.4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bot-blush-left {
    left: 5px;
}

.bot-blush-right {
    right: 5px;
}

.bot-star {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(199, 168, 107, 0.75);
}

.bot-star-1 {
    left: 2px;
    top: -6px;
}

.bot-star-2 {
    right: 3px;
    top: 1px;
    background: var(--aqua);
}

.bot-star-3 {
    left: 50%;
    top: -18px;
    background: var(--coral);
}

.chatbot-runner.is-hovering .chatbot-avatar {
    animation: botHover 1.05s var(--ease) both;
}

.chatbot-runner.is-hovering .bot-blush,
.chatbot-runner.is-chat-open .bot-blush {
    opacity: 0.9;
    transform: scale(1.22);
}

.chatbot-runner.is-hovering .bot-mouth,
.chatbot-runner.is-chat-open .bot-mouth {
    width: 18px;
    height: 9px;
}

.chatbot-runner.is-clicking .chatbot-avatar {
    animation: botClick 0.36s var(--ease) both;
}

.chatbot-runner.is-clicking .bot-face::before,
.chatbot-runner.is-clicking .bot-face::after {
    --eye-scale: 0.08;
}

.chatbot-runner.is-dragging .chatbot-avatar {
    animation: none;
    transform: rotate(var(--bot-tilt, 0deg)) scale(1.03);
}

.chatbot-runner.is-dragging .bot-mouth {
    width: 12px;
    height: 4px;
    border-radius: 12px;
}

.chatbot-runner.is-dragging .bot-arm-left {
    transform: rotate(34deg);
}

.chatbot-runner.is-dragging .bot-arm-right {
    transform: rotate(-34deg);
}

.chatbot-runner.is-dropping .chatbot-avatar {
    animation: botDrop 0.52s var(--ease) both;
}

.chatbot-runner.is-dizzy .chatbot-avatar {
    animation: botDizzy 1.15s ease-in-out both;
}

.chatbot-runner.is-dizzy .bot-face::before,
.chatbot-runner.is-dizzy .bot-face::after {
    top: 11px;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #d8f7f3;
    border-left-color: transparent;
    animation: botEyeSpin 0.42s linear infinite;
}

.chatbot-runner.is-dizzy .bot-face::before {
    left: 9px;
}

.chatbot-runner.is-dizzy .bot-face::after {
    right: 9px;
}

.chatbot-runner.is-dizzy .bot-star {
    animation: botStarOrbit 0.84s ease-in-out infinite;
}

.chatbot-runner.is-dizzy .bot-star-2 {
    animation-delay: -0.18s;
}

.chatbot-runner.is-dizzy .bot-star-3 {
    animation-delay: -0.34s;
}

.chatbot-runner.is-chat-open .chatbot-avatar {
    animation: botAttend 1.1s var(--ease) both;
}

.chatbot-runner.is-chat-open .bot-arm-left {
    animation: botWaveLeft 0.48s ease-in-out 2;
}

.chatbot-runner.is-chat-open .bot-arm-right {
    animation: botWaveRight 0.48s ease-in-out 2;
}

.chatbot-panel {
    position: fixed;
    left: var(--chat-left, 24px);
    top: var(--chat-top, 24px);
    z-index: 1245;
    width: min(380px, calc(100vw - 24px));
    height: min(520px, calc(100vh - 24px));
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.12);
    transform-origin: var(--chat-origin-x, 50%) var(--chat-origin-y, 50%);
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.chatbot-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.chat-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.chat-title {
    margin: 0;
    font-weight: 850;
}

.chat-status {
    color: var(--aqua);
    font-size: 0.82rem;
}

.chat-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow: auto;
}

.chat-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-msg.bot {
    align-self: flex-start;
    border-color: color-mix(in srgb, var(--aqua) 38%, var(--line));
}

.chat-msg.user {
    align-self: flex-end;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: transparent;
}

.chat-msg.error {
    border-color: color-mix(in srgb, var(--coral) 62%, var(--line));
    background: rgba(232, 139, 145, 0.12);
}

.chat-msg.typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 58px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aqua);
    animation: typingPulse 0.9s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.24s;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 14px 10px;
}

.chat-suggestion {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.chat-suggestion:hover {
    color: var(--ink);
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
}

.chat-input {
    min-height: 46px;
    max-height: 106px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    padding: 11px 12px;
    outline: none;
    line-height: 1.35;
    resize: none;
}

.chat-send {
    width: 46px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-send:disabled {
    cursor: wait;
    opacity: 0.55;
}

.chat-send:not(:disabled):hover {
    transform: translateY(-1px);
}

@keyframes botBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes botHover {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-7px) scale(1.035); }
    100% { transform: translateY(-3px) scale(1.015); }
}

@keyframes botClick {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-6px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes botBlink {
    0%, 43%, 47%, 100% {
        transform: translate(var(--eye-x, 0), var(--eye-y, 0)) scaleY(var(--eye-scale, 1));
    }
    45% {
        transform: translate(var(--eye-x, 0), var(--eye-y, 0)) scaleY(0.12);
    }
}

@keyframes botDrop {
    0% { transform: translateY(0) scale(1); }
    28% { transform: translateY(8px) scale(1.08, 0.88); }
    62% { transform: translateY(-5px) scale(0.96, 1.06); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes botDizzy {
    0% { transform: rotate(0) translateY(0); }
    20% { transform: rotate(-8deg) translateY(-4px); }
    42% { transform: rotate(8deg) translateY(2px); }
    68% { transform: rotate(-5deg) translateY(-2px); }
    100% { transform: rotate(0) translateY(0); }
}

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

@keyframes botStarOrbit {
    0% { opacity: 0; transform: translate(0, 0) scale(0.55); }
    35% { opacity: 1; transform: translate(7px, -7px) scale(1); }
    75% { opacity: 0.75; transform: translate(-8px, -2px) scale(0.75); }
    100% { opacity: 0; transform: translate(0, 0) scale(0.55); }
}

@keyframes botAttend {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-6px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes typingPulse {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes botWaveLeft {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(62deg); }
}

@keyframes botWaveRight {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-62deg); }
}

@keyframes botKickLeft {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(20deg); }
}

@keyframes botKickRight {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(-20deg); }
}

@keyframes antennaWiggle {
    0%, 100% { transform: translateX(-50%) rotate(0); }
    50% { transform: translateX(-50%) rotate(18deg); }
}

/* ===================================
   Reveal States
   =================================== */

.reveal-ready {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #floating-icons-3d {
        position: relative;
        inset: auto;
        width: min(460px, 100%);
        height: 320px;
        margin: 12px auto 0;
        transform: none;
    }

    .about-text,
    .project-lab,
    .project-nexus,
    .blueprint-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-column: auto;
        grid-row: auto;
    }

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

    .project-rail-track .project-card {
        width: min(470px, calc(100% - 112px));
    }

    .stats-recap-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .navbar {
        top: 10px;
        padding: 0 10px;
    }

    .nav-container {
        min-height: 58px;
        padding: 8px 10px;
    }

    .nav-logo {
        min-width: 0;
        flex: 1;
    }

    .logo-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        display: inline-grid;
    }

    .nav-menu {
        position: fixed;
        top: 82px;
        left: 10px;
        right: 10px;
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--panel-solid);
        box-shadow: var(--shadow);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0 12px;
    }

    .hero-section {
        min-height: auto;
        padding: 108px 16px 64px;
    }

    .hero-section::before {
        inset: 78px 10px 18px;
    }

    .hero-title {
        font-size: 3.1rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-buttons,
    .hero-social {
        gap: 10px;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .about-content,
    .stats-recap-content {
        padding: 20px;
    }

    .projects-grid,
    .skills-grid,
    .stats-recap-grid {
        grid-template-columns: 1fr;
    }

    .project-lab,
    .project-nexus {
        padding: 14px;
    }

    .nexus-control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .nexus-perspective-toggle {
        justify-content: center;
    }

    .nexus-quick-actions {
        justify-content: space-between;
    }

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

    .project-lab-main {
        min-height: 650px;
    }

    .project-rail-header {
        flex-direction: column;
        padding: 18px 16px 0;
    }

    .project-rail-shell,
    .project-rail-viewport {
        min-height: 540px;
    }

    .project-rail-track .project-card {
        width: min(360px, calc(100% - 54px));
        min-height: 440px;
    }

    .project-rail-track .project-image {
        height: 190px;
    }

    .project-nav {
        top: auto;
        bottom: 14px;
        transform: none;
    }

    .project-nav:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .project-prev {
        left: 16px;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .project-next {
        right: 16px;
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .project-prev span,
    .project-next span {
        display: none;
    }

    .project-image {
        height: 190px;
    }

    .footer-content,
    .stats-recap-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .progress-container {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .chatbot-runner {
        width: 90px;
        height: 102px;
        transform: translate3d(calc(100vw - 106px), calc(100vh - 164px), 0);
    }

    .chatbot-panel {
        width: min(380px, calc(100vw - 20px));
        height: min(520px, calc(100vh - 20px));
    }
}

@media (max-width: 520px) {
    body .container {
        width: min(100% - 28px, 1160px);
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    #floating-icons-3d {
        height: 260px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 42px;
    }

    .timeline-dot {
        left: 4px;
    }

    .project-lab-title {
        font-size: 1.55rem;
    }

    .project-lab-main {
        min-height: 618px;
    }

    .project-rail-shell,
    .project-rail-viewport {
        min-height: 500px;
    }

    .project-rail-track .project-card {
        width: min(320px, calc(100% - 34px));
    }

    .project-controls {
        display: grid;
    }

    .holodeck-modal {
        padding: 8px;
    }

    .holodeck-panel {
        max-height: calc(100vh - 16px);
    }

    .blueprint-img-wrap {
        height: 200px;
    }

    .holodeck-tabs {
        padding: 0 8px;
    }

    .holo-tab {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .project-modal {
        padding: 10px;
    }

    .project-modal-content {
        max-height: calc(100vh - 20px);
    }

    .project-modal-image {
        height: 220px;
    }

    .progress-dots {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cursor-trail {
        display: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-3d-container,
    .background-animation,
    .cursor-trail {
        display: none !important;
    }
}

@media print {
    .navbar,
    .hero-3d-container,
    .background-animation,
    .scanlines,
    .noise-overlay,
    .rgb-glitch,
    .progress-container,
    .chatbot-runner,
    .back-to-top {
        display: none !important;
    }

    body {
        color: #111;
        background: #fff;
    }

    .section {
        padding: 32px 0;
    }
}

/* ==========================================================================
   DEVCORE 3.2 EXPANSION SUITE: COMMAND PALETTE, LIVE PRESENCE, SFX & MATRIX
   ========================================================================== */

/* --- Navbar Actions: Command Trigger & SFX Toggle --- */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cmd-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.cmd-trigger-btn:hover {
    color: var(--ink);
    border-color: var(--aqua);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.cmd-trigger-btn .cmd-icon {
    font-size: 0.8rem;
    color: var(--aqua);
}

.cmd-kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 4px;
    line-height: 1;
}

.sfx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.sfx-btn:hover {
    color: var(--aqua);
    border-color: var(--aqua);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
}

.sfx-btn.is-active {
    color: var(--aqua);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* --- Hero Real-time Presence Card --- */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    margin-bottom: 22px;
    background: rgba(14, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--muted);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.status-radar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.radar-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.radar-wave {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.status-text {
    color: var(--ink);
    font-size: 0.78rem;
}

.status-divider {
    color: var(--dim);
}

.status-clock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
}

.status-clock i {
    color: var(--aqua);
    font-size: 0.75rem;
}

.status-clock .time-val {
    color: var(--ink);
    font-weight: 700;
}

/* --- Command Palette Native <dialog> --- */
dialog.cmd-palette-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(650px, 94vw);
    max-height: 82vh;
    padding: 0;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    background: rgba(9, 14, 26, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 45px rgba(56, 189, 248, 0.18);
    color: var(--ink);
    z-index: 1000000;
    overflow: hidden;
    display: none;
}

dialog.cmd-palette-dialog[open],
dialog.cmd-palette-dialog:modal {
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    animation: cmdDialogIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog.cmd-palette-dialog::backdrop {
    background: rgba(4, 7, 14, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}

@keyframes cmdDialogIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cmd-palette-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
}

.cmd-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.cmd-search-icon {
    font-size: 1.1rem;
    color: var(--aqua);
}

.cmd-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    font-family: inherit;
}

.cmd-input::placeholder {
    color: var(--dim);
}

.cmd-esc-badge {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dim);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmd-esc-badge:hover {
    color: var(--ink);
    border-color: var(--line-light);
    background: rgba(255, 255, 255, 0.1);
}

.cmd-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.cmd-filter-tabs::-webkit-scrollbar {
    display: none;
}

.cmd-tab-chip {
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s var(--ease);
}

.cmd-tab-chip:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.cmd-tab-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.cmd-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 420px;
    overscroll-behavior: contain;
}

.cmd-group-header {
    padding: 8px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.cmd-item:hover,
.cmd-item.selected {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.cmd-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--aqua);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.cmd-item.selected .cmd-item-icon {
    background: var(--aqua);
    color: #040812;
}

.cmd-item-content {
    flex: 1;
    min-width: 0;
}

.cmd-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.cmd-item-desc {
    font-size: 0.76rem;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-item-action {
    font-size: 0.72rem;
    color: var(--dim);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.cmd-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--dim);
    font-size: 0.92rem;
}

.cmd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.76rem;
    color: var(--dim);
}

.cmd-shortcut-hints {
    display: flex;
    gap: 12px;
}

.cmd-shortcut-hints span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cmd-shortcut-hints kbd {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-size: 0.7rem;
    font-family: inherit;
}

.cmd-brand {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.74rem;
    color: var(--dim);
}

/* --- Interactive Toast Notification System --- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 48px);
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(10, 16, 32, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
    color: var(--ink);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    color: var(--aqua);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.toast-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--dim);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px;
    transition: color 0.15s ease;
}

.toast-close:hover {
    color: var(--ink);
}

/* --- Fullscreen Interactive Matrix Rain Overlay --- */
.matrix-rain-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: #02060d;
    display: flex;
    flex-direction: column;
}

.matrix-rain-overlay[hidden] {
    display: none !important;
}

#matrix-rain-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.matrix-hud {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(10, 20, 15, 0.88);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
    font-family: "Share Tech Mono", monospace;
}

.matrix-tag {
    color: #10b981;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.matrix-exit-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #02060d;
    background: #10b981;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.matrix-exit-btn:hover {
    background: #34d399;
    transform: scale(1.05);
}

/* Polish: project rail inactive cards dimming & content blur */
.project-rail-track .project-card:not(.is-active) .project-content {
    opacity: 0.22;
    filter: blur(1.5px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Polish: project-nexus top spacing so it never hits navbar */
.project-nexus {
    margin-top: 10px;
}

@media (max-width: 640px) {
    .cmd-trigger-btn .cmd-text,
    .cmd-trigger-btn .cmd-kbd {
        display: none;
    }
    
    .hero-status-pill {
        flex-direction: column;
        gap: 6px;
        border-radius: 12px;
        text-align: center;
        padding: 8px 14px;
    }

    .hero-status-pill .status-divider {
        display: none;
    }

    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}

