/* ============================================
   KyrgyzDev — Muratbek Omurzakov · Portfolio
   Pure CSS · No frameworks · 2026
   ============================================ */

:root {
    --bg: #07070b;
    --bg-1: #0d0d14;
    --bg-2: #14141f;
    --surface: rgba(20, 20, 31, 0.55);
    --surface-solid: #14141f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f5f5f7;
    --text-2: #b8b8c8;
    --text-3: #7a7a8e;
    --text-muted: #4a4a5a;

    --primary: #4f8eff;
    --primary-hover: #6fa3ff;
    --accent: #00d4ff;
    --accent-2: #b06fff;
    --success: #4ade80;

    --gradient: linear-gradient(135deg, #4f8eff 0%, #00d4ff 50%, #b06fff 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #4f8eff 50%, #00d4ff 100%);

    --shadow-glow: 0 0 60px rgba(79, 142, 255, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --container: 1180px;
    --gutter: clamp(20px, 4vw, 40px);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(79, 142, 255, 0.35); color: #fff; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 10px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #3a3a4d; }

/* ===== Background layers ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: glow-float 16s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; left: -150px;
}

.bg-glow-2 {
    width: 700px; height: 700px;
    background: var(--accent-2);
    bottom: -200px; right: -200px;
    opacity: 0.25;
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
}

.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* ===== Custom cursor ===== */
.cursor, .cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    will-change: transform;
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
                background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cursor {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--primary);
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(79, 142, 255, 0.1);
    border-color: var(--accent);
}

@media (hover: none), (max-width: 900px) {
    .cursor, .cursor-dot { display: none; }
}

/* ===== Scroll progress ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient);
    z-index: 999;
    transition: width 0.05s linear;
}

/* ===== Layout ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}

.section {
    padding: clamp(70px, 12vw, 130px) 0;
    position: relative;
}

.section-head {
    margin-bottom: clamp(40px, 6vw, 70px);
    max-width: 800px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 999px;
}

.section-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.section-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-2);
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 24px rgba(79, 142, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 142, 255, 0.55);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary > * { position: relative; z-index: 1; }

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s var(--ease);
}

.header.scrolled {
    background: rgba(7, 7, 11, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: transform 0.2s;
}

.logo:hover { transform: scale(1.05); }

.logo-bracket {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(79, 142, 255, 0.6);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 999px;
    transition: all 0.2s var(--ease);
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--text);
    background: rgba(79, 142, 255, 0.12);
}

.nav-cta {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 90px 28px 40px;
        background: rgba(13, 13, 20, 0.97);
        backdrop-filter: blur(24px);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-link {
        font-size: 17px;
        padding: 14px 18px;
    }
}

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

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

.sym {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    color: var(--primary);
    opacity: 0.08;
    animation: float-sym 8s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes float-sym {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(8deg); }
}

.hero-inner {
    text-align: center;
    max-width: 920px;
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 28px;
}

.hero-tag .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(46px, 9vw, 110px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cursor-blink {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    animation: blink 1s steps(2) infinite;
}

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

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 24px;
    min-height: 1.8em;
}

.role-prefix {
    color: var(--accent);
}

.role-cycle {
    color: var(--text);
    border-right: 2px solid var(--accent);
    padding-right: 4px;
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-2);
    line-height: 1.7;
}

.hero-desc strong { color: var(--text); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: clamp(20px, 4vw, 50px);
    padding: 24px 36px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    z-index: 3;
}

.scroll-hint-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.4; }
    50% { transform: scaleY(0.5) translateY(20px); opacity: 1; }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.about-text p {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-2);
    margin-bottom: 18px;
    line-height: 1.75;
}

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

.about-text .quote {
    margin-top: 24px;
    padding: 20px 24px;
    border-left: 3px solid var(--primary);
    background: rgba(79, 142, 255, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
    font-size: 16px;
}

.about-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-card-head, .terminal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28ca42; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    margin-left: auto;
    margin-right: auto;
}

.about-card-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    overflow-x: auto;
}

.t-key { color: #79c0ff; }
.t-str { color: #a5d6a4; }
.t-num { color: #f0883e; }
.t-bool { color: #ff7b72; }

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

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

.timeline-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--primary);
    box-shadow: 0 0 16px rgba(79, 142, 255, 0.6);
    flex-shrink: 0;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.4;
}

.timeline-content {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    transition: all 0.3s var(--ease);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -8px;
    width: 16px;
    height: 16px;
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}

.timeline-content:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.timeline-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.tag-intl { background: rgba(0, 212, 255, 0.1); color: var(--accent); border: 1px solid rgba(0, 212, 255, 0.25); }
.tag-gov { background: rgba(176, 111, 255, 0.1); color: var(--accent-2); border: 1px solid rgba(176, 111, 255, 0.25); }
.tag-edu { background: rgba(74, 222, 128, 0.1); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.25); }

.timeline-role {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 14px;
}

.timeline-desc strong { color: var(--text); }

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

.chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    background: rgba(79, 142, 255, 0.08);
    border: 1px solid rgba(79, 142, 255, 0.15);
    color: var(--primary);
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 28px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s var(--ease);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
                rgba(79, 142, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 142, 255, 0.1);
    border: 1px solid rgba(79, 142, 255, 0.2);
    border-radius: 14px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

.service-desc strong { color: var(--text); }

/* ===== STACK ===== */
.stack-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.stack-group {
    padding: 24px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.stack-group:hover { border-color: var(--border-strong); }

.stack-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

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

.stack-item {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.2s;
    cursor: default;
}

.stack-item:hover {
    background: rgba(79, 142, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.marquee {
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-3);
}

.marquee-track span:nth-child(odd) {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ===== CASES ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.case-card {
    padding: 32px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.case-card-feature {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(79, 142, 255, 0.08), rgba(176, 111, 255, 0.04));
    border-color: rgba(79, 142, 255, 0.2);
}

@media (max-width: 700px) {
    .case-card-feature { grid-column: span 1; }
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(79, 142, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

.case-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(79, 142, 255, 0.15);
}

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

.case-emoji {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.case-status {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.25);
    letter-spacing: 0.05em;
}

.case-title {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.case-role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 14px;
}

.case-desc {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 18px;
}

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

/* ===== CONTACT ===== */
.section-contact {
    padding-bottom: clamp(40px, 8vw, 80px);
}

.contact-terminal {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 80px rgba(79, 142, 255, 0.1);
}

.terminal-body {
    padding: 28px 32px 32px;
    font-family: var(--font-mono);
}

.term-line {
    margin: 14px 0 8px;
    color: var(--text-2);
    font-size: 14px;
}

.term-prompt {
    color: var(--success);
    margin-right: 10px;
    font-weight: 700;
}

.term-out {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 4px;
    padding-left: 22px;
}

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1s steps(2) infinite;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0 14px;
    font-family: var(--font);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}

.contact-link:hover {
    border-color: var(--primary);
    background: rgba(79, 142, 255, 0.05);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 142, 255, 0.1);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.25s;
}

.contact-link:hover .contact-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(7, 7, 11, 0.5);
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo .logo-bracket { color: var(--primary); }

.footer-tagline {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
    font-style: italic;
}

.footer-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-meta dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.footer-meta dt {
    color: var(--text-3);
    font-weight: 500;
}

.footer-meta dd {
    color: var(--text-2);
}

.footer-meta p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

.footer-meta strong { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-3);
}

.footer-built {
    font-family: var(--font-mono);
}

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

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

/* ===== Utility & touches ===== */
@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 28px;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
    }
}
