/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Jorge Castro Segura Portfolio
═══════════════════════════════════════════════════════════ */
:root {
  --blue:       #1A56DB;
  --blue-lt:    #3B82F6;
  --blue-dim:   rgba(26,86,219,.14);
  --blue-glow:  rgba(26,86,219,.28);
  --teal:       #1A56DB;
  --teal-dim:   rgba(26,86,219,.14);
  --teal-glow:  rgba(26,86,219,.28);
  --gold:       #E8A020;
  --gold-dim:   rgba(232,160,32,.12);
  --green:      #10B981;
  --r:          14px;
  --r-sm:       8px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --t:          200ms var(--ease);
  --t-slow:     400ms var(--ease);
}

[data-theme="dark"] {
  --bg:         #080F1E;
  --bg2:        #0D1730;
  --bg3:        #122044;
  --surface:    rgba(255,255,255,.05);
  --surface-h:  rgba(255,255,255,.09);
  --border:     rgba(255,255,255,.09);
  --border-h:   rgba(59,130,246,.5);
  --text:       #EEF2FF;
  --text2:      #93A8D0;
  --text3:      #4D6494;
  --nav:        rgba(8,15,30,.85);
  --glass:      rgba(13,23,48,.72);
}

[data-theme="light"] {
  --bg:         #F0F4FF;
  --bg2:        #FFFFFF;
  --bg3:        #DBEAFE;
  --surface:    rgba(26,86,219,.05);
  --surface-h:  rgba(26,86,219,.09);
  --border:     rgba(26,86,219,.12);
  --border-h:   rgba(26,86,219,.5);
  --text:       #0D1526;
  --text2:      #2D4070;
  --text3:      #6B80B0;
  --nav:        rgba(240,244,255,.9);
  --glass:      rgba(255,255,255,.75);
}

/* ═══ RESET ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--t-slow), color var(--t-slow);
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══ SCROLLBAR ═════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ═══ MESH BACKGROUND ══════════════════════════════════════ */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(26,86,219,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232,160,32,.06) 0%, transparent 60%),
    var(--bg);
}

/* ═══ NAV ═══════════════════════════════════════════════════ */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  background: var(--nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow);
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: .5rem;
  flex-wrap: nowrap;
}
/* Logo and controls: flex:0 0 auto — fixed size, never grow, never shrink */
.nav-logo {
  flex: 0 0 auto;
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
  color: var(--text); white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo em { color: var(--teal); font-style: normal; }

/* Links: flex:1 1 0 — fill remaining space, min-width:0 lets it shrink, overflow scrolls */
.nav-links {
  flex: 1 1 0; min-width: 0;
  display: flex; list-style: none; gap: .125rem;
  justify-content: center;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative;
  color: var(--text2); font-size: .82rem; font-weight: 500;
  padding: .35rem .7rem; border-radius: 6px;
  transition: color var(--t), background var(--t), box-shadow var(--t);
  text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--teal); background: var(--teal-dim); }
/* Active page: underline indicator */
.nav-links a.active {
  color: var(--teal);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

/* Controls: flex:0 0 auto — fixed, always visible on the right */
.nav-controls { flex: 0 0 auto; display: flex; align-items: center; gap: .375rem; }
.ctrl-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--text2);
  transition: border-color var(--t), color var(--t), background var(--t);
  white-space: nowrap;
}
.ctrl-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }
.ctrl-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.ham { display: none; flex-direction: column; gap: 5px; padding: .4rem; background: none; border: none; }
.ham span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }

.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 199;
  background: var(--nav); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: .75rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: var(--text2); font-weight: 500; font-size: .9rem;
  padding: .65rem 0; border-bottom: 1px solid var(--border); text-decoration: none;
  transition: color var(--t);
}
.mobile-nav a:last-child { border: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--teal); }

/* ═══ PAGE HERO BANNER ══════════════════════════════════════ */
.page-hero {
  position: relative;
  max-width: 1200px;
  margin: 76px auto 0;
  height: 210px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}
@media (max-width: 1232px) {
  .page-hero { margin-left: 1.5rem; margin-right: 1.5rem; }
}
.page-hero-bg {
  position: absolute; inset: -24px;
  background: url('fotocv.png') center 15% / cover no-repeat;
  filter: blur(18px) brightness(.3) saturate(.5);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,.55) 0%, rgba(8,15,30,.5) 100%);
}
.page-hero-quote {
  position: relative; z-index: 2;
  font-size: clamp(.95rem, 2.4vw, 1.35rem);
  font-weight: 700; color: #fff; text-align: center;
  max-width: 680px; padding: 0 2rem; line-height: 1.5;
  letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.65);
}
.page-hero-quote em { color: var(--gold); font-style: normal; }

/* ═══ PAGE SECTION (inner pages) ═══════════════════════════ */
.page-section {
  padding: 2.5rem 1.5rem 2.5rem;
}

