/* ==========================================================================
   HANZLA AMJAD — GHL EXPERT PORTFOLIO
   Cyber / Terminal aesthetic — premium pass
   ========================================================================== */

:root {
    --bg-0: #050505;
    --bg-1: #0a0a0a;
    --bg-2: #111111;
    --bg-card: rgba(18, 18, 18, 0.75);
    --border: rgba(250, 250, 249, 0.10);
    --border-bright: rgba(250, 250, 249, 0.30);
    --cyan: #fafaf9;
    --cyan-soft: #e7e5e4;
    --cyan-dim: rgba(250, 250, 249, 0.55);
    --green: #4ade80;
    --purple: #d6d3d1;
    --pink: #ff5722;
    --orange: #ff5722;
    --yellow: #fafaf9;
    --blue: #a8a29e;
    --text: #fafaf9;
    --text-dim: #a8a29e;
    --text-muted: #78716c;
    --accent: #ff5722;
    --accent-soft: #ff7849;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --glow: 0 0 24px rgba(250, 250, 249, 0.12);
    --glow-strong: 0 0 48px rgba(250, 250, 249, 0.20);
    --glow-accent: 0 0 28px rgba(255, 87, 34, 0.40);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: #050505;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(250, 250, 249, 0.04), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 87, 34, 0.05), transparent 70%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Subtle grid texture overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(250, 250, 249, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 250, 249, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 100%);
}

/* Film grain overlay — cheap SVG noise, GPU friendly (opacity only) */
.grain {
    position: fixed; inset: -10%;
    width: 120%; height: 120%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

::selection { background: var(--cyan); color: var(--bg-0); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
    body, a, button, .btn, input, textarea, label,
    .service-card, .info-card, .stack-card, .exp-card, .testi-card,
    .contact-card, .chip, .badge, .channel-item, .side-nav-item,
    [data-tilt], .marquee-item { cursor: none; }
}

/* Keyboard focus is always visible, even with the custom cursor */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
    position: fixed; top: -60px; left: 1rem; z-index: 10001;
    background: var(--accent); color: #fff;
    font-family: var(--mono); font-size: 0.85rem;
    padding: 0.75rem 1.25rem; border-radius: 6px;
    transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ============================ BOOT SCREEN ============================ */
.boot-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-0);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-content {
    width: min(560px, 90%);
    font-family: var(--mono);
    color: var(--cyan);
}
.boot-logo {
    font-size: 2.5rem; font-weight: 700; text-align: center;
    margin-bottom: 2rem; letter-spacing: 0.3em;
    text-shadow: 0 0 20px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}
.boot-lines {
    min-height: 180px; font-size: 0.85rem; color: var(--green);
    margin-bottom: 1.5rem; line-height: 1.8;
}
.boot-lines .line { opacity: 0; animation: fadeIn 0.3s forwards; }
.boot-progress {
    width: 100%; height: 3px; background: rgba(250, 250, 249, 0.15);
    border-radius: 2px; overflow: hidden; margin-bottom: 1rem;
}
.boot-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--cyan);
}
.boot-status {
    text-align: center; font-size: 0.8rem; color: var(--text-dim);
    letter-spacing: 0.1em;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================ PARTICLE BG ============================ */
.particle-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.6;
}

