:root {
    --bg: #080c14;
    --bg2: #0c1120;
    --surface: #0f1623;
    --surface2: #141d2e;
    --surface3: #1c2844;
    --border: rgba(255,255,255,.06);
    --border-soft: rgba(255,255,255,.03);
    --text: #f0f4ff;
    --text-soft: #9ba8c4;
    --muted: #5a6a8a;
    --accent: #4f8ef7;
    --accent2: #7c6af7;
    --accent-glow: rgba(79,142,247,.2);
    --accent-soft: rgba(79,142,247,.1);
    --teal: #4f8ef7;
    --teal-dark: #3a7aee;
    --teal-light: rgba(79,142,247,.12);
    --ink: #f0f4ff;
    --slate: #9ba8c4;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 28px;
    height: 68px;
    display: flex; align-items: center;
    transition: background .3s, border-color .3s;
}
.navbar.scrolled {
    background: rgba(8,12,20,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1120px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
    font-size: 13.5px; font-weight: 500; color: var(--muted);
    transition: color .2s; position: relative; letter-spacing: .2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent); transition: width .25s; border-radius: 1px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(79,142,247,.25);
    padding: 7px 18px; border-radius: 8px;
    font-weight: 600; font-size: 13px;
    transition: all .2s;
}
.nav-cta:hover { background: var(--accent); color: #fff; border-color: transparent; }
.nav-cta::after { display: none; }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    padding: 6px; border-radius: 8px; color: var(--text);
    transition: background .2s;
}
.mobile-menu-btn:hover { background: var(--surface2); }
.mobile-menu-btn svg { width: 22px; height: 22px; }

.mobile-nav {
    display: none; position: fixed; inset: 0;
    background: rgba(8,12,20,.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    z-index: 999; flex-direction: column; align-items: center;
    justify-content: center; gap: 36px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 700; color: var(--text-soft); transition: color .2s; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .nav-cta { font-size: 15px; padding: 10px 28px; }
.mobile-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; cursor: pointer; color: var(--muted);
}
.mobile-close svg { width: 26px; height: 26px; }

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

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

.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background: var(--bg);
}

.hero-glow {
    position: absolute; pointer-events: none; z-index: 0;
    border-radius: 50%; filter: blur(80px);
}
.hero-glow-1 {
    width: 500px; height: 500px;
    background: rgba(79,142,247,.12);
    top: -10%; left: -5%;
    animation: glow-drift 12s ease-in-out infinite;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    background: rgba(124,106,247,.08);
    bottom: 0; right: 5%;
    animation: glow-drift 16s ease-in-out infinite reverse;
}

.hero-inner {
    max-width: 1120px; margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
    position: relative; z-index: 1; width: 100%;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px;
    border: 1px solid rgba(79,142,247,.3);
    background: rgba(79,142,247,.06);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--accent); letter-spacing: .6px; text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text);
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, #a78ef7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px; color: var(--text-soft);
    max-width: 480px; margin-bottom: 40px;
    line-height: 1.75; font-weight: 400;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 24px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    transition: all .22s; border: 1px solid transparent; cursor: pointer;
    font-family: inherit; letter-spacing: .1px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,142,247,.35);
}
.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79,142,247,.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: rgba(79,142,247,.4);
    color: var(--text);
    background: var(--accent-soft);
}

.btn-white {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79,142,247,.3);
}
.btn-white:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* Hero card / visual */
.hero-visual { position: relative; }

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,142,247,.4), transparent);
}

.hero-card h3 {
    font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.hero-card p { color: var(--muted); font-size: 12px; margin-bottom: 20px; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 500;
    color: var(--text-soft);
    transition: all .18s;
}
.tag:hover {
    background: var(--accent-soft);
    border-color: rgba(79,142,247,.3);
    color: var(--accent);
}

/* Stats row below hero text */
.hero-stats {
    display: flex; gap: 32px; margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat-value {
    font-size: 26px; font-weight: 800;
    color: var(--text); line-height: 1; margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 12px; color: var(--muted); font-weight: 500;
}

/* hero shape legacy compat */
.hero-shape { display: none; }

/* ── Hero Orb Animation ── */
.hero-orb-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}

/* Central orb */
.hero-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140px; height: 140px;
}

