/* ══════════════════════════════════════════════════════════════
Structure, top to bottom:

     1. Base rules              (apply at every width)
     2. @keyframes
     3. @media (min-width: 901px)   desktop-only
     4. @media (min-width: 860px)   wide-desktop tweaks
     5. @media (max-width: 900px)   ALL mobile rules — one block
     6. @media (prefers-reduced-motion: reduce)

   Remember: ONE rule per selector per block. When adding a mobile style,
   put it in the single max-width:720px block — do not create a
   new one. Duplicate blocks are what previously required 13
   !important declarations to resolve; there are now none.
   ══════════════════════════════════════════════════════════════ */


/* ─── RESET & BASE ────────────────────────────────────────────── */

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

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #061A2B;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-size: 169px;
  /* was calc(150px + 0.5cm) */
  background: linear-gradient(135deg, #061A2B, #0B3558);
  font-family: 'Inter', sans-serif;
  color: #fff;
  position: relative;
  scroll-snap-type: y proximity;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle var(--spotlight-size) at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, .25), transparent 60%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* 🔷 Hex frame — clip-path removes CSS borders, so the outline is an
   SVG stroke overlaid on the clipped image. non-scaling-stroke keeps
   it an even 2px at every viewport width. */

.hex-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.hex-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hex-portrait path {
  fill: none;
  stroke: #2DD4BF;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Required whenever <img> carries width/height attributes.
   Those attributes are presentational hints that apply to any
   property CSS doesn't set — so a CSS-set width with no height
   lets height="500" through and stretches the image. */
img {
  height: auto;
}

/* ─── ♿ GLOBAL FOCUS RING ────────────────────────────────────
   One rule covers every interactive element. :focus-visible only
   fires for keyboard/AT, so mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2DD4BF;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── TOP NAV ─────────────────────────────────────────────────── */

nav.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 2rem;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  z-index: 10;
  font-family: 'Poppins', sans-serif;
}

.main-nav .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav .nav-links a:not(.resume-btn) {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}

.main-nav .nav-links a:not(.resume-btn):hover {
  color: #2DD4BF;
}

.resume-btn {
  margin-left: 29px;
  /* was calc(3rem - 0.5cm) */
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2DD4BF;
  padding: .25rem .75rem;
  border-radius: 4px;
  transition: color .2s;
}

.resume-btn:hover {
  color: #2DD4BF;
}

.nav-logo {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.nav-logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: rgba(45, 212, 191, .86);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  filter: blur(10px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
  transition: opacity .35s, transform .25s;
}

.nav-logo:hover::before {
  opacity: .55;
  transform: scale(1.05);
}

.nav-logo:hover img {
  transform: translateZ(0) scale(1.02);
  transition: transform .25s;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: .6rem;
}


/* ─── SECTIONS & TITLES ───────────────────────────────────────── */

section {
  height: auto;
  min-height: 100vh;
  scroll-snap-align: start;

  /* 📐 Cap the readable column and centre it. Without max-width the
     10% padding leaves a 2048px field on a 2560px monitor while the
     inner blocks stop at ~1240px, stranding the content on the left. */
  max-width: 1400px;
  margin-inline: auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: .5rem;
}

.section-title .num {
  font-family: 'Poppins', sans-serif;
  color: rgba(45, 212, 191, .86);
  font-weight: 600;
  margin-right: .5rem;
}

.section-title h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(45, 212, 191, .86);
  margin-left: 8px;
  vertical-align: middle;
}


/* ─── LANDING ─────────────────────────────────────────────────── */

#landing {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 5rem;
}

.landing-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

#landing p.intro {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(250, 250, 250, .8);
  margin-bottom: .5rem;
}

#landing h1.name {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(45, 212, 191, .86);
  margin-bottom: .5rem;
}

#landing h2.tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(241, 236, 238, .74);
  margin-bottom: 1rem;
}

/* Rotating word in the tagline — matches the name so the changing
   word reads as deliberate rather than as inconsistent styling. */
#anim-word {
  color: rgba(45, 212, 191, .86);
  font-weight: 600;
}

#landing p.summary {
  max-width: 600px;
  line-height: 1.6;
  color: rgba(218, 218, 218, .7);
}


/* ─── ABOUT & STATUS BADGE ────────────────────────────────────── */

#about ul {
  padding-left: 1.4rem;
}

#about li {
  margin-left: .2rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
  padding: .4rem .85rem;
  border: 1px solid rgba(45, 212, 191, .35);
  border-radius: 999px;
  background: rgba(45, 212, 191, .07);
  font-size: .85rem;
  line-height: 1.4;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2DD4BF;
  animation: status-pulse 2.4s ease-out infinite;
}

