/* =========
   Polished chill palette (blue/orange/purple) — premium glass
   Layout unchanged (same classes/selectors)
   ========= */

:root {
  --bg: #070a14;
  --bg-2: #0b1020;

  /*--panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.085);
  --panel-3: rgba(255, 255, 255, 0.11);*/
  --panel: rgba(255, 255, 255, 0.075);
  --panel-2: rgba(255, 255, 255, 0.10);
  --panel-3: rgba(255, 255, 255, 0.13);

  --border: rgba(255, 255, 255, 0.14);
  --border-2: rgba(255, 255, 255, 0.20);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);

  /*--border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.16);*/

  --blue: #6cb6ff;
  --purple: #b79cff;
  --orange: #ffb36c;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);

  --radius: 18px;
  --radius-sm: 14px;

  --container: 1080px;

  /* subtle motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(108, 182, 255, 0.16), transparent 58%),
    radial-gradient(820px 520px at 86% 12%, rgba(183, 156, 255, 0.14), transparent 60%),
    radial-gradient(980px 560px at 42% 92%, rgba(255, 179, 108, 0.10), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.98; }

:focus-visible {
  outline: 2px solid rgba(108, 182, 255, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

code {
  background: rgba(255,255,255,0.07);
  padding: 0.15rem 0.36rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.two-col > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.two-col > div:first-child p {
  margin: 0;
}

/* ✅ NEW: same “stacked paragraphs” behavior, but for the new About layout */
.two-col-cards > .card:first-child .card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.two-col-cards > .card:first-child .card__content p {
  margin: 0;
}

.section { padding: 20px 0; }
.section__head { margin-bottom: 18px; }
.section__head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.muted { color: var(--muted); }
.note { margin: 12px 0 0; color: var(--muted); font-size: 18px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: rgba(255,255,255,0.10);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.skip-link:focus { left: 12px; z-index: 9999; }

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skills li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.skills li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-name {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.skill-desc {
  color: var(--muted);
  line-height: 1.5;
  padding-left: 15px;
}

/* =========================
   Header
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 20, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* keeps your centered nav approach */
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--orange));
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.02),
    0 10px 30px rgba(108, 182, 255, 0.10);
}
.brand__text { font-weight: 700; letter-spacing: -0.02em; }

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.nav__link {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.74);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav__link:hover {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.nav__link.is-active {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 14px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,0.07); }
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.82);
  margin: 4px 0;
  border-radius: 999px;
}

/* =========================
   Hero
   ========================= */
.hero { padding-top: 56px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr; /* layout unchanged */
  gap: 22px;
  align-items: start; /* you can switch to center later if you want */
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.hero__title {
  margin: 0;
  font-size: 54px;
  letter-spacing: -0.05em;
  line-height: 1.02;
  padding-top: 25px;
}

.hero__subtitle {
  margin: 4px 0px;
  font-size: 22px;
  color: rgba(255,255,255,0.82);
  padding-bottom: 20px;
}

.hero__subtitle2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: rgba(255,255,255,0.82);
}

.hero__blurb {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 58ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
}

/* Hero Card */
.hero__card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(600px 220px at 20% 10%, rgba(108, 182, 255, 0.10), transparent 55%),
    radial-gradient(520px 220px at 90% 20%, rgba(183, 156, 255, 0.09), transparent 55%),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Hero Card - Fully Transparent */
.hero__card {
  border: none; /* Remove the border */
  background: transparent; /* Make the background transparent */
  box-shadow: none; /* Remove the shadow */
  overflow: hidden; /* Keep overflow hidden if needed */
}

