/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO · iamsohan.netlify.app
   WCAG AA compliant — no pure #000 or #fff
   Contrast ratios verified vs --bg (#090E16)
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds — darkest to lightest, none pure black */
  --bg:          #090E16;   /* page base            */
  --bg-2:        #0E1624;   /* alt sections         */
  --bg-3:        #131E2E;   /* card surfaces        */
  --bg-4:        #182433;   /* card hover           */

  /* Teal accent — contrast ~14:1 vs --bg */
  --teal:        #5EECC8;
  --cyan:        #38BDF8;
  --teal-10:     rgba(94,236,200,.10);
  --teal-22:     rgba(94,236,200,.22);

  /* Text — not pure white. All pass WCAG AA vs --bg */
  --cream:       #D8E6F2;   /* headings   ~15:1     */
  --text:        #B2C0D0;   /* body       ~9:1      */
  --text-dim:    #8896A6;   /* secondary  ~6:1      */
  --text-muted:  #6C7A8A;   /* captions   ~4.5:1    */

  /* Borders */
  --border:      rgba(94,236,200,.09);
  --border-2:    rgba(94,236,200,.22);

  /* Accents */
  --red:         #C87080;   /* terminal prompts ~6:1 */
  --green-bg:    rgba(52,211,153,.10);
  --green-clr:   #34D399;
  --amber-bg:    rgba(251,191,36,.09);
  --amber-clr:   #FBBF24;

  /* Category palette (event cards) */
  --cat-career:  rgba(139,92,246,.12);
  --cat-career-c:#A78BFA;
  --cat-edu:     rgba(59,130,246,.12);
  --cat-edu-c:   #60A5FA;
  --cat-vol:     rgba(251,146,60,.10);
  --cat-vol-c:   #FB923C;
  --cat-proj:    rgba(236,72,153,.10);
  --cat-proj-c:  #F472B6;

  /* Typography */
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h:  62px;
  --max-w:  980px;
  --ease:   cubic-bezier(.25,.46,.45,.94);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px;
  line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .8; }
strong { color: var(--cream); font-weight: 600; }
img { max-width: 100%; display: block; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul { list-style: none; }
::selection { background: var(--teal-22); color: var(--cream); }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 660px;        margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
section:nth-child(even) { background: var(--bg-2); }

/* ── ACTIVE NAV (data-page on body) ─────────────────────────── */
[data-page="home"]     .nav-links a[href="index.html"],
[data-page="projects"] .nav-links a[href="projects.html"],
[data-page="gallery"]  .nav-links a[href="gallery.html"],
[data-page="home"]     #nav-mobile a[href="index.html"],
[data-page="projects"] #nav-mobile a[href="projects.html"],
[data-page="gallery"]  #nav-mobile a[href="gallery.html"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(9,14,22,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
#nav.scrolled { background: rgba(9,14,22,.97); }

.nav-logo { font-family: var(--mono); font-size: 14px; color: var(--cyan); letter-spacing: .3px; }
.nav-logo .dim { opacity: .4; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: .5px;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--cyan); opacity: 1; border-bottom-color: var(--cyan); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.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 NAV ──────────────────────────────────────────────── */
#nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: rgba(9,14,22,.98);
  border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease), padding .25s;
}
#nav-mobile.open { max-height: 260px; padding: 10px 0; }
#nav-mobile a {
  display: block; padding: 11px 32px;
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
#nav-mobile a:hover { color: var(--cyan); border-color: var(--cyan); opacity: 1; }

/* ── FOOTER (navbar-style on all pages) ──────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--bg); padding: 22px 40px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.footer-logo .dim { opacity: .4; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--cyan); opacity: 1; }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

/* ── SECTION HEADER (shared component) ───────────────────────── */
.sec-header { margin-bottom: 48px; }
.sec-prompt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .5px;
  color: var(--red); opacity: .9; margin-bottom: 7px;
}
.sec-title {
  font-family: var(--mono); font-size: clamp(22px,3.8vw,30px);
  font-weight: 700; color: var(--cream); margin-bottom: 12px;
}
.sec-rule { height: 1px; max-width: 240px; background: linear-gradient(90deg,var(--cyan),transparent); }
.sec-sub  { font-size: 14px; color: var(--text-dim); margin-top: 10px; }

