:root {
  --bg: #050709;
  --bg2: #080b12;
  --bg3: #0d1117;
  --surface: rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(0,212,255,0.4);
  --text: #e8eaf0;
  --text2: #9ba3b5;
  --text3: #5a6273;
  --cyan: #00d4ff;
  --cyan2: #0099cc;
  --violet: #7c3aed;
  --violet2: #9d5bf5;
  --green: #00ff88;
  --green-text: #7CFFB2;
  --orange: #ff6b35;
  --glow-c: rgba(0,212,255,0.15);
  --glow-v: rgba(124,58,237,0.15);
  --font-head: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg: #f0f2f8;
  --bg2: #e8ecf4;
  --bg3: #ffffff;
  --surface: rgba(0,0,0,0.04);
  --surface2: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.1);
  --border-h: rgba(0,150,200,0.5);
  --text: #0d1117;
  --text2: #4a5568;
  --text3: #718096;
  --cyan: #0077aa;
  --cyan2: #005580;
  --violet: #5a21c4;
  --violet2: #7c3aed;
  --green: #00aa55;
  --green-text: #0a8a4f;
  --orange: #dd4400;
  --glow-c: rgba(0,150,200,0.12);
  --glow-v: rgba(90,33,196,0.1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  transition:background .4s, color .4s;
}

/* ── CANVAS BG ── */
#bg-canvas {
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.5;
}

/* ── SCROLL PROGRESS ── */
#scroll-bar {
  position:fixed; top:0; left:0; height:2px; z-index:200;
  background:linear-gradient(90deg,var(--cyan),var(--violet));
  transition:width .1s linear;
  box-shadow:0 0 8px var(--cyan);
}

/* ── NAV ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 6%; height:64px;
  backdrop-filter:blur(24px) saturate(180%);
  background:rgba(5,7,9,0.8);
  border-bottom:1px solid var(--border);
  transition:background .4s;
}
[data-theme="light"] nav { background:rgba(240,242,248,0.85); }

.nav-logo {
  font-family:var(--font-head);
  font-size:.9rem; font-weight:900;
  letter-spacing:.15em;
  background:linear-gradient(90deg,var(--cyan),var(--violet2));
  -webkit-background-clip:text; color:transparent;
}
.nav-right { display:flex; align-items:center; gap:2rem; }
.nav-links { display:flex; gap:2rem; list-style:none; }
.nav-links a {
  color:var(--text2); text-decoration:none; font-size:.78rem;
  letter-spacing:.12em; text-transform:uppercase; font-weight:500;
  position:relative; transition:color .25s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px;
  background:linear-gradient(90deg,var(--cyan),var(--violet2));
  transition:width .3s ease;
}
.nav-links a:hover { color:var(--cyan); }
.nav-links a:hover::after { width:100%; }

/* theme toggle */
.theme-btn {
  width:38px; height:38px; border-radius:50%;
  background:var(--surface2); border:1px solid var(--border);
  color:var(--text2); font-size:.95rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:.3s; backdrop-filter:blur(10px);
}
.theme-btn:hover { border-color:var(--cyan); color:var(--cyan); }

/* ── MOBILE NAV TOGGLE (hamburger) ── */
.nav-toggle {
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:38px; height:38px;
  background:none; border:none; cursor:pointer;
  z-index:110;
}
.nav-toggle span {
  display:block; width:22px; height:2px;
  background:var(--text); transition:.3s;
  border-radius:2px;
}
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── SECTIONS ── */
section { position:relative; z-index:1; padding:120px 6%; }
.container { max-width:1140px; margin:0 auto; }

/* ── HERO ── */
.hero { min-height:calc(100vh - 80px); display:flex; align-items:center; padding:100px 0;}
.hero-inner {
  width:100%; display:grid;
  grid-template-columns:1fr 380px;
  grid-template-rows:auto auto;
  column-gap:60px; row-gap:28px;
}
/* left content column spans both right-column rows, vertically centered
   against the combined height of the avatar + terminal stack */
.hero-left { grid-column:1; grid-row:1 / span 2; align-self:center; }
.hero-avatar { grid-column:2; grid-row:1; align-self:end; }
.hero-terminal { grid-column:2; grid-row:2; align-self:start; }

.hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.15em;
  transition:.3s; text-transform:uppercase; color:var(--cyan); margin-bottom:20px;
  background:rgba(0,212,255,0.07); border:1px solid rgba(0,212,255,0.2);
  padding:6px 14px; border-radius:100px;
}
.hero-tag:hover{
    transform:translateY(-2px);
    border-color:var(--cyan);
}
.hero-tag::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--cyan); animation:blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* profile avatar — right column, above the terminal on desktop */
.hero-avatar {
  width:208px; height:208px;
  border-radius:50%; padding:5px;
  background:linear-gradient(135deg, var(--cyan) 0%, var(--violet2) 60%, var(--green) 100%);
  box-shadow:0 16px 40px rgba(0,212,255,.22);
  flex-shrink:0;
  margin:0 auto;
}
.hero-avatar img {
  width:100%; height:100%; display:block;
  border-radius:50%; object-fit:cover; object-position:center;
  background:var(--bg3); border:3px solid var(--bg);
}