.avatar-wrap {
  padding: 18px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.hero__card-body { padding: 16px 18px 18px; }
.hero__card-title { margin: 0 0 10px; font-size: 16px; }

.linklist { margin: 0; padding-left: 18px; color: var(--muted); }
.linklist li { margin: 8px 0; }
.linklist a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   Cards
   ========================= */
.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.card__content { padding: 18px; }

.buttons { padding: 10px; }

.card__title {
  margin: 0 0px;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.technical-skills {
  padding-bottom: 10px;
}

/* ✅ NEW: About section split into two cards side-by-side */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bullets { margin: 0; padding-top:10px;padding-left: 18px; color: rgba(255,255,255,0.82); }
.bullets li { margin: 10px 0; }
.bullets--tight li { margin: 8px 0; }

.tagcloud { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.84);
}

/* =========================
   Timeline
   ========================= */
.timeline { display: grid; gap: 14px; }
.timeline__item { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }

.timeline__dot {
  width: 10px; height: 10px; margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 0 7px rgba(255,255,255,0.02);
}

/* =========================
   Projects
   ========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.chip {
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.82);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.chip:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.chip.is-active {
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(108, 182, 255, 0.35);
  background: rgba(108, 182, 255, 0.10);
  color: rgba(255,255,255,0.92);
}

.badge--alt {
  border-color: rgba(183, 156, 255, 0.35);
  background: rgba(183, 156, 255, 0.10);
}

.badge--soft {
  border-color: rgba(255, 179, 108, 0.35);
  background: rgba(255, 179, 108, 0.10);
}

.project__links { margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }

.link {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur) var(--ease);
}
.link:hover { opacity: 0.92; }

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 14px;
  border: 8px solid rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.93);
  font-weight: 650;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.16);
}

.btn--primary {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(108, 182, 255, 0.24), rgba(183, 156, 255, 0.18), rgba(255, 179, 108, 0.14));
}

.btn--ghost { background: rgba(255,255,255,0.03); }

.btn--soft {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  width: 25%;
}

/* =========================
   Resume + Contact
   ========================= */
.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.resume__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.contact__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.contact__box {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  padding: 14px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kv:last-child { border-bottom: none; }

/* Footer */
.footer { padding: 22px 0 10px; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col-cards { grid-template-columns: 1fr; } /* ✅ NEW */
  .grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .resume { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    right: 20px;
    top: 58px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(7, 10, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    min-width: 210px;
  }

  .nav.is-open { display: flex; }

  .hero__title { font-size: 42px; }
}

/* =========================
   Skill Line (Between About & Experience)
   ========================= */

.skillline {
  overflow: visible;
}

.skillline__track {
  position: relative;
  display: flex;
  justify-content: center; /* Center all items */
  gap: 120px; /* Increase spacing between items */
  align-items: start;
}

.skillnode__img[src*="langchain_white.png"] {
  width: 110px; /* Maintain the increased size */
  height: auto; /* Maintain aspect ratio */
  align-self: center; /* Center align with other buttons */
}

/* clickable node */
.skillnode {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  z-index: 1;
  align-self: center;
}

.skillnode__img.aws {
  padding: 10px; /* Add spacing around the AWS button */
  width: 130px; /* Adjust width to make it less tight */
  height: 90px; /* Maintain aspect ratio */
}

.skillnode__img[src*="sql.png"] {
  width: 70px; /* Increase the size of the SQL widget */
  height: auto; /* Maintain aspect ratio */
}

.skillnode__img[src*="git.png"] {
  width: 70px; /* Increase the size of the SQL widget */
  height: auto; /* Maintain aspect ratio */
}

.skillnode__img[src*="python.png"] {
  width: 70px; /* Increase the size of the SQL widget */
  height: auto; /* Maintain aspect ratio */
}

/* placeholder "image" tile */
.skillnode__img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: rgba(255,255,255,0.92);

  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(120px 60px at 30% 20%, rgba(108, 182, 255, 0.16), transparent 60%),
    radial-gradient(120px 60px at 80% 30%, rgba(183, 156, 255, 0.14), transparent 60%),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.skillnode:hover .skillnode__img,
.skillnode:focus-visible .skillnode__img {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.20);
  background:
    radial-gradient(140px 70px at 30% 20%, rgba(108, 182, 255, 0.20), transparent 60%),
    radial-gradient(140px 70px at 80% 30%, rgba(183, 156, 255, 0.18), transparent 60%),
    rgba(255,255,255,0.055);
}

.skillnode:hover .skillnode__dot,
.skillnode:focus-visible .skillnode__dot {
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.03),
    0 14px 30px rgba(0,0,0,0.45);
}

/* tooltip */
.skillnode::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 112px; /* lift a little higher */
  transform: translateX(-50%) translateY(6px);

  width: min(520px, 92vw);     /* wider */
  padding: 22px 26px;          /* more breathing room */
  border-radius: 20px;

  color: rgba(255,255,255,0.96);
  background: rgba(7, 10, 20, 0.96);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 70px rgba(0,0,0,0.6);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);

  font-size: 18px;           /* 👈 noticeable but still elegant */
  line-height: 1.6;          /* 👈 very readable */
  text-align: left;
}