.status-ver {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: #2DD4BF;
}

.status-now {
  color: rgba(241, 236, 238, .82);
}

.about-story {
  width: 100%;
  max-width: 1000px;
}

.about-lead {
  max-width: 62ch;
  margin: .3rem 0 0;
  padding: .2rem 0 .2rem 1.25rem;

  background: none;
  border-left: 2px solid rgba(45, 212, 191, .85);
  border-radius: 0;

  color: rgba(240, 243, 247, .92);
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: -.01em;
}

/* ── STAT STRIP ─────────────────────────────────────────────── */
.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(45, 212, 191, .28);
}

.about-proof {
  min-width: 0;
  padding: 0 1.3rem;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  transition: transform .25s ease;
}

.about-proof:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-proof:hover {
  transform: translateY(-3px);
}

.about-proof strong {
  display: block;
  margin-bottom: .4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;

  /* stops the layout jittering while the count-up runs */
  font-variant-numeric: tabular-nums;

  color: #2DD4BF;
  /* fallback */
  background: linear-gradient(135deg, #7FF3E2, #2DD4BF 55%, #1FA8C4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-proof span {
  display: block;
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(222, 226, 232, .68);
}

/* ─── EXPERIENCE ──────────────────────────────────────────────── */

.experience-accordion {
  width: 100%;
  margin-top: 1rem;

  display: flex;
  flex-direction: column;

  gap: 8px;
}


/* Individual role */

.xp-item {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;

  background: rgba(255, 255, 255, .018);

  overflow: hidden;

  transition:
    border-color .2s ease,
    background .2s ease;
}


.xp-item.is-open {
  min-height: 138px;

  border-color: rgba(45, 212, 191, .48);

  background:
    linear-gradient(90deg,
      rgba(45, 212, 191, .035),
      rgba(45, 212, 191, .012));
}


/* 48px collapsed header */

.xp-trigger {
  width: 100%;
  min-height: 48px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;

  align-items: center;

  gap: .85rem;

  padding: 0 16px;

  border: 0;
  background: transparent;

  color: inherit;

  text-align: left;

  cursor: pointer;

  font-family: 'Inter', sans-serif;
}


/* Role + employer */

.xp-heading {
  min-width: 0;

  display: flex;
  align-items: baseline;
  flex-wrap: wrap;

  gap: .35rem .75rem;
}


.xp-role {
  font-family: 'Poppins', sans-serif;

  font-size: .88rem;
  font-weight: 600;

  color: rgba(245, 245, 245, .94);

  transition: color .2s ease;
}


.xp-item.is-open .xp-role {
  color: #2DD4BF;
}


.xp-company {
  font-size: .72rem;
  font-weight: 600;

  color: rgba(218, 218, 218, .66);
}


/* Period */

.xp-period {
  white-space: nowrap;

  font-size: .72rem;

  color: rgba(218, 218, 218, .58);
}


/* Chevron */

.xp-chevron {
  font-size: .65rem;

  color: rgba(218, 218, 218, .5);

  transition:
    transform .22s ease,
    color .2s ease;
}


.xp-item.is-open .xp-chevron {
  transform: rotate(180deg);

  color: #2DD4BF;
}


/* Expanded content */

.xp-panel {
  padding: 0 16px 14px;
}


.xp-panel[hidden] {
  display: none;
}


.xp-panel ul {
  margin: 0;

  padding: 0 0 0 1rem;

  color: rgba(225, 228, 233, .76);
}


.xp-panel li {
  margin-bottom: .38rem;
  padding-left: .15rem;

  font-size: .79rem;
  line-height: 1.45;
}


.xp-panel li:last-child {
  margin-bottom: 0;
}


.xp-panel li::marker {
  color: rgba(45, 212, 191, .78);
}


/* Hover */

.xp-item:not(.is-open):hover {
  border-color: rgba(255, 255, 255, .24);

  background: rgba(255, 255, 255, .03);
}


.xp-trigger:focus-visible {
  outline: 2px solid #2DD4BF;
  outline-offset: -3px;

  border-radius: 7px;
}


/* ─── TIMELINE ────────────────────────────────────────────────── */

.tl {
  position: relative;
  margin: 18px 0 0;
  padding-left: 24px;
  list-style: none;
}

.tl::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 212, 191, .45), rgba(96, 165, 250, .45));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin: 0 0 18px;
}