.hero-name {
  font-family:var(--font-head);
  font-size:clamp(44px,6.5vw,80px);
  font-weight:900; line-height:1.05; letter-spacing:-.02em;
  margin-bottom:16px;
}
.hero-name .line1 { display:block; color:var(--text); }
.hero-name .line2 {
  display:block;
  background:linear-gradient(100deg, var(--cyan) 0%, var(--violet2) 60%, var(--green) 100%);
  -webkit-background-clip:text; color:transparent;
  background-size:200% auto; animation:shimmer 4s linear infinite;
}
@keyframes shimmer { to{background-position:200% center} }

.hero-location{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--text3);
    font-size:.95rem;
    margin-bottom:18px;
}

.hero-typed {
  font-family:var(--font-mono); font-size:.95rem; color:var(--cyan);
  margin-bottom:20px; min-height:1.4em;
}
.hero-typed .cursor-blink { animation:cursor-b .75s step-end infinite; }
@keyframes cursor-b { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc { color:var(--text2); font-size:1.05rem; line-height:1.9; max-width:700px; margin-bottom:20px; font-weight:300; text-align:justify; text-align-last:left; }

.hero-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:20px; margin:35px 0;}

.stat{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:20px;
    transition:.3s;
}

.stat:hover{
    transform:translateY(-6px);
    border-color:var(--cyan);
}

.stat-num {
  font-family:var(--font-head); font-size:2rem; font-weight:900;
  background:linear-gradient(135deg,var(--cyan),var(--violet2));
  -webkit-background-clip:text; color:transparent; line-height:1;
  display:block;
}
.stat-label { font-family:var(--font-mono); font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; color:var(--text3); margin-top:4px; }

.hero-cta { display:flex; flex-wrap:wrap; gap:16px; margin-top:20px;}

.hero-highlights{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:35px;
}

.hero-highlights span{
    padding:8px 14px;
    border-radius:30px;

    background:rgba(0,212,255,.08);
    border:1px solid rgba(0,212,255,.15);

    color:var(--cyan);

    font-size:.85rem;
    font-weight:500;
}

.availability{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    margin-bottom:28px;

    background:rgba(0,255,120,.08);
    border:1px solid rgba(0,255,120,.25);
    border-radius:999px;

    color:var(--green-text);
    font-size:.9rem;
    font-weight:600;
}

/* hero terminal card (fills the second grid column) */
.hero-terminal {
  background:var(--bg3); border:1px solid var(--border);
  border-radius:16px; overflow:hidden;
  box-shadow:0 24px 64px rgba(0,0,0,.35);
}
.hero-terminal-bar {
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:var(--surface2); border-bottom:1px solid var(--border);
}
.hero-terminal-bar .dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-r { background:#ff5f57; } .dot-y { background:#febc2e; } .dot-g { background:#28c840; }
.hero-terminal-title {
  margin-left:8px; font-family:var(--font-mono); font-size:.72rem;
  color:var(--text3); letter-spacing:.05em;
}
.hero-terminal-body { padding:22px 20px; font-family:var(--font-mono); font-size:.82rem; line-height:1.9; }
.hero-terminal-body .prompt { color:var(--cyan); margin-right:8px; }
.hero-terminal-body .out { color:var(--text2); padding-left:1.4em; }
.hero-terminal-body .out-green { color:var(--green-text); }
.hero-terminal-body p { margin:0; }
.hero-terminal-body .cursor-blink { color:var(--cyan); }

/* hero-only: reset explicit grid placement in the narrow gap between
   the global 1050px collapse and the hero's own 992px breakpoint,
   without touching the original @media(max-width:1050px) block below
   (which controls unrelated sections and must keep its original
   cascade position) */
@media (min-width:993px) and (max-width:1050px) {
  .hero-inner { grid-template-rows:none; }
  .hero-left, .hero-avatar, .hero-terminal { grid-column:auto; grid-row:auto; align-self:auto; }
  .hero-avatar { width:176px; height:176px; margin:0 auto; }
}

@media (max-width:992px){

.hero-inner{
    grid-template-columns:1fr;
    grid-template-rows:none;
    row-gap:32px;
}

/* single column: reset explicit placement so items stack in DOM
   order — avatar, then hero content, then terminal */
.hero-left,
.hero-avatar,
.hero-terminal{
    grid-column:auto;
    grid-row:auto;
    align-self:auto;
}

.hero{
    text-align:center;
}

.hero-avatar{
    width:176px;
    height:176px;
    margin-left:auto;
    margin-right:auto;
}

.hero-desc{
    margin:auto;
}

.hero-location{
    justify-content:center;
}

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

.hero-highlights{
    justify-content:center;
}

.hero-cta{
    justify-content:center;
}

.hero-terminal{
    max-width:480px;
    margin:0 auto;
    width:100%;
}

}

@media (max-width:576px){

.hero-avatar{
    width:136px;
    height:136px;
    margin-bottom:18px;
}

.hero-name{
    font-size:52px;
}

.hero-stats{
    grid-template-columns:1fr;
}

.hero-tag{
    font-size:.6rem;
}

.hero-highlights span{
    width:100%;
    justify-content:center;
    display:flex;
}

.hero-terminal-body{
    font-size:.76rem;
    padding:18px 16px;
    line-height:1.75;
}

}
/* RESUME */
.resume-card {
  margin: 0;
  padding: 22px;
  max-width: 600px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.resume-header h3 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  color: var(--text);
}

.resume-header p {
  margin: 0 0 16px 0;
  color: var(--text2);
  font-size: 0.95rem;
}

.resume-highlights p {
  margin-bottom: 8px;
  color: var(--text2);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Make CTA stronger (scoped to the resume card only so it doesn't
   override the shared .btn sizing used by btn-primary/btn-outline elsewhere) */
.resume-card .btn-primary {
  margin-top: 18px;
}

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:10px; font-size:.82rem;
  font-weight:600; text-decoration:none; transition:.3s ease;
  letter-spacing:.06em; position:relative; overflow:hidden;
  font-family:var(--font-body); cursor:pointer;
}
.btn-primary {
  background:linear-gradient(135deg, var(--cyan2), var(--violet));
  color:#fff; border:none;
  box-shadow:0 4px 20px rgba(0,212,255,.2);
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 12px 40px rgba(0,212,255,.35); }

.btn-outline {
  background:var(--surface); border:1px solid var(--border); color:var(--text2);
  backdrop-filter:blur(10px);
}
.btn-outline:hover { border-color:var(--cyan); color:var(--cyan); background:rgba(0,212,255,.05); transform:translateY(-3px); }

/* ── SECTION HEADERS ── */
.section-kicker {
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--cyan); margin-bottom:10px;
  display:flex; align-items:center; gap:10px;
}
.section-kicker::before { content:'//'; color:var(--violet2); }

