/* =====================
   BASE & RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8e8;
  --text-muted: #888;
  --text-faint: #555;
  --accent: #e8e8e8;
  --accent-dim: rgba(232,232,232,0.06);
  --accent-red: #ff2e2e;
  --accent-red-hover: #ff5555;
  --accent-red-dim: rgba(255,46,46,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Montserrat', sans-serif;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =====================
   SKIP LINK (Accessibility)
   ===================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =====================
   BENTO GRID — DESKTOP
   ===================== */
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 210px 190px 70px 220px 50px;
  gap: 12px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* =====================
   BOX BASE
   ===================== */
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition);
}
.box:hover { border-color: rgba(255,46,46,0.35); }

/* =====================
   GRID PLACEMENT
   ===================== */
.welcome-box   { grid-column: 1 / 4; grid-row: 1; }
.about-box     { grid-column: 4;     grid-row: 1 / 3; }
.contact-box   { grid-column: 1;     grid-row: 2; }
.project-box   { grid-column: 2 / 4; grid-row: 2 / 6; }
.timezone-box  { grid-column: 1;     grid-row: 3; }
.languages-box { grid-column: 1;     grid-row: 4; }
.please-box    { grid-column: 1;     grid-row: 5; cursor: pointer; }
.certs-box     { grid-column: 4;     grid-row: 3 / 6; }

.about-box,
.certs-box { display: flex; flex-direction: column; }

.project-box {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* =====================
   INNER SCROLL WRAPPERS
   ===================== */
.about-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.certs-content {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.project-content {
  flex-shrink: 0;
}

.project-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-right: -12px;
  padding-right: 12px;
}

.skills,
.projects-list,
.certs-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,46,46,0.45) rgba(255,255,255,0.04);
}
.projects-list,
.certs-list {
  margin-right: -12px;
  padding-right: 8px;
}
.projects-list { display: flex; flex-direction: column; gap: 8px; }
.certs-list    { display: flex; flex-direction: column; gap: 7px; }
.skills        { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-content: flex-start; padding-right: 2px; }

.about-content > p { flex-shrink: 0; }

.skills::-webkit-scrollbar,
.projects-list::-webkit-scrollbar,
.certs-list::-webkit-scrollbar { width: 4px; }
.skills::-webkit-scrollbar-track,
.projects-list::-webkit-scrollbar-track,
.certs-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 99px; }
.skills::-webkit-scrollbar-thumb,
.projects-list::-webkit-scrollbar-thumb,
.certs-list::-webkit-scrollbar-thumb { background: rgba(255,46,46,0.45); border-radius: 99px; }

.scroll-hint {
  position: absolute;
  bottom: 8px; right: 12px;
  font-size: 10px;
  color: var(--text-faint);
  pointer-events: none;
  opacity: 0.5;
}

/* =====================
   BOX TITLES
   ===================== */
.box-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.view-all {
  font-size: 10px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.view-all:hover { color: var(--accent-red); }

/* =====================
   VIEW MORE BUTTON
   ===================== */
.view-more-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  margin-right: 12px;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.view-more-btn:hover {
  color: var(--accent-red);
  border-color: rgba(255,46,46,0.4);
  background: var(--accent-red-dim);
}

/* =====================
   WELCOME BOX
   ===================== */
.welcome-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.welcome-text { flex: 1; }
.typewriter {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  opacity: 0;
}
.bold-name { font-weight: 700; color: var(--text); }
.job {
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.welcome-image-container {
  flex-shrink: 0;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}
.welcome-image { width: 100%; height: 100%; object-fit: cover; }

/* =====================
   ABOUT BOX
   ===================== */
.about-bio {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.about-bio strong { color: var(--text); font-weight: 600; }

.skill-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface-2);
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
  height: fit-content;
}
.skill-tag:hover { border-color: rgba(255,46,46,0.4); color: var(--accent-red); }

/* =====================
   CONTACT / SOCIALS
   ===================== */
.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 20px;
}
.contact-content {
  flex-shrink: 0;
}
.contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.contact-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.social-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.social-icon:hover {
  color: var(--accent-red);
  border-color: rgba(255,46,46,0.4);
  background: var(--accent-red-dim);
  transform: translateY(-2px);
}
.hire-link {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.hire-link:hover { color: var(--accent-red); }

/* =====================
   LANGUAGES BOX
   ===================== */
.languages-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px 16px;
}
.languages-box .box-title { margin-bottom: 10px; }

