/* ============================================================
   SMIT JOSHI — PORTFOLIO  |  style.css
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #0d0f14;
  --surface:     #13161e;
  --surface2:    #191d28;
  --border:      #1f2535;
  --border2:     #263047;
  --accent:      #5b8dff;
  --green:       #3dffa0;
  --orange:      #ff8c42;
  --text:        #dce6f5;
  --text-dim:    #7a90b5;
  --text-muted:  #3d5070;
  --nav-bg:      rgba(13,15,20,0.88);
  --font-head:   'DM Serif Display', serif;
  --font-body:   'Outfit', sans-serif;
  --font-mono:   'DM Mono', monospace;
  --nav-h:       68px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
}

[data-theme="light"] {
  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --surface2:    #f0f2fa;
  --border:      #d8ddf0;
  --border2:     #c4cbdf;
  --text:        #1a2240;
  --text-dim:    #4a5680;
  --text-muted:  #8a96b8;
  --nav-bg:      rgba(244,246,251,0.92);
}

/* ── RESET ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:15px; line-height:1.75;
  overflow-x:hidden;
  transition:background 0.35s,color 0.35s;
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  html { scroll-behavior:auto; }
}

/* ── TEXTURE ─────────────────────────────────────────────── */
.noise {
  position:fixed; inset:0; pointer-events:none; z-index:500;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity:0.35;
}
.grid-bg {
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:linear-gradient(rgba(91,141,255,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(91,141,255,0.04) 1px,transparent 1px);
  background-size:60px 60px;
}
[data-theme="light"] .grid-bg { opacity:0.4; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:0 48px;
  background:var(--nav-bg);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:background 0.3s,border-color 0.3s;
}

/* Falcon logo */
.nav-logo-wrap { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.falcon-mark {
  width:38px; height:38px; background:var(--surface2); border:1px solid var(--border2);
  border-radius:9px; display:flex; align-items:center; justify-content:center; padding:4px;
  transition:border-color 0.25s,transform 0.25s,box-shadow 0.25s;
}
.nav-logo-wrap:hover .falcon-mark {
  border-color:var(--accent); transform:rotate(-8deg) scale(1.08);
  box-shadow:0 0 16px rgba(91,141,255,0.25);
}
.falcon-svg    { width:26px; height:26px; display:block; }
.falcon-svg-sm { width:30px; height:30px; display:block; }
.nav-logo-text { display:flex; flex-direction:column; line-height:1.15; }
.nav-logo-name { font-family:var(--font-head); font-size:15px; color:var(--text); }
.nav-logo-sub  { font-family:var(--font-mono); font-size:9px; color:var(--accent); letter-spacing:0.08em; }

/* Nav links */
.nav-links { display:flex; gap:24px; flex:1; justify-content:center; }
.nav-links a {
  font-size:13px; font-weight:500; color:var(--text-dim);
  text-decoration:none; letter-spacing:0.02em; white-space:nowrap;
  position:relative; transition:color 0.2s;
  padding-bottom:2px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-3px; left:0; right:0;
  height:2px; background:var(--accent); border-radius:2px;
  transform:scaleX(0); transform-origin:center; transition:transform 0.25s;
}
.nav-links a:hover { color:var(--text); }
.nav-links a:hover::after { transform:scaleX(1); }
.nav-links a.active { color:var(--accent); }
.nav-links a.active::after { transform:scaleX(1); }

/* Nav right icons */
.nav-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.nav-icon {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--surface2); border:1px solid var(--border2);
  color:var(--text-dim); text-decoration:none;
  transition:color 0.2s,border-color 0.2s;
}
.nav-icon:hover { color:var(--text); border-color:var(--accent); }
.nav-icon.linkedin:hover { color:#0a66c2; border-color:#0a66c2; }
.theme-toggle {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--surface2); border:1px solid var(--border2);
  cursor:pointer; font-size:15px; transition:all 0.2s;
}
.theme-toggle:hover { border-color:var(--accent); transform:rotate(20deg); }

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.hamburger span { display:block; width:22px; height:2px; background:var(--text-dim); border-radius:2px; transition:all 0.3s; }

/* Mobile menu */
.mobile-menu {
  display:none; position:fixed; top:var(--nav-h); left:0; right:0; z-index:199;
  background:var(--surface); border-bottom:1px solid var(--border);
  flex-direction:column; padding:16px 24px; gap:0;
  transform:translateY(-10px); opacity:0; transition:all 0.3s; pointer-events:none;
}
.mobile-menu.open { transform:translateY(0); opacity:1; pointer-events:all; }
.mob-link {
  display:block; padding:12px 0; font-size:15px; font-weight:500;
  color:var(--text-dim); text-decoration:none;
  border-bottom:1px solid var(--border); transition:color 0.2s;
}
.mob-link:last-child { border-bottom:none; }
.mob-link:hover { color:var(--accent); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height:100vh; display:flex; align-items:center; justify-content:space-between; gap:56px;
  padding:calc(var(--nav-h) + 60px) 60px 80px;
  position:relative;
}
.hero::before {
  content:''; position:absolute; top:25%; left:15%; right:15%; bottom:15%;
  background:radial-gradient(ellipse,rgba(91,141,255,0.055) 0%,transparent 70%);
  pointer-events:none;
}
.hero-inner { flex:1; max-width:560px; }
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 14px;
  background:rgba(61,255,160,0.07); border:1px solid rgba(61,255,160,0.25);
  border-radius:100px; font-size:12px; font-weight:500;
  color:var(--green); letter-spacing:0.05em; margin-bottom:28px;
}
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--green); animation:pulse 2s ease infinite; flex-shrink:0; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(61,255,160,0.4)} 50%{box-shadow:0 0 0 6px rgba(61,255,160,0)} }

