:root {
    --bg: #071019;
    --bg-soft: #0e1b25;
    --surface: rgba(12, 28, 39, 0.72);
    --surface-strong: #0f2431;
    --line: rgba(123, 186, 213, 0.2);
    --text-main: #ebf6ff;
    --text-soft: #9eb7c6;
    --accent-cyan: #3ed6ff;
    --accent-lime: #9dffb2;
    --accent-amber: #ffbf6f;
    --danger: #ff7d7d;
    --shadow-soft: 0 18px 48px rgba(2, 11, 17, 0.4);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;
    --bg-glow-a: rgba(62, 214, 255, 0.18);
    --bg-glow-b: rgba(255, 191, 111, 0.14);
    --bg-glow-c: rgba(157, 255, 178, 0.1);
    --bg-grad-a: #061018;
    --bg-grad-b: #091923;
    --bg-grad-c: #061118;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 8%, var(--bg-glow-a), transparent 34%),
        radial-gradient(circle at 88% 0%, var(--bg-glow-b), transparent 30%),
        radial-gradient(circle at 30% 100%, var(--bg-glow-c), transparent 32%),
        linear-gradient(168deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 46%, var(--bg-grad-c) 100%);
    overflow-x: hidden;
}

.skip-link {
    position: fixed;
    top: -48px;
    left: 14px;
    z-index: 220;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(62, 214, 255, 0.55);
    background: rgba(6, 19, 27, 0.95);
    color: var(--text-main);
    font-size: 0.85rem;
    transition: top 180ms ease;
}

.skip-link:focus-visible {
    top: 10px;
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.14;
    background-image: radial-gradient(rgba(222, 245, 255, 0.55) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
}

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

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

.mono {
    font-family: "IBM Plex Mono", monospace;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(4, 14, 20, 0.76);
    border-bottom: 1px solid rgba(108, 170, 197, 0.2);
    overflow: visible;
}

.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: rgba(99, 160, 188, 0.2);
    pointer-events: none;
}

#scroll-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(62, 214, 255, 0.95), rgba(157, 255, 178, 0.9));
    box-shadow: 0 0 16px rgba(62, 214, 255, 0.5);
    transition: width 100ms linear;
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(62, 214, 255, 0.9), rgba(157, 255, 178, 0.88));
    color: #06202d;
    box-shadow: 0 8px 20px rgba(62, 214, 255, 0.3);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(120, 183, 209, 0.35);
    background: rgba(10, 28, 38, 0.75);
    padding: 0;
    place-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #cce7f5;
    transition: transform 200ms ease, opacity 180ms ease;
}

.topbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.topbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.topbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.top-links a {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.top-links a:hover {
    color: var(--text-main);
    background: rgba(62, 214, 255, 0.12);
}

.top-links a.active {
    color: var(--text-main);
    background: rgba(62, 214, 255, 0.14);
    border-color: rgba(62, 214, 255, 0.4);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 27, 37, 0.6);
}

.lang-switch button {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: background 220ms ease, color 220ms ease;
}

.lang-switch button.active {
    background: linear-gradient(135deg, rgba(62, 214, 255, 0.26), rgba(157, 255, 178, 0.2));
    color: var(--text-main);
}

.lang-switch button[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(62, 214, 255, 0.26), rgba(157, 255, 178, 0.2));
    color: var(--text-main);
}

a:focus-visible,
button:focus-visible,
.project-card:focus-visible,
.icon-tech-card:focus-visible,
.tech-node:focus-visible {
    outline: 2px solid rgba(62, 214, 255, 0.6);
    outline-offset: 2px;
}

.section {
    padding: clamp(52px, 7vw, 92px) 0;
}

section[id] {
    scroll-margin-top: 98px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(94vh, 980px);
    display: flex;
    align-items: center;
    padding-top: 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(34px);
    pointer-events: none;
    transition: transform 140ms linear;
}