/* ============================ SCROLL PROGRESS ============================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
    z-index: 1000; box-shadow: 0 0 10px var(--cyan);
    transition: width 0.1s linear;
}

/* ============================ MOBILE TOP BAR ============================ */
.mobile-bar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.mobile-logo {
    font-family: var(--mono); font-weight: 700; letter-spacing: 0.15em;
    color: var(--cyan);
}
.menu-toggle {
    width: 42px; height: 42px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    background: var(--bg-card);
}
.menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--cyan);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ MOBILE FULL-SCREEN NAV ============================ */
.mobile-nav {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem 1.75rem 3rem;
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 0.25rem;
    font-family: var(--mono); font-size: 1.4rem; font-weight: 600;
    color: var(--text-dim);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-nav-list a.active, .mobile-nav-list a:hover {
    color: var(--cyan); padding-left: 0.75rem;
}
.mn-index {
    font-size: 0.85rem; color: var(--accent);
    width: 2ch;
}
.mobile-nav-footer {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: var(--mono); font-size: 0.9rem;
    color: var(--text-dim);
}
.mobile-nav-footer a:hover { color: var(--cyan); }

@media (max-width: 980px) {
    .mobile-bar { display: flex; }
    body { padding-top: 66px; }
}

/* ============================ SIDE NAV ============================ */
.side-nav {
    position: fixed; right: 1.5rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.75rem;
    z-index: 100;
}
.side-nav-item {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--cyan-dim);
    transition: all 0.3s ease;
    position: relative;
}
.side-nav-item svg { width: 20px; height: 20px; }
.side-nav-item:hover, .side-nav-item.active {
    color: var(--cyan); border-color: var(--cyan);
    background: rgba(250, 250, 249, 0.1);
    box-shadow: var(--glow);
    transform: translateX(-4px);
}
.side-nav-item::before {
    content: attr(data-tooltip);
    position: absolute; right: calc(100% + 0.75rem); top: 50%;
    transform: translateY(-50%);
    background: var(--bg-2); border: 1px solid var(--border);
    color: var(--cyan); font-family: var(--mono); font-size: 0.75rem;
    padding: 0.4rem 0.75rem; border-radius: 4px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.side-nav-item:hover::before { opacity: 1; }

/* ============================ LAYOUT ============================ */
.container {
    width: min(1280px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section {
    padding: 6rem 0 5rem;
    position: relative; z-index: 2;
}

.section-title {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--mono);
    margin-bottom: 0.5rem;
    position: relative; z-index: 2;
}
.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text); font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: none;
}
.section-title .bracket {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent); font-weight: 300;
}
.section-line {
    height: 2px; width: 120px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 3rem;
    border-radius: 2px;
    position: relative; z-index: 2;
}
.section-subtitle {
    color: var(--text-dim); font-family: var(--mono);
    font-size: 0.95rem; margin-top: -2rem; margin-bottom: 3rem;
}

/* ============================ HERO ============================ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Cursor-following radial spotlight — desktop only, one deliberate hero effect */
.hero-spotlight {
    position: absolute; inset: 0;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%),
        rgba(255, 87, 34, 0.10), transparent 45%);
    transition: background 0.2s ease;
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: -10% -10%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(250, 250, 249, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 250, 249, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 55% 45% at 50% 35%, #000 0%, transparent 75%);
    animation: gridDrift 22s linear infinite;
    pointer-events: none;
}
@keyframes gridDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(-46px, -46px); }
}

/* ---- Hero photo: large masked portrait, wide desktop only ---- */
.hero-photo-card {
    display: none;
    position: absolute;
    top: 50%;
    right: clamp(1.5rem, 4.5vw, 4rem);
    width: clamp(220px, 19vw, 320px);
    aspect-ratio: 672 / 830;
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.2s ease-out;
}
.hero-photo-glow {
    position: absolute; inset: -20%;
    z-index: -1;
    background: radial-gradient(circle at 55% 38%, rgba(255, 87, 34, 0.32), rgba(250, 250, 249, 0.06) 45%, transparent 72%);
    filter: blur(34px);
}
.hero-photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    filter: saturate(0.9) contrast(1.03);
    -webkit-mask-image: radial-gradient(ellipse 78% 88% at 58% 40%, #000 55%, transparent 96%);
    mask-image: radial-gradient(ellipse 78% 88% at 58% 40%, #000 55%, transparent 96%);
}
.hero-photo-card::before, .hero-photo-card::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid var(--cyan);
    z-index: 2;
    opacity: 0.8;
}
.hero-photo-card::before { top: 4%; left: 2%; border-right: none; border-bottom: none; }
.hero-photo-card::after { bottom: 4%; right: 2%; border-left: none; border-top: none; }

@media (min-width: 1300px) {
    .hero-photo-card { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-photo-card { transition: none; }
}

/* ---- Hero photo: compact circular badge, tablet/mobile ---- */
.hero-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
    position: relative; z-index: 2;
}
.hero-avatar-frame {
    position: relative;
    width: 116px; height: 116px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-bright);
    box-shadow: 0 0 0 6px rgba(255, 87, 34, 0.08), var(--glow);
}
.hero-avatar-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
@media (min-width: 1300px) {
    .hero-avatar { display: none; }
}
@media (max-width: 768px) {
    .hero-avatar-frame { width: 92px; height: 92px; }
    .hero-avatar { margin-bottom: 1.25rem; }
}