/* ═══ SECTIONS BASE ════════════════════════════════════════ */
section { padding: 6rem 1.5rem; }
.wrap { max-width: 1200px; margin: 0 auto; }
.s-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  margin-bottom: .6rem;
}
.s-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--text); margin-bottom: .75rem; line-height: 1.1;
}
.s-sub { color: var(--text2); font-size: .95rem; max-width: 520px; margin-bottom: 3rem; }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ═══ HERO ══════════════════════════════════════════════════ */
#home {
  min-height: 85vh;
  padding: 7rem 0 3rem;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 380px;
  align-items: center; gap: 3.5rem; width: 100%;
}

.avail {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-dim); border: 1px solid rgba(45,212,191,.3);
  border-radius: 100px; padding: .3rem .9rem;
  font-size: .75rem; font-weight: 600; color: var(--teal);
  margin-bottom: 1.25rem;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }

.hero-name {
  font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 900;
  letter-spacing: -.04em; line-height: 1.05; color: var(--text); margin-bottom: .5rem;
}
.hero-name .teal { color: var(--teal); }
.hero-role {
  font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text2); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.hero-role strong { color: var(--gold); font-weight: 600; }
.dot-sep { color: var(--text3); }
.hero-desc { color: var(--text2); font-size: .975rem; line-height: 1.8; max-width: 520px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-p {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #ffffff;
  font-weight: 700; font-size: .85rem;
  padding: .7rem 1.5rem; border-radius: 100px; border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  text-decoration: none;
}
.btn-p:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 8px 24px var(--blue-glow); text-decoration: none; color: #ffffff; }
.btn-p svg { width: 16px; height: 16px; }

.btn-o {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--text);
  font-weight: 600; font-size: .85rem;
  padding: .7rem 1.5rem; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: border-color var(--t), color var(--t), background var(--t);
  text-decoration: none;
}
.btn-o:hover { border-color: var(--blue-lt); color: var(--blue-lt); background: var(--blue-dim); text-decoration: none; }
[data-theme="light"] .btn-o { border-color: rgba(26,86,219,.35); color: var(--text); }
[data-theme="light"] .btn-o:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.btn-o svg { width: 16px; height: 16px; }

.stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-n { font-size: 2rem; font-weight: 900; color: var(--teal); line-height: 1; letter-spacing: -.03em; }
.stat-l { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); }

.hero-right { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.photo-ring { position: relative; width: 260px; height: 260px; flex-shrink: 0; }
.photo-ring::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0%, var(--gold) 50%, var(--blue) 100%);
  animation: spin 8s linear infinite; z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-ring img {
  position: relative; z-index: 1;
  width: 254px; height: 254px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--bg);
}

.tech-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: .25rem .6rem;
  font-size: .7rem; font-weight: 600; color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
  transition: border-color var(--t), color var(--t);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }

/* ═══ EXPERIENCE — TIMELINE ════════════════════════════════ */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--gold) 70%, transparent);
}
.tl-item { position: relative; padding-left: 2rem; margin-bottom: 2.75rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.22rem; top: .55rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--teal);
  transition: box-shadow var(--t);
}
.tl-item:hover .tl-dot { box-shadow: 0 0 0 4px var(--teal-glow); }
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.tl-card:hover { border-color: var(--border-h); background: var(--surface-h); box-shadow: 0 4px 24px var(--teal-dim); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem; margin-bottom: .3rem; }
.tl-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.tl-date {
  font-size: .72rem; font-weight: 600; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(245,158,11,.2);
  border-radius: 100px; padding: .18rem .65rem; white-space: nowrap;
}
.tl-company { font-size: .85rem; font-weight: 600; color: var(--teal); margin-bottom: .75rem; }
.tl-bullets { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.tl-bullets li { font-size: .85rem; color: var(--text2); padding-left: 1.1rem; position: relative; line-height: 1.6; }
.tl-bullets li::before { content: "▸"; color: var(--teal); position: absolute; left: 0; }

/* ═══ EDUCATION ════════════════════════════════════════════ */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.edu-card:hover { border-color: var(--border-h); box-shadow: 0 4px 24px var(--teal-dim); }
.edu-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-dim); border: 1px solid rgba(26,86,219,.25);
  display: flex; align-items: center; justify-content: center;
}