/* ── PAGE HEADER (projects + gallery pages) ───────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--mono); font-size: clamp(28px,5vw,46px);
  font-weight: 700; color: var(--cream); margin: 8px 0 12px;
}
.page-sub { font-size: 15px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────── */
#hero-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 56px;
  min-height: 100svh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 32px 0;
}

.hero-left  { grid-column: 1; grid-row: 1; }
.hero-right { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; }

.hero-prompt {
  font-family: var(--mono); font-size: 13px;
  color: var(--red); margin-bottom: 16px; min-height: 1.4em;
}
.hero-prompt.typing::after {
  content: '█'; animation: blink 1s step-end infinite; margin-left: 1px;
}

.hero-name {
  font-family: var(--mono); font-size: clamp(28px,5vw,52px);
  font-weight: 700; color: var(--cream);
  line-height: 1.1; letter-spacing: -.8px; margin-bottom: 22px;
}
.h-cursor {
  display: inline-block; width: .5em; height: .88em;
  background: var(--cyan); vertical-align: bottom; margin-left: 3px;
  animation: blink 1s step-end infinite;
}
.h-cursor.gone { display: none; }

#hero-body {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
#hero-body.visible { opacity: 1; transform: none; }

.hero-role  { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .4px; margin-bottom: 6px; }
.hero-loc   { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); margin-bottom: 22px; }
.hero-desc  { font-size: 15px; color: var(--text); max-width: 480px; line-height: 1.78; margin-bottom: 30px; }

.hero-cta   { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .7px;
  padding: 11px 24px; border-radius: 4px; transition: all .22s var(--ease);
}
.btn-primary { background: var(--cyan); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: var(--cream); opacity: 1; }
.btn-ghost   { color: var(--cyan); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--teal-10); border-color: var(--cyan); opacity: 1; }

.hero-socials { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-social  {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: .4px; transition: color .2s;
}
.hero-social::before { content: '// '; color: var(--red); opacity: .6; }
.hero-social:hover   { color: var(--cyan); opacity: 1; }

/* ── PROFILE PHOTO ───────────────────────────────────────────── */
.hero-photo-wrap {
  width: 290px; height: 290px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border-2);
  box-shadow: 0 0 0 8px var(--teal-10), 0 0 60px rgba(94,236,200,.12);
  transition: box-shadow .35s var(--ease);
  position: relative; flex-shrink: 0;
}
.hero-photo-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg,rgba(94,236,200,.06) 0%,transparent 55%);
  pointer-events: none;
}
.hero-photo-wrap:hover {
  box-shadow: 0 0 0 8px var(--teal-22), 0 0 80px rgba(94,236,200,.22);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ── OSCILLOSCOPE (spans both columns) ───────────────────────── */
#hero-osc {
  grid-column: 1 / -1; grid-row: 2;
  width: calc(100% + 64px); margin: 16px -32px 0;
  opacity: .28; pointer-events: none; flex-shrink: 0;
}

/* ── FEATURED WORK ────────────────────────────────────────────── */
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 32px; }
.feat-card {
  display: block; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px; color: var(--text);
  transition: border-color .22s, background .22s, transform .26s var(--ease);
}
.feat-card:hover { border-color: var(--border-2); background: var(--bg-4); transform: translateY(-5px); opacity: 1; }
.feat-prompt { font-family: var(--mono); font-size: 10px; color: var(--red); margin-bottom: 8px; opacity: .8; }
.feat-title  { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.feat-desc   { font-size: 12.5px; color: var(--text-dim); line-height: 1.62; }
.feat-badge  {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}
.feat-badge.live   { background: var(--green-bg);   color: var(--green-clr); border: 1px solid rgba(52,211,153,.22); }
.feat-badge.active { background: var(--teal-10);     color: var(--cyan);      border: 1px solid var(--border-2); }
.feat-badge.code   { background: rgba(255,255,255,.04); color: var(--text-dim); border: 1px solid var(--border); }
.see-all {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.see-all:hover { gap: 10px; opacity: 1; }

/* ── CONTACT (4 icon cards) ───────────────────────────────────── */
#contact { background: var(--bg-2); }
.contact-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 30px 16px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); transition: border-color .22s, background .22s, transform .26s var(--ease);
}
.contact-card:hover { border-color: var(--border-2); background: var(--bg-4); transform: translateY(-5px); opacity: 1; }
.contact-icon { width: 30px; height: 30px; color: var(--cyan); flex-shrink: 0; }
.contact-name { font-family: var(--mono); font-size: 12px; color: var(--text-dim); text-align: center; transition: color .2s; }
.contact-card:hover .contact-name { color: var(--cyan); }