.section-title {
  font-family:var(--font-head); font-size:clamp(26px,3.5vw,44px);
  font-weight:900; letter-spacing:-.02em; margin-bottom:56px; line-height:1.1;
}
.section-title em { font-style:normal; background:linear-gradient(90deg,var(--cyan),var(--violet2)); -webkit-background-clip:text; color:transparent; }

/* ── ABOUT ── */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:start; }
.about-headline {
  font-family:var(--font-head); font-size:clamp(18px,2.2vw,26px);
  font-weight:700; line-height:1.45; letter-spacing:-.02em;
  color:var(--text); margin-bottom:20px;
}
.about-headline em { font-style:normal; color:var(--cyan); }
.about-body { color:var(--text2); font-size:.95rem; line-height:1.85; font-weight:300; text-align:justify; text-align-last:left; }

.about-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mini-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:20px; transition:.35s;
  position:relative; overflow:hidden;
}
.mini-card::before {
  content:''; position:absolute; inset:0; border-radius:14px;
  background:linear-gradient(135deg, rgba(0,212,255,.05), transparent);
  opacity:0; transition:.35s;
}
.mini-card:hover { border-color:var(--border-h); transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.3); }
.mini-card:hover::before { opacity:1; }
.mini-card-icon { font-size:1.5rem; margin-bottom:10px; }
.mini-card h3 { font-family:var(--font-head); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text); margin-bottom:6px; }
.mini-card p { color:var(--text2); font-size:.82rem; line-height:1.6; font-weight:300; }

/* ── PROJECTS ── */
.proj-hint { color:var(--text3); font-size:.82rem; font-family:var(--font-mono); margin:-32px 0 28px; }

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

.proj-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:20px; overflow:hidden;
  transition:.4s ease; display:flex; flex-direction:column;
  cursor:pointer; position:relative;
}
.proj-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px; z-index:2;
  background:linear-gradient(90deg,var(--cyan),var(--violet2));
  transform:scaleX(0); transform-origin:left; transition:.4s;
}
.proj-card:hover { border-color:rgba(0,212,255,.25); transform:translateY(-8px); box-shadow:0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(0,212,255,.1); }
.proj-card:hover::before { transform:scaleX(1); }

/* thumbnail / visual proof */
.proj-thumb { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--bg3); }
.proj-thumb img { width:100%; height:100%; object-fit:cover; object-position:top; display:block; transition:transform .5s ease; }
.proj-card:hover .proj-thumb img { transform:scale(1.05); }
.proj-thumb::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
.proj-status {
  position:absolute; top:12px; right:12px; z-index:2;
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:.65rem; letter-spacing:.06em;
  padding:6px 10px; border-radius:100px; backdrop-filter:blur(8px);
}
.status-live { background:rgba(0,255,136,.14); border:1px solid rgba(0,255,136,.35); color:var(--green-text); }
.status-progress { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:var(--text2); }
.live-dot { width:6px; height:6px; border-radius:50%; background:#00ff88; animation:blink 1.5s infinite; display:inline-block; }

.proj-body { padding:24px 28px 28px; display:flex; flex-direction:column; flex:1; }

.proj-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:14px; }
.proj-num { font-family:var(--font-head); font-size:2rem; font-weight:900; color:rgba(255,255,255,.06); line-height:1; }
[data-theme="light"] .proj-num { color:rgba(0,0,0,.08); }

.proj-link {
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text2); text-decoration:none; font-size:.85rem; transition:.3s;
}
.proj-card:hover .proj-link { background:var(--cyan); border-color:var(--cyan); color:#000; transform:scale(1.08); }

.proj-card h3 { font-family:var(--font-head); font-size:.98rem; font-weight:700; margin-bottom:14px; letter-spacing:-.01em; color:var(--text); line-height:1.35; }

.proj-pitch { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; flex:1; }
.proj-pitch p { color:var(--text2); font-size:.83rem; line-height:1.6; font-weight:300; margin:0; text-align:justify; text-align-last:left; }
.pitch-label {
  display:inline-block; font-family:var(--font-mono); font-size:.62rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--cyan);
  background:rgba(0,212,255,.08); border-radius:5px; padding:2px 7px;
  margin-right:8px; vertical-align:middle;
}

.tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }
.tag {
  font-size:.65rem; padding:4px 10px; border-radius:6px;
  border:1px solid rgba(0,212,255,.2); color:var(--cyan);
  letter-spacing:.08em; text-transform:uppercase;
  background:rgba(0,212,255,.05); font-family:var(--font-mono);
}

.proj-cta {
  margin-top:18px; padding-top:16px; border-top:1px solid var(--border);
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.06em;
  color:var(--text3); transition:.3s;
}
a.proj-cta { display:block; text-decoration:none; }
.proj-card:hover .proj-cta { color:var(--cyan); }

.project-features{
    margin: 0;
    padding-left: 18px;
}

.project-features li{
    margin-bottom: 8px;
    color: var(--text2);
    line-height: 1.6;
}

/* project modal */
.modal-status {
  display:inline-flex; align-items:center; gap:6px; margin-bottom:20px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.05em;
  padding:6px 12px; border-radius:100px;
}
.modal-status.status-live { background:rgba(0,255,136,.1); border:1px solid rgba(0,255,136,.3); color:var(--green-text); }
.modal-status.status-progress { background:var(--surface2); border:1px solid var(--border); color:var(--text2); }

.modal-section { margin-bottom:20px; }
.modal-section-label {
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.15em;
  text-transform:uppercase; color:var(--cyan); margin-bottom:8px;
}
.modal-section p { color:var(--text2); font-size:.9rem; line-height:1.75; margin:0; font-weight:300; text-align:justify; text-align-last:left; }

#modal-desc{
    padding-left: 20px;
    margin-bottom: 20px;
}

#modal-desc li{
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-gallery {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
  margin-top:20px;
}
.modal-gallery img {
  width:100%; height:80px; object-fit:cover; border-radius:8px;
  border:1px solid var(--border);
  cursor:pointer; transition:transform .25s ease, border-color .25s ease;
}
.modal-gallery img:hover { transform:scale(1.04); border-color:var(--border-h); }
.modal-gallery-single { grid-template-columns:1fr; background:#fff; border-radius:10px; padding:14px; }
.modal-gallery-single img {
  width:100%; height:auto; max-height:420px; object-fit:contain;
  border:none; border-radius:4px; cursor:zoom-in;
}
.modal-diagram-wrap { margin:5px 0 0; }
.modal-diagram-hint {
  font-family:var(--font-mono); font-size:.66rem; color:var(--text3);
  margin-top:8px; text-align:center;
}

/* ── DEMO VIDEO ── */
.modal-video-wrap { margin-top:24px; }
.modal-video-box {
  background:#0d1117; border:1px solid var(--border); border-radius:10px;
  overflow:hidden;
}
.modal-video-box video, .modal-video-box img {
  width:100%; max-height:340px; display:block; object-fit:contain; background:#000;
}
.modal-video-empty {
  padding:36px 20px; text-align:center; color:var(--text3);
  font-family:var(--font-mono); font-size:.78rem; line-height:1.7;
}
.modal-video-empty span { display:block; font-size:1.6rem; margin-bottom:10px; }

/* ── LIGHTBOX (full-size image viewer) ── */
.lightbox-overlay {
  position:fixed; inset:0; z-index:800; background:rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:.25s ease;
  padding:40px; touch-action: none;
}
.lightbox-overlay.open { opacity:1; pointer-events:all; }
.lightbox-overlay img {
  max-width:100%; max-height:100%; border-radius:8px;
  box-shadow:0 24px 64px rgba(0,0,0,.5);
  transform:scale(.96); transition:transform .25s ease;
  will-change: transform;
  transform-origin: center center;
}
.lightbox-overlay.open img { transform:none; }
.lightbox-close {
  position:absolute; top:20px; right:24px; width:40px; height:40px;
  border-radius:50%; background:var(--surface2); border:1px solid var(--border);
  color:#fff; font-size:1.1rem; cursor:pointer; display:flex;
  align-items:center; justify-content:center; transition:.3s; z-index:801;
}
.lightbox-close:hover { background:rgba(255,80,80,.2); border-color:rgba(255,80,80,.5); color:#ff5050; }

.btn-disabled {
  opacity:.5; cursor:not-allowed; pointer-events:none;
  background:var(--surface2) !important; box-shadow:none !important; color:var(--text3) !important;
}

.modal-overlay {
  position:fixed; inset:0; z-index:500; background:rgba(0,0,0,.85);
  backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:.3s;
}
.modal-overlay.open { opacity:1; pointer-events:all; }
.modal {
  background:var(--bg3); border:1px solid var(--border);
  border-radius:24px; padding:40px; max-width:600px; width:90%;
  max-height:85vh; overflow-y:auto;
  transform:translateY(20px) scale(.97); transition:.3s;
  position:relative;
}
.modal-overlay.open .modal { transform:none; }
.modal-close {
  position:absolute; top:16px; right:16px; width:32px; height:32px;
  border-radius:50%; background:var(--surface2); border:1px solid var(--border);
  color:var(--text2); font-size:1rem; cursor:pointer; display:flex;
  align-items:center; justify-content:center; transition:.3s;
}
.modal-close:hover { background:rgba(255,80,80,.15); border-color:rgba(255,80,80,.4); color:#ff5050; }
.modal h2 { font-family:var(--font-head); font-size:1.3rem; font-weight:900; margin-bottom:14px; padding-right:30px; }

/* ── SKILLS ── */
.skills-intro {
  max-width:680px; margin:-22px auto 42px;
  text-align:center; color:var(--text2); line-height:1.7;
}
.skills-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.skills-layout-single { grid-template-columns:1fr; }
.skills-layout-single > div,
.skills-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.skill-category {
  position:relative; overflow:hidden;
  margin-bottom:0; padding:24px;
  border:1px solid var(--border);
  border-radius:20px;
  background:
    radial-gradient(circle at top right, rgba(0,212,255,.08), transparent 34%),
    linear-gradient(145deg, var(--surface), rgba(255,255,255,.015));
  box-shadow:0 18px 50px rgba(0,0,0,.16);
  transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.skill-category:hover {
  transform:translateY(-4px);
  border-color:rgba(0,212,255,.28);
  background:
    radial-gradient(circle at top right, rgba(0,212,255,.12), transparent 36%),
    linear-gradient(145deg, var(--surface2), rgba(255,255,255,.02));
}
.skill-cat-title {
  font-family:var(--font-head); font-size:1rem; font-weight:800;
  letter-spacing:.01em; color:var(--text); margin-bottom:16px;
  display:flex; align-items:center; gap:10px;
}
.skill-cat-title::before {
  content:''; width:9px; height:9px; border-radius:50%;
  background:linear-gradient(135deg,var(--cyan),var(--violet2));
  box-shadow:0 0 16px rgba(0,212,255,.45);
}
.skill-cat-title::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,var(--border),transparent); }

.skill-tags { display:flex; flex-wrap:wrap; gap:10px; }
.skill-tag {
  display:inline-flex; align-items:center; min-height:34px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.035);
  color:var(--text2); font-size:.84rem; font-weight:600;
  line-height:1; transition:.25s ease;
}
.skill-tag:hover { color:var(--text); border-color:rgba(0,212,255,.28); transform:translateY(-1px); }
.skill-tag.primary {
  color:var(--text);
  border-color:rgba(0,212,255,.24);
  background:linear-gradient(135deg, rgba(0,212,255,.12), rgba(124,58,237,.10));
}

.skill-item { margin-bottom:14px; }
.skill-item-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.skill-name { font-size:.88rem; font-weight:500; color:var(--text); }
.skill-pct { font-family:var(--font-mono); font-size:.72rem; color:var(--cyan); }
.skill-bar { height:4px; background:var(--surface2); border-radius:100px; overflow:hidden; }
.skill-fill {
  height:100%; border-radius:100px;
  background:linear-gradient(90deg, var(--cyan), var(--violet2));
  width:0; transition:width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow:0 0 8px rgba(0,212,255,.4);
}

/* tech grid */
.tech-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.tech-pill {
  background:var(--surface); border:1px solid var(--border);
  border-radius:10px; padding:12px 14px;
  display:flex; align-items:center; gap:10px;
  transition:.3s;
}
.tech-pill:hover { border-color:rgba(0,212,255,.3); background:rgba(0,212,255,.04); transform:translateY(-2px); }
.tech-pill-icon { font-size:1.1rem; }
.tech-pill-name { font-size:.82rem; font-weight:500; color:var(--text); }
.tech-pill-type { font-family:var(--font-mono); font-size:.62rem; color:var(--text3); margin-top:1px; }

/* ===============================
   What I'm Looking For Section
================================= */

#opportunities {
    padding: 90px 8%;
    background: transparent;
}

