/* ============================================================
   CHITTARANJAN DAS — PORTFOLIO
   Aesthetic: Cinematic Dark Developer
   Fonts: Syne (display) + DM Sans (body) + JetBrains Mono (code)
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Surfaces */
    --bg-deep: #06060b;
    --bg-base: #0a0a12;
    --bg-elevated: #101019;
    --bg-card: #12121c;
    --bg-card-hover: #181824;

    /* Text */
    --text-primary: #e8e8ed;
    --text-secondary: #9698a6;
    --text-muted: #5c5e6e;

    /* Accents */
    --accent-blue: #3b82f6;
    --accent-blue-dim: rgba(59, 130, 246, 0.15);
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-green: #22c55e;
    --accent-green-dim: rgba(34, 197, 94, 0.15);
    --accent-amber: #f59e0b;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(59, 130, 246, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;
    --duration-reveal: 800ms;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

::selection {
    background-color: var(--accent-blue);
    color: #fff;
}

/* ---------- SPLASH SCREEN ---------- */
body.loading {
    overflow: hidden;
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #030308;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.splash.done {
    opacity: 0;
    pointer-events: none;
}

.splash-matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.splash-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 2px,
        rgba(0, 0, 0, 0.12) 2px, rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.splash-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, #030308 100%);
    pointer-events: none;
    z-index: 1;
}

/* ---- HUD Container ---- */
.splash-hud {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 280px;
    height: 280px;
}

/* ---- Spinning Rings ---- */
.hud-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.hud-ring--outer {
    width: 240px;
    height: 240px;
    border-color: rgba(59, 130, 246, 0.15);
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-blue);
    animation: spinCW 2s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.hud-ring--middle {
    width: 190px;
    height: 190px;
    border-color: rgba(34, 197, 94, 0.1);
    border-bottom-color: var(--accent-green);
    border-left-color: var(--accent-green);
    animation: spinCCW 1.5s linear infinite;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.08);
}

.hud-ring--inner {
    width: 145px;
    height: 145px;
    border-color: rgba(59, 130, 246, 0.1);
    border-top-color: rgba(59, 130, 246, 0.6);
    animation: spinCW 1s linear infinite;
}

/* Ring dashes — add tick marks */
.hud-ring--outer::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(59, 130, 246, 0.08);
    animation: spinCCW 8s linear infinite;
}

.hud-ring--middle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(34, 197, 94, 0.06);
    animation: spinCW 6s linear infinite;
}

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

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

/* ---- Center Logo ---- */
.hud-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-logo {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    opacity: 0;
    animation: hudLogoIn 0.5s var(--ease-out-expo) 0.2s forwards;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hud-bracket {
    color: var(--accent-blue);
    font-weight: 400;
}

@keyframes hudLogoIn {
    from { opacity: 0; transform: scale(0.6); filter: blur(4px); }
    to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Glitch pulse on logo */
.hud-logo {
    animation: hudLogoIn 0.5s var(--ease-out-expo) 0.2s forwards,
               hudGlitch 3s ease-in-out 0.8s infinite;
}

@keyframes hudGlitch {
    0%, 92%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); transform: scale(1); }
    93% { text-shadow: -2px 0 #ef4444, 2px 0 #3b82f6; transform: scale(1.02) skewX(-1deg); }
    95% { text-shadow: 2px 0 #22c55e, -2px 0 #ef4444; transform: scale(0.98) skewX(1deg); }
    97% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); transform: scale(1); }
}

/* ---- Status text below ---- */
.hud-status {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 220px;
    opacity: 0;
    animation: fadeIn 0.4s ease 0.4s forwards;
}

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

.hud-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hud-text--1 {
    font-size: 0.65rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.hud-text--2 {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1.5px;
}

/* Progress bar */
.hud-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 1px;
    box-shadow: 0 0 10px var(--accent-blue-glow);
    animation: hudProgress 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes hudProgress {
    0%   { width: 0%; }
    25%  { width: 20%; }
    50%  { width: 50%; }
    75%  { width: 80%; }
    100% { width: 100%; }
}

/* ---- Corner HUD brackets ---- */
.hud-corner {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 0.3s ease 0.1s forwards;
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    background: rgba(59, 130, 246, 0.25);
}

.hud-corner::before {
    width: 100%;
    height: 1px;
}

.hud-corner::after {
    width: 1px;
    height: 100%;
}

.hud-corner--tl { top: 24px; left: 24px; }
.hud-corner--tl::before { top: 0; left: 0; }
.hud-corner--tl::after { top: 0; left: 0; }

.hud-corner--tr { top: 24px; right: 24px; }
.hud-corner--tr::before { top: 0; right: 0; }
.hud-corner--tr::after { top: 0; right: 0; }

.hud-corner--bl { bottom: 24px; left: 24px; }
.hud-corner--bl::before { bottom: 0; left: 0; }
.hud-corner--bl::after { bottom: 0; left: 0; }

.hud-corner--br { bottom: 24px; right: 24px; }
.hud-corner--br::before { bottom: 0; right: 0; }
.hud-corner--br::after { bottom: 0; right: 0; }

/* ---- Screen flash on exit ---- */
.splash-flash {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--accent-blue);
    opacity: 0;
    pointer-events: none;
    animation: screenFlash 0.35s ease forwards;
}