.lang-list { display: flex; flex-direction: column; gap: 9px; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.lang-flag { font-size: 14px; line-height: 1; flex-shrink: 0; }
.lang-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  min-width: 52px;
}
.lang-level {
  font-size: 9px;
  color: var(--text-faint);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 72px;
}
.lang-badge {
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(88,204,2,0.25);
  background: rgba(88,204,2,0.08);
  color: #58cc02;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}
.lang-badge.native {
  border-color: rgba(232,232,232,0.15);
  background: rgba(232,232,232,0.06);
  color: var(--text-muted);
}
.lang-badge.basic {
  border-color: rgba(247,223,30,0.2);
  background: rgba(247,223,30,0.06);
  color: #f7df1e;
}

/* =====================
   PROJECTS
   ===================== */
.project-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.project-card:hover {
  border-color: rgba(255,46,46,0.35);
  background: rgba(255,46,46,0.04);
}
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.project-name { font-size: 12px; font-weight: 600; color: var(--text); }
.project-links { display: flex; gap: 5px; }
.project-btn {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.project-btn.live { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.project-btn.live:hover { background: var(--accent-red-hover); border-color: var(--accent-red-hover); }
.project-btn.repo { color: var(--text-muted); background: transparent; }
.project-btn.repo:hover { color: var(--accent-red); border-color: rgba(255,46,46,0.4); }
.project-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
}
.project-lang {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--text-faint);
}
[data-lang="React"]      { color: #61dafb; border-color: rgba(97,218,251,0.2);  background: rgba(97,218,251,0.06); }
[data-lang="JavaScript"] { color: #f7df1e; border-color: rgba(247,223,30,0.2); background: rgba(247,223,30,0.06); }
[data-lang="HTML"]       { color: #e34c26; border-color: rgba(227,76,38,0.2);  background: rgba(227,76,38,0.06); }

/* =====================
   HIRE ME
   ===================== */
.please-box {
  background: var(--accent-red);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition);
}
.please-box:hover { background: var(--accent-red-hover); }
.cta-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}
.cta-emoji { font-size: 16px; line-height: 1; }
.cta-text  { font-size: 13px; font-weight: 700; color: #fff; }
.cta-sub   { display: none; }

/* =====================
   CERTIFICATIONS
   ===================== */
.cert-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.cert-card:hover {
  border-color: rgba(255,46,46,0.35);
  background: rgba(255,46,46,0.04);
}
.cert-clickable { cursor: pointer; }
.cert-logo {
  width: 28px; height: 28px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.cert-logo.google  { background: rgba(66,133,244,0.15);  color: #4285f4; border: 1px solid rgba(66,133,244,0.2); }
.cert-logo.fcc     { background: rgba(0,166,99,0.15);    color: #00a663; border: 1px solid rgba(0,166,99,0.2);   font-size: 8px; }
.cert-logo.meta    { background: rgba(24,119,242,0.15);  color: #1877f2; border: 1px solid rgba(24,119,242,0.2); }
.cert-logo.ms      { background: rgba(0,120,212,0.15);   color: #0078d4; border: 1px solid rgba(0,120,212,0.2);  font-size: 8px; }
.cert-logo.cisco   { background: rgba(0,188,212,0.12);   color: #00bcd4; border: 1px solid rgba(0,188,212,0.2);  font-size: 8px; }
.cert-logo.ucert   { background: rgba(180,120,255,0.12); color: #b478ff; border: 1px solid rgba(180,120,255,0.22); font-size: 9px; }
.cert-logo.sap     { background: rgba(0,150,60,0.12);    color: #00963c; border: 1px solid rgba(0,150,60,0.2);   font-size: 8px; font-weight: 800; }
.cert-logo.workearly { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); font-size: 8px; font-weight: 700; }
.cert-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cert-name {
  font-size: 11px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cert-issuer-name { font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.cert-arrow {
  font-size: 12px; color: var(--text-faint); flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}
.cert-card:hover .cert-arrow { color: var(--accent-red); transform: translate(2px, -2px); }
.cert-clickable:hover .cert-arrow { transform: scale(1.2); }
.cert-count { font-weight: 400; color: var(--text-faint); font-size: 10px; }

/* =====================
   CERT MODAL
   ===================== */
.cert-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.cert-modal.active { display: flex; }
.cert-modal-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: modalIn 200ms cubic-bezier(0.16,1,0.3,1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cert-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-modal-close:hover { color: var(--accent-red); }
.cert-modal-loading { color: var(--text-muted); font-size: 13px; padding: 40px 0; }
.cert-modal-img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: none;
}
.cert-modal-title { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* =====================
   TIMEZONE
   ===================== */
.timezone-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}
.timezone-icon  { font-size: 18px; flex-shrink: 0; }
.timezone-info  { display: flex; flex-direction: column; justify-content: center; }
.timezone-label { font-size: 10px; color: var(--text-muted); }
.timezone-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.timezone-time  { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.timezone-zone  { font-size: 9px;  color: var(--text-faint); margin-top: 1px; }

.timezone-date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.timezone-date-day {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.timezone-date-month {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.timezone-date-year {
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

/* =====================
   FOOTER — standalone, outside grid
   ===================== */
.site-footer {
  max-width: 1160px;
  width: 100%;
  margin: 12px auto 0;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* =====================
   TABLET
   ===================== */
@media (max-width: 1024px) {
  body { justify-content: flex-start; }
  .container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .welcome-box   { grid-column: 1 / 3; }
  .about-box     { grid-column: span 1; min-height: 240px; }
  .languages-box { grid-column: span 1; min-height: 180px; }
  .project-box   { grid-column: 1 / 3; min-height: 400px; }
  .contact-box   { grid-column: span 1; }
  .timezone-box  { grid-column: span 1; min-height: 80px; }
  .please-box    { grid-column: span 1; }
  .certs-box     { grid-column: 1 / 3; min-height: 240px; }
}

/* ============================================================
   MOBILE — Single column tiles
   ============================================================ */
@media (max-width: 580px) {
  body { padding: 10px; font-size: 13px; justify-content: flex-start; }

  .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .welcome-box   { order: 1; }
  .timezone-box  { order: 2; }
  .contact-box   { order: 3; }
  .please-box    { order: 4; }
  .project-box   { order: 5; }
  .about-box     { order: 6; }
  .languages-box { order: 7; }
  .certs-box     { order: 8; }

  .box {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .about-box,
  .project-box,
  .certs-box { display: block; }

  .about-content,
  .project-content,
  .certs-content {
    flex: none;
    overflow: visible;
    display: block;
    min-height: 0;
  }

  .project-body {
    flex: none;
    overflow: hidden;
    min-height: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .skills,
  .projects-list,
  .certs-list {
    flex: none;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  /* — Welcome — */
  .welcome-box { padding: 16px 18px; }
  .welcome-content { gap: 14px; height: auto; }
  .typewriter { font-size: 15px; line-height: 1.55; }
  .welcome-image-container { width: 70px; height: 70px; }

  /* — Timezone — */
  .timezone-box { padding: 14px 16px; }
  .timezone-content { height: auto; flex-direction: row; gap: 10px; align-items: center; justify-content: space-between; }
  .timezone-icon { font-size: 22px; }
  .timezone-time { font-size: 16px; font-weight: 700; }
  .timezone-label { font-size: 9px; }
  .timezone-zone  { display: none; }
  .timezone-date-day   { font-size: 18px; }
  .timezone-date-month { font-size: 9px; }
  .timezone-date-year  { font-size: 8px; }

  /* — Hire Me — */
  .please-box { padding: 0; min-height: 60px !important; }
  .cta-content { flex-direction: row; gap: 8px; }
  .cta-emoji { font-size: 20px; }
  .cta-text  { font-size: 13px; }
  .cta-sub   { display: none; }

  /* — Languages — */
  .languages-box { padding: 14px 16px; justify-content: flex-start; }
  .languages-box .box-title { margin-bottom: 10px; font-size: 10px; }
  .lang-list { gap: 10px; }
  .lang-item { gap: 7px; }
  .lang-flag  { font-size: 15px; }
  .lang-name  { font-size: 11px; min-width: 50px; }
  .lang-level { display: block; font-size: 9px; }
  .lang-badge { font-size: 8px; padding: 2px 5px; min-width: 0; }

  /* — View More button on mobile — */
  .view-more-btn { margin-right: 0; }

  /* — Footer — */
  .site-footer { margin-top: 8px; padding: 14px 4px; }

  /* ══════════════════════════════════════════
     MOBILE CHEVRON — shared
     ══════════════════════════════════════════ */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-header .box-title { margin-bottom: 0; }
  .mobile-chevron {
    font-size: 16px;
    color: var(--text-faint);
    flex-shrink: 0;
    transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
    user-select: none;
  }

  /* ══════════════════════════════════════════
     ABOUT — tap-to-expand
     ══════════════════════════════════════════ */
  .about-box { padding: 14px 16px; cursor: pointer; }
  .about-box .about-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 480ms cubic-bezier(0.16,1,0.3,1), margin-top 300ms ease;
    margin-top: 0;
  }
  .about-box.expanded .about-content  { max-height: 900px; margin-top: 12px; }
  .about-box.expanded .mobile-chevron { transform: rotate(180deg); }
  .about-box .skills { overflow: visible; flex-wrap: wrap; }
  .about-box .scroll-hint { display: none; }

  /* ══════════════════════════════════════════
     CERTS — tap-to-expand
     ══════════════════════════════════════════ */
  .certs-box { padding: 14px 14px; cursor: pointer; }
  .certs-box .certs-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 480ms cubic-bezier(0.16,1,0.3,1), margin-top 300ms ease;
    margin-top: 0;
  }
  .certs-box.expanded .certs-content  { max-height: 1600px; margin-top: 12px; }
  .certs-box.expanded .mobile-chevron { transform: rotate(180deg); }
  .certs-box .certs-list { overflow: visible; margin-right: 0; padding-right: 0; }
  .certs-box .scroll-hint { display: none; }

  /* ══════════════════════════════════════════
     CONTACT — tap-to-expand
     ══════════════════════════════════════════ */
  .contact-box { padding: 14px 16px; cursor: pointer; }
  .contact-box .contact-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 480ms cubic-bezier(0.16,1,0.3,1), margin-top 300ms ease;
    margin-top: 0;
  }
  .contact-box.expanded .contact-body  { max-height: 300px; margin-top: 12px; }
  .contact-box.expanded .mobile-chevron { transform: rotate(180deg); }
  .contact-box .social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 0;
  }
  .contact-box .social-icon { width: 100%; height: 44px; border-radius: 8px; }
  .contact-box .contact-sub { display: none; }
  .contact-box .hire-link   { display: none; }

  /* ══════════════════════════════════════════
     PROJECTS — tap-to-expand
     ══════════════════════════════════════════ */
  .project-box { padding: 14px 14px 10px; overflow: visible; cursor: pointer; }
  .project-box .project-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 600ms cubic-bezier(0.16,1,0.3,1), margin-top 300ms ease;
    margin-top: 0;
  }
  .project-box.expanded .project-body  { max-height: 3000px; margin-top: 12px; }
  .project-box.expanded .mobile-chevron { transform: rotate(180deg); }
  .project-box .projects-list { display: flex; flex-direction: column; gap: 10px; overflow: visible; margin-right: 0; padding-right: 0; }
  .project-box .scroll-hint { display: none; }

  /* — Languages — tap-to-expand */
  .languages-box { cursor: pointer; padding: 14px 16px; }
  .languages-box .lang-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 480ms cubic-bezier(0.16,1,0.3,1), margin-top 300ms ease;
    margin-top: 0;
  }
  .languages-box.expanded .lang-list    { max-height: 300px; margin-top: 12px; }
  .languages-box.expanded .mobile-chevron { transform: rotate(180deg); }
}