.status-bar {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--text-dim);
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative; z-index: 2;
}
.status-label { color: var(--cyan); letter-spacing: 0.1em; }
.status-online { color: var(--green); display: inline-flex; align-items: center; gap: 0.4rem; }
.status-online .dot {
    width: 8px; height: 8px; background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: blink 1.5s ease-in-out infinite;
}
.status-time { color: var(--cyan); }
.divider { color: var(--text-muted); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-name {
    font-family: var(--mono);
    font-size: clamp(3rem, 11vw, 9rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    position: relative; z-index: 2;
}
.name-line {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 50%, #a8a29e 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(250, 250, 249, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}
.name-line.accent {
    background: linear-gradient(180deg, #ff7849 0%, #ff5722 50%, #b3380f 100%);
    -webkit-background-clip: text; background-clip: text;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-roles {
    font-family: var(--mono);
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    color: var(--cyan);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative; z-index: 2;
}
.role-exe {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(250, 250, 249, 0.6);
}
.sep { color: var(--text-muted); margin: 0 0.5rem; }

.hero-badges {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.75rem; margin-bottom: 3rem;
    position: relative; z-index: 2;
}
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono); font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-dim);
    transition: all 0.3s ease;
}
.badge.active, .badge:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}
.badge-icon { color: var(--cyan); }

/* Terminal */
.terminal {
    max-width: 720px; margin: 0 auto 2.5rem;
    background: rgba(7, 16, 30, 0.85);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow), 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: left;
    position: relative; z-index: 2;
}
.terminal::before {
    content: ''; position: absolute; inset: -1px;
    background: linear-gradient(135deg, var(--cyan), transparent, var(--purple));
    z-index: -1; border-radius: 12px;
    opacity: 0.3;
}
.terminal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 0.5rem; }
.dot-r, .dot-y, .dot-g {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #fbbf24; }
.dot-g { background: #4ade80; }
.terminal-title {
    font-family: var(--mono); font-size: 0.8rem;
    color: var(--cyan-dim);
}
.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--mono); font-size: 0.85rem;
    line-height: 1.8;
}
.t-line { color: var(--text); }
.t-prompt { color: var(--green); margin-right: 0.5rem; }
.t-cmd { color: var(--cyan); }
.t-out { color: var(--text-dim); padding-left: 1.25rem; }
.t-out.success { color: var(--green); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--cyan); }

/* CTA — premium magnetic buttons w/ shine sweep */
.hero-cta {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap;
    position: relative; z-index: 2;
}
.btn {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
    padding: 1.1rem 2.25rem;
    border-radius: 999px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease,
                border-color 0.4s ease;
    letter-spacing: 0.12em;
    position: relative; overflow: hidden;
    isolation: isolate;
    text-transform: uppercase;
}
/* Shine sweep across button on hover */
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.30) 50%,
        transparent 65%,
        transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}
.btn:hover::before { transform: translateX(120%); }
.btn > * { position: relative; z-index: 2; }

.btn-primary {
    background: var(--accent); color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 87, 34, 0.6),
        0 8px 24px rgba(255, 87, 34, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    background: #ff6a3a;
    box-shadow:
        0 0 0 1px rgba(255, 87, 34, 0.9),
        0 14px 36px rgba(255, 87, 34, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
}
.btn-primary:active { transform: translateY(-1px) scale(1.0); }

.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid rgba(250, 250, 249, 0.30);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(250, 250, 249, 0.08);
    border-color: rgba(250, 250, 249, 0.85);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.btn-block { width: 100%; justify-content: center; margin-top: 1rem; }

/* Arrow slide out + in animation */
.btn .arrow {
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.btn:hover .arrow { transform: translateX(6px); }

/* ============================ MARQUEE TICKER ============================ */
.marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.85rem 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%);
    z-index: 2;
    margin: 2rem 0 0;
}
.marquee-track {
    display: flex; gap: 0;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}
.marquee-group {
    display: flex; align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}
.marquee-item {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dim);
    text-stroke: 1px var(--text-dim);
    white-space: nowrap;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}