.tl-content {
  background: #0f1115;
  color: #e7e8ee;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  outline: none;
}

.tl-content:focus-visible {
  border-color: rgba(45, 212, 191, .86);
  box-shadow: 0 12px 32px rgba(45, 212, 191, .86);
  transform: translateY(-1px);
}

.tl-item:hover .tl-content {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.tl-title {
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  letter-spacing: -.1px;
}

.tl-desc {
  margin: 0;
  color: #cfd3e1;
  font-size: .98rem;
  line-height: 1.55;
}

.tl-item+.tl-item {
  margin-top: 18px;
}

.tl-intro {
  color: rgba(218, 218, 218, .7);
  margin-bottom: .25rem;
}

.tl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .35rem;
}

.tl-ver {
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: #2DD4BF;
  padding: .12rem .45rem;
  border: 1px solid rgba(45, 212, 191, .3);
  border-radius: 5px;
  background: rgba(45, 212, 191, .08);
}

.tl-year {
  font-size: .78rem;
  letter-spacing: .2px;
  color: rgba(207, 211, 225, .62);
}

.tl-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #061A2B;
  background: #2DD4BF;
  padding: .12rem .45rem;
  border-radius: 5px;
}

.tl-item.is-current .tl-content {
  border-color: rgba(45, 212, 191, .45);
  background: linear-gradient(180deg, rgba(45, 212, 191, .07), #0f1115 60%);
}

.tl-item.is-current::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2DD4BF;
  box-shadow: 0 0 0 3px #061A2B, 0 0 12px rgba(45, 212, 191, .8);
}


/* ─── PROJECTS ─────────────────────────────────────────────────── */

#projects {
  height: auto;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.projects-intro {
  color: rgba(218, 218, 218, .72);
  line-height: 1.6;
  max-width: 52ch;
  margin: .15rem 0 1.55rem;
}


/* GRID */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  /* Stops the two cards from becoming enormous on wide monitors */
  width: 100%;
  max-width: 1240px;

  gap: 1.15rem;

  /* Important: cards keep their natural height */
  align-items: start;
}


/* CARD */

.project-card {
  position: relative;
  min-width: 0;

  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;

  overflow: hidden;

  transition:
    border-color .25s ease,
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}


/* Small accent line instead of a large thumbnail block */

.project-card::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background: linear-gradient(90deg,
      rgba(45, 212, 191, .9),
      rgba(96, 165, 250, .3));
}


.project-card:hover {
  border-color: rgba(45, 212, 191, .35);
  background: rgba(45, 212, 191, .045);

  transform: translateY(-3px);

  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}


/* BODY */

.project-body {
  display: flex;
  flex-direction: column;

  padding: 1.35rem 1.45rem 1.4rem;
}


/* TOP ROW */

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  margin-bottom: .85rem;
}


.project-meta {
  min-width: 0;
  margin: 0;
}


.project-type {
  font-family: 'Poppins', sans-serif;

  font-size: .65rem;
  font-weight: 600;

  letter-spacing: .085em;
  text-transform: uppercase;

  color: rgba(218, 218, 218, .52);
}


/* PROJECT ICON */

.project-icon {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  border: 1px solid rgba(45, 212, 191, .22);
  background: rgba(45, 212, 191, .07);

  color: #2DD4BF;

  font-size: 1rem;
}


/* TITLE */

.project-title {
  font-family: 'Poppins', sans-serif;

  font-size: 1.08rem;
  font-weight: 600;

  line-height: 1.3;

  color: #2DD4BF;

  margin: 0 0 .6rem;
}


/* DESCRIPTION */

.project-desc {
  font-size: .86rem;

  color: rgba(218, 218, 218, .72);

  line-height: 1.62;

  margin: 0;
}

/* BASE / DESKTOP */

.project-toggle {
  display: none;
}

/* TAGS */

.project-tags {
  display: flex;
  flex-wrap: wrap;

  gap: .4rem;

  list-style: none;

  margin: 1rem 0 1.15rem;
  padding: 0;
}


.project-tags li {
  font-size: .69rem;

  color: rgba(45, 212, 191, .86);

  border: 1px solid rgba(45, 212, 191, .27);
  border-radius: 999px;

  padding: .18rem .56rem;
}


/* ACTIONS */

.project-actions {
  display: flex;

  gap: .55rem;

  flex-wrap: wrap;

  margin-top: .1rem;
}


