/* ============================================================
   Jhostter Valdez — Portafolio
   Futurista · Glassmorphism · Monocromático + acento
   ============================================================ */

:root {
  /* Acento (tweakable) */
  --accent: #5b9dff;
  --accent-2: #8fc0ff;
  --accent-glow: rgba(91, 157, 255, 0.45);
  --accent-soft: rgba(91, 157, 255, 0.12);

  /* Monocromo base */
  --bg: #06070b;
  --bg-2: #0a0c12;
  --ink: #f4f6fb;
  --ink-soft: #b9c0cf;
  --ink-dim: #7c8597;
  --ink-faint: #4a5160;

  /* Vidrio */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-2: rgba(255, 255, 255, 0.18);
  --glass-blur: 22px;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* motion scale (tweakable) 0..1.4 */
  --motion: 1;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Fondo animado (aurora + grid) ----- */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora.a1 { width: 52vw; height: 52vw; left: -10vw; top: -14vw; background: radial-gradient(circle, var(--accent-glow), transparent 70%); animation: drift1 calc(26s / var(--motion)) var(--ease) infinite alternate; }
.aurora.a2 { width: 44vw; height: 44vw; right: -12vw; top: 8vw; background: radial-gradient(circle, rgba(143,192,255,0.32), transparent 70%); animation: drift2 calc(32s / var(--motion)) var(--ease) infinite alternate; }
.aurora.a3 { width: 40vw; height: 40vw; left: 30vw; top: 60vh; background: radial-gradient(circle, var(--accent-soft), transparent 70%); animation: drift3 calc(38s / var(--motion)) var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(8vw, -16vh) scale(1.2); } }

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Layout helpers ----- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
section { position: relative; }
/* Sections also carry .wrap (padding: 0 28px), whose class specificity would
   otherwise zero-out the vertical padding. section.wrap wins it back so every
   section keeps breathing room above/below. */
section.wrap { padding-top: clamp(70px, 11vh, 130px); padding-bottom: clamp(70px, 11vh, 130px); }

.kicker {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-2); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; box-shadow: 0 0 8px var(--accent-glow); }

.sec-title {
  font-family: var(--ff-display); font-weight: 600; line-height: 1.04;
  font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.02em; margin-bottom: 14px;
}
.sec-head { margin-bottom: clamp(34px, 5vh, 60px); max-width: 720px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -30px rgba(0,0,0,0.7);
}

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 10, 16, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  padding: 11px 28px;
}
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07080c; font-weight: 700; font-family: var(--ff-mono); font-size: 15px;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand small { display: block; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-dim); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: 10px; transition: all 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-tools { display: flex; align-items: center; gap: 10px; }

/* Hamburger (mobile only) */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0; border-radius: 11px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu */
.nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 18px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.4s var(--ease);
}
.nav-mobile.open { max-height: 80vh; opacity: 1; padding: 12px 18px 22px; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  color: var(--ink-soft); text-decoration: none; font-family: var(--ff-display); font-size: 18px; font-weight: 500;
  padding: 14px 6px; border-bottom: 1px solid var(--glass-border);
}
.nav-mobile-links a:active { color: var(--accent); }
.nav-mobile-cv { display: none; width: 100%; justify-content: center; margin-top: 16px; }

.lang-toggle {
  display: flex; align-items: center; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 3px; font-family: var(--ff-mono); font-size: 12px; cursor: pointer;
}
.lang-toggle span { padding: 4px 10px; border-radius: 999px; color: var(--ink-dim); transition: all 0.25s var(--ease); }
.lang-toggle span.on { background: var(--accent); color: #07080c; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; text-decoration: none;
  font-family: var(--ff-body); font-weight: 600; font-size: 14px; border: none;
  padding: 11px 20px; border-radius: 999px; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07080c; box-shadow: 0 8px 28px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px var(--accent-glow); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); }