.marquee-track:hover .marquee-item:hover {
    color: var(--text);
    -webkit-text-stroke: 1px var(--text);
}
.marquee-dot {
    color: var(--accent);
    font-size: 1.25rem;
    opacity: 0.85;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================ SECTION NUMBER ============================ */
.section-num {
    font-family: var(--mono);
    font-size: clamp(7rem, 14vw, 14rem);
    font-weight: 800;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(250, 250, 249, 0.10);
    text-stroke: 1.5px rgba(250, 250, 249, 0.10);
    letter-spacing: -0.05em;
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transition: -webkit-text-stroke 0.6s ease;
}
.section { position: relative; }
.section:hover .section-num {
    -webkit-text-stroke: 1.5px rgba(255, 87, 34, 0.35);
}

/* ============================ CUSTOM CURSOR ============================ */
/* Simple, minimal, single-dot cursor — no ring, no expansion, no trail. */
.cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    mix-blend-mode: difference;
    transition: opacity 0.2s ease;
}
/* Note: position + the subtle hover scale are both applied together via
   JS on the same transform, so this class carries no transform of its own
   (an inline style would override it anyway). Kept for semantic clarity. */
@media (max-width: 980px), (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
}
/* ============================ CARDS COMMON ============================ */
.card-with-corners {
    position: relative;
}
.info-card, .stack-card, .exp-card, .service-card,
.project-card, .testi-card, .contact-card, .profile-summary {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.info-card::before, .info-card::after,
.stack-card::before, .stack-card::after,
.exp-card::before, .exp-card::after,
.service-card::before, .service-card::after,
.project-card::before, .project-card::after,
.testi-card::before, .testi-card::after,
.contact-card::before, .contact-card::after,
.profile-summary::before, .profile-summary::after {
    content: ''; position: absolute;
    width: 14px; height: 14px;
    border: 2px solid var(--cyan);
    transition: all 0.3s ease;
}
/* top corners */
.info-card::before, .stack-card::before, .exp-card::before,
.service-card::before, .project-card::before, .testi-card::before,
.contact-card::before, .profile-summary::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 4px;
}
/* bottom corners */
.info-card::after, .stack-card::after, .exp-card::after,
.service-card::after, .project-card::after, .testi-card::after,
.contact-card::after, .profile-summary::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 4px;
}
.info-card:hover, .stack-card:hover, .service-card:hover,
.exp-card:hover, .project-card:hover, .testi-card:hover, .contact-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}
.info-card:hover::before, .info-card:hover::after,
.stack-card:hover::before, .stack-card:hover::after,
.service-card:hover::before, .service-card:hover::after,
.exp-card:hover::before, .exp-card:hover::after,
.project-card:hover::before, .project-card:hover::after,
.testi-card:hover::before, .testi-card:hover::after,
.contact-card:hover::before, .contact-card:hover::after {
    width: 20px; height: 20px;
    box-shadow: 0 0 10px var(--cyan);
}

.card-header {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--mono);
}
.card-header h3 {
    font-size: 0.95rem; color: var(--cyan);
    font-weight: 600; letter-spacing: 0.05em;
}
.card-icon {
    color: var(--cyan); font-size: 1rem;
}
.card-icon.icon-blue { color: var(--blue); }
.card-icon.icon-yellow { color: var(--yellow); }
.card-title {
    font-family: var(--mono); font-size: 1rem;
    color: var(--cyan); margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

/* ============================ ABOUT / PROFILE ============================ */
.profile-summary {
    margin-bottom: 2rem;
    padding: 2rem;
}
.profile-summary p {
    color: var(--text-dim);
    font-size: 1rem; line-height: 1.8;
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-family: var(--mono); font-size: 0.9rem;
    color: var(--text);
}
.info-item a:hover { color: var(--cyan); }
.info-item small { color: var(--text-muted); font-size: 0.8rem; }
.info-svg {
    width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0;
    margin-top: 2px;
}

/* Metrics */
.metrics-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.metric {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 10px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.metric:hover { transform: scale(1.05); }
.metric-value {
    font-family: var(--mono); font-size: 2rem; font-weight: 700;
    margin-bottom: 0.25rem;
}
.metric-label {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--text-dim); letter-spacing: 0.15em;
}
.metric-cyan { border-color: rgba(250, 250, 249, 0.3); }
.metric-cyan .metric-value { color: var(--cyan); }
.metric-purple { border-color: rgba(214, 211, 209, 0.3); }
.metric-purple .metric-value { color: var(--purple); }
.metric-pink { border-color: rgba(255, 87, 34, 0.3); }
.metric-pink .metric-value { color: var(--pink); }
.metric-green { border-color: rgba(34, 197, 94, 0.3); }
.metric-green .metric-value { color: var(--green); }

/* Timeline mini */
.timeline-mini { display: flex; flex-direction: column; gap: 1rem; }
.t-item { padding-left: 1rem; border-left: 2px solid var(--cyan); }
.t-year { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); margin-bottom: 0.25rem; }
.t-title { font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.t-org { font-size: 0.85rem; color: var(--text-dim); }

/* Languages */
.lang-list { display: flex; flex-direction: column; gap: 1rem; }
.lang-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.85rem; }
.lang-level { color: var(--cyan); }
.lang-bar {
    height: 4px; background: rgba(250, 250, 249, 0.15);
    border-radius: 2px; overflow: hidden;
}
.lang-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease);
}
.lang-item.visible .lang-bar > div { transform: scaleX(1); }