.proj-btn {
  flex: 1;

  min-width: 125px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: .4rem;

  font-size: .78rem;
  font-weight: 600;

  padding: .5rem .7rem;

  border-radius: 8px;

  text-decoration: none;

  transition:
    transform .15s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease;
}


.proj-btn-outline {
  border: 1px solid rgba(45, 212, 191, .8);

  color: #2DD4BF;

  background: transparent;
}


.proj-btn-outline:hover {
  color: #061A2B;

  background: #2DD4BF;
}


.proj-btn-filled {
  border: 1px solid #2DD4BF;

  background: #2DD4BF;

  color: #061A2B;

  box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
}


.proj-btn-filled:hover {
  background: #5EEAD4;
  border-color: #5EEAD4;

  transform: translateY(-1px);

  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}


/* WIP CARD */

.project-card-wip {
  background: rgba(255, 255, 255, .025);
}


.project-card-wip::before {
  opacity: .4;
}


.project-icon-wip {
  color: rgba(218, 218, 218, .62);

  border-color: rgba(255, 255, 255, .11);

  background: rgba(255, 255, 255, .04);
}


.project-wip-note {
  display: flex;
  align-items: center;

  gap: .45rem;

  margin-top: .15rem;

  font-family: 'Poppins', sans-serif;

  font-size: .75rem;
  font-weight: 500;

  color: rgba(218, 218, 218, .58);
}

/* ─── CONTACT ─────────────────────────────────────────────────── */

#contact {
  align-items: flex-start;
  text-align: left;
}

.contact-text {
  text-align: center;
  width: 100%;
  margin: .5rem auto;
  max-width: 52ch;
}

.contact-box {
  margin: 0;
}

.contact-box a {
  display: inline-block;
  padding: .65rem 1.1rem;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 10px;
  background: #2DD4BF;
  color: #061A2B;
  text-decoration: none;
  border: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .15s, box-shadow .2s, background .2s;
}

.contact-box a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
  background: #5EEAD4;
}

.contact-box a:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  width: 100%;
}

.contact-icons a i {
  font-size: 1.2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(218, 218, 218, .7);
  transition: -webkit-text-stroke-color .2s;
}

.contact-icons a:hover i {
  -webkit-text-stroke-color: #2DD4BF;
}

#contact .contact-box {
  background: none;
  padding: 0;
  margin: 1rem auto 0;
  border-radius: 0;
  width: auto;
  display: flex;
  justify-content: center;
}

#contact .contact-box a {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  border-radius: 10px;
  background: #2DD4BF;
  color: #061A2B;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

#contact .contact-box a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  background: #5EEAD4;
}

#contact .contact-icons {
  justify-content: center;
  margin: 14px 0 0;
  gap: 16px;
}

.contact-lead {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(45, 212, 191, .9);
}

.contact-sub {
  color: rgba(218, 218, 218, .7);
  line-height: 1.6;
}


/* ─── FOOTER ──────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}


/* ─── LOADER ──────────────────────────────────────────────────── */

#loader {
  position: fixed;
  inset: 0;
  background: #061A2B;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;

  /* 🛟 FAILSAFE — pure-CSS auto-dismiss at 2.4s. Runs without
     JavaScript, so a broken script can't trap visitors behind a
     blank screen. JS normally clears the loader at ~1.7s. */
  animation: fade-loader .5s ease 2.4s forwards;
}

.loader-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-hex {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.hex-outline {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: hex-draw 1.15s ease-out forwards;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loader-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.90);
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: 0;
  animation: logo-in 420ms ease-out 420ms forwards;
}


/* ─── SKILLS ──────────────────────────────────────────────────── */

#skills {
  height: auto;
  min-height: 100vh;
}

#skills .skills-intro {
  color: rgba(218, 218, 218, .7);
  margin-bottom: 1.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.skill-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.4rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.skill-card:hover {
  border-color: rgba(45, 212, 191, .45);
  background: rgba(45, 212, 191, .05);
  transform: translateY(-3px);
}

.skill-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: #2DD4BF;
  margin-bottom: .3rem;
}

.skill-card-note {
  font-size: .85rem;
  font-style: italic;
  color: rgba(218, 218, 218, .55);
  margin-bottom: 1rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
}

.skill-chips li {
  font-size: .8rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  color: rgba(241, 236, 238, .85);
}


/* ─── MISC ────────────────────────────────────────────────────── */

#timeline {
  height: auto;
  min-height: 100vh;
}


/* ─── KEYFRAMES ───────────────────────────────────────────────── */