.hero-name { font-family:var(--font-head); font-size:clamp(60px,8vw,100px); font-weight:400; line-height:0.95; letter-spacing:-0.02em; color:var(--text); margin-bottom:24px; }
.hero-name em { font-style:italic; color:var(--accent); }
.hero-quote { font-size:16px; color:var(--text-dim); margin-bottom:18px; line-height:1.6; }
.hl { color:var(--accent); }
.quote-attr { display:block; font-family:var(--font-mono); font-size:12px; color:var(--text-muted); margin-top:4px; }
.hero-sub { font-size:15px; color:var(--text-dim); line-height:1.8; margin-bottom:36px; max-width:480px; }

.hero-actions { display:flex; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.btn-fill { padding:12px 26px; background:var(--accent); color:#fff; font-size:14px; font-weight:600; text-decoration:none; border-radius:100px; transition:background 0.2s,transform 0.15s,box-shadow 0.2s; display:inline-block; }
.btn-fill:hover { background:#7aaafe; transform:translateY(-2px); box-shadow:0 8px 24px rgba(91,141,255,0.3); }
.btn-outline { padding:12px 26px; border:1px solid var(--border2); color:var(--text-dim); font-size:14px; font-weight:500; text-decoration:none; border-radius:100px; transition:border-color 0.2s,color 0.2s; display:inline-block; }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }

.hero-socials { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:0; }
.social-chip { padding:6px 16px; background:var(--surface); border:1px solid var(--border2); color:var(--text-dim); font-family:var(--font-mono); font-size:12px; text-decoration:none; border-radius:100px; transition:border-color 0.2s,color 0.2s; }
.social-chip:hover { border-color:var(--accent); color:var(--accent); }

/* Hero visual */
.hero-visual { flex:0 0 400px; display:flex; flex-direction:column; gap:14px; }

/* Terminal */
.terminal-card { background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius-xl); overflow:hidden; box-shadow:0 20px 48px rgba(0,0,0,0.4); }
.term-bar { background:var(--surface2); border-bottom:1px solid var(--border); padding:11px 16px; display:flex; align-items:center; gap:6px; }
.term-dot { width:11px; height:11px; border-radius:50%; }
.term-dot.red{background:#ff5f57} .term-dot.yellow{background:#ffbd2e} .term-dot.green{background:#28c840}
.term-title { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); margin-left:6px; }
.term-body { padding:18px 20px; display:flex; flex-direction:column; gap:5px; min-height:110px; }
.term-line { font-family:var(--font-mono); font-size:12px; line-height:1.5; color:var(--text-dim); }
.t-dim{color:var(--text-muted)} .t-cmd{color:var(--text)} .t-out{color:var(--text-muted);padding-left:10px} .t-green{color:var(--green)} .t-cursor{color:var(--accent);animation:blink 1s step-end infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}

/* Mini cert chips under terminal */
.hero-cert-row { display:flex; gap:8px; flex-wrap:wrap; }
.hero-cert-chip {
  padding:7px 12px; border-radius:8px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.04em;
  display:inline-flex; align-items:center; gap:5px;
}
.hero-cert-chip.aws { background:rgba(255,153,0,0.1); border:1px solid rgba(255,153,0,0.3); color:#ff9900; }
.hero-cert-chip.tf  { background:rgba(123,66,188,0.1); border:1px solid rgba(123,66,188,0.3); color:#9b6bea; }
.chip-sub { font-size:10px; opacity:0.75; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { position:relative; z-index:1; padding:100px 60px; max-width:1200px; margin:0 auto; }
.section-tag { font-family:var(--font-mono); font-size:11px; letter-spacing:0.13em; color:var(--accent); margin-bottom:14px; }
.section-title { font-family:var(--font-head); font-size:clamp(36px,4vw,52px); font-weight:400; color:var(--text); line-height:1.1; letter-spacing:-0.02em; margin-bottom:10px; }
.section-sub { font-size:15px; color:var(--text-dim); margin-bottom:52px; }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; margin-top:40px; }
.about-text p { color:var(--text-dim); margin-bottom:18px; font-size:15px; line-height:1.85; }
.about-text strong { color:var(--text); font-weight:600; }
.about-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.chip { padding:6px 14px; background:var(--surface2); border:1px solid var(--border2); border-radius:100px; font-size:12px; color:var(--text-dim); }
.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.stat-card { background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius-lg); padding:22px 18px; text-align:center; transition:border-color 0.25s,transform 0.2s; }
.stat-card:hover { border-color:var(--accent); transform:translateY(-3px); }
.stat-num { font-family:var(--font-head); font-size:40px; color:var(--accent); line-height:1; margin-bottom:6px; }
.stat-unit { font-size:18px; }
.stat-label { font-size:11px; color:var(--text-muted); letter-spacing:0.04em; }
.edu-block { background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius-lg); padding:22px 20px; }
.edu-label { font-family:var(--font-mono); font-size:9px; letter-spacing:0.14em; color:var(--text-muted); margin-bottom:8px; text-transform:uppercase; }
.edu-degree { font-family:var(--font-head); font-size:19px; color:var(--text); margin-bottom:4px; }
.edu-school { font-size:13px; color:var(--accent); margin-bottom:10px; }
.edu-courses { font-size:12px; color:var(--text-muted); line-height:1.8; }

/* ── SKILLS ─────────────────────────────────────────────────── */
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:40px; }
.skill-block { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); padding:26px 22px; transition:border-color 0.25s,transform 0.25s; }
.skill-block:hover { border-color:var(--accent); transform:translateY(-4px); }
.skill-icon-wrap { font-size:26px; margin-bottom:12px; }
.skill-cat { font-size:14px; font-weight:700; color:var(--text); margin-bottom:14px; }
.skill-pills { display:flex; flex-wrap:wrap; gap:6px; }
.skill-pills span { padding:3px 10px; background:rgba(91,141,255,0.07); border:1px solid rgba(91,141,255,0.18); color:var(--accent); font-family:var(--font-mono); font-size:11px; border-radius:4px; transition:background 0.15s; }
.skill-pills span:hover { background:rgba(91,141,255,0.14); }
.skill-pills span.dim { color:var(--text-muted); border-color:var(--border); background:none; }