@keyframes screenFlash {
    0%   { opacity: 0; }
    20%  { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

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

/* ---------- LAYOUT ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--dark {
    background-color: var(--bg-base);
}

/* ---------- CUSTOM CURSOR (Terminal Block) ---------- */

/* Hide default cursor on desktop */
@media (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor * {
        cursor: none !important;
    }
}

/* Hidden by default — JS adds .custom-cursor to body to reveal */
.cursor-block {
    opacity: 0;
    pointer-events: none;
}

body.custom-cursor .cursor-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 20px;
    background: var(--accent-green);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.85;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
    animation: cursorPulse 1.2s ease-in-out infinite;
    transition: width 0.2s var(--ease-out-expo),
                height 0.2s var(--ease-out-expo),
                background 0.2s ease,
                border-radius 0.2s ease,
                box-shadow 0.2s ease,
                opacity 0.15s ease;
}

@keyframes cursorPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.5; }
}

/* Hover on links/buttons: underscore style */
body.custom-cursor .cursor-block.hovering {
    width: 20px;
    height: 3px;
    border-radius: 1px;
    background: var(--accent-blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    opacity: 1;
    animation: none;
}

/* Hover on text: thin I-beam */
body.custom-cursor .cursor-block.text-hover {
    width: 2px;
    height: 22px;
    border-radius: 1px;
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
    opacity: 0.9;
    animation: none;
}

/* Click: shrink flash */
body.custom-cursor .cursor-block.clicking {
    width: 8px;
    height: 14px;
    opacity: 1;
    background: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
    animation: none;
}

/* ---------- NAVBAR (Terminal Style) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.navbar.scrolled::after {
    opacity: 1;
}

.navbar.scrolled {
    background: rgba(6, 6, 11, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

/* Logo */
.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color var(--duration-fast) ease;
}

.nav-logo:hover {
    color: var(--accent-blue);
}

.logo-bracket {
    color: var(--accent-blue);
    font-weight: 400;
}

/* Nav links: monospace, numbered */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    position: relative;
    transition: all var(--duration-fast) ease;
    border-bottom: 2px solid transparent;
    letter-spacing: -0.2px;
}

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

.nav-link.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.nav-link-prefix {
    color: var(--text-muted);
    opacity: 0.5;
    margin-right: 2px;
    font-size: 0.7rem;
    transition: color var(--duration-fast) ease;
}

.nav-link:hover .nav-link-prefix {
    color: var(--accent-blue);
    opacity: 1;
}

.nav-link.active .nav-link-prefix {
    color: var(--accent-blue);
    opacity: 0.7;
}

/* CTA link */
.nav-link--cta {
    color: var(--bg-deep) !important;
    background: var(--accent-green);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    padding: 6px 14px;
    border-bottom: none;
    font-weight: 600;
}

.nav-link--cta:hover {
    background: #16a34a;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.nav-link--cta .nav-link-prefix {
    display: none;
}

.nav-cmd-arrow {
    margin-right: 4px;
    font-size: 0.85rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform-origin: center;
}

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

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 40px;
}

/* Matrix rain canvas */
.matrix-rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}

/* Floating code snippets */
.floating-code {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-green);
    opacity: 0;
    white-space: nowrap;
    animation: floatUp linear infinite;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

/* Stagger each item with unique position, speed, delay */
.float-item--1  { left: 3%;   animation-duration: 18s; animation-delay: 0s;   }
.float-item--2  { left: 15%;  animation-duration: 22s; animation-delay: -4s;  }
.float-item--3  { left: 28%;  animation-duration: 20s; animation-delay: -8s;  }
.float-item--4  { left: 42%;  animation-duration: 25s; animation-delay: -2s;  }
.float-item--5  { left: 55%;  animation-duration: 19s; animation-delay: -12s; }
.float-item--6  { left: 68%;  animation-duration: 23s; animation-delay: -6s;  }
.float-item--7  { left: 80%;  animation-duration: 21s; animation-delay: -10s; }
.float-item--8  { left: 92%;  animation-duration: 17s; animation-delay: -3s;  }
.float-item--9  { left: 8%;   animation-duration: 24s; animation-delay: -15s; }
.float-item--10 { left: 36%;  animation-duration: 20s; animation-delay: -7s;  }
.float-item--11 { left: 62%;  animation-duration: 26s; animation-delay: -14s; }
.float-item--12 { left: 88%;  animation-duration: 19s; animation-delay: -9s;  }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.08;
    }
    95% {
        opacity: 0.12;
    }
    100% {
        transform: translateY(-100px) rotate(-3deg);
        opacity: 0;
    }
}