#opportunities h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 15px;
    color: var(--text);
    font-family: var(--font-head);
}

#opportunities .section-subtitle {
    text-align: center;
    color: var(--text2);
    margin-bottom: 50px;
    font-size: 1rem;
}

.opportunity-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.opportunity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.35s ease;
    cursor: default;
}

.opportunity-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 15px 35px rgba(0, 198, 255, 0.2);
}

.opportunity-card .icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.opportunity-card h3 {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 12px;
}

.opportunity-card p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive */

@media (max-width:768px){

    #opportunities{
        padding:70px 6%;
    }

    #opportunities h2{
        font-size:2rem;
    }

    .opportunity-card{
        padding:25px 18px;
    }

}

/* ── TIMELINE ── */
.timeline-wrap { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.timeline { position:relative; padding-left:32px; }
.timeline::before {
  content:''; position:absolute; left:8px; top:12px; bottom:0;
  width:1px; background:linear-gradient(to bottom, var(--cyan), var(--violet2), transparent);
}
.t-item { position:relative; margin-bottom:44px; }
.t-dot {
  position:absolute; left:-32px; top:4px;
  width:16px; height:16px; border-radius:50%;
  background:var(--bg); border:2px solid var(--cyan);
  box-shadow:0 0 0 4px rgba(0,212,255,.15), 0 0 16px rgba(0,212,255,.5);
  transition:.3s;
}
.t-item:hover .t-dot { background:var(--cyan); }
.t-year {
  font-family:var(--font-mono); font-size:.65rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--cyan); margin-bottom:6px;
}
.t-title { font-family:var(--font-head); font-size:1rem; font-weight:700; margin-bottom:8px; color:var(--text); }
.t-body { color:var(--text2); font-size:.88rem; line-height:1.75; font-weight:300; }

.learning-card {
  background:linear-gradient(135deg, rgba(0,212,255,.06), rgba(124,58,237,.04));
  border:1px solid rgba(0,212,255,.15); border-radius:20px; padding:32px;
  position:sticky; top:90px;
}
.learning-card h3 { font-family:var(--font-head); font-size:.95rem; font-weight:700; margin-bottom:14px; color:var(--text); }
.learning-card p { color:var(--text2); font-size:.88rem; line-height:1.8; margin-bottom:20px; font-weight:300; text-align:justify; text-align-last:left; }