/* ============================ SERVICES ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 980px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}
.service-card {
    padding: 2rem 1.75rem;
}
.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-family: var(--mono);
    background: linear-gradient(135deg, rgba(250, 250, 249, 0.15), rgba(214, 211, 209, 0.1));
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    box-shadow: var(--glow);
    transform: rotate(5deg) scale(1.1);
}
.service-card h3 {
    font-size: 1.2rem; color: var(--text);
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--text-dim);
    font-size: 0.9rem; margin-bottom: 1rem;
}
.service-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.service-list li {
    font-family: var(--mono); font-size: 0.8rem;
    color: var(--cyan-soft);
    padding-left: 1.25rem;
    position: relative;
}
.service-list li::before {
    content: '▸'; position: absolute; left: 0;
    color: var(--cyan);
}

/* ============================ TECH STACK ============================ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.stack-card-wide { grid-column: 1 / -1; }
.stack-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stack-icon-box {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-family: var(--mono); font-weight: 700;
}
.icon-cyan { background: linear-gradient(135deg, #fafaf9, #57534e); color: #0a0a0a; }
.icon-purple { background: linear-gradient(135deg, #d6d3d1, #44403c); color: #0a0a0a; }
.icon-blue { background: linear-gradient(135deg, #ff7849, #b3380f); color: #fff; }
.icon-orange { background: linear-gradient(135deg, #fafaf9, #78716c); color: #0a0a0a; }
.stack-header h3 {
    font-family: var(--mono); font-size: 1rem;
    color: var(--text); letter-spacing: 0.05em;
}
.chip-grid {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.chip {
    font-family: var(--mono); font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid; border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    cursor: default;
}
.chip:hover { transform: translateY(-2px); }
.chip-cyan { color: var(--cyan); border-color: rgba(250, 250, 249, 0.4); background: rgba(250, 250, 249, 0.05); }
.chip-purple { color: var(--purple); border-color: rgba(214, 211, 209, 0.4); background: rgba(214, 211, 209, 0.05); }
.chip-blue { color: var(--blue); border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.05); }
.chip-orange { color: var(--orange); border-color: rgba(251, 146, 60, 0.4); background: rgba(251, 146, 60, 0.05); }

/* ============================ EXPERIENCE ============================ */
.exp-list { display: flex; flex-direction: column; gap: 1.5rem; }
.exp-card { padding: 1.75rem 2rem; }
.exp-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}
.exp-header h3 {
    font-family: var(--mono); font-size: 1.3rem;
    color: var(--cyan); letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(250, 250, 249, 0.4);
}
.exp-role {
    font-family: var(--mono); font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    background: rgba(250, 250, 249, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--cyan);
}
.exp-role-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}
.exp-key {
    font-family: var(--mono); font-size: 0.8rem;
    color: var(--text-dim); letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.exp-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
}
.exp-points li {
    font-size: 0.9rem; color: var(--text);
    padding-left: 1.25rem; position: relative;
}
.exp-points li::before {
    content: '▸'; position: absolute; left: 0;
    color: var(--cyan);
}

/* ============================ PROCESS ============================ */
.process-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}
.process-spine {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent 0%,
        var(--cyan) 8%,
        var(--purple) 50%,
        var(--cyan) 92%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(250, 250, 249, 0.5);
    z-index: 0;
}
.process-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.process-row:last-child { margin-bottom: 0; }