/* ---------- Hero Terminal ---------- */
.hero-terminal-wrap {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-term {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(59, 130, 246, 0.06);
}

/* Title bar */
.hero-term-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border-subtle);
}

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

.tdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tdot--r { background: #ef4444; }
.tdot--y { background: var(--accent-amber); }
.tdot--g { background: var(--accent-green); }

.hero-term-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1;
}

.hero-term-actions-bar {
    display: flex;
    gap: 2px;
}

.hero-term-tab {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--text-muted);
}

.hero-term-tab--active {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-bottom-color: var(--bg-card);
    margin-bottom: -1px;
}

/* Terminal body */
.hero-term-body {
    padding: clamp(20px, 3vw, 32px);
    font-family: var(--font-mono);
    font-size: clamp(0.78rem, 1.2vw, 0.88rem);
    line-height: 1.65;
}

/* Terminal line animation */
.tline {
    opacity: 0;
    transform: translateY(6px);
    animation: termReveal 0.4s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--delay) * 0.18s + 0.3s);
    margin-bottom: 4px;
}

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

/* Prompt styling */
.tprompt {
    color: #7dd3fc;
    font-weight: 600;
    margin-right: 4px;
}

.tarrow {
    color: var(--accent-green);
    margin-right: 8px;
}

.tcmd {
    color: var(--text-primary);
    font-weight: 500;
}

.tpipe {
    color: var(--text-muted);
    font-weight: 400;
}

/* Output lines */
.tline--output {
    padding-left: 28px;
    color: var(--text-secondary);
}

/* ASCII art name */
.ascii-name {
    font-family: var(--font-mono);
    font-size: clamp(0.42rem, 0.85vw, 0.62rem);
    line-height: 1.15;
    color: var(--accent-blue);
    margin: 8px 0 12px;
    padding-left: 28px;
    white-space: pre;
    overflow-x: auto;
}

/* Role highlight */
.tline--highlight {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Stack tags */
.tline--tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-top: 4px;
}

.ttag {
    padding: 3px 10px;
    background: var(--accent-blue-dim);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Bio */
.tline--bio {
    margin-bottom: 12px;
    line-height: 1.7;
}

.thl {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Status */
.tline--status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 12px;
}

.tstatus-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Links row */
.tline--links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    margin-bottom: 16px;
}

.tlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--duration-fast) ease;
    cursor: pointer;
}

.tlink:hover {
    color: var(--accent-blue);
    border-color: var(--border-accent);
    background: var(--accent-blue-dim);
    transform: translateY(-1px);
}

.tlink-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Blinking cursor */
.tline--active {
    margin-bottom: 0;
}

.tcursor {
    color: var(--accent-green);
    animation: blink 1.1s step-end infinite;
    font-size: 0.9em;
}

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

.hero-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
    cursor: pointer;
}

.social-link:hover {
    color: var(--accent-blue);
    border-color: var(--border-accent);
    background: var(--accent-blue-dim);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-blue-glow);
}

.btn--primary:hover {
    background: #2563eb;
    box-shadow: 0 0 30px var(--accent-blue-glow);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn--ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast) ease;
}

.btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

.btn--ghost:hover .btn-icon {
    transform: translate(0, -2px);
}