.orb-core {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78ef7);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 26px; color: #fff;
    letter-spacing: -1px;
    box-shadow: 0 0 40px rgba(79,142,247,.5), 0 0 80px rgba(79,142,247,.2);
    z-index: 10;
}

/* Rings */
.orb-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(79,142,247,.2);
}
.orb-ring-1 { inset: -30px; animation: spin 12s linear infinite; }
.orb-ring-2 { inset: -60px; border-color: rgba(167,142,247,.15); animation: spin 20s linear infinite reverse; }
.orb-ring-3 { inset: -95px; border-color: rgba(79,142,247,.08); animation: spin 30s linear infinite; }

/* Orbiting dots */
.orb-dot {
    position: absolute;
    width: 8px; height: 8px; border-radius: 50%;
    top: 50%; left: 50%;
}
.orb-dot-1 {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: orbit-1 12s linear infinite;
    margin: -4px 0 0 -4px;
}
.orb-dot-2 {
    background: #a78ef7;
    box-shadow: 0 0 10px #a78ef7;
    animation: orbit-2 20s linear infinite;
    margin: -4px 0 0 -4px;
}
.orb-dot-3 {
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    width: 6px; height: 6px;
    animation: orbit-3 30s linear infinite;
    margin: -3px 0 0 -3px;
}

/* Tech label tags floating around */
.orb-tag {
    position: absolute;
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-soft);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.orb-tag-1 { top: 8%;  left: 50%; transform: translateX(-50%); animation: float-tag 6s ease-in-out infinite; border-color: rgba(79,142,247,.3); color: #7fb3fa; }
.orb-tag-2 { top: 30%; left: 2%;  animation: float-tag 7s ease-in-out infinite 1s; border-color: rgba(167,142,247,.3); color: #c4b0fa; }
.orb-tag-3 { top: 30%; right: 2%; animation: float-tag 8s ease-in-out infinite 0.5s; border-color: rgba(16,185,129,.3); color: #34d399; }
.orb-tag-4 { bottom: 28%; left: 5%;  animation: float-tag 6.5s ease-in-out infinite 1.5s; border-color: rgba(79,142,247,.3); color: #7fb3fa; }
.orb-tag-5 { bottom: 28%; right: 5%; animation: float-tag 7.5s ease-in-out infinite 2s; border-color: rgba(167,142,247,.3); color: #c4b0fa; }

/* Floating metric mini-cards */
.hf-card {
    position: absolute;
    display: flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-soft);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 20;
}
.hf-card svg { flex-shrink: 0; }

.hf-card-1 { top: 0;    left: 0;   animation: float-tag 7s ease-in-out infinite; color: #7fb3fa; border-color: rgba(79,142,247,.2); }
.hf-card-1 svg { color: var(--accent); }
.hf-card-2 { bottom: 8%; left: 0;   animation: float-tag 8s ease-in-out infinite 1s; color: #34d399; border-color: rgba(16,185,129,.2); }
.hf-card-2 svg { color: #10b981; }
.hf-card-3 { top: 0;    right: 0;  animation: float-tag 6s ease-in-out infinite 2s; color: #c4b0fa; border-color: rgba(167,142,247,.2); }
.hf-card-3 svg { color: #a78ef7; }

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

@keyframes orbit-1 {
    from { transform: rotate(0deg)   translateX(100px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}
@keyframes orbit-2 {
    from { transform: rotate(120deg) translateX(130px) rotate(-120deg); }
    to   { transform: rotate(480deg) translateX(130px) rotate(-480deg); }
}
@keyframes orbit-3 {
    from { transform: rotate(240deg) translateX(165px) rotate(-240deg); }
    to   { transform: rotate(600deg) translateX(165px) rotate(-600deg); }
}

@keyframes float-tag {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* override float-tag-1 translateX */
.orb-tag-1 {
    animation-name: float-tag-center;
}
@keyframes float-tag-center {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg2); }

.section-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 1.8px; margin-bottom: 14px;
}
.section-title::before {
    content: '';
    width: 20px; height: 1px; background: var(--accent); display: block;
}

.section-heading {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--text);
}

.section-desc {
    color: var(--text-soft);
    max-width: 540px;
    margin-bottom: 56px;
    font-size: 16px;
    line-height: 1.75;
}

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

.about-text p {
    color: var(--text-soft);
    margin-bottom: 18px;
    font-size: 15.5px;
    line-height: 1.8;
}

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

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

.stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative; overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,142,247,.3), transparent);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79,142,247,.2);
}

.stat-number {
    font-size: 34px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #a78ef7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 8px;
}

.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ═══════════════════════════════════════
   SERVICES — BENTO GRID
═══════════════════════════════════════ */
.svc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.svc-header-desc {
    color: var(--text-soft);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.75;
    margin: 0;
}

.svc-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
}

.svc-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    cursor: default;
}

.svc-item:hover {
    border-color: rgba(99,102,241,.3);
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0,0,0,.35);
}

.svc-item:hover .svc-line {
    width: 100%;
}

.svc-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--surface) 60%, rgba(99,102,241,.06));
}