/* ── EXPERIENCE ──────────────────────────────────────────────── */
.exp-timeline { margin-top:48px; }
.exp-card { display:grid; grid-template-columns:180px 40px 1fr; align-items:start; }
.exp-left { padding-top:4px; }
.exp-date { font-family:var(--font-mono); font-size:12px; color:var(--accent); margin-bottom:4px; }
.exp-loc { font-size:12px; color:var(--text-muted); margin-bottom:12px; }
.exp-tags { display:flex; flex-wrap:wrap; gap:5px; }
.exp-tags span { padding:3px 9px; background:var(--surface2); border:1px solid var(--border2); border-radius:4px; font-size:11px; color:var(--text-dim); }
.exp-connector { display:flex; flex-direction:column; align-items:center; padding-top:5px; }
.exp-dot { width:12px; height:12px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px rgba(91,141,255,0.5); flex-shrink:0; }
.exp-line { flex:1; width:2px; background:var(--border2); margin-top:8px; min-height:60px; }
.exp-right { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px 26px; margin-left:20px; transition:border-color 0.25s; }
.exp-right:hover { border-color:var(--border2); }
.exp-role { font-size:18px; font-weight:700; color:var(--text); margin-bottom:4px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.exp-type { font-size:11px; font-weight:500; padding:2px 9px; background:rgba(91,141,255,0.1); border:1px solid rgba(91,141,255,0.25); border-radius:100px; color:var(--accent); }
.exp-company { font-size:14px; color:var(--text-dim); margin-bottom:14px; }
.exp-bullets { list-style:none; }
.exp-bullets li { position:relative; padding-left:16px; margin-bottom:9px; font-size:14px; color:var(--text-dim); line-height:1.7; }
.exp-bullets li::before { content:'›'; position:absolute; left:0; color:var(--accent); font-weight:700; }

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:40px; }
.proj-card {
  position:relative; border-radius:var(--radius-xl); overflow:hidden;
  min-height:260px; display:flex; flex-direction:column;
  border:1px solid transparent; cursor:pointer;
  transition:transform 0.3s,box-shadow 0.3s,border-color 0.3s;
}
.proj-card:hover { transform:translateY(-6px); box-shadow:0 20px 48px rgba(0,0,0,0.5); border-color:rgba(255,255,255,0.1); }
.proj-bg {
  /* FIX: position relative so absolute icon is anchored here */
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:flex-end; padding:20px;
}
.proj-bg-text { font-family:var(--font-head); font-size:clamp(60px,8vw,96px); font-weight:800; color:rgba(255,255,255,0.16); line-height:0.9; letter-spacing:-0.04em; user-select:none; transition:color 0.3s; }
/* FIX: icon is absolute within .proj-bg (which is already absolute covering the card) */
.proj-bg-icon { position:absolute; top:16px; right:20px; font-size:40px; opacity:0.65; transition:transform 0.3s; line-height:1; }
.proj-card:hover .proj-bg-text { color:rgba(255,255,255,0.24); }
.proj-card:hover .proj-bg-icon { transform:scale(1.12) rotate(-8deg); }
.proj-info { position:relative; z-index:2; margin-top:auto; padding:18px 20px 20px; background:linear-gradient(to top,rgba(0,0,0,0.85) 0%,rgba(0,0,0,0.5) 60%,transparent 100%); }
.proj-card-title { font-size:16px; font-weight:700; color:#fff; margin-bottom:5px; }
.proj-card-desc  { font-size:12px; color:rgba(255,255,255,0.72); line-height:1.55; }
.proj-card::after {
  content:'🔗 View Details'; position:absolute; inset:0; z-index:3;
  background:rgba(91,141,255,0.12); display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600; color:#fff; letter-spacing:0.04em;
  opacity:0; transition:opacity 0.25s; backdrop-filter:blur(2px); border-radius:var(--radius-xl);
}
.proj-card:hover::after { opacity:1; }

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.certs-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:40px; }
.cert-card {
  background:var(--surface); border-radius:var(--radius-xl);
  padding:26px 22px 22px;
  display:flex; flex-direction:column; gap:5px;
  position:relative; overflow:hidden;
  transition:transform 0.25s,box-shadow 0.25s;
}
.cert-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.cert-card.earned      { border:1px solid rgba(61,255,160,0.22); }
.cert-card.earned::before { background:var(--green); }
.cert-card.in-progress { border:1px solid rgba(91,141,255,0.28); }
.cert-card.in-progress::before { background:linear-gradient(90deg,var(--accent),#a78bfa); }
.cert-card:hover { transform:translateY(-5px); box-shadow:0 16px 40px rgba(0,0,0,0.3); }
.cert-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.cert-logo { display:flex; align-items:center; }
.tf-logo { background:rgba(123,66,188,0.1); border:1px solid rgba(123,66,188,0.22); border-radius:8px; padding:7px; }
.cert-status-badge { font-family:var(--font-mono); font-size:10px; letter-spacing:0.05em; padding:4px 10px; border-radius:100px; font-weight:500; white-space:nowrap; }
.earned-badge   { background:rgba(61,255,160,0.1); border:1px solid rgba(61,255,160,0.3); color:var(--green); }
.progress-badge { background:rgba(91,141,255,0.1); border:1px solid rgba(91,141,255,0.3); color:var(--accent); }
.cert-name-big { font-family:var(--font-head); font-size:21px; color:var(--text); line-height:1.15; margin-bottom:2px; }
.cert-level    { font-size:12px; color:var(--text-muted); letter-spacing:0.03em; margin-bottom:6px; }
.cert-code     { font-family:var(--font-mono); font-size:11px; color:var(--accent); letter-spacing:0.08em; margin-bottom:14px; }
.cert-date-row { display:flex; justify-content:space-between; font-size:12px; margin-bottom:10px; }
.cert-date-label { color:var(--text-muted); }
.cert-date-val   { color:var(--text); font-weight:500; }
.cert-progress-label { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:11px; color:var(--text-dim); margin-bottom:6px; }
.cert-bar-wrap { height:4px; background:var(--border2); border-radius:2px; overflow:hidden; }
.cert-bar { height:100%; border-radius:2px; }
.cert-bar-full     { width:100%; background:var(--green); }
/* FIX: progress bar uses inline width set by JS for easy update; shimmer via background-position */
.cert-bar-progress {
  background:linear-gradient(90deg,var(--accent) 0%,#a78bfa 50%,var(--accent) 100%);
  background-size:200% 100%;
  animation:shimmer 2.5s linear infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; inset:0; z-index:900;
  background:rgba(0,0,0,0.75); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity 0.3s;
}
.modal-overlay.open { opacity:1; pointer-events:all; }
.modal {
  background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius-xl);
  width:100%; max-width:820px; max-height:88vh;
  position:relative;
  transform:translateY(24px) scale(0.97);
  transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 32px 80px rgba(0,0,0,0.6);
  overflow:hidden;
}
.modal-overlay.open .modal { transform:translateY(0) scale(1); }
.modal-scroll { overflow-y:auto; max-height:88vh; padding:34px 38px 38px; -webkit-overflow-scrolling:touch; }
.modal-close {
  position:absolute; top:14px; right:14px; z-index:10;
  width:34px; height:34px; border-radius:50%;
  background:var(--surface2); border:1px solid var(--border2);
  color:var(--text-dim); font-size:13px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background 0.2s,color 0.2s;
}
.modal-close:hover { background:var(--border2); color:var(--text); }
.modal-header { margin-bottom:26px; }
.modal-title    { font-family:var(--font-head); font-size:28px; color:var(--text); margin-bottom:5px; }
.modal-subtitle { font-family:var(--font-mono); font-size:12px; color:var(--accent); margin-bottom:12px; }
.modal-desc     { font-size:14px; color:var(--text-dim); line-height:1.8; margin-bottom:18px; }
.modal-github-btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:10px 22px; background:var(--accent); color:#fff;
  font-size:13px; font-weight:600; text-decoration:none; border-radius:100px;
  transition:background 0.2s,transform 0.15s;
}
.modal-github-btn:hover { background:#7aaafe; transform:translateY(-1px); }
.modal-cols { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-bottom:24px; padding-top:24px; border-top:1px solid var(--border); }
.modal-col-head { display:flex; align-items:center; gap:7px; font-size:14px; font-weight:700; color:var(--text); margin-bottom:12px; }
.modal-list { list-style:none; display:flex; flex-direction:column; gap:9px; }
.modal-list li { position:relative; padding-left:16px; font-size:13px; color:var(--text-dim); line-height:1.65; }
.modal-list li::before { content:'●'; position:absolute; left:0; color:var(--accent); font-size:7px; top:6px; }
.modal-challenge { font-size:13px; color:var(--text-dim); line-height:1.75; }
.modal-meta { display:flex; flex-direction:column; gap:9px; margin-top:12px; }
.modal-meta-row { display:flex; justify-content:space-between; align-items:center; font-size:12px; border-bottom:1px solid var(--border); padding-bottom:9px; }
.modal-meta-row:last-child { border-bottom:none; padding-bottom:0; }
.modal-meta-key { color:var(--text-muted); }
.modal-meta-val { color:var(--text); font-weight:500; }
.modal-meta-val.completed { color:var(--green); }
.modal-tech-section { border-top:1px solid var(--border); padding-top:22px; }
.modal-techs { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.modal-techs span { padding:5px 12px; background:var(--surface2); border:1px solid var(--border2); border-radius:6px; font-size:12px; color:var(--text-dim); transition:border-color 0.2s,color 0.2s; }
.modal-techs span:hover { border-color:var(--accent); color:var(--accent); }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-top {
  position:fixed; bottom:28px; right:28px; z-index:150;
  width:40px; height:40px; border-radius:50%;
  background:var(--accent); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:16px;
  opacity:0; transform:translateY(10px);
  transition:opacity 0.3s,transform 0.3s,background 0.2s;
  box-shadow:0 4px 16px rgba(91,141,255,0.4);
}
.back-top.visible { opacity:1; transform:translateY(0); }
.back-top:hover { background:#7aaafe; }

/* ── RESUME DOWNLOAD BUTTON ──────────────────────────────── */
.btn-download {
  padding:12px 22px;
  border:1.5px solid var(--accent);
  color:var(--accent);
  font-size:14px; font-weight:600;
  text-decoration:none; border-radius:100px;
  display:inline-flex; align-items:center; gap:8px;
  transition:background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-download:hover {
  background:var(--accent); color:#fff;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(91,141,255,0.25);
}

/* ── CURRENTLY LEARNING CHIP ────────────────────────────── */
.skills-header-row {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px; margin-bottom:52px;
}
.learning-chip {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px;
  background:rgba(123,66,188,0.08);
  border:1px solid rgba(123,66,188,0.3);
  border-radius:100px;
  font-size:12px; color:#9b6bea;
  white-space:nowrap; flex-shrink:0;
}
.learning-chip strong { color:#b48af0; font-weight:600; }
.learning-dot {
  width:7px; height:7px; border-radius:50%;
  background:#9b6bea; flex-shrink:0;
  animation:pulse-purple 2s ease infinite;
}
@keyframes pulse-purple {
  0%,100%{box-shadow:0 0 0 0 rgba(155,107,234,0.4)}
  50%{box-shadow:0 0 0 6px rgba(155,107,234,0)}
}

/* ── PROJECT CARDS — softer hover overlay ───────────────── */
/* Remove old ::after full-cover overlay */
.proj-card::after { display:none; }

/* New: small corner button that appears on hover */
.proj-hover-btn {
  position:absolute; top:14px; left:14px; z-index:3;
  padding:5px 12px;
  background:rgba(91,141,255,0.9);
  color:#fff; font-size:11px; font-weight:600;
  border-radius:100px; letter-spacing:0.04em;
  opacity:0; transform:translateY(-4px);
  transition:opacity 0.22s, transform 0.22s;
  pointer-events:none;
  backdrop-filter:blur(4px);
}
.proj-card:hover .proj-hover-btn { opacity:1; transform:translateY(0); }
/* subtle dark vignette on hover instead of full cover */
.proj-card::before {
  content:''; position:absolute; inset:0; z-index:2;
  background:rgba(0,0,0,0);
  transition:background 0.25s;
  border-radius:var(--radius-xl);
  pointer-events:none;
}
.proj-card:hover::before { background:rgba(0,0,0,0.18); }

/* ── SECTION DIVIDERS ───────────────────────────────────── */
.section-divided {
  border-top:1px solid var(--border);
  margin-top:0;
  padding-top:100px;
}

/* ── CONTACT SECTION ────────────────────────────────────── */
.contact-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:14px; margin-bottom:40px;
}
.contact-card {
  background:var(--surface); border:1px solid var(--border2);
  border-radius:var(--radius-lg); padding:24px 20px;
  display:flex; flex-direction:column; align-items:center;
  gap:8px; text-align:center;
  transition:border-color 0.25s, transform 0.25s;
}
.contact-card:hover { border-color:var(--accent); transform:translateY(-4px); }
.contact-card-icon { font-size:28px; }
.contact-card-label {
  font-family:var(--font-mono); font-size:10px;
  letter-spacing:0.1em; color:var(--text-muted);
  text-transform:uppercase;
}
.contact-card-val {
  font-size:13px; color:var(--accent);
  text-decoration:none; word-break:break-all;
  transition:color 0.2s;
}
.contact-card-val:hover { color:#7aaafe; }
.contact-cta {
  display:flex; gap:14px; flex-wrap:wrap;
}

@media (max-width:900px) {
  .contact-grid { grid-template-columns:repeat(2,1fr); }
  .skills-header-row { flex-direction:column; align-items:flex-start; }
  .learning-chip { white-space:normal; }
}
@media (max-width:480px) {
  .contact-grid { grid-template-columns:1fr; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { border-top:1px solid var(--border); padding:44px 60px; position:relative; z-index:1; }
.footer-inner { max-width:1200px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:18px; }
.footer-logo { display:flex; align-items:center; gap:10px; }
.footer-logo-name { font-family:var(--font-head); font-size:22px; color:var(--text); }
.footer-links { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; }
.footer-links a { font-size:13px; color:var(--text-dim); text-decoration:none; transition:color 0.2s; }
.footer-links a:hover { color:var(--accent); }
.footer-copy { font-size:12px; color:var(--text-muted); }

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.55s ease,transform 0.55s ease; }
.reveal.in-view { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:1100px) {
  .navbar { padding:0 28px; }
  .nav-links { gap:16px; }
  .section { padding:80px 36px; }
  .hero { padding:calc(var(--nav-h)+48px) 36px 72px; }
}
/* Collapse nav links before they overflow */
@media (max-width:960px) {
  .navbar { padding:0 20px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .mobile-menu { display:flex; }
}
@media (max-width:900px) {
  .skills-grid { grid-template-columns:repeat(2,1fr); }
  .hero { flex-direction:column; gap:40px; }
  /* FIX: ensure terminal card never overflows viewport width on narrow tablets */
  .hero-visual { flex:none; width:100%; max-width:480px; align-self:center; }
}
/* FIX: certs middle step — 2 cols at tablet instead of jumping straight to 1 */
@media (max-width:900px) and (min-width:481px) {
  .certs-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .section { padding:64px 20px; }
  .hero { padding:calc(var(--nav-h)+40px) 20px 56px; gap:36px; }
  /* FIX: hero-visual full width on small screens */
  .hero-visual { max-width:100%; }
  .about-grid { grid-template-columns:1fr; gap:36px; }
  .projects-grid { grid-template-columns:1fr; }
  .skills-grid { grid-template-columns:1fr; }
  /* FIX: certs single column on small mobile */
  .certs-grid { grid-template-columns:1fr; }
  .exp-card { grid-template-columns:1fr; gap:0; }
  .exp-connector { display:none; }
  /* FIX: add visual separation between date/tags and content card on mobile */
  .exp-left { margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--border); }
  .exp-right { margin-left:0; }
  .modal-cols { grid-template-columns:1fr; gap:16px; }
  .modal-scroll { padding:24px 20px 28px; }
  .footer { padding:36px 20px; }
  .footer-links { flex-direction:column; align-items:center; gap:10px; }
  .back-top { bottom:20px; right:20px; }
}
/* FIX: very small phones — prevent hero name from clipping */
@media (max-width:380px) {
  .hero-name { font-size:clamp(48px,14vw,72px); }
  .section { padding:56px 16px; }
  .stats-grid { grid-template-columns:1fr; }
}