/* ---------- SECTION HEADINGS ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-number {
    font-weight: 600;
}

.section-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent-blue);
    opacity: 0.5;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.heading-accent {
    color: var(--accent-blue);
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    max-width: 380px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 2;
}

.about-image-border {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent-blue);
    border-radius: calc(var(--radius-xl) + 4px);
    opacity: 0.2;
    z-index: 1;
}

.about-image-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.experience-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.experience-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
    font-weight: 500;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-paragraph strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.highlight-item:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.highlight-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-dim);
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 18px;
    height: 18px;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.highlight-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.timeline {
    max-width: 800px;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 4px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: var(--bg-base);
    flex-shrink: 0;
    transition: all var(--duration-normal) ease;
}

.timeline-dot--active {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow);
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-medium), transparent);
    margin-top: 8px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    flex: 1;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.timeline-content:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline-company-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 1px solid var(--border-subtle);
    background: #fff;
    padding: 4px;
}

.timeline-company {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-role {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.tag {
    padding: 4px 12px;
    background: var(--accent-blue-dim);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.tag--small {
    padding: 3px 10px;
    font-size: 0.7rem;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.project-card--featured {
    grid-column: span 1;
}

.project-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 11, 0.8), transparent 60%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

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

.project-arrow {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    color: #fff;
    transform: translate(-8px, 8px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.project-card:hover .project-arrow {
    transform: translate(0, 0);
}

.project-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* ---------- SKILLS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.skill-category:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.skill-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-dim);
    border-radius: var(--radius-md);
    color: var(--accent-blue);
}

.skill-icon {
    width: 22px;
    height: 22px;
}

.skill-category-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--duration-fast) ease;
}

.skill-chip:hover {
    color: var(--accent-blue);
    border-color: var(--border-accent);
    background: var(--accent-blue-dim);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    color: var(--accent-blue);
    opacity: 0.3;
    margin-bottom: 16px;
}

.testimonial-quote svg {
    width: 28px;
    height: 28px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.testimonial-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--duration-fast) ease;
}

.testimonial-name:hover {
    color: var(--accent-blue);
}

.testimonial-position {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.testimonial-position a {
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

.testimonial-position a:hover {
    color: var(--accent-blue);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-blue-dim) 0%, transparent 70%),
        var(--bg-base);
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CONTACT TERMINAL ---------- */
.contact-term {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(59, 130, 246, 0.04);
}

.contact-term-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border-subtle);
}

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

.contact-term-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-term-body {
    padding: clamp(20px, 3vw, 36px);
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    line-height: 1.7;
}

.ct-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.ct-line--last {
    margin-bottom: 0;
    margin-top: 8px;
}

.ct-output {
    padding-left: 28px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ct-output--big {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin-bottom: 0;
}

.ct-output--status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    font-weight: 500;
}

.ct-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

/* Contact cards inside terminal */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 0 0 28px;
    margin-bottom: 0;
}

.ct-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
    position: relative;
}

.ct-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-blue-dim);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.ct-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: transform var(--duration-fast) ease;
}

.ct-card:hover .ct-card-icon {
    transform: scale(1.1);
}

.ct-card-icon--mail {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.ct-card-icon--linkedin {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.ct-card-icon--github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.ct-card-icon svg {
    width: 20px;
    height: 20px;
}

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

.ct-card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.ct-card-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-card-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all var(--duration-fast) ease;
    flex-shrink: 0;
}

.ct-card:hover .ct-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--accent-blue);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
    z-index: 99;
}

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

.back-to-top:hover {
    color: var(--accent-blue);
    border-color: var(--border-accent);
    background: var(--accent-blue-dim);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .matrix-rain,
    .floating-code {
        display: none;
    }

    .cursor-block {
        display: none;
    }
}

/* ---------- RESPONSIVE ---------- */

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

    .about-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

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

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(6, 6, 11, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: clamp(32px, 8vw, 60px);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all var(--duration-slow) var(--ease-out-expo);
    }

    .nav-links::before {
        content: '$ ls ./sections';
        position: absolute;
        top: 80px;
        left: clamp(32px, 8vw, 60px);
        font-family: var(--font-mono);
        font-size: 0.78rem;
        color: var(--text-muted);
    }

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

    .nav-links .nav-link {
        font-size: 1.3rem;
        padding: 12px 0;
        border-bottom: none;
        opacity: 0;
        transform: translateX(40px);
        transition: all var(--duration-normal) var(--ease-out-expo);
    }

    .nav-links .nav-link-prefix {
        font-size: 0.85rem;
        margin-right: 6px;
    }

    .nav-links .nav-link--cta {
        margin-left: 0;
        margin-top: 12px;
        padding: 10px 20px;
    }

    .nav-links.open .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open li:nth-child(1) .nav-link { transition-delay: 80ms; }
    .nav-links.open li:nth-child(2) .nav-link { transition-delay: 130ms; }
    .nav-links.open li:nth-child(3) .nav-link { transition-delay: 180ms; }
    .nav-links.open li:nth-child(4) .nav-link { transition-delay: 230ms; }
    .nav-links.open li:nth-child(5) .nav-link { transition-delay: 280ms; }
    .nav-links.open li:nth-child(6) .nav-link { transition-delay: 330ms; }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-term-body {
        padding: 16px;
    }

    .ascii-name {
        font-size: 0.32rem;
        padding-left: 20px;
    }

    .tline--output {
        padding-left: 20px;
    }

    .tline--links {
        gap: 6px;
    }

    .tlink {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

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

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

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

    .about-highlights {
        gap: 10px;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .ct-cards {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .timeline-marker {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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