.btn-ghost:hover { background: var(--glass-2); border-color: var(--glass-border-2); transform: translateY(-2px); }
.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ----- Hero ----- */
.hero { padding-top: clamp(120px, 18vh, 180px); padding-bottom: clamp(60px, 8vh, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-left { max-width: 560px; }
.hero-greet { font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.2em; color: var(--accent-2); margin-bottom: 14px; }
.hero-name {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(46px, 7vw, 88px);
  line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 30%, #aeb6c6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-roles { font-family: var(--ff-display); font-size: clamp(17px, 2.2vw, 25px); font-weight: 500; min-height: 1.4em; margin-bottom: 20px; color: var(--accent); }
.hero-role-rot { position: relative; display: inline-block; white-space: nowrap; }
.hero-tagline { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px); max-width: 480px; margin-bottom: 26px; text-wrap: pretty; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; font-size: 13px; font-family: var(--ff-mono); color: var(--ink-dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.dot.live { animation: pulse calc(2s / var(--motion)) ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.4; transform: scale(0.75);} }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* ----- Avatar + chat (hero right) ----- */
.hero-right { position: relative; }
.avatar-stack { position: relative; }
.avatar-orb {
  position: absolute; top: -64px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 124px; height: 124px;
}
.avatar-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 35%, var(--accent-2) 60%, transparent 85%, var(--accent));
  animation: spin calc(8s / var(--motion)) linear infinite; filter: blur(1px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-photo {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--bg-2); box-shadow: 0 0 30px var(--accent-glow);
}
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----- Avatar humanoide IA (animado) ----- */
.hav-orb .hav { width: 100%; height: 100%; display: block; }
.hav-figure { animation: havFloat calc(4.6s / var(--motion)) ease-in-out infinite; }
@keyframes havFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
.hav-eye { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 2px var(--accent)); animation: havBlink calc(5.2s / var(--motion)) ease-in-out infinite; }
@keyframes havBlink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
.hav-scan { animation: havScan calc(3.2s / var(--motion)) linear infinite; }
@keyframes havScan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.6; } 88% { opacity: 0.6; } 100% { transform: translateY(18px); opacity: 0; } }
.hav-pulse { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 3px var(--accent-2)); animation: havPulse calc(2.4s / var(--motion)) ease-in-out infinite; }
@keyframes havPulse { 0%, 100% { opacity: 0.5; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.2); } }
.hav-aura { transform-box: fill-box; transform-origin: center; animation: havAura calc(6s / var(--motion)) ease-in-out infinite; }
@keyframes havAura { 0%, 100% { opacity: 0.16; transform: scale(0.96); } 50% { opacity: 0.4; transform: scale(1.05); } }

.chat-card { padding: 0; overflow: visible; display: flex; flex-direction: column; height: 460px; padding-top: 66px; }
.chat-head { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.chat-input { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--glass-border); }
.chat-head-txt { flex: 1; }
.chat-head-txt b { font-family: var(--ff-display); font-size: 15px; display: block; }
.chat-head-txt small { color: var(--ink-dim); font-size: 11.5px; }
.chat-badge { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--accent); border: 1px solid var(--accent-soft); padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--glass-border-2) transparent; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--glass-border-2); border-radius: 3px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; opacity: 1; animation: msgIn 0.4s var(--ease) both; }
@keyframes msgIn { from { transform: translateY(10px) scale(0.98); } to { transform: none; } }
.msg.bot { background: var(--glass-2); border: 1px solid var(--glass-border); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink); }
.msg.user { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07080c; border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-4px);} }

.chat-sugg { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
.chat-sugg button {
  font-family: var(--ff-body); font-size: 12px; color: var(--accent-2); cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 12px; transition: all 0.25s var(--ease);
}
.chat-sugg button:hover { background: var(--accent); color: #07080c; border-color: var(--accent); }
.chat-input { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--glass-border); }
.chat-input input {
  flex: 1; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 11px 16px; color: var(--ink); font-family: var(--ff-body); font-size: 14px; outline: none; transition: border 0.25s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-send { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07080c; display: grid; place-items: center; transition: transform 0.25s var(--ease); }
.chat-send:hover { transform: scale(1.08) rotate(8deg); }
.chat-send:disabled { opacity: 0.5; cursor: default; }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 22px; text-align: left; }
.stat .num { font-family: var(--ff-display); font-weight: 700; font-size: clamp(34px, 4.5vw, 50px); line-height: 1; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--ink-dim); font-size: 13px; margin-top: 8px; font-family: var(--ff-mono); letter-spacing: 0.02em; }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-body { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft); text-wrap: pretty; }
.about-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.pill { font-family: var(--ff-mono); font-size: 12px; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px; padding: 7px 14px; }
.pill::before { content: "▹ "; color: var(--accent); }
.about-visual { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 0.6s var(--ease); }
.about-visual:hover img { transform: scale(1.04); }