.process-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    text-align: right;
}
.process-row.reversed .process-content { text-align: left; }
.process-content::before, .process-content::after {
    content: ''; position: absolute;
    width: 12px; height: 12px;
    border: 2px solid var(--cyan);
}
.process-content::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 4px;
}
.process-content::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 4px;
}
.process-content:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(250, 250, 249, 0.15), var(--glow);
}

/* connector arrow from card to spine */
.process-row:not(.reversed) .process-content::before {
    content: '';
    position: absolute; right: -22px; top: 50%;
    left: auto; bottom: auto;
    transform: translateY(-50%);
    width: 22px; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    border: none; border-radius: 0;
}
.process-row.reversed .process-content::after {
    content: '';
    position: absolute; left: -22px; top: 50%;
    right: auto; bottom: auto;
    transform: translateY(-50%);
    width: 22px; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    border: none; border-radius: 0;
}

.process-tag {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--cyan); letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
    opacity: 0.8;
}
.process-content h3 {
    font-family: var(--mono); font-size: 1.25rem;
    color: var(--text); margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}
.process-content p {
    color: var(--text-dim); font-size: 0.92rem;
    line-height: 1.7; margin-bottom: 1rem;
}
.process-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: flex-end;
    font-family: var(--mono); font-size: 0.75rem;
    color: var(--cyan-soft);
}
.process-row.reversed .process-meta { justify-content: flex-start; }