/* ── CERTIFICATIONS / ACHIEVEMENTS ── */
.achievements-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:60px; }
.ach-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:24px; text-align:center; transition:.35s;
}
.ach-card:hover { border-color:rgba(0,212,255,.3); transform:translateY(-5px); }
.ach-icon { font-size:2rem; margin-bottom:12px; display:block; }
.ach-title { font-family:var(--font-head); font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text); margin-bottom:6px; }
.ach-sub { color:var(--text3); font-size:.75rem; font-family:var(--font-mono); }

/* ── CONTACT ── */
.contact-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.contact-left h2 { font-family:var(--font-head); font-size:clamp(24px,3vw,38px); font-weight:900; letter-spacing:-.02em; margin-bottom:16px; line-height:1.15; }
.contact-left p, .contact-intro { color:var(--text2); font-size:.95rem; line-height:1.8; font-weight:300; text-align:justify; text-align-last:left; }

.contact-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

@media(max-width:768px){
    .contact-cards{
        grid-template-columns:1fr;
    }
}
.contact-card {
  display:flex; align-items:center; gap:18px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:20px 22px;
  text-decoration:none; transition:.3s;
}
.contact-card:hover { border-color:rgba(0,212,255,.35); background:rgba(0,212,255,.04); transform:translateX(6px); }
.contact-icon {
  width:48px; height:48px; border-radius:12px; flex-shrink:0;
  background:rgba(0,212,255,.08); border:1px solid rgba(0,212,255,.2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
}
.contact-card h3 { font-family:var(--font-head); font-size:.85rem; font-weight:700; color:var(--text); margin-bottom:3px; letter-spacing:.03em; }
.contact-card p { color:var(--text3); font-size:.8rem; font-family:var(--font-mono); }

/* email copy */
.email-copy {
  display:flex; align-items:center; gap:14px; margin-top:28px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:12px; padding:14px 18px;
}
.email-addr { font-family:var(--font-mono); font-size:.82rem; color:var(--cyan); flex:1; }
.copy-btn {
  background:none; border:1px solid var(--border); color:var(--text2);
  border-radius:8px; padding:7px 14px; font-size:.75rem; cursor:pointer;
  font-family:var(--font-mono); letter-spacing:.08em; transition:.3s;
}
.copy-btn:hover { border-color:var(--cyan); color:var(--cyan); }
.copy-btn.copied { border-color:var(--green); color:var(--green); }

/* availability banner */
.avail-banner {
  display:inline-flex; align-items:center; gap:10px;
  background:rgba(0,255,136,.06); border:1px solid rgba(0,255,136,.2);
  border-radius:100px; padding:10px 20px; margin-bottom:32px;
  font-size:.8rem; color:var(--green-text); font-family:var(--font-mono);
}

/* ── FOOTER ── */
footer {
  position:relative; z-index:1;
  border-top:1px solid var(--border);
  padding:36px 6%;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.footer-left { color:var(--text3); font-size:.8rem; font-family:var(--font-mono); }
.footer-left strong { color:var(--cyan); font-weight:400; }
.footer-right { display:flex; gap:16px; }
.footer-link {
  color:var(--text3); text-decoration:none; font-size:.75rem;
  font-family:var(--font-mono); letter-spacing:.08em; transition:.25s;
}
.footer-link:hover { color:var(--cyan); }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.show { opacity:1; transform:none; }

/* ── DIVIDER ── */
.divider { width:100%; height:1px; background:linear-gradient(90deg,transparent,var(--border),transparent); }

/* ── NOISE ── */
body::after {
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.02;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px;
}

/* ── RESPONSIVE ── */
@media(max-width:1050px) {
  .hero-inner { grid-template-columns:1fr; gap:48px; }
  .about-grid,.skills-layout,.timeline-wrap,.contact-layout { grid-template-columns:1fr; gap:40px; }
  .proj-grid { grid-template-columns:1fr 1fr; }
  .achievements-grid { grid-template-columns:1fr 1fr; }
}

/* ── TABLET / LARGE PHONE (768px) ── */
@media (max-width:768px) {
  .nav-toggle { display:flex; }

  .nav-links {
    position:fixed; top:64px; left:0; right:0;
    flex-direction:column; gap:0;
    background:rgba(5,7,9,0.97);
    backdrop-filter:blur(24px);
    border-bottom:1px solid var(--border);
    max-height:0; overflow:hidden;
    transition:max-height .35s ease;
    list-style:none;
  }
  [data-theme="light"] .nav-links { background:rgba(240,242,248,0.97); }

  .nav-links.open { max-height:400px; }

  .nav-links li { width:100%; text-align:center; }
  .nav-links a {
    display:block; padding:16px 0;
    border-bottom:1px solid var(--border);
  }

  .nav-right { gap:1rem; }

  section { padding:80px 5%; }
  .section-title { margin-bottom:36px; }

  .proj-grid { grid-template-columns:1fr; }
  .achievements-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .tech-grid { grid-template-columns:repeat(2,1fr); }
  .about-cards { grid-template-columns:1fr; }

  .modal { padding:26px 20px; max-height:88vh; }
  .modal-gallery { grid-template-columns:repeat(2,1fr); }

  .lightbox-overlay { padding:16px; }
  .lightbox-close { top:12px; right:12px; width:36px; height:36px; }

  .hero-cta { flex-direction:column; align-items:stretch; }
  .hero-cta .btn { justify-content:center; width:100%; }

  .contact-icon, .theme-btn { width:44px; height:44px; }
  .proj-link { width:40px; height:40px; }

  .case-main { padding:100px 5% 56px; }
  .case-section { margin-bottom:32px; }
  .case-section h2 { margin-bottom:12px; padding-bottom:10px; }
  .case-section p { font-size:.92rem; line-height:1.7; }
  .case-section ul { font-size:.9rem; line-height:1.75; padding-left:18px; }
  .case-links { gap:10px; }
  .case-back { margin-top:44px; padding-top:22px; }
  .case-links .btn {
    width:100%;
    justify-content:center;
    text-align:center;
    white-space:normal;
  }
}

/* ── SMALL PHONE (640px, original tag/tech breakpoint) ── */
@media(max-width:640px) {
  .proj-grid,.about-cards,.tech-grid { grid-template-columns:1fr; }
  .skills-layout-single > div { grid-template-columns:1fr; }
  nav .nav-links { gap:1rem; }
  .hero-stats { gap:24px; }
  footer { flex-direction:column; }
  .achievements-grid { grid-template-columns:1fr 1fr; }
}

/* ── SMALL PHONE (480px) ── */
@media (max-width:480px) {
  section { padding:64px 5%; }
  .hero { padding:80px 0 60px; min-height:auto; }

  .hero-name { font-size:38px; }
  .hero-tag { font-size:.62rem; padding:5px 12px; }
  .hero-desc { font-size:.92rem; }

  .stat { padding:16px; }
  .stat-num { font-size:1.5rem; }

  .achievements-grid { grid-template-columns:1fr; }
  .modal-gallery { grid-template-columns:1fr; }
  .modal-gallery img { height:auto; max-height:200px; }

  .proj-body { padding:20px 18px 22px; }
  .proj-thumb { aspect-ratio:4/3; }

  .btn { width:100%; justify-content:center; padding:14px 20px; }
  .resume-card { padding:18px; }

  footer { text-align:center; justify-content:center; }
  .footer-right { justify-content:center; width:100%; }

  /* On very narrow screens, justified text creates uneven word
     spacing — left-align these paragraphs for better mobile readability */
  .hero-desc, .about-body, .proj-pitch p, .featured-card p,
  .modal-section p, .gh-card p, .blog-card p, .learning-card p,
  .contact-left p, .contact-intro {
    text-align:left;
  }
}

/* ── VERY SMALL PHONE (360px and below) ── */
@media (max-width:360px) {
  .hero-name { font-size:32px; }
  .section-title { font-size:22px; }
  .nav-logo { font-size:.78rem; }
  .hero-highlights span { font-size:.78rem; padding:6px 10px; }
  .tags .tag { font-size:.6rem; padding:3px 8px; }
}
/* ══════════════════════════════════════════
   NEW SECTIONS — Featured Project, Engineering
   Depth, DSA, Blogs, GitHub Highlights, WhatsApp
══════════════════════════════════════════ */

/* Featured project deep dive */
.featured-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:40px;
}
.featured-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:24px; transition:border-color .3s, transform .3s;
}
.featured-card:hover { border-color:var(--border-h); transform:translateY(-4px); }
.featured-card h3 {
  font-family:var(--font-head); font-size:.85rem; font-weight:700;
  letter-spacing:.04em; color:var(--cyan); margin-bottom:10px;
}
.featured-card p { color:var(--text2); font-size:.86rem; line-height:1.7; font-weight:300; text-align:justify; text-align-last:left; }
.featured-card code {
  font-family:var(--font-mono); background:var(--surface2); padding:1px 6px;
  border-radius:4px; font-size:.82em; color:var(--text);
}
.featured-cta { display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }

/* Engineering depth */
.depth-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:40px; }
.depth-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:26px 28px;
}
.depth-card h3 {
  font-family:var(--font-head); font-size:.92rem; font-weight:700;
  margin-bottom:16px; color:var(--text);
}
.depth-card ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.depth-card li {
  color:var(--text2); font-size:.85rem; line-height:1.6; font-weight:300;
  padding-left:18px; position:relative;
}
.depth-card li::before {
  content:'▹'; position:absolute; left:0; color:var(--cyan); font-size:.9rem;
}
.depth-card code {
  font-family:var(--font-mono); background:var(--surface2); padding:1px 6px;
  border-radius:4px; font-size:.9em; color:var(--text);
}

/* DSA / problem solving */
.dsa-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:40px; }
.dsa-card {
  display:block; text-align:center; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:32px 20px; text-decoration:none; transition:border-color .3s, transform .3s;
}
.dsa-card:hover { border-color:var(--border-h); transform:translateY(-4px); }
.dsa-icon { font-size:1.8rem; margin-bottom:12px; }
.dsa-card h3 { font-family:var(--font-head); font-size:.9rem; color:var(--text); margin-bottom:8px; }
.dsa-stat { color:var(--text3); font-family:var(--font-mono); font-size:.82rem; margin-bottom:14px; }

/* Technical blogs */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:40px; }
.blog-card {
  display:flex; flex-direction:column; gap:10px; background:var(--surface); border:1px solid var(--border);
  border-radius:14px; padding:24px; text-decoration:none; transition:border-color .3s, transform .3s;
}
.blog-card:hover { border-color:var(--border-h); transform:translateY(-4px); }
.blog-card .proj-status { position:static; align-self:flex-start; backdrop-filter:none; }
.blog-card h3 { font-family:var(--font-head); font-size:.88rem; color:var(--text); line-height:1.4; margin-top:6px; }
.blog-card p { color:var(--text2); font-size:.82rem; line-height:1.6; font-weight:300; flex:1; text-align:justify; text-align-last:left; }
.blog-card .proj-cta { font-size:.78rem; }