/* ----- Experience timeline ----- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); }
.tl-item { position: relative; padding-left: 60px; padding-bottom: 26px; }
.tl-node { position: absolute; left: 10px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); display: grid; place-items: center; }
.tl-node i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl-item.cur .tl-node { box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-item.cur .tl-node i { animation: pulse 2s infinite; }
.tl-card { padding: 22px 24px; transition: transform 0.35s var(--ease), border-color 0.35s; }
.tl-card:hover { transform: translateX(6px); border-color: var(--glass-border-2); }
.tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tl-role { font-family: var(--ff-display); font-weight: 600; font-size: 18px; }
.tl-period { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.tl-co { color: var(--accent-2); font-size: 14px; font-weight: 600; margin-top: 2px; }
.tl-co span { color: var(--ink-dim); font-weight: 400; }
.tl-badge { display: inline-block; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.tl-points { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tl-points li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

/* ----- Skills ----- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.skill-card { padding: 22px; transition: transform 0.35s var(--ease); }
.skill-card:hover { transform: translateY(-5px); }
.skill-card h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; color: var(--ink); background: var(--glass-2); border: 1px solid var(--glass-border); border-radius: 9px; padding: 6px 11px; transition: all 0.25s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.lang-row { display: flex; flex-direction: column; gap: 16px; }
.lang-item .lang-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.lang-item .lang-top b { font-family: var(--ff-display); }
.lang-item .lang-top span { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-dim); }
.lang-bar { height: 6px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.lang-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent-glow); width: 0; transition: width 1.2s var(--ease); }

/* ----- Projects ----- */
.proj-list { display: flex; flex-direction: column; gap: 22px; }
.proj-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; }
.proj-main { padding: 32px 34px; }
.proj-tag { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.proj-name { font-family: var(--ff-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 12px; }
.proj-summary { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; text-wrap: pretty; }
.proj-meta-lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 9px; }
.proj-highlights { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.proj-highlights li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14px; }
.proj-highlights li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 2px; }
.proj-side { background: linear-gradient(165deg, var(--accent-soft), transparent); border-left: 1px solid var(--glass-border); padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.proj-flow { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-soft); line-height: 1.8; background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 14px 16px; }
.proj-role-v { font-family: var(--ff-display); color: var(--accent-2); font-size: 15px; font-weight: 600; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-stack .chip { background: rgba(0,0,0,0.3); font-family: var(--ff-mono); font-size: 11.5px; }

/* ----- Education ----- */
.edu-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.edu-list { display: flex; flex-direction: column; gap: 14px; }
.edu-card { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.edu-year { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); white-space: nowrap; padding-top: 3px; }
.edu-card h4 { font-family: var(--ff-display); font-size: 16px; font-weight: 600; }
.edu-card .edu-deg { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.edu-card .edu-full { color: var(--ink-dim); font-size: 12.5px; margin-top: 2px; font-family: var(--ff-mono); }
.edu-note { display: inline-block; font-family: var(--ff-mono); font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-top: 7px; }
.certs-card { padding: 24px; }
.certs-card h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.cert-item { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--glass-border); align-items: baseline; }
.cert-item:last-child { border-bottom: none; }
.cert-item .y { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); }
.cert-item .n { font-size: 14px; color: var(--ink-soft); }

/* ----- Contact ----- */
.contact-card { padding: clamp(34px, 5vw, 58px); text-align: center; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%); }
.contact-inner { position: relative; }
.contact-title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(28px, 4.5vw, 48px); letter-spacing: -0.025em; margin-bottom: 14px; }
.contact-body { color: var(--ink-soft); max-width: 480px; margin: 0 auto 30px; font-size: 16px; }
.contact-btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ----- Footer ----- */
.footer { border-top: 1px solid var(--glass-border); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--ink-dim); font-size: 13px; font-family: var(--ff-mono); }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

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

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 90px; }
  .hero-left { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .proj-card { grid-template-columns: 1fr; }
  .proj-side { border-left: none; border-top: 1px solid var(--glass-border); }
  .edu-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile-cv { display: inline-flex; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav, .nav.scrolled { padding-left: 16px; padding-right: 16px; }
  .nav-cv { display: none; }            /* CV lives inside the mobile menu instead */
  .brand small { display: none; }       /* drop subtitle to free up the bar */
  .brand-mark { width: 30px; height: 30px; font-size: 13px; }
  .brand > span { font-size: 15px; }
  .nav-tools { gap: 8px; }
  .lang-toggle { font-size: 11px; }
  .lang-toggle span { padding: 4px 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .contact-btns .btn { width: 100%; justify-content: center; }
  .tl-top { flex-direction: column; gap: 2px; }
  .chat-card { height: 420px; }
}