/* tiny tooltip arrow */
.skillnode::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 98px;
  width: 14px;
  height: 14px;
  background: rgba(7, 10, 20, 0.96);
  border-right: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.skillnode:hover::after,
.skillnode:focus-visible::after,
.skillnode:hover::before,
.skillnode:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   Skill icons — transparent container
   ========================= */

.skillnode {
  background: transparent;      /* remove visible tile */
  border: none;                 /* remove outline */
  box-shadow: none;             /* remove depth */
  padding: 0;                   /* icon defines the size */
  border-radius: 0;             /* no rounded tile */
}

/* Prevent hover from reintroducing a box */
.skillnode:hover,
.skillnode:focus-visible {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Make the icon tile fully transparent (no border, no background) */
.skillnode__img {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =========================
   About: full-width when only one card remains
   ========================= */
.two-col-cards {
  grid-template-columns: 1fr;
}

.academic-date {
  font-size: 16px;
  color: var(--muted);
  margin-top: 4px;
}

/* Popup styles */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1000;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 24px;
  max-width: 90%;
  width: 450px;
  animation: popup-show 0.3s ease-out forwards;
}

@keyframes popup-show {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup__content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.popup__close:hover {
  color: #000;
}

/* Add a subtle backdrop */
.popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: backdrop-fade-in 0.3s ease-out;
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Style for the popup image */
.popup__image {
  text-align: center;
  margin-bottom: 16px;
}

.popup__image img {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Center align popup content */
.popup__content {
  text-align: center;
}

/* Ensure the image and text are visually centered */
.popup__image {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 16px;
}

.skillnode.academic::after {
  width: min(180px, 92vw); /* This sets the hover box width for academic icons */
  text-align: center;
  font-size: 15px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expand-arrow {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 8px;
  margin-left: 12px;
}
.expand-arrow:hover {
  color: #ffd;
}

.exp-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-title {
  font-size: 1.15em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.exp-dates {
  font-size: 0.98em;
  color: #bbb;
  font-weight: 400;
  margin-top: 2px;
}

.skillnode.skillz {
  pointer-events: none; /* Disable clicking */
}

.expand {
  padding-bottom: 20px;
}

.exp-header{
  display:flex;
  flex-direction: row;
  align-items: center;   /* center vertically */
  gap: 20px;
}

.company-logo{
  width: 160px;           /* slightly bigger */
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-header-text {
  display: flex;
  flex-direction: column;
}

/* Projects: horizontal scroll with 3 visible cards */
#project-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

#project-grid .project {
  flex: 0 0 calc((100% - 28px) / 3); /* 3 cards visible */
  min-width: calc((100% - 28px) / 3);
  scroll-snap-align: start;
}
#project-grid::-webkit-scrollbar {
  height: 10px;
}

#project-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

#project-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

#project-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.32);
}

#project-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}

.earlier-exp {
  width: 100%;
}

.earlier-exp__summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.15em;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.earlier-exp__summary::-webkit-details-marker {
  display: none;
}

.earlier-exp__summary::before {
  content: "▸";
  font-size: 1.5em;
  color: #bbb;
  transition: transform 0.2s ease;
}

.earlier-exp[open] .earlier-exp__summary::before {
  transform: rotate(90deg);
}

.earlier-exp__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.earlier-exp__entry {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.earlier-exp__entry:first-child {
  border-top: none;
  padding-top: 0;
}

.earlier-exp__content {
  padding-left: 56px;
  margin-top: 10px;
}
.project-flip {
  perspective: 1200px;
  -webkit-perspective: 1200px;
  min-height: 240px;
  cursor: pointer;
}

.project-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s ease;
  will-change: transform;
}

.project-flip.is-flipped .project-flip__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.project-flip__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: inherit;
  overflow: hidden;
}

/* explicitly define both faces */
.project-flip__face--front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.project-flip__face--back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.project-flip .card {
  height: 100%;
  position: relative;
}

.project-flip .card__content {
  height: 100%;
  position: relative;
}

/* FRONT SIDE */
.project-flip__front-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.project-flip__front-title {
  margin: 0;
  max-width: 80%;
}

/* badge in top right on front */
.project-flip__front-content .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* BACK SIDE */
.project__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* important for Safari weirdness */
.project-flip__face--front,
.project-flip__face--back,
.project-flip__inner {
  transform-origin: center center;
}

/* prevent face hover/pointer weirdness during flip */
.project-flip__face {
  pointer-events: none;
}

@media (max-width: 768px) {
  .project-flip,
  .project-flip__inner {
    min-height: 260px;
  }
}

/* =========================
   MOBILE LAYOUT
   ========================= */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* =========================
   TABLET + PHONE
   ========================= */

@media (max-width: 720px) {

  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding: 18px 0;
  }

  .section__head h2 {
    font-size: 26px;
  }

  .note {
    font-size: 15px;
  }

  /* HERO */

  .hero {
    padding-top: 24px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero__text {
    text-align: center;
  }

  .hero__title {
    font-size: 38px;
    padding-top: 0;
  }

  .hero__subtitle {
    font-size: 17px;
    padding-bottom: 12px;
  }

  .hero__cta {
    justify-content: center;
    gap: 10px;
  }

  .btn--soft {
    width: auto;
    flex: 1 1 calc(50% - 10px);
  }

  .avatar {
    width: 160px;
    height: 160px;
    margin: auto;
    display: block;
  }

  /* CARDS */

  .card__content {
    padding: 16px;
  }

  /* =========================
     TECHNICAL EXPERTISE
     ========================= */

  #skill-line .skillline {
    overflow: hidden;
  }

  #skill-line .skillline__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    justify-items: center;
  }

  #skill-line .skillnode {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #skill-line .skillnode__img {
    width: 52px !important;
    height: auto !important;
  }

  #skill-line .skillnode__img[src*="langchain_white.png"] {
    width: 72px !important;
  }

  #skill-line .skillnode__img.aws {
    width: 74px !important;
    padding: 0 !important;
  }

  /* disable hover tooltips on phone */

  .skillnode::before,
  .skillnode::after {
    display: none !important;
  }

  /* =========================
     EXPERIENCE
     ========================= */

  .timeline__item {
    grid-template-columns: 12px 1fr;
    gap: 10px;
  }

  .row {
    align-items: flex-start;
    gap: 8px;
  }

  .exp-header {
    gap: 12px;
    align-items: flex-start;
  }

  .company-logo {
    width: 84px;
    height: 40px;
  }

  .exp-title {
    font-size: 1rem;
  }

  .exp-dates {
    font-size: 0.88rem;
  }

  .expand-arrow {
    font-size: 1.2rem;
    margin-left: 4px;
  }

  .earlier-exp__summary {
    font-size: 1rem;
  }

  /* =========================
     PROJECTS
     ========================= */

  #project-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  #project-grid .project {
    flex: 0 0 86%;
    min-width: 86%;
    scroll-snap-align: start;
  }

  .filters {
    gap: 8px;
  }

  .chip {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* =========================
     ACADEMIC BACKGROUND
     ========================= */

  #academic-background .skillline {
    overflow: hidden;
  }

  #academic-background .skillline__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    justify-items: center;
  }

  #academic-background .skillnode.academic {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #academic-background .skillnode.academic .skillnode__img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
  }

  #academic-background .academic-date {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    margin-top: 6px;
  }

  /* =========================
     RESUME
     ========================= */

  .resume {
    flex-direction: column;
    gap: 14px;
  }

  .resume__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .resume__actions .btn {
    width: 100%;
  }

  /* FOOTER */

  .footer {
    padding: 18px 0 8px;
  }

  .footer .muted {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 480px) {

  .hero__title {
    font-size: 34px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .btn--soft {
    flex: 1 1 100%;
  }

  #skill-line .skillnode__img {
    width: 46px !important;
  }

  #skill-line .skillnode__img[src*="langchain_white.png"] {
    width: 64px !important;
  }

  #skill-line .skillnode__img.aws {
    width: 66px !important;
  }

  #academic-background .skillnode.academic .skillnode__img {
    width: 60px !important;
    height: 60px !important;
  }

  #academic-background .academic-date {
    font-size: 10px;
  }

  #project-grid .project {
    flex: 0 0 90%;
    min-width: 90%;
  }
}