/* Coming Soon blog cards: not a link, visually and semantically inert */
.blog-card-disabled { cursor:default; }
.blog-card-disabled:hover { border-color:var(--border); transform:none; }
.proj-cta-disabled { color:var(--text3); font-style:italic; }

/* GitHub highlights */
.gh-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:40px; }
.gh-card {
  display:block; background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:24px; text-decoration:none; transition:border-color .3s, transform .3s;
}
.gh-card:hover { border-color:var(--border-h); transform:translateY(-4px); }
.gh-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.gh-card-head h3 { font-family:var(--font-mono); font-size:.85rem; color:var(--cyan); word-break:break-word; }
.gh-lang { display:flex; align-items:center; gap:6px; font-size:.75rem; color:var(--text3); white-space:nowrap; }
.gh-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.gh-card p { color:var(--text2); font-size:.83rem; line-height:1.6; font-weight:300; margin-bottom:14px; text-align:justify; text-align-last:left; }
.gh-cta { margin-top:32px; text-align:center; }

/* WhatsApp button + floating CTA */
.btn-whatsapp {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:10px; font-size:.82rem; font-weight:600;
  background:#25D366; color:#07110b; border:1px solid #25D366;
  text-decoration:none; transition:transform .25s, box-shadow .25s;
}
.btn-whatsapp:hover { transform:translateY(-3px); box-shadow:0 12px 32px rgba(37,211,102,.35); }

.contact-card-whatsapp:hover { border-color:#25D366; background:rgba(37,211,102,.06); }

.whatsapp-float {
  position:fixed; right:24px; bottom:24px; z-index:150;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px rgba(37,211,102,.4);
  transition:transform .25s, box-shadow .25s;
}
.whatsapp-float:hover { transform:scale(1.08); box-shadow:0 14px 40px rgba(37,211,102,.55); }

/* Responsive */
@media (max-width:900px) {
  .featured-grid, .depth-grid, .dsa-grid, .blog-grid, .gh-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .featured-grid, .depth-grid, .dsa-grid, .blog-grid, .gh-grid { grid-template-columns:1fr; }
  .whatsapp-float { right:16px; bottom:16px; width:50px; height:50px; }
}

/* Modal metrics grid (case-study scope/metrics) */
.metrics-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px;
}
.metric-box {
  background:var(--surface2); border:1px solid var(--border); border-radius:10px;
  padding:14px 12px; text-align:center;
}
.metric-num {
  display:block; font-family:var(--font-head); font-size:1.15rem; font-weight:700;
  background:linear-gradient(90deg,var(--cyan),var(--violet2)); -webkit-background-clip:text; color:transparent;
}
.metric-label { color:var(--text3); font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }

/* ══════════════════════════════════════════
   PROJECT CASE STUDY PAGES (/projects/*.html)
   Reuses the design system above; this block
   only adds the elements unique to those pages.
══════════════════════════════════════════ */
.case-main { position:relative; z-index:1; padding:120px 6% 60px; }
.case-container { max-width:860px; margin:0 auto; }

.breadcrumb {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.75rem; color:var(--text3);
  margin-bottom:36px;
}
.breadcrumb a { color:var(--text2); text-decoration:none; transition:color .25s; }
.breadcrumb a:hover { color:var(--cyan); }
.breadcrumb span[aria-current] { color:var(--text); }

.case-status {
  display:inline-flex; align-items:center; gap:6px; margin-bottom:18px;
}

.case-title {
  font-family:var(--font-head); font-weight:800; letter-spacing:-.01em;
  font-size:clamp(1.7rem, 4vw, 2.6rem); line-height:1.15; margin-bottom:14px;
}
.case-subtitle { color:var(--text2); font-size:1rem; line-height:1.7; max-width:70ch; margin-bottom:22px; }

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

.case-links { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:44px; }
.case-links.case-links-section { margin-bottom:0; }

.case-hero-img {
  width:100%; border-radius:16px; border:1px solid var(--border);
  overflow:hidden; margin-bottom:52px;
}
.case-hero-img img { width:100%; display:block; }

.case-main .case-section { padding:0; }
.case-section { margin-bottom:40px; }
.case-section h2 {
  font-family:var(--font-head); font-size:1.3rem; font-weight:700;
  color:var(--text); margin-bottom:16px; padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.case-section p { color:var(--text2); line-height:1.8; font-size:.95rem; }
.case-section p + p { margin-top:14px; }
.case-section ul { padding-left:20px; color:var(--text2); line-height:1.9; font-size:.92rem; }
.case-section li { margin-bottom:8px; }
.case-section li strong,
.case-section li code { color:var(--text); }
.case-section code {
  font-family:var(--font-mono); font-size:.85em; background:var(--surface2);
  padding:1px 6px; border-radius:4px; color:var(--cyan);
}

.case-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:16px; }
.case-gallery img {
  width:100%; border-radius:12px; border:1px solid var(--border); display:block;
}

.case-back {
  margin-top:60px; padding-top:28px; border-top:1px solid var(--border);
}

@media (max-width:640px) {
  .case-gallery { grid-template-columns:1fr; }
  .case-main { padding-top:100px; }
}