.svc-item-inner {
    padding: 32px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.svc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.svc-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99,102,241,.18);
    flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; }

.svc-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    opacity: .35;
    letter-spacing: 1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.svc-item-inner h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -.2px;
}

.svc-featured .svc-item-inner h3 { font-size: 20px; }

.svc-item-inner p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.75;
    flex: 1;
}

.svc-line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    border-radius: 2px;
    width: 0;
    margin-top: 20px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════
   SKILLS — MARQUEE
═══════════════════════════════════════ */
.skills-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.skills-header-desc {
    color: var(--text-soft);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.75;
    margin: 0;
}

.skills-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-row-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.skills-row-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    white-space: nowrap;
    min-width: 130px;
    flex-shrink: 0;
}
.skills-row-label svg { color: var(--accent); flex-shrink: 0; }

.skills-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.skills-fade {
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.skills-fade-l {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.skills-fade-r {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
}

.skills-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: marquee-ltr 28s linear infinite;
}

.skills-track-reverse {
    animation: marquee-rtl 32s linear infinite;
}

.skills-track:hover,
.skills-track-reverse:hover {
    animation-play-state: paused;
}

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

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

.sk-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
    letter-spacing: .2px;
    transition: filter .2s, transform .2s;
    cursor: default;
}

.sk-pill:hover { filter: brightness(1.25); transform: translateY(-2px); }

.sk-blue   { background: rgba(79,142,247,.1);  color: #7fb3fa; border-color: rgba(79,142,247,.22); }
.sk-purple { background: rgba(167,142,247,.1); color: #c4b0fa; border-color: rgba(167,142,247,.22); }
.sk-green  { background: rgba(16,185,129,.08); color: #34d399; border-color: rgba(16,185,129,.2); }
.sk-orange { background: rgba(251,146,60,.08); color: #fb923c; border-color: rgba(251,146,60,.2); }

/* legacy compat */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-bar { height: 4px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a78ef7); border-radius: 4px; width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-item {
    display: grid;
    grid-template-columns: 48px 200px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: transparent;
    cursor: default;
    transition: background .22s, border-color .22s, transform .22s;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(79,142,247,.04), rgba(124,106,247,.04));
    opacity: 0;
    transition: opacity .22s;
}

.project-item:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateX(6px);
}

.project-item:hover::before { opacity: 1; }

.project-item + .project-item {
    border-top: 1px solid var(--border);
}

.project-item:hover + .project-item { border-top-color: transparent; }

/* Number index */
.project-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    opacity: .4;
    transition: opacity .22s, color .22s;
    user-select: none;
}

.project-item:hover .project-num {
    opacity: 1;
    color: var(--accent);
}

/* Thumbnail */
.project-thumb {
    width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--surface2);
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .4s ease, filter .4s ease;
    filter: brightness(.85) saturate(.9);
}

.project-item:hover .project-thumb img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,142,247,.12), rgba(124,106,247,.08));
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.project-item:hover .project-thumb::after { opacity: 1; }

.project-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface2), var(--surface3));
}

.project-thumb-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--muted);
    opacity: .4;
}

/* Main content */
.project-content { min-width: 0; }

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

.project-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
    transition: color .2s;
}

.project-item:hover .project-title { color: var(--accent); }

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(16,185,129,.1);
    color: #34d399;
    border: 1px solid rgba(16,185,129,.2);
}

.project-status::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 5px currentColor;
}

.project-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: 620px;
}

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

.project-tech span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: .3px;
    transition: color .2s, border-color .2s, background .2s;
}

.project-item:hover .project-tech span {
    border-color: rgba(79,142,247,.2);
    color: var(--text-soft);
}