/* ═══ CERTIFICATIONS — BENTO ═══════════════════════════════ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.b-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.b-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 12px 32px var(--teal-dim); }
.b-featured {
  grid-column: 1 / -1;
  border-color: rgba(245,158,11,.3);
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, var(--glass) 60%);
}
.b-featured:hover { border-color: var(--gold); box-shadow: 0 12px 40px rgba(245,158,11,.15); }
.b-featured-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.b-half { grid-column: span 6; }
.b-third { grid-column: span 4; }
.cert-new {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--gold); color: #07121e;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  padding: .22rem .65rem; border-radius: 100px; margin-bottom: .75rem;
  text-transform: uppercase;
}
.issuer-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.issuer-logo {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; flex-shrink: 0;
}
.lg-g    { background: #4285F4; color: #fff; }
.lg-ms   { background: #00A4EF; color: #fff; }
.lg-ibm  { background: #1F70C1; color: #fff; }
.lg-li   { background: #0A66C2; color: #fff; }
.lg-anth { background: #cc785c; color: #fff; }
.issuer-name { font-size: .8rem; font-weight: 600; color: var(--text2); }
.cert-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.b-card:not(.b-featured) .cert-title { font-size: .9rem; }
.cert-meta { font-size: .78rem; color: var(--text3); margin-bottom: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  background: var(--bg3); border-radius: 5px;
  padding: .18rem .55rem; font-size: .68rem; font-weight: 600;
  color: var(--text2); font-family: 'JetBrains Mono', monospace;
}
.cert-link { font-size: .75rem; color: var(--teal); margin-top: .75rem; word-break: break-all; }
.qr-box {
  width: 110px; height: 110px; border-radius: 10px;
  border: 2px solid rgba(245,158,11,.4); padding: 5px;
  background: #fff; flex-shrink: 0;
}
.qr-box img { width: 100%; height: 100%; border-radius: 6px; }

/* ═══ PORTFOLIO — BENTO GRID ════════════════════════════════ */
.port-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.p-wide  { grid-column: span 8; }
.p-tall  { grid-column: span 4; grid-row: span 2; }
.p-third { grid-column: span 4; }
.p-featured { grid-column: span 12; }

/* Mockup elements */
.proj-featured-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
@media (max-width: 850px) {
  .proj-featured-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
}