@keyframes fade-loader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes hex-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logo-in {
  to {
    opacity: 1;
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, .55);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(45, 212, 191, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

/* ═══ DESKTOP ONLY (≥721px) ═══════════════════════════════ */
@media (min-width: 901px) {

  /* ─── LANDING ───────────────────────────────────────────────── */

  .landing-image {
    flex: 0 0 auto;
  }

  .landing-image img {
    width: clamp(150px, 22vw, 250px);
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  }

  /* ─── CONTACT ───────────────────────────────────────────────── */

  .contact-box {
    background: none;
    padding: 0;
    margin-top: 1rem;
  }

  .contact-box a {
    display: inline-block;
    background: #2DD4BF;
    color: #140019;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  }

  #contact .contact-icons {
    justify-content: center;
  }

  /* ─── EXPERIENCE HEIGHT ───────────────────────────────────────
   The accordion runs taller than the old single-pane tab layout.
   section{height:100vh} is a hard height, so overflow spills past
   both edges and the top portion can't be scrolled to. Same
   treatment as #skills and #timeline. */

  #jobs {
    height: auto;
    min-height: 100vh;
  }

  @media (min-width: 901px) {
    #jobs {
      padding-top: 6rem;
      padding-bottom: 3rem;
    }
  }


  /* ─── SKILLS ────────────────────────────────────────────────── */

  #skills {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }


  /* ─── MISC ──────────────────────────────────────────────────── */

  #timeline {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }


}

/* ═══ WIDE DESKTOP (≥860px) ═══════════════════════════════ */
@media (min-width: 860px) {

  /* ─── TIMELINE ──────────────────────────────────────────────── */

  .tl {
    padding-left: 30px;
  }

  .tl-item.is-current::before {
    left: -26px;
  }


}