/* Arrow */
.project-arrow {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
    text-decoration: none;
    transition: all .2s;
    opacity: 0;
    transform: translateX(-8px);
}

.project-item:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.project-arrow svg { width: 15px; height: 15px; }

/* No demo placeholder */
.project-arrow-ph {
    width: 36px;
    flex-shrink: 0;
}

/* Thumb clickable & zoom icon */
.project-thumb-clickable {
    cursor: zoom-in;
}

.thumb-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .25s;
    border-radius: 9px;
}

.thumb-zoom-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

.project-thumb-clickable:hover .thumb-zoom-icon { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: zoom-out;
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: min(92vw, 1100px);
    transform: scale(.92);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.lightbox.active .lightbox-inner {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    object-fit: contain;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
}

.lightbox-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    letter-spacing: .3px;
    margin: 0;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,.18);
    transform: rotate(90deg);
}

.lightbox-close svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 64px 56px;
    text-align: center;
    position: relative; overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,142,247,.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-box h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -1px;
    color: var(--text);
    position: relative; z-index: 1;
}

.contact-box > p {
    color: var(--text-soft);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
    font-size: 16px; line-height: 1.7;
    position: relative; z-index: 1;
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
    position: relative; z-index: 1;
}

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

.form-group label {
    display: block;
    font-size: 12px; font-weight: 700;
    margin-bottom: 7px;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: .6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control { resize: vertical; min-height: 130px; }

.contact-form .btn-white { width: 100%; justify-content: center; margin-top: 4px; padding: 13px; }

.alert {
    max-width: 520px; margin: 0 auto 20px;
    padding: 13px 18px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500;
    text-align: left; position: relative; z-index: 1;
    border: 1px solid;
}
.alert-success {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.25);
    color: #34d399;
}
.alert-error {
    background: rgba(244,63,94,.08);
    border-color: rgba(244,63,94,.25);
    color: #fb7185;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 36px 28px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.footer a { color: var(--text-soft); font-weight: 500; transition: color .2s; }
.footer a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 42px; height: 42px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-soft); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: all .3s; z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent); color: #fff; border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow);
}
.back-to-top svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .32s; }
.reveal-delay-4 { transition-delay: .44s; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes glow-drift { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-20px) scale(1.08)} }
@keyframes pulse-dot { 0%,100%{opacity:1;box-shadow:0 0 8px var(--accent)} 50%{opacity:.4;box-shadow:0 0 4px var(--accent)} }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .hero-orb-wrap { width: 340px; height: 340px; }
    .hero-orb { width: 110px; height: 110px; }
    .orb-core { font-size: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .svc-bento { grid-template-columns: repeat(2, 1fr); }
    .svc-featured { grid-column: span 2; }
}

@media (max-width: 600px) {
    .hero-orb-wrap { width: 280px; height: 280px; }
    .hero-orb { width: 90px; height: 90px; }
    .orb-ring-1 { inset: -24px; }
    .orb-ring-2 { inset: -48px; }
    .orb-ring-3 { inset: -76px; }
    .hf-card { font-size: 11px; padding: 6px 10px; }
    .orb-tag { font-size: 10px; padding: 4px 9px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 110px 0 72px; min-height: auto; }
    .hero-inner { padding: 0 20px; }
    .hero h1 { font-size: 38px; letter-spacing: -1px; }
    .hero-desc { font-size: 15px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .section { padding: 80px 0; }
    .section-heading { font-size: 28px; }
    .about-grid { gap: 32px; }
    .stats { grid-template-columns: repeat(3,1fr); gap: 12px; }
    .svc-bento { grid-template-columns: 1fr; }
    .svc-featured { grid-column: span 1; }
    .skills-row-label { min-width: 100px; font-size: 9px; }
    .skills-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .project-item { grid-template-columns: 40px 140px 1fr auto; gap: 16px; padding: 18px 16px; }
    .project-thumb { width: 140px; height: 90px; }
    .project-num { font-size: 10px; }
    .project-title { font-size: 16px; }
    .contact-box { padding: 40px 24px; }
    .container { padding: 0 20px; }
}

@media (max-width: 560px) {
    .project-item { grid-template-columns: 1fr auto; gap: 14px; padding: 16px 12px; }
    .project-num { display: none; }
    .project-thumb { display: none; }
    .project-desc { display: none; }
    .project-arrow { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .stats { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