.dash-mockup {
  background: rgba(13,20,35,0.7); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; display: grid; grid-template-columns: 50px 1fr; gap: 0rem;
  box-shadow: inset 0 0 20px rgba(26,86,219,0.05), 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden; height: 190px; padding: 0;
}
.mock-sidebar {
  background: rgba(10, 17, 32, 0.85); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.mock-sb-logo {
  width: 14px; height: 14px; color: #1a56db; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.mock-sb-item {
  width: 12px; height: 12px; background: rgba(255,255,255,0.08); border-radius: 3px;
}
.mock-sb-item.active {
  background: #1a56db;
}
.mock-content {
  padding: 0.85rem; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0;
}
.mock-content-header {
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.3rem;
}
.mock-ch-title {
  font-size: 0.6rem; font-weight: 800; color: #f3f4f6; text-transform: uppercase;
}
.mock-tanks-row {
  display: flex; justify-content: space-around; align-items: flex-end; flex: 1; padding: 0.2rem 0; gap: 0.5rem;
}
.mock-cylinder-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}
.mock-cylinder {
  width: 28px; height: 75px; background: rgba(255,255,255,0.02); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 6px; position: relative; overflow: hidden; display: flex; align-items: flex-end;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.mock-liquid {
  width: 100%; transition: height 0.5s ease;
  border-radius: 0 0 4px 4px;
}
.mock-liquid.magna {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.75) 0%, rgba(5, 150, 105, 0.85) 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.mock-liquid.premium {
  background: linear-gradient(180deg, rgba(232, 160, 32, 0.75) 0%, rgba(217, 119, 6, 0.85) 100%);
  box-shadow: 0 0 10px rgba(232, 160, 32, 0.25);
}
.mock-liquid.diesel {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.75) 0%, rgba(220, 38, 38, 0.85) 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}
.mock-cylinder-pct {
  position: absolute; width: 100%; text-align: center; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; font-weight: 700; color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.mock-cylinder-pct.alert {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.mock-cylinder-lbl {
  font-size: 0.5rem; color: #9ca3af; font-weight: 600;
}
.mock-summary-line {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 0.4rem;
}
.mock-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.mock-status-dot.danger {
  background: #ef4444; box-shadow: 0 0 8px #ef4444;
}

[data-theme="light"] .dash-mockup {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 20px rgba(26,86,219,0.02), 0 10px 30px rgba(0,0,0,0.05);
}
[data-theme="light"] .mock-sidebar {
  background: rgba(243, 244, 246, 0.9); border-right: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .mock-content-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-theme="light"] .mock-ch-title {
  color: #111827;
}
[data-theme="light"] .mock-cylinder {
  background: rgba(0,0,0,0.03); border: 1.5px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .mock-cylinder-lbl {
  color: #4b5563;
}
.proj-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column; gap: .9rem; height: 100%;
}
.proj-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 12px 32px var(--teal-dim); }
.proj-icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-dim); border: 1px solid rgba(45,212,191,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proj-icon-wrap svg { width: 22px; height: 22px; color: var(--teal); }
.proj-name { font-size: .95rem; font-weight: 700; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.proj-desc { font-size: .85rem; color: var(--text2); line-height: 1.7; flex: 1; }
.proj-dl {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 600; color: var(--teal);
  text-decoration: none; margin-top: .25rem;
  transition: color var(--t), gap var(--t);
}
.proj-dl:hover { color: var(--blue-lt); gap: .5rem; text-decoration: none; }
.proj-dl svg { flex-shrink: 0; }
.stack { display: flex; flex-wrap: wrap; gap: .35rem; }
.s-tag-code {
  background: rgba(26,86,219,.18); border: 1px solid rgba(59,130,246,.35);
  border-radius: 5px; padding: .18rem .55rem;
  font-size: .68rem; font-weight: 600; color: #93C5FD;
  font-family: 'JetBrains Mono', monospace;
}
[data-theme="light"] .s-tag-code {
  background: rgba(26,86,219,.1); border: 1px solid rgba(26,86,219,.25);
  color: var(--blue);
}

/* ═══ ABOUT ═════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-p { font-size: .95rem; color: var(--text2); line-height: 1.85; margin-bottom: 1.25rem; }
.contact-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.5rem; }
.c-row { display: flex; align-items: center; gap: .9rem; }
.c-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.c-icon svg { width: 17px; height: 17px; color: var(--teal); }
.c-info { font-size: .85rem; color: var(--text2); }
.c-info strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: .1rem; }

/* Form */
.form { display: flex; flex-direction: column; gap: .9rem; }
.f-group { display: flex; flex-direction: column; gap: .35rem; }
.f-label { font-size: .75rem; font-weight: 600; color: var(--text2); letter-spacing: .02em; }
.f-input, .f-area {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .7rem 1rem;
  color: var(--text); font-size: .875rem;
  font-family: 'Inter', sans-serif; outline: none;
  transition: border-color var(--t), background var(--t);
}
.f-input:focus, .f-area:focus { border-color: var(--teal); background: var(--surface-h); }
.f-input::placeholder, .f-area::placeholder { color: var(--text3); }
.f-area { min-height: 130px; resize: vertical; }

/* ═══ FOOTER ════════════════════════════════════════════════ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-size: .8rem; color: var(--text3);
}
.footer-wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-info { text-align: left; margin-right: auto; }
footer span { color: var(--teal); font-weight: 600; }
footer > .footer-wrap > small {
  font-size: .72rem; color: var(--text3); white-space: nowrap;
  padding-left: 1.25rem; border-left: 1px solid var(--border);
}
@media (max-width: 600px) {
  .footer-wrap { justify-content: center; }
  .footer-info { text-align: center; width: 100%; margin-right: 0; }
  footer > .footer-wrap > small { padding-left: 0; border-left: 0; width: 100%; text-align: center; }
}

/* ═══ FOCUS ═════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .b-half  { grid-column: span 12; }
  .b-third { grid-column: span 6; }
  .p-wide  { grid-column: span 12; }
  .p-tall  { grid-column: span 12; grid-row: span 1; }
  .p-third { grid-column: span 6; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-right { order: -1; }
  .hero-role { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .stats { justify-content: center; }
  .stat { align-items: center; text-align: center; }
  .avail { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .b-featured-inner { grid-template-columns: 1fr; }
  .qr-box { width: 80px; height: 80px; }
  .form { width: 100%; }
  .b-featured > div[style*="flex"] { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  body > nav { height: 96px; }
  .nav-wrap { padding: 0 .75rem; gap: .3rem; }
  .nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo controls"
      "links links";
    align-content: center;
    row-gap: .25rem;
  }
  .nav-logo { grid-area: logo; }
  .nav-controls { grid-area: controls; justify-self: end; }
  .nav-links {
    grid-area: links;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: .1rem;
  }
  .page-hero { margin-top: 96px; }
  #home { padding: 7rem 0 2rem; min-height: 80vh; }
  .ham { display: none; }
  .mobile-nav { display: none !important; }
  section { padding: 2rem 1.25rem; }
  .page-section { padding: 2rem 1.25rem 2rem; }
  .b-third { grid-column: span 12; }
  .p-third { grid-column: span 12; }
}

@media (max-width: 480px) {
  .ctrl-btn { padding: .35rem; }
  .nav-logo { font-size: .88rem; gap: .4rem; }
  .nav-logo svg { width: 26px; height: 26px; }
  .nav-links {
    justify-content: space-between;
    overflow-x: visible;
  }
  .nav-links a {
    font-size: .63rem;
    padding: .3rem .16rem;
  }
  .nav-links a.active::after {
    left: .16rem;
    right: .16rem;
  }
  .b-half { grid-column: span 12; }
  .p-wide { grid-column: span 12; }
}