.hero-orb.one {
    width: 280px;
    height: 280px;
    top: 4%;
    left: 4%;
    background: rgba(62, 214, 255, 0.18);
}

.hero-orb.two {
    width: 220px;
    height: 220px;
    right: 7%;
    bottom: 10%;
    background: rgba(255, 191, 111, 0.16);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(62, 214, 255, 0.35);
    background: rgba(13, 35, 46, 0.64);
    color: #bcefff;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 12px rgba(157, 255, 178, 0.9);
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.hero-title {
    margin-top: 16px;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero-title .name {
    display: block;
    color: #d8f4ff;
    text-shadow: 0 10px 26px rgba(31, 158, 196, 0.26);
}

.hero-role-wrap {
    margin-top: 14px;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--text-soft);
}

.typed-role {
    color: var(--accent-cyan);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    margin-left: 6px;
    vertical-align: -0.2em;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-lime));
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-summary {
    margin-top: 18px;
    max-width: 660px;
    color: var(--text-soft);
    font-size: clamp(0.95rem, 1.9vw, 1.08rem);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.btn:focus-visible {
    outline: 2px solid rgba(62, 214, 255, 0.6);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(130deg, rgba(62, 214, 255, 0.95), rgba(157, 255, 178, 0.95));
    color: #05202b;
    box-shadow: 0 12px 32px rgba(62, 214, 255, 0.26);
}

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

.btn-secondary {
    border-color: rgba(120, 179, 206, 0.4);
    background: rgba(11, 29, 39, 0.72);
    color: #d7ebf6;
}

.btn-secondary:hover {
    border-color: rgba(62, 214, 255, 0.6);
    color: var(--text-main);
    transform: translateY(-2px);
}

.hero-meta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    border: 1px solid rgba(124, 188, 212, 0.25);
    background: rgba(11, 30, 40, 0.7);
    border-radius: 999px;
    padding: 8px 12px;
    color: #b9d6e7;
    font-size: 0.82rem;
}

.hero-panel {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(122, 186, 214, 0.24);
    background: linear-gradient(170deg, rgba(18, 42, 57, 0.76), rgba(11, 28, 38, 0.74));
    box-shadow: var(--shadow-soft);
    padding: clamp(18px, 2.5vw, 26px);
    overflow: hidden;
    isolation: isolate;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -70% 35% 45% -35%;
    background: radial-gradient(circle, rgba(157, 255, 178, 0.17), transparent 65%);
    z-index: -1;
}

.mini-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec2d5;
}

.focus-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-item {
    border: 1px solid rgba(128, 188, 214, 0.22);
    border-radius: 12px;
    background: rgba(9, 26, 35, 0.75);
    padding: 10px;
}

.focus-item strong {
    display: block;
    font-size: 0.95rem;
    color: #dff6ff;
}

.focus-item span {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.ticker {
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(125, 186, 214, 0.2);
    background: rgba(7, 22, 31, 0.75);
}

.ticker-track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 12px;
    animation: ticker 24s linear infinite;
}