/* ═══ 📱 MOBILE (≤720px) — every mobile rule lives here ═══ */
@media (max-width: 900px) {

  /* ─── EXPERIENCE ────────────────────────────────────────────── carousel backup

  #jobs .experience-section {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-nav {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .experience-nav::-webkit-scrollbar {
    display: none;
  }

  .xp-tab {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid rgba(218, 218, 218, .7);
    padding: .45rem .7rem;
    font-size: .98rem;
  }

  .xp-tab.active {
    border-bottom-color: rgba(45, 212, 191, .86);
    color: rgba(45, 212, 191, .86);
  }

  #jobs .experience-content {
    padding-left: 0;
    max-width: 46ch;
  }

  #jobs .job-pane p {
    font-size: 1rem;
    line-height: 1.55;
  }

  #jobs .job-pane li {
    font-size: 1rem;
    line-height: 1.55;
  }

  #jobs h3 {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
    line-height: 1.25;
    margin-bottom: .35rem;
    margin: 0 0 .35rem;
  }

  #jobs .job-pane ul li {
    font-size: 0.98rem;
    line-height: 1.5;
  } */

  /* ─── EXPERIENCE ────────────────────────────────────────────── */

  .experience-accordion {
    margin-top: .8rem;
    gap: 8px;
  }

  .xp-item.is-open {
    min-height: 0;
  }

  .xp-trigger {
    min-height: 58px;

    grid-template-columns: minmax(0, 1fr) auto 12px;

    gap: .55rem;

    padding: .55rem .8rem;
  }

  .xp-heading {
    gap: .15rem .5rem;
  }

  .xp-role {
    font-size: .82rem;
    line-height: 1.3;
  }

  .xp-company {
    font-size: .68rem;
  }

  .xp-period {
    font-size: .65rem;
  }

  .xp-panel {
    padding: .1rem .85rem .85rem;
  }

  .xp-panel ul {
    padding-left: 1rem;
  }

  .xp-panel li {
    font-size: .8rem;
    line-height: 1.5;

    margin-bottom: .5rem;
  }


  /* ─── SECTIONS & TITLES ─────────────────────────────────────── */

  section {
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
    padding: 0 1.25rem 28px;
    scroll-margin-top: 80px;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .section-title .num {
    font-size: .95rem;
    margin-right: .4rem;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }

  section+section {
    padding-top: 20px;
  }


  /* ─── TOP NAV ───────────────────────────────────────────────── */

  .nav-logo {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: .45rem;
  }

  .nav-logo::before {
    display: none;
  }

  nav.main-nav {
    padding: .55rem .75rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: -6px;
    border-radius: 8px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s ease, color .18s ease;
  }

  .menu-toggle:active {
    background: rgba(45, 212, 191, .14);
  }

  .menu-toggle[aria-expanded="true"] {
    color: #2DD4BF;
  }

  .main-nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .5rem .75rem calc(.85rem + env(safe-area-inset-bottom));
    background: rgba(7, 9, 20, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .main-nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }

  .main-nav .nav-links a {
    display: block;
    padding: .8rem .6rem;
    font-size: .95rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .main-nav .nav-links a.resume-btn {
    margin: .45rem 0 0;
    padding: .65rem .6rem;
    font-size: .95rem;
    text-align: center;
    border: 1px solid #2DD4BF;
    border-bottom: 1px solid #2DD4BF;
    border-radius: 8px;
  }


  /* ─── LANDING ───────────────────────────────────────────────── */

  #landing {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(4.6rem + env(safe-area-inset-top));
    gap: .75rem;
  }

  .landing-image {
    order: 2;
    width: 100%;
    margin: 10px auto 8px;
    text-align: center;
  }

  .landing-image img {
    width: 44vw;
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  }

  .landing-content {
    order: 1;
    max-width: 46ch;
  }

  #landing p.intro {
    font-size: clamp(1rem, 3.4vw, 1.1rem);
  }

  #landing h1.name {
    font-size: clamp(1.9rem, 6.5vw, 2.4rem);
  }

  #landing h2.tagline {
    font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  }

  #landing p.summary {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 46ch;
  }


  /* ─── ABOUT & STATUS BADGE ──────────────────────────────────── */

  .about-lead {
    padding: .1rem 0 .1rem .9rem;
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .about-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 0;
    padding-top: 1.2rem;
  }

  .about-proof {
    padding: 0 0 0 1.1rem;
  }

  .about-proof:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .about-proof:hover {
    transform: none;
  }

  .about-proof strong {
    font-size: 1.75rem;
  }

  .about-proof span {
    font-size: .76rem;
  }

  /* ─── PROJECTS ───────────────────────────────────────────────── */

  #projects {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    width: 100%;
    max-width: none;
  }

  .projects-intro {
    margin-bottom: 1.1rem;
  }

  .project-body {
    padding: 1rem 1.05rem 1.05rem;
  }

  .project-topline {
    margin-bottom: .65rem;
  }

  .project-type {
    font-size: .62rem;
    line-height: 1.4;
  }

  .project-title {
    margin-bottom: .45rem;
  }

  .project-desc {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
  }

  .project-card.is-open .project-desc {
    display: block;
    overflow: visible;
  }

  .project-card:not(.is-open) .project-extra {
    display: none;
  }

  .project-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    margin-top: .7rem;
    padding: 0;

    background: transparent;
    border: 0;

    color: #2DD4BF;

    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 600;

    cursor: pointer;
  }

  .project-toggle i {
    font-size: .65rem;
    transition: transform .2s ease;
  }

  .project-card.is-open .project-toggle i {
    transform: rotate(180deg);
  }

  .project-card.is-open .project-tags {
    margin-top: .9rem;
  }

  /* ─── CONTACT ───────────────────────────────────────────────── */

  #contact p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .contact-box a {
    padding: .7rem 1.2rem;
    font-size: 1rem;
    display: inline-block;
    width: auto;
    border-radius: 10px;
    background: #2DD4BF;
    color: #061A2B;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  }

  .contact-icons {
    gap: 1rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: .9rem 0 0;
  }

  #contact {
    align-items: flex-start;
    text-align: left;
  }

  .contact-text {
    text-align: center;
    width: 100%;
  }

  .contact-box {
    background: none;
    padding: 0;
    margin: .75rem 0 0;
  }

  #contact .contact-box a {
    padding: .7rem 1.2rem;
    font-size: 1rem;
  }

  #contact .contact-icons {
    gap: 14px;
  }


  /* ─── TIMELINE ──────────────────────────────────────────────── */

  .tl {
    padding-left: 22px;
    margin-top: 6px;
  }

  .tl-content {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .tl-item+.tl-item {
    margin-top: 12px;
  }


  /* ─── RESET & BASE ──────────────────────────────────────────── */

  body {
    scroll-snap-type: none;
  }


}

/* ═══ ♿ REDUCED MOTION ════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  /* ─── TIMELINE ──────────────────────────────────────────────── */

  .tl-content {
    transition: none;
  }

  /* ─── SKILLS ────────────────────────────────────────────────── */

  .skill-card {
    transition: none;
  }

  .skill-card:hover {
    transform: none;
  }


  /* ─── ABOUT & STATUS BADGE ──────────────────────────────────── */

  .status-dot {
    animation: none;
  }


}