/* ── ABOUT (homepage, bottom) ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 288px; gap: 48px; align-items: start; }
.about-text p { margin-bottom: 16px; font-size: 15px; line-height: 1.82; }
.about-text p:last-child { margin-bottom: 0; }
.about-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ac-row  { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; }
.ac-row:last-child { border-bottom: none; }
.ac-key  { font-family: var(--mono); font-size: 9.5px; color: var(--cyan); min-width: 100px; flex-shrink: 0; }
.ac-val  { font-family: var(--mono); font-size: 11px; color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   PROJECTS PAGE
══════════════════════════════════════════════════════════════ */

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.proj-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .22s, background .22s, transform .26s var(--ease);
}
.proj-card:hover { border-color: var(--border-2); background: var(--bg-4); transform: translateY(-5px); }
.proj-top  { display: flex; justify-content: space-between; align-items: center; }
.proj-icon { font-family: var(--mono); font-size: 10px; color: var(--cyan); opacity: .7; }
.proj-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}
.proj-badge.live   { background: var(--green-bg);   color: var(--green-clr); border: 1px solid rgba(52,211,153,.22); }
.proj-badge.github { background: var(--teal-10);     color: var(--cyan);      border: 1px solid var(--border-2); }
.proj-badge.wip    { background: var(--amber-bg);    color: var(--amber-clr); border: 1px solid rgba(251,191,36,.2); }
.proj-name { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--cream); }
.proj-desc { font-size: 13px; color: var(--text-dim); line-height: 1.65; flex-grow: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tag  {
  font-family: var(--mono); font-size: 9.5px; color: var(--text-muted);
  border: 1px solid var(--border); padding: 2px 8px; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.proj-tag:hover { border-color: var(--cyan); color: var(--cyan); }
.proj-link { font-family: var(--mono); font-size: 11px; color: var(--cyan); }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.tl-item  {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child  { border-bottom: none; }
.tl-date { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); text-align: right; padding-top: 3px; line-height: 1.6; }
.tl-role { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 3px; }
.tl-org  { font-family: var(--mono); font-size: 11px; color: var(--cyan); margin-bottom: 14px; }
.tl-bullets { margin-bottom: 12px; }
.tl-bullets li {
  font-size: 13.5px; color: var(--text); padding-left: 16px;
  position: relative; margin-bottom: 8px; line-height: 1.65;
}
.tl-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); font-size: 15px; line-height: 1.3; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tag  {
  font-family: var(--mono); font-size: 9.5px; color: var(--cyan);
  background: var(--teal-10); border: 1px solid var(--border-2);
  padding: 2px 8px; border-radius: 2px;
}

/* ── CERTIFICATIONS ───────────────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 14px; }
.cert-card  {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px;
  padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color .22s, background .22s, transform .22s var(--ease);
}
.cert-card:hover { border-color: var(--border-2); background: var(--bg-4); transform: translateY(-2px); }
.cert-info   { display: flex; flex-direction: column; gap: 3px; }
.cert-name   { font-size: 13px; font-weight: 500; color: var(--cream); }
.cert-issuer { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }
.cert-badge  { font-family: var(--mono); font-size: 9px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.cert-badge.done { background: var(--green-bg); color: var(--green-clr); border: 1px solid rgba(52,211,153,.2); }
.cert-badge.wip  { background: var(--amber-bg); color: var(--amber-clr); border: 1px solid rgba(251,191,36,.2); }

/* ── EDUCATION ────────────────────────────────────────────────── */
.edu-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px;
  padding: 26px 30px; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
  transition: border-color .22s;
}
.edu-card:hover { border-color: var(--border-2); }
.edu-name  { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--cream); margin-bottom: 5px; }
.edu-inst  { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-bottom: 6px; }
.edu-meta  { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.edu-cgpa  { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--cream); letter-spacing: -1px; }
.edu-cgpa-lbl { font-family: var(--mono); font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ── SKILLS (projects page) ───────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px 48px; }
.skill-group { }
.skill-cat   { font-family: var(--mono); font-size: 10.5px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.skill-cat::before { content: '# '; opacity: .5; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip  {
  font-family: var(--mono); font-size: 11px; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 3px; transition: border-color .2s, color .2s;
}
.skill-chip:hover { border-color: var(--cyan); color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════
   GALLERY PAGE
══════════════════════════════════════════════════════════════ */

.event-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .4px;
  padding: 7px 16px; border-radius: 3px; color: var(--text-muted);
  border: 1px solid var(--border); transition: all .2s var(--ease);
}
.filter-btn:hover  { color: var(--cyan); border-color: var(--border-2); }
.filter-btn.active { color: var(--cyan); border-color: var(--cyan); background: var(--teal-10); }

.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.event-card  {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .22s, background .22s, transform .26s var(--ease);
}
.event-card:hover { border-color: var(--border-2); background: var(--bg-4); transform: translateY(-5px); }

.event-top  { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.event-date { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.event-cat  {
  font-family: var(--mono); font-size: 9px; letter-spacing: .6px;
  padding: 2px 8px; border-radius: 2px; text-transform: uppercase;
}

/* category color palette */
.cat-career        { background: var(--cat-career); color: var(--cat-career-c); border: 1px solid rgba(139,92,246,.22); }
.cat-education     { background: var(--cat-edu);    color: var(--cat-edu-c);    border: 1px solid rgba(59,130,246,.22); }
.cat-certification { background: var(--green-bg);   color: var(--green-clr);    border: 1px solid rgba(52,211,153,.2); }
.cat-volunteer     { background: var(--cat-vol);    color: var(--cat-vol-c);    border: 1px solid rgba(251,146,60,.2); }
.cat-project       { background: var(--cat-proj);   color: var(--cat-proj-c);   border: 1px solid rgba(236,72,153,.2); }
.cat-training      { background: var(--amber-bg);   color: var(--amber-clr);    border: 1px solid rgba(251,191,36,.2); }
.cat-milestone     { background: var(--teal-10);    color: var(--cyan);         border: 1px solid var(--border-2); }

.event-title { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cream); }
.event-desc  { font-size: 13px; color: var(--text-dim); line-height: 1.65; flex-grow: 1; }
.event-link  { font-family: var(--mono); font-size: 11px; color: var(--cyan); align-self: flex-start; }
.event-link:hover { opacity: .75; }

/* ══════════════════════════════════════════════════════════════
   SCROLL-REVEAL + SHARED ANIMATIONS
══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  #hero-wrap          { grid-template-columns: 1fr 260px; gap: 0 40px; }
  .hero-photo-wrap    { width: 240px; height: 240px; }
}

@media (max-width: 768px) {
  #nav                { padding: 0 20px; }
  .nav-links          { display: none; }
  .nav-burger         { display: flex; }

  /* Hero: stack, photo above */
  #hero-wrap          { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 28px; text-align: center; padding: calc(var(--nav-h) + 36px) 20px 0; }
  .hero-left          { grid-column: 1; grid-row: 2; }
  .hero-right         { grid-column: 1; grid-row: 1; }
  .hero-photo-wrap    { width: 180px; height: 180px; margin: 0 auto; }
  .hero-cta           { justify-content: center; }
  .hero-socials       { justify-content: center; }
  .hero-desc          { margin: 0 auto 30px; }
  #hero-osc           { grid-column: 1; grid-row: 3; width: calc(100% + 40px); margin: 0 -20px; }

  .featured-grid      { grid-template-columns: 1fr; }
  .contact-cards      { grid-template-columns: repeat(2,1fr); }
  .about-grid         { grid-template-columns: 1fr; }
  .events-grid        { grid-template-columns: repeat(2,1fr); }
  .skills-grid        { grid-template-columns: 1fr; gap: 26px; }
  .certs-grid         { grid-template-columns: 1fr; }
  .tl-item            { grid-template-columns: 1fr; gap: 10px; }
  .tl-date            { text-align: left; }
  .edu-card           { flex-direction: column; }
  .container, .container-sm { padding: 0 20px; }
  footer              { padding: 22px 20px; }
  .footer-inner       { flex-direction: column; align-items: flex-start; gap: 14px; }
  section             { padding: 64px 0; }
  .page-header        { padding: calc(var(--nav-h) + 40px) 0 40px; }
}

@media (max-width: 520px) {
  .contact-cards { grid-template-columns: repeat(2,1fr); }
  .events-grid   { grid-template-columns: 1fr; }
  .hero-cta      { flex-direction: column; max-width: 280px; margin: 0 auto 28px; }
  .btn           { text-align: center; width: 100%; }
  .footer-nav    { gap: 14px; flex-wrap: wrap; }
}