.process-node {
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 2;
}
.node-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1c1c1c, #050505);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--mono); font-weight: 700; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 0 0 6px rgba(250, 250, 249, 0.08),
        0 0 24px rgba(250, 250, 249, 0.4),
        inset 0 0 12px rgba(250, 250, 249, 0.15);
    transition: all 0.4s ease;
    text-shadow: 0 0 10px var(--cyan);
}
.node-circle::before {
    content: ''; position: absolute; inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(250, 250, 249, 0.3);
    animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.process-row:hover .node-circle {
    transform: scale(1.1);
    box-shadow:
        0 0 0 8px rgba(250, 250, 249, 0.12),
        0 0 40px rgba(250, 250, 249, 0.7),
        inset 0 0 20px rgba(250, 250, 249, 0.25);
}
.node-final {
    background: radial-gradient(circle at 30% 30%, #052e16, #000);
    border-color: var(--green);
    color: var(--green);
    box-shadow:
        0 0 0 6px rgba(34, 197, 94, 0.1),
        0 0 28px rgba(34, 197, 94, 0.5),
        inset 0 0 15px rgba(34, 197, 94, 0.2);
    text-shadow: 0 0 12px var(--green);
}
.process-empty { /* spacer */ }

@media (max-width: 880px) {
    .process-spine { left: 35px; transform: none; }
    .process-row, .process-row.reversed {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }
    .process-row .process-empty { display: none; }
    .process-row .process-node { order: 1; }
    .process-row .process-content,
    .process-row.reversed .process-content {
        order: 2; text-align: left;
    }
    .process-row .process-content::before,
    .process-row.reversed .process-content::after {
        display: none;
    }
    .process-row .process-content::after,
    .process-row.reversed .process-content::before {
        content: ''; position: absolute;
        left: -16px; top: 50%; transform: translateY(-50%);
        width: 16px; height: 2px;
        background: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
        border: none; border-radius: 0;
        bottom: auto; right: auto;
    }
    .process-row .process-meta,
    .process-row.reversed .process-meta { justify-content: flex-start; }
}

/* ============================ PROJECTS ============================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.project-card {
    padding: 0; overflow: hidden;
}
.project-thumb {
    height: 180px;
    position: relative;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.project-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 16, 0.95));
}
.thumb-1 { background: linear-gradient(135deg, #0891b2, #0c4a6e), repeating-linear-gradient(45deg, transparent 0 20px, rgba(250,250,249,0.1) 20px 22px); }
.thumb-2 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.thumb-3 { background: linear-gradient(135deg, #db2777, #831843); }
.thumb-4 { background: linear-gradient(135deg, #ea580c, #7c2d12); }
.thumb-5 { background: linear-gradient(135deg, #16a34a, #14532d); }
.thumb-6 { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.thumb-overlay {
    position: absolute; top: 1rem; left: 1rem;
    z-index: 2;
}
.project-tag {
    font-family: var(--mono); font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.1em;
}
.project-body {
    padding: 1.5rem 1.75rem;
}
.project-body h3 {
    font-size: 1.15rem; color: var(--text);
    margin-bottom: 0.5rem;
}
.project-body p {
    color: var(--text-dim);
    font-size: 0.88rem; margin-bottom: 1rem;
}
.project-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tools span {
    font-family: var(--mono); font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(250, 250, 249, 0.08);
    border: 1px solid var(--border);
    color: var(--cyan-soft);
    border-radius: 4px;
}

/* ============================ TESTIMONIALS ============================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testi-card { padding: 2rem; }
.testi-stars {
    color: var(--yellow); margin-bottom: 1rem;
    letter-spacing: 0.2em; font-size: 0.95rem;
}
.testi-card p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700;
    color: var(--bg-0);
}
.testi-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }

/* ============================ CONTACT ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-family: var(--mono); font-size: 0.75rem;
    color: var(--text-dim); letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: var(--sans); font-size: 0.95rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(250, 250, 249, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--mono); font-size: 0.85rem;
    text-align: center;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--green);
}
.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}
#submitBtn:disabled {
    opacity: 0.6; cursor: not-allowed;
}

.channel-item {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}
.channel-item:hover {
    border-color: var(--cyan);
    transform: translateX(4px);
}
.channel-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); flex-shrink: 0;
}
.channel-icon svg { width: 18px; height: 18px; }
.channel-label {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--text-dim); letter-spacing: 0.15em;
    margin-bottom: 0.15rem;
}
.channel-value { color: var(--text); font-size: 0.9rem; }

.social-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-btn {
    flex: 1; min-width: 130px;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-family: var(--mono); font-size: 0.85rem;
    transition: all 0.3s ease;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
    border-color: var(--cyan); color: var(--cyan);
    box-shadow: var(--glow); transform: translateY(-2px);
}

.status-card .status-line {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--green); font-family: var(--mono); font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.status-dot-pulse {
    width: 10px; height: 10px;
    background: var(--green); border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: blink 1.5s ease-in-out infinite;
}
.status-desc { font-size: 0.85rem; color: var(--text-dim); }

/* ============================ FOOTER ============================ */
.footer {
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative; z-index: 2;
}
.footer-line {
    height: 1px; max-width: 600px; margin: 0 auto 2rem;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
}
.footer-text {
    font-family: var(--mono); font-size: 0.85rem;
    color: var(--text-dim); letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.footer-sub {
    font-family: var(--mono); font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================ ANIMATIONS ============================ */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Respect reduced-motion preference across the whole site */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-grid { animation: none; }
    .particle-canvas, .grain { display: none; }
}

/* ============================ RESPONSIVE ============================ */

/* ----- TABLET — 980px and below ----- */
@media (max-width: 980px) {
    .profile-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-flow { grid-template-columns: 1fr; }
    .process-arrow { transform: rotate(90deg); justify-self: center; }
    .side-nav { display: none; }
    .container { width: min(1280px, 94%); }
}

/* ----- MOBILE LARGE — 768px and below ----- */
@media (max-width: 768px) {
    .section { padding: 5rem 0 3.5rem; }
    .hero { padding: 5rem 0 3rem; min-height: auto; }

    /* Section titles */
    .section-title h2 { font-size: 1.6rem; }
    .section-title .bracket { font-size: 1.8rem; }
    .section-line { width: 80px; margin-bottom: 2rem; }
    .section-subtitle { font-size: 0.85rem; margin-top: -1.25rem; margin-bottom: 2rem; }

    /* Status bar — allow wrap */
    .status-bar {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        max-width: 100%;
    }
    .status-bar .divider { display: none; }

    /* Hero name */
    .hero-name {
        font-size: clamp(2.6rem, 13vw, 5.5rem);
        margin-bottom: 1.25rem;
    }

    /* Hero roles — stack vertically */
    .hero-roles {
        display: flex; flex-direction: column;
        font-size: 0.8rem; gap: 0.3rem;
        margin-bottom: 1.5rem;
    }
    .hero-roles .sep { display: none; }

    /* Hero badges */
    .hero-badges { gap: 0.5rem; margin-bottom: 2rem; }
    .badge { font-size: 0.75rem; padding: 0.4rem 0.85rem; }

    /* Terminal */
    .terminal { margin-bottom: 2rem; }
    .terminal-body {
        padding: 1rem;
        font-size: 0.72rem;
        line-height: 1.7;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .t-out { padding-left: 0.5rem; }
    .terminal-title { font-size: 0.7rem; }

    /* Hero CTA — stack full width */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .btn { width: 100%; justify-content: center; padding: 0.9rem 1rem; }

    /* Cards */
    .info-card, .stack-card, .exp-card, .service-card,
    .testi-card, .contact-card, .profile-summary { padding: 1.5rem 1.25rem; }
    .profile-summary p { font-size: 0.92rem; }

    /* Profile info — prevent long-text overflow */
    .info-item, .channel-item { min-width: 0; }
    .info-item a, .info-item span { word-break: break-word; overflow-wrap: anywhere; }
    .channel-item > div { min-width: 0; flex: 1; }
    .channel-value { word-break: break-word; overflow-wrap: anywhere; font-size: 0.85rem; }

    /* Experience */
    .exp-card { padding: 1.5rem 1.25rem; }
    .exp-header h3 { font-size: 1.1rem; word-break: break-word; }
    .exp-points { grid-template-columns: 1fr; }

    /* Services */
    .service-card { padding: 1.75rem 1.25rem; }
    .service-card h3 { font-size: 1.1rem; }

    /* Process timeline */
    .process-spine { left: 25px; }
    .process-row, .process-row.reversed {
        grid-template-columns: 50px 1fr;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    .process-node { width: 50px; height: 50px; }
    .node-circle { width: 46px; height: 46px; font-size: 1rem; }
    .node-circle::before { inset: -6px; }
    .process-content { padding: 1.25rem 1.25rem; }
    .process-content h3 { font-size: 1.1rem; }
    .process-content p { font-size: 0.88rem; }
    .process-tag { font-size: 0.65rem; }
    .process-meta { gap: 0.6rem; font-size: 0.7rem; }

    /* Form */
    .form-group input, .form-group textarea { font-size: 0.9rem; padding: 0.75rem 0.85rem; }
    .form-group textarea { min-height: 110px; }

    /* Boot screen */
    .boot-logo { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .boot-lines { font-size: 0.72rem; min-height: 150px; }

    /* Scroll progress slimmer on mobile */
    .scroll-progress { height: 2px; }
}

/* ----- MOBILE — 640px and below ----- */
@media (max-width: 640px) {
    .section { padding: 4rem 0 3rem; }
    .stack-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .metric { padding: 1rem 0.5rem; }
    .metric-value { font-size: 1.6rem; }
    .metric-label { font-size: 0.65rem; }

    .container { width: min(1280px, 95%); }

    /* Profile grid spacing */
    .profile-grid { gap: 1rem; }

    /* Services — already 1 col at this breakpoint */
    .services-grid { gap: 1rem; }

    /* Footer */
    .footer-text { font-size: 0.72rem; letter-spacing: 0.05em; }
    .footer-sub { font-size: 0.68rem; }
}

/* ----- TINY — 400px and below ----- */
@media (max-width: 400px) {
    .container { width: 95%; }
    .hero-name { font-size: clamp(2rem, 12vw, 2.6rem); }
    .terminal-body { font-size: 0.68rem; padding: 0.85rem; }
    .terminal-title { font-size: 0.65rem; }
    .badge { font-size: 0.7rem; padding: 0.35rem 0.7rem; gap: 0.35rem; }
    .section-title h2 { font-size: 1.4rem; }
    .info-card, .stack-card, .exp-card, .service-card,
    .testi-card, .contact-card, .profile-summary { padding: 1.25rem 1rem; }
    .exp-points li, .service-list li { font-size: 0.82rem; }
    .channel-item { padding: 0.7rem 0.85rem; gap: 0.6rem; }
    .channel-icon { width: 30px; height: 30px; }
    .social-btn { min-width: 100px; font-size: 0.78rem; padding: 0.65rem 0.75rem; }
    .form-group label { font-size: 0.7rem; }

    /* Process — even tighter */
    .process-spine { left: 21px; }
    .process-row, .process-row.reversed {
        grid-template-columns: 42px 1fr;
        gap: 0.6rem;
    }
    .process-node { width: 42px; height: 42px; }
    .node-circle { width: 40px; height: 40px; font-size: 0.85rem; }
    .process-content { padding: 1rem; }
    .process-row .process-content::after,
    .process-row.reversed .process-content::before { left: -10px; width: 10px; }
}