.ticker-chip {
    white-space: nowrap;
    font-size: 0.78rem;
    color: #c6e6f6;
    border: 1px solid rgba(126, 189, 214, 0.28);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(14, 38, 50, 0.7);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.section-head h2 {
    font-size: clamp(1.5rem, 3.8vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--text-soft);
    max-width: 600px;
}

.glassy {
    border: 1px solid rgba(122, 185, 213, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(13, 33, 46, 0.72), rgba(8, 23, 32, 0.82));
    box-shadow: var(--shadow-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.panel {
    padding: clamp(18px, 2.4vw, 26px);
}

.about-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.about-list li {
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(119, 183, 209, 0.2);
    background: rgba(10, 28, 39, 0.76);
    padding: 10px 12px;
    color: #c8dcea;
    font-size: 0.94rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.about-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 0.45em;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
    box-shadow: 0 0 14px rgba(62, 214, 255, 0.75);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    border: 1px solid rgba(123, 185, 212, 0.24);
    background: rgba(11, 30, 41, 0.75);
    border-radius: 14px;
    padding: 14px;
}

.metric-value {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #dcf7ff;
}

.metric-label {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.skills-shell {
    padding: clamp(18px, 2.6vw, 28px);
}

.skills-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tab-btn {
    border: 1px solid rgba(122, 184, 211, 0.28);
    background: rgba(9, 26, 35, 0.8);
    color: #bfd7e6;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.86rem;
    transition: all 220ms ease;
}

.tab-btn.active {
    color: #e8f8ff;
    border-color: rgba(62, 214, 255, 0.62);
    background: linear-gradient(130deg, rgba(62, 214, 255, 0.2), rgba(157, 255, 178, 0.14));
}

.skill-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.skill-summary {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.about-card-text {
    margin-top: 10px;
}

.skill-tags {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-tag {
    border-radius: 999px;
    border: 1px solid rgba(126, 186, 212, 0.26);
    background: rgba(8, 26, 35, 0.75);
    color: #c7e5f5;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.skill-list {
    display: grid;
    gap: 10px;
}

.skill-item {
    border: 1px solid rgba(126, 184, 210, 0.22);
    border-radius: 12px;
    background: rgba(10, 27, 37, 0.78);
    padding: 10px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #d9ecf8;
}

.skill-bar {
    margin-top: 8px;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(46, 94, 114, 0.3);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
    box-shadow: 0 0 14px rgba(62, 214, 255, 0.35);
    width: 0;
    transition: width 640ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

.section-anchor {
    position: relative;
    top: -86px;
    display: block;
    height: 0;
    pointer-events: none;
}

.command-hub {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 12px;
    padding: clamp(14px, 2vw, 20px);
}

.command-about {
    border: 1px solid rgba(120, 183, 210, 0.24);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(11, 30, 42, 0.88), rgba(8, 23, 32, 0.86));
    display: grid;
    gap: 12px;
}

.command-shell-wrap {
    display: grid;
    gap: 6px;
}

.terminal-shell-pro {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(2, 12, 18, 0.55);
}

.terminal-shell-pro::before {
    content: "";
    position: absolute;
    inset: -60% 60% 56% -40%;
    background: radial-gradient(circle, rgba(62, 214, 255, 0.26), transparent 70%);
    pointer-events: none;
}

.terminal-shell-pro::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(188, 233, 255, 0.015),
        rgba(188, 233, 255, 0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: screen;
    opacity: 0.28;
}

.terminal-shell-cli {
    border: 1px solid #415165;
    background: #1e1e1e;
}

.terminal-top-cli {
    background: #2d2d2d;
    border-bottom: 1px solid #374151;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.1);
}

.terminal-host {
    font-size: 0.75rem;
    color: #a7b5c6;
    letter-spacing: 0.01em;
}

.terminal-header-spacer {
    width: 40px;
    height: 1px;
    flex-shrink: 0;
}

.command-about .about-list {
    margin-top: 6px;
}

.command-about .about-list li {
    font-size: 0.87rem;
    background: rgba(9, 27, 37, 0.82);
}

.terminal-footnote {
    margin: 0;
    text-align: center;
    color: #8fa7b6;
    font-size: 0.74rem;
}

.terminal-footnote-key {
    color: #9bbfce;
}

.icon-stack-shell {
    display: grid;
    gap: 12px;
    padding: clamp(12px, 1.7vw, 18px);
}

.icon-stack-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-filter-btn {
    border: 1px solid rgba(122, 184, 211, 0.28);
    background: rgba(9, 26, 35, 0.8);
    color: #bfd7e6;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.83rem;
    transition: all 220ms ease;
}

.icon-filter-btn.active {
    color: #e8f8ff;
    border-color: rgba(62, 214, 255, 0.62);
    background: linear-gradient(130deg, rgba(62, 214, 255, 0.2), rgba(157, 255, 178, 0.14));
}

.icon-stack-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.68fr);
    gap: 12px;
    align-items: start;
}

.icon-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.icon-tech-card {
    border: 1px solid rgba(124, 184, 211, 0.22);
    border-radius: 14px;
    background: rgba(10, 28, 38, 0.8);
    padding: 10px;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
    display: grid;
    gap: 6px;
}

.icon-tech-card.status-current {
    box-shadow: inset 0 0 0 1px rgba(62, 214, 255, 0.05);
}

.icon-tech-card.status-growth {
    box-shadow: inset 0 0 0 1px rgba(255, 191, 111, 0.08);
}

.icon-tech-card:hover,
.icon-tech-card:focus-visible,
.icon-tech-card.active {
    transform: translateY(-2px);
    border-color: rgba(62, 214, 255, 0.55);
    background: rgba(12, 33, 45, 0.9);
}

.icon-tech-card.status-growth:hover,
.icon-tech-card.status-growth:focus-visible,
.icon-tech-card.status-growth.active {
    border-color: rgba(255, 191, 111, 0.55);
}

.icon-tech-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.icon-tech-glyph {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(128, 190, 215, 0.3);
    background: rgba(7, 23, 32, 0.82);
    display: inline-grid;
    place-items: center;
}

.icon-tech-glyph i {
    font-size: 1.4rem;
    line-height: 1;
}

.icon-tech-glyph img {
    width: 24px;
    height: 24px;
    display: block;
}

.icon-fallback {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: #d9f2ff;
}

.icon-tech-glyph .icon-fallback {
    font-size: 0.62rem;
}

.icon-tech-card h3 {
    font-size: 0.92rem;
    line-height: 1.15;
}

.icon-tech-family {
    color: var(--text-soft);
    font-size: 0.76rem;
    line-height: 1.25;
}

.icon-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.icon-tech-tags span {
    font-size: 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 183, 208, 0.22);
    background: rgba(9, 24, 32, 0.75);
    color: #c6dfed;
    padding: 3px 7px;
}

.icon-focus {
    border: 1px solid rgba(124, 184, 211, 0.24);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(12, 31, 42, 0.9), rgba(8, 23, 31, 0.88));
    display: grid;
    gap: 10px;
    position: sticky;
    top: 94px;
}

.icon-focus-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-focus-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(128, 190, 215, 0.34);
    background: rgba(8, 24, 33, 0.86);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.icon-focus-mark i {
    font-size: 1.9rem;
    line-height: 1;
}

.icon-focus-mark img {
    width: 31px;
    height: 31px;
    display: block;
}

.icon-focus-mark .icon-fallback {
    font-size: 0.78rem;
}

.icon-focus .project-stack {
    margin-top: 0;
}

.projects-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

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

.project-card {
    border: 1px solid rgba(124, 184, 209, 0.24);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(12, 31, 42, 0.9), rgba(8, 23, 31, 0.88));
    padding: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 250ms ease, border-color 250ms ease;
    transform-style: preserve-3d;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: -40% 40% 55% -40%;
    background: radial-gradient(circle, rgba(62, 214, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 260ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(62, 214, 255, 0.55);
}

.project-card.active {
    border-color: rgba(62, 214, 255, 0.64);
    box-shadow: inset 0 0 0 1px rgba(62, 214, 255, 0.25);
}

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

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

.project-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b9d7e8;
    border-radius: 999px;
    border: 1px solid rgba(124, 186, 211, 0.26);
    padding: 4px 8px;
    background: rgba(9, 27, 35, 0.8);
}

.project-year {
    font-size: 0.72rem;
    color: #87a8ba;
}

.project-title {
    font-size: 1.05rem;
    line-height: 1.2;
}

.project-desc {
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.89rem;
    min-height: 64px;
}

.project-meta {
    font-size: 0.72rem;
    color: #8bb2c5;
    margin-top: 8px;
}

.project-stack {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-stack span {
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(122, 183, 208, 0.24);
    background: rgba(9, 24, 32, 0.84);
    color: #c8e4f4;
    padding: 4px 8px;
}

.tech-atlas-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: start;
}

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

.tech-node {
    border: 1px solid rgba(124, 184, 211, 0.22);
    border-radius: 14px;
    background: rgba(10, 28, 38, 0.78);
    padding: 12px;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tech-node:hover,
.tech-node:focus-visible,
.tech-node.active {
    transform: translateY(-2px);
    border-color: rgba(62, 214, 255, 0.55);
    background: rgba(12, 33, 45, 0.88);
}

.tech-node h3 {
    font-size: 0.98rem;
}

.tech-node p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.tech-focus-panel {
    display: grid;
    gap: 10px;
}

.tech-focus-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tech-focus-head h3 {
    font-size: 1.06rem;
}

.project-live-panel {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.project-live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.project-live-top h3 {
    font-size: 1.08rem;
}

.project-live-panel .btn {
    width: fit-content;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item {
    border: 1px solid rgba(124, 184, 211, 0.22);
    border-radius: 14px;
    background: rgba(9, 27, 37, 0.76);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
}

.timeline-year {
    font-family: "IBM Plex Mono", monospace;
    color: #9bd8ef;
    font-size: 0.9rem;
    border: 1px solid rgba(62, 214, 255, 0.3);
    border-radius: 10px;
    padding: 6px 8px;
    text-align: center;
    background: rgba(12, 35, 48, 0.8);
}

.timeline-content h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.timeline-content p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.terminal-shell {
    border: 1px solid rgba(120, 183, 211, 0.25);
    border-radius: 18px;
    background: rgba(6, 18, 25, 0.92);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.terminal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(117, 181, 209, 0.2);
    background: rgba(7, 23, 32, 0.9);
}

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

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.8;
}

.terminal-dots span:nth-child(1) {
    background: #ff8a8a;
}

.terminal-dots span:nth-child(2) {
    background: #ffd27a;
}

.terminal-dots span:nth-child(3) {
    background: #97f6a9;
}

.terminal-body {
    padding: 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.88rem;
    height: clamp(25rem, 61vh, 34rem);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    color: #d1d5db;
    background: linear-gradient(180deg, rgba(13, 18, 26, 0.78), rgba(8, 13, 20, 0.92));
    cursor: text;
}

.terminal-bootline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.sym-arrow {
    color: #65ff95;
    text-shadow: 0 0 8px rgba(101, 255, 149, 0.3);
    user-select: none;
}

.sym-path {
    color: #63b8ff;
    user-select: none;
}

.sym-cmd {
    color: #ffe07b;
    user-select: none;
}

.terminal-neofetch-grid {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(130, 190, 214, 0.52);
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(145deg, rgba(9, 29, 40, 0.92), rgba(5, 19, 27, 0.9));
    box-shadow: inset 0 0 0 1px rgba(62, 214, 255, 0.12), 0 6px 16px rgba(2, 10, 16, 0.35);
}

.terminal-ascii {
    color: #71ff90;
    user-select: none;
    text-shadow: 0 0 14px rgba(113, 255, 144, 0.26);
}

.terminal-ascii pre {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.04;
}

.terminal-meta {
    display: grid;
    gap: 2px;
    align-content: start;
    color: #d4e8f4;
    font-size: 0.79rem;
}

.terminal-meta .key {
    color: #65ff95;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    align-content: start;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.terminal-output::-webkit-scrollbar {
    width: 9px;
}

.terminal-output::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(4, 11, 17, 0.75);
    background: rgba(111, 156, 178, 0.52);
}

.terminal-output::-webkit-scrollbar-track {
    background: rgba(6, 16, 24, 0.5);
}

.terminal-line {
    color: #cce6f4;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
}

.terminal-line.muted {
    color: #9ab9c9;
}

.terminal-line.error {
    color: #ff9f9f;
}

.terminal-line.prompt {
    color: #bde6f8;
    font-weight: 500;
}

.terminal-form {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.terminal-form-pro {
    grid-template-columns: auto auto 1fr;
    border-top: 1px solid rgba(84, 120, 140, 0.34);
    padding-top: 8px;
    margin-top: auto;
    background: transparent;
}

.terminal-prefix {
    color: #96dff3;
}

.terminal-input {
    border: 0;
    background: transparent;
    color: #dcf5ff;
    width: 100%;
    outline: none;
    font-family: "IBM Plex Mono", monospace;
    caret-color: #65ff95;
}

.terminal-input::placeholder {
    color: #8aa9ba;
}

.interaction-hint {
    position: fixed;
    z-index: 140;
    pointer-events: none;
    min-width: 210px;
    max-width: min(320px, calc(100vw - 24px));
    border-radius: 12px;
    border: 1px solid rgba(125, 186, 213, 0.34);
    background: rgba(5, 19, 27, 0.92);
    box-shadow: 0 12px 26px rgba(2, 12, 18, 0.5);
    padding: 10px;
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.97);
    transition: opacity 160ms ease, transform 160ms ease;
}

.interaction-hint.show {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.interaction-hint strong {
    display: block;
    font-size: 0.84rem;
    color: #d8f2ff;
    line-height: 1.3;
}

.interaction-hint p {
    margin-top: 5px;
    color: #9fc0cf;
    font-size: 0.78rem;
    line-height: 1.35;
}

.activity-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(16px);
    border: 1px solid rgba(122, 186, 212, 0.36);
    border-radius: 999px;
    background: rgba(5, 17, 24, 0.9);
    color: #cde8f5;
    padding: 8px 14px;
    font-size: 0.78rem;
    box-shadow: 0 10px 24px rgba(2, 11, 16, 0.45);
    opacity: 0;
    transition: opacity 200ms ease, transform 220ms ease;
    z-index: 135;
    max-width: min(94vw, 760px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-bar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ripple-target {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ripple-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 248, 255, 0.9), rgba(62, 214, 255, 0.6) 42%, rgba(62, 214, 255, 0) 72%);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-wave 620ms ease forwards;
}

@keyframes ripple-wave {
    to {
        transform: translate(-50%, -50%) scale(18);
        opacity: 0;
    }
}

body.theme-terminal {
    --accent-cyan: #61ff92;
    --accent-lime: #d4ff5b;
    --accent-amber: #ffc977;
    --text-main: #e7ffe8;
    --text-soft: #9ec3a5;
    --line: rgba(127, 210, 145, 0.24);
    --bg-glow-a: rgba(98, 255, 156, 0.12);
    --bg-glow-b: rgba(255, 215, 113, 0.09);
    --bg-glow-c: rgba(130, 255, 199, 0.12);
    --bg-grad-a: #051209;
    --bg-grad-b: #0a1810;
    --bg-grad-c: #040b08;
}

body.theme-sunrise {
    --accent-cyan: #5ad7ff;
    --accent-lime: #ffd175;
    --accent-amber: #ff9c66;
    --text-main: #fff6ef;
    --text-soft: #d4b8a6;
    --line: rgba(255, 200, 151, 0.24);
    --bg-glow-a: rgba(255, 168, 120, 0.14);
    --bg-glow-b: rgba(255, 230, 128, 0.1);
    --bg-glow-c: rgba(126, 193, 255, 0.12);
    --bg-grad-a: #1c0f14;
    --bg-grad-b: #211624;
    --bg-grad-c: #120c18;
}

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

.contact-card {
    border: 1px solid rgba(123, 186, 210, 0.24);
    border-radius: 14px;
    background: rgba(11, 31, 42, 0.76);
    padding: 14px;
    transition: border-color 220ms ease, transform 220ms ease;
}

.contact-card:hover {
    border-color: rgba(62, 214, 255, 0.55);
    transform: translateY(-3px);
}

.contact-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-card p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer {
    padding: 26px 0 34px;
    border-top: 1px solid rgba(115, 176, 204, 0.18);
    color: #8fafc1;
    font-size: 0.84rem;
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 11, 17, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 120;
    padding: 20px;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: min(760px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(125, 184, 210, 0.3);
    background: linear-gradient(170deg, rgba(12, 31, 42, 0.95), rgba(8, 20, 29, 0.96));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.modal-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(113, 174, 201, 0.22);
}

.modal-body {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.modal-description {
    color: var(--text-soft);
}

.modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.modal-list li {
    border: 1px solid rgba(120, 183, 209, 0.2);
    border-radius: 12px;
    background: rgba(10, 27, 36, 0.76);
    padding: 8px 10px;
    color: #c6dfed;
    font-size: 0.88rem;
}

.close-btn {
    border: 1px solid rgba(119, 182, 208, 0.3);
    border-radius: 999px;
    background: rgba(10, 29, 38, 0.8);
    color: #d2e8f5;
    cursor: pointer;
    padding: 7px 12px;
}

.jump-top-btn {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 130;
    border: 1px solid rgba(122, 186, 212, 0.4);
    border-radius: 999px;
    background: rgba(4, 16, 23, 0.92);
    color: #cde8f5;
    padding: 9px 12px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.jump-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.jump-top-btn:hover {
    border-color: rgba(62, 214, 255, 0.65);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 200ms ease;
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 760ms ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 120ms;
}

.fade-in.delay-2 {
    animation-delay: 220ms;
}

.fade-in.delay-3 {
    animation-delay: 320ms;
}

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

@media (max-width: 1080px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-grid,
    .about-grid,
    .skill-layout,
    .command-hub,
    .icon-stack-layout,
    .tech-atlas-layout {
        grid-template-columns: 1fr;
    }

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

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

    .icon-focus {
        position: static;
        top: auto;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-grid;
    }

    .topbar-actions {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: grid;
        gap: 12px;
        padding: 12px;
        border: 1px solid rgba(109, 172, 198, 0.36);
        border-radius: 14px;
        background: rgba(6, 18, 26, 0.96);
        box-shadow: 0 18px 36px rgba(3, 12, 18, 0.46);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
        margin-left: 0;
    }

    .topbar.menu-open .topbar-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .top-links {
        display: grid;
        gap: 6px;
        max-height: min(56vh, 420px);
        overflow-y: auto;
    }

    .top-links a {
        width: 100%;
        border-radius: 10px;
        padding: 9px 10px;
        border-color: rgba(120, 183, 209, 0.14);
        background: rgba(9, 27, 37, 0.72);
    }

    .lang-switch {
        width: fit-content;
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 26px));
    }

    .topbar-inner {
        min-height: 72px;
    }

    .hero {
        min-height: unset;
        padding-top: 24px;
    }

    .focus-grid,
    .metrics-grid,
    .tech-node-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .terminal-neofetch-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .terminal-ascii pre {
        font-size: 0.84rem;
    }

    .terminal-body {
        height: clamp(24rem, 72vh, 34rem);
    }

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

    .section-anchor {
        top: -72px;
    }

    .interaction-hint {
        display: none;
    }

    .activity-bar {
        bottom: 10px;
        width: calc(100% - 20px);
        left: 10px;
        transform: translateY(16px);
    }

    .activity-bar.show {
        transform: translateY(0);
    }

    .jump-top-btn {
        right: 10px;
        bottom: 60px;
    }
}

@media (max-width: 520px) {
    .icon-stack-grid {
        grid-template-columns: 1fr;
    }
}

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