/* ============================================================
   MESBAH UR RAHMAN — PORTFOLIO
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #13131a;
  --bg-card: #1c1c25;
  --bg-card-2: #22222d;
  --bg-tag: rgba(255, 255, 255, 0.08);
  --t1: #f0eff8;
  --t2: #b4b4cc;
  --t3: #72728e;
  --acc: #5eead4;
  --bdr: rgba(255, 255, 255, 0.09);
  --bdr-a: rgba(94, 234, 212, 0.22);
  --sh-sm: 0 2px 16px rgba(0, 0, 0, 0.3);
  --sh-md: 0 8px 40px rgba(0, 0, 0, 0.4);
  --sh-lg: 0 16px 64px rgba(0, 0, 0, 0.55);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --f-head: "Outfit", sans-serif;
  --f-body: "Figtree", sans-serif;
  --nav-bg: rgba(19, 19, 26, 0.85);
}

[data-theme="light"] {
  --bg: #f3f3f8;
  --bg-card: #ffffff;
  --bg-card-2: #ececf4;
  --bg-tag: rgba(0, 0, 0, 0.06);
  --t1: #0f0f1c;
  --t2: #38385e;
  --t3: #7878a0;
  --acc: #0d9488;
  --bdr: rgba(0, 0, 0, 0.07);
  --bdr-a: rgba(13, 148, 136, 0.22);
  --sh-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
  --sh-md: 0 8px 40px rgba(0, 0, 0, 0.1);
  --sh-lg: 0 16px 64px rgba(0, 0, 0, 0.14);
  --nav-bg: rgba(243, 243, 248, 0.87);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s,
    color 0.25s;
}
a {
  color: var(--acc);
  text-decoration: none;
}
a:hover {
  opacity: 0.75;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--bdr);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  opacity: 0.7;
  transition:
    opacity 0.18s,
    border-color 0.18s;
}
.nav__logo:hover {
  opacity: 1;
  border-color: var(--acc);
}
.nav__logo img {
  filter: invert(1);
}
[data-theme="light"] .nav__logo img {
  filter: invert(0);
}

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.18s;
}
.nav__links a:hover {
  color: var(--acc);
  opacity: 1;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--bdr);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.18s;
}
.theme-toggle:hover {
  border-color: var(--acc);
}
.theme-toggle img {
  width: 15px;
  height: 15px;
  opacity: 0.6;
  filter: invert(1);
}
[data-theme="light"] .theme-toggle img {
  filter: none;
  opacity: 0.65;
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--t3) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.14;
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  opacity: 0.08;
}
.hero .container {
  position: relative;
}

.hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__portrait {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bdr-a);
  box-shadow:
    0 0 0 6px var(--bg-card),
    0 0 0 7px var(--bdr);
  margin-top: 8px;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 16px;
}
.hero__eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--acc);
}

.hero__name {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--t1);
  margin-bottom: 6px;
}

.hero__stack {
  font-family: var(--f-head);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: var(--t2);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero__stack .dot {
  color: var(--t3);
  margin: 0 10px;
}

.hero__bio {
  font-size: 1.05rem;
  color: var(--t2);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 36px;
  max-width: 520px;
}

.stat {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--bdr);
  transition: background 0.2s;
}
.stat:last-child {
  border-right: none;
}
.stat:hover {
  background: var(--bg-card-2);
}

.stat__num {
  font-family: var(--f-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--acc);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--t3);
  line-height: 1.4;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s,
    opacity 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.btn--solid {
  background: var(--acc);
  color: #0d0d12;
  border-color: var(--acc);
}
.btn--solid:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--t1);
  border-color: var(--bdr);
}
.btn--ghost:hover {
  border-color: var(--acc);
  color: var(--acc);
  opacity: 1;
  transform: translateY(-1px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--bdr);
}

.section__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 28px;
  text-align: center;
}

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 16px;
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.project-featured:hover {
  box-shadow: var(--sh-lg);
  border-color: var(--bdr-a);
  transform: translateY(-3px);
}

.project-featured__img {
  overflow: hidden;
  min-height: 340px;
}
.project-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-featured:hover .project-featured__img img {
  transform: scale(1.04);
}

.project-featured__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 10px;
}
.project-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
}

.project-featured__title {
  font-family: var(--f-head);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin-bottom: 5px;
}

.project-featured__meta {
  font-size: 0.85rem;
  color: var(--t2);
  margin-bottom: 14px;
}

.project-featured__desc {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-featured__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

/* ============================================================
   TAGS
   ============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 11px;
  background: var(--bg-tag);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.02em;
}

/* ============================================================
   PROJECT LINKS
   ============================================================ */
.plinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plink {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--acc);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
  white-space: nowrap;
}
.plink:hover {
  gap: 9px;
  opacity: 1;
}
.plinks--row {
  flex-direction: row;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ============================================================
   PROJECT GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.projects-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s,
    opacity 0.5s ease,
    translate 0.5s ease;
  opacity: 0;
  translate: 0 18px;
}
.project-card.is-visible {
  opacity: 1;
  translate: 0 0;
}
.project-card.is-visible:nth-child(2) {
  transition-delay: 0.08s;
}
.project-card.is-visible:nth-child(3) {
  transition-delay: 0.16s;
}
.project-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: var(--bdr-a);
}

.project-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__img img {
  transform: scale(1.07);
}

.project-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__title {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t1);
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.6;
  flex: 1;
}

.project-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.project-card__list li {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.project-card__list li::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 7px;
}

/* ============================================================
   ADDITIONAL PROJECTS
   ============================================================ */
.additional {
  margin-top: 56px;
}
.additional__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 12px;
}

.additional__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bdr);
}
.additional__item:first-of-type {
  border-top: 1px solid var(--bdr);
}

.additional__info {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.additional__name {
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t1);
}
.additional__desc {
  font-size: 0.85rem;
  color: var(--t2);
}
.additional__links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-table {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--bdr);
}
.skill-row:first-child {
  border-top: 1px solid var(--bdr);
}

.skill-row__key {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  padding-top: 3px;
}

.skill-row__vals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ============================================================
   ABOUT / EXPERIENCE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 56px;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.78;
  margin-bottom: 16px;
}
.about-text:last-child {
  margin-bottom: 0;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bdr);
}
.exp-item:first-child {
  padding-top: 0;
}

.exp-item__role {
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t1);
}
.exp-item__org {
  font-size: 0.85rem;
  color: var(--acc);
  margin-top: 3px;
}
.exp-item__detail {
  font-size: 0.83rem;
  color: var(--t2);
  grid-column: 1 / -1;
  margin-top: 3px;
}
.exp-item__period {
  font-size: 0.78rem;
  color: var(--t3);
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
}

.exp-item__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  grid-column: 1 / -1;
}

.exp-item__bullets li {
  font-size: 0.83rem;
  color: var(--t2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.exp-item__bullets li::before {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 7px;
}

.exp-item__bullets a {
  color: var(--acc);
  font-size: 0.83rem;
  font-weight: 600;
}

/* ============================================================
   CONTACT ICONS
   ============================================================ */
.contact-icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  color: var(--t2);
  transition:
    border-color 0.18s,
    color 0.18s,
    transform 0.18s;
  min-width: 80px;
}

.contact-icon:hover {
  border-color: var(--acc);
  color: var(--acc);
  opacity: 1;
  transform: translateY(-3px);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--t2);
  transition: color 0.18s;
}

.contact-icon:hover svg {
  color: var(--acc);
}

.contact-icon span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-icon__address {
  font-size: 0.65rem;
  color: var(--t3);
  letter-spacing: 0.02em;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  border-color: var(--bdr-a);
}
.testimonial__quote {
  font-size: 0.975rem;
  color: var(--t2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1;
}
.testimonial__stars {
  color: var(--acc);
  font-size: 0.75rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.testimonial__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t1);
}
.testimonial__via {
  font-size: 0.78rem;
  color: var(--t3);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-intro {
  font-size: 1rem;
  color: var(--t2);
  margin-bottom: 24px;
  max-width: 480px;
}
.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t2);
  transition:
    border-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
.contact-link:hover {
  border-color: var(--acc);
  color: var(--acc);
  opacity: 1;
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--bdr);
  padding: 28px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--t3);
}

/* ============================================================
   HERO ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero__eyebrow {
  animation: fadeUp 0.5s ease both 0.05s;
}
.hero__name {
  animation: fadeUp 0.5s ease both 0.12s;
}
.hero__stack {
  animation: fadeUp 0.5s ease both 0.18s;
}
.hero__bio {
  animation: fadeUp 0.5s ease both 0.24s;
}
.hero__stats {
  animation: fadeUp 0.5s ease both 0.3s;
}
.hero__cta {
  animation: fadeUp 0.5s ease both 0.36s;
}

/* ============================================================
   BREAKDOWN PAGES
   ============================================================ */
.bd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 12px;
}

.bd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t2);
  transition:
    color 0.18s,
    gap 0.18s;
}
.bd-back:hover {
  color: var(--acc);
  opacity: 1;
  gap: 10px;
}

.bd-siblings {
  display: flex;
  gap: 20px;
}
.bd-sib {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t3);
  transition: color 0.18s;
}
.bd-sib:hover {
  color: var(--acc);
  opacity: 1;
}

.bd-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t1);
  margin-bottom: 16px;
  text-align: center;
}

.bd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.bd-pill {
  padding: 5px 13px;
  background: var(--bg-tag);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t2);
}

.bd-header-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.bd-body {
  max-width: 680px;
  margin: 0 auto;
}

.bd-header {
  text-align: center;
}
.bd-header .hero__eyebrow {
  justify-content: center;
}

.bd-body h2 {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-top: 52px;
  margin-bottom: 14px;
}
.bd-body p {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.bd-body pre {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.bd-body code {
  font-size: 0.85rem;
  color: var(--acc);
  font-family: "Fira Code", monospace;
  line-height: 1.6;
}

.bd-video-wrap {
  margin: 40px 0;
}
.bd-video-wrap h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 12px;
}
.bd-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bdr);
}
.bd-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Art project images --- */
.bd-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .bd-image img {
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
  }
  .bd-image {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  object-fit: contain;
  cursor: default;
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .project-featured {
    grid-template-columns: 1fr;
  }
  .project-featured__img {
    min-height: 260px;
    max-height: 300px;
  }
  .project-featured__body {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: 60px 0 52px;
  }

  /* Hamburger button */
  .nav__hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--bdr);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.18s;
  }
  .nav__hamburger:hover {
    border-color: var(--acc);
  }
  .nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--t2);
    border-radius: 2px;
    transition:
      transform 0.25s,
      opacity 0.25s;
    transform-origin: center;
  }
  .nav__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Main page nav links — controlled by hamburger */
  .nav__links:not(:has(.bd-sib)) {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bdr);
    flex-direction: column;
    padding: 8px 20px 16px;
    gap: 0;
  }
  .nav__links:not(:has(.bd-sib)).is-open {
    display: flex;
  }
  .nav__links:not(:has(.bd-sib)) li {
    border-bottom: 1px solid var(--bdr);
  }
  .nav__links:not(:has(.bd-sib)) li:last-child {
    border-bottom: none;
  }
  .nav__links:not(:has(.bd-sib)) a {
    display: block;
    padding: 14px 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  /* Breakdown page prev/next — wrap as second row */
  .nav__inner:has(.bd-sib) {
    flex-wrap: wrap;
  }
  .nav__links:has(.bd-sib) {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--bdr);
  }

  .hero__inner {
    flex-direction: column-reverse;
    gap: 32px;
    align-items: center;
  }
  .hero__portrait {
    width: 140px;
    height: 140px;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }
  .project-featured__img {
    min-height: 260px;
    max-height: 300px;
  }
  .project-featured__body {
    padding: 28px 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero__stats {
    max-width: 100%;
  }
  .stat__num {
    font-size: 1.4rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .skill-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .skill-row__key {
    padding-top: 0;
  }
  .additional__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero__name {
    font-size: 2.8rem;
  }
}
