/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide all scrollbars globally */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.pages::-webkit-scrollbar,
.page-scroll::-webkit-scrollbar,
.section-card::-webkit-scrollbar,
.projects-scroll::-webkit-scrollbar {
  display: none;
}

html,
body,
.pages,
.page-scroll,
.section-card,
.projects-scroll {
  scrollbar-width: none;
}

:root {
  --brand: #2ECC71;
  --brand-hover: #27ae60;
  --accent: #1abc9c;
  --bg: #2a2a2a;
  --bg-dark: #2a2a2a;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --border: #3e3e3e;
  --card-bg: rgba(42, 42, 42, 0.7);
  --card-inner: #2a2a2a;
  --hero-right-bg: #2a2a2a;
  --hero-text-dark: #111;
  --navbar-bg: rgba(42, 42, 42, 0.9);
  --shadow-strong: rgba(0, 0, 0, 0.5);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --highlight-bg: rgba(46, 204, 113, 0.05);
  --highlight-border: rgba(46, 204, 113, 0.1);
  --card-border: rgba(46, 204, 113, 0.2);
}

[data-theme="light"] {
  --bg: #d9d9d9;
  --bg-dark: #d9d9d9;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #ccc;
  --card-bg: rgba(255, 255, 255, 0.2);
  --card-inner: #e0e0e0;
  --hero-right-bg: #ddd;
  --hero-text-dark: #111;
  --navbar-bg: rgba(200, 200, 200, 0.6);
  --shadow-strong: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.06);
  --highlight-bg: rgba(46, 204, 113, 0.08);
  --highlight-border: rgba(46, 204, 113, 0.15);
  --card-border: rgba(46, 204, 113, 0.25);
}

html {
  height: 100%;
  overflow: hidden;
}

section[id] {
  scroll-margin-top: 4rem;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

/* ── Horizontal Pages ── */
.pages {
  display: flex;
  height: calc(100% - 0px);
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.page {
  min-width: 100vw;
  width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.page-scroll {
  height: 100%;
  overflow-y: auto;
  padding-top: 3.5rem;
  scroll-snap-type: y mandatory;
  position: relative;
  z-index: 2;
}

.page-content {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.text-muted {
  color: var(--text-muted);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.logo {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links .nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transition: none;
  pointer-events: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--brand);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Hero Split ── */
.hero-split {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.hero-left {
  flex: 0 0 62%;
  background: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 4rem 3rem;
  overflow: hidden;
}

.hero-left-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #111;
  margin-bottom: 1.2rem;
}

.hero-title .dot {
  color: #fff;
}

.hero-sub {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-text {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 220px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--hero-right-bg);
  color: var(--brand);
  border: 2px solid var(--hero-right-bg);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-hero:hover {
  background: var(--hero-text-dark);
  border-color: var(--hero-text-dark);
}

.btn-hero-outline {
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: #111;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-hero-outline:hover {
  border-color: #111;
}

.hero-right {
  flex: 0 0 38%;
  background: var(--hero-right-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.hero-photo-wrap {
  position: relative;
  z-index: 2;
  width: 420px;
  height: 480px;
  border-radius: 16px;
  overflow: visible;
  margin-left: -210px;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(to right, var(--hero-right-bg) 50%, var(--brand) 50%);
  z-index: -1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--border);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
}

/* Decorative elements */
.deco {
  position: absolute;
  pointer-events: none;
}

.bg-deco {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.deco-dots-1 {
  top: 12%;
  right: 30%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
  background-size: 10px 10px;
}

.deco-stairs {
  bottom: -35px;
  left: -35px;
  width: 70px;
  height: 70px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  border-left: 2px solid rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 22px;
  z-index: 3;
}

.deco-stairs::before {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  border-left: 2px solid rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 18px;
}

.deco-circle {
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.deco-dots-hero {
  top: 12%;
  right: 35%;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.3) 2px, transparent 2px);
  background-size: 10px 10px;
}

.deco-dots-2 {
  top: -35px;
  right: -35px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--brand) 2px, transparent 2px);
  background-size: 10px 10px;
  z-index: -1;
}

.deco-diamonds {
  bottom: 10%;
  right: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: none;
  background: none;
  width: auto;
  height: auto;
}

.deco-diamonds::before,
.deco-diamonds::after {
  display: none;
}

.diamond-outline {
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand);
  transform: rotate(0deg);
}

.diamond-filled {
  width: 10px;
  height: 10px;
  background: var(--brand);
  transform: rotate(45deg);
}

.deco-lines {
  top: 12%;
  right: 25%;
  width: 60px;
  height: 5px;
  background: rgba(46, 204, 113, 0.5);
}

.deco-lines::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 40px;
  height: 5px;
  background: rgba(46, 204, 113, 0.3);
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-left {
    flex: none;
    padding: 5rem 1.5rem 2rem;
    background: var(--brand);
  }

  .hero-right {
    flex: 1;
  }

  .hero-photo-wrap {
    margin-left: 0;
    width: 200px;
    height: 240px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* ── Buttons ── */
.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

[data-theme="light"] .btn-outline {
  border-color: #aaa;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--text);
}

/* ── Sections ── */
.section {
  padding: 3.75rem 8rem calc(3.75rem + 2vh) 2rem;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section>.section-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section:not(:first-child):not(:last-child)>.section-card {
  justify-content: flex-start;
  margin-top: -2vh;
}

.section:nth-child(2)>.section-card,
.section:nth-child(3)>.section-card {
  padding-top: 1rem;
}

.section:last-child>.section-card {
  justify-content: center;
  padding-top: 20%;
  padding-bottom: 0;
}

#contact .section-card {
  justify-content: center;
  padding-top: 0 !important;
  padding-bottom: 8%;
}

.section-dark {
  background: transparent;
  max-width: 100%;
  padding: 2rem 1.5rem 3rem;
}

.section-dark>* {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section h2,
.section-dark h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* 3D green frame cards for sections */
.section-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  margin: 0;
  height: calc((100vh - 11rem - 2vh) * 0.99);
  overflow: hidden auto;
  position: relative;
  box-shadow:
    0 4px 12px var(--shadow-strong),
    0 12px 28px var(--shadow-medium);
  transition: box-shadow 0.3s, transform 0.3s;
}

.section-card:hover {
  box-shadow:
    0 4px 12px var(--shadow-strong),
    0 12px 28px var(--shadow-medium);
}

#page-about>.card-deco-stairs {
  position: absolute;
  bottom: calc(3.75rem + 2vh - 35px);
  left: calc(2rem - 35px);
  width: 70px;
  height: 70px;
  border: none;
  pointer-events: none;
  z-index: 1;
}

#page-about>.card-deco-stairs::before {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  border-bottom-left-radius: 12px;
}

#page-about>.card-deco-dots {
  position: absolute;
  top: calc(3.5rem + 3.75rem - 35px);
  right: calc(8rem - 35px);
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--brand) 2px, transparent 2px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 1;
}

#page-about>.card-deco-circle {
  position: absolute;
  top: calc(3.5rem + 3.75rem - 40px);
  left: -80px;
  width: 260px;
  height: 260px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

#page-about {
  overflow: visible;
}

/* ── About ── */
.about-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.about-intro .greeting {
  font-size: 1rem;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.about-intro h2 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.9;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-highlight {
  text-align: center;
  padding: 1.2rem;
  border-radius: 12px;
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
}

.about-highlight .hl-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.about-highlight .hl-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  flex: 1;
  align-content: center;
}

.skill-category {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.skill-group ul {
  list-style: none;
}

.skill-group li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  line-height: 1.5;
}

/* ── Projects ── */
.projects-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.projects-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

#projects .section-card {
  position: relative;
}

.projects-dots {
  position: absolute;
  right: 1.875rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

.projects-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--hero-text-dark) 0%, var(--card-inner) 50%, var(--border) 100%);
  cursor: pointer;
  padding: 0;
  border: none;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.7),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.3s, background 0.3s;
}

.projects-dot.active {
  background: var(--brand);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.3),
    0 0 8px 2px rgba(46, 204, 113, 0.5),
    0 0 3px rgba(46, 204, 113, 0.8);
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 1.5rem;
  height: 100%;
  align-items: center;
  align-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-right: 2rem;
}

.card {
  background: var(--card-inner);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px var(--shadow-medium);
  min-width: 0;
  max-width: 100%;
  height: 75%;
  overflow: hidden;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card .card-role {
  font-size: 0.75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  overflow: hidden;
  max-height: 3.8rem;
  min-height: 1.6rem;
}

.tags span {
  background: rgba(46, 204, 113, 0.1);
  color: var(--brand);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-links {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  min-height: 1.25rem;
}

.card-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.card-links a:hover {
  color: var(--text);
}

/* ── Project Modal ── */
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.project-modal-backdrop.active {
  pointer-events: auto;
}

.project-modal {
  position: absolute;
  background: var(--card-inner);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 3rem 2.5rem 2.5rem;
  box-shadow: 0 12px 48px var(--shadow-strong);
  overflow-y: auto;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0;
}

.project-modal.open {
  transform: scale(1);
  opacity: 1;
}

.project-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.project-modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.project-modal-role {
  font-size: 0.72rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-modal h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.project-modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  white-space: pre-line;
  margin-bottom: 1.6rem;
  overflow-y: auto;
}

.project-modal .tags {
  max-height: none;
  margin-bottom: 1.2rem;
}

.project-modal .card-links {
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-modal .card-links a {
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--brand);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.project-modal .card-links a:hover {
  background: var(--brand);
  color: #fff;
}

/* ── Contact ── */
.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: absolute;
  right: 2rem;
  top: calc(3.5rem + 3.75rem);
  height: calc(100vh - 11rem - 2vh);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.sp-track {
  position: absolute;
  right: 5px;
  width: 2px;
  background: var(--border);
  /* top/bottom set by JS to align with dot centers */
}

.sp-fill {
  width: 100%;
  height: 0%;
  background: var(--brand);
  border-radius: 1px;
  transition: height 0.15s ease-out;
}

.sp-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sp-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.3s;
  order: -1;
}

.sp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sp-item.passed .sp-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.sp-item.passed .sp-label {
  color: var(--brand);
}

.sp-item.current .sp-dot {
  border-color: var(--brand);
  background: var(--brand);
  transform: scale(1.4);
  box-shadow: 0 0 8px 2px rgba(46, 204, 113, 0.5);
}

.sp-item.current .sp-label {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .scroll-progress {
    display: none;
  }
}

/* ── Theme Toggle ── */
/* ── View Transitions (theme switch) ── */
::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: theme-reveal 0.5s ease-in-out;
  clip-path: inset(0 0 0 0);
}

@keyframes theme-reveal {
  from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to   { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%)); }
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toggle-track {
  display: block;
  width: 72px;
  height: 28px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 60%, #111 0%, #1e1e1e 40%, #2a2a2a 100%);
  position: relative;
  transition: background 0.3s;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.7),
    inset 0 -1px 2px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.toggle-track::after {
  content: 'dark';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.25);
  transition: opacity 0.3s;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.3),
    0 0 6px 1px rgba(46, 204, 113, 0.5),
    0 0 2px rgba(46, 204, 113, 0.8);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .toggle-track {
  background: radial-gradient(ellipse at 50% 60%, #bbb 0%, #d0d0d0 40%, #ddd 100%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.4),
    0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .toggle-track::after {
  content: 'light';
  right: auto;
  left: 10px;
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(44px);
  background: var(--brand);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.2),
    0 0 6px 1px rgba(46, 204, 113, 0.4),
    0 0 2px rgba(46, 204, 113, 0.6);
}

/* Light theme overrides for hero */
[data-theme="light"] .hero-left {
  background: var(--brand);
}

[data-theme="light"] .deco-circle {
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .deco-dots-hero {
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 2px, transparent 2px);
}

[data-theme="light"] .deco-stairs {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .deco-stairs::before {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .deco-dots-1 {
  background-image: radial-gradient(rgba(0, 0, 0, 0.1) 2px, transparent 2px);
}

[data-theme="light"] .page {
  background: var(--bg);
}

[data-theme="light"] .deco-diamonds .diamond-filled {
  background: var(--brand);
}

[data-theme="light"] .deco-lines {
  background: rgba(46, 204, 113, 0.4);
}

[data-theme="light"] .deco-lines::after {
  background: rgba(46, 204, 113, 0.25);
}

[data-theme="light"] .skill-category {
  border-bottom-color: rgba(46, 204, 113, 0.3);
}

[data-theme="light"] .tags span {
  background: rgba(46, 204, 113, 0.12);
}

[data-theme="light"] .projects-dot {
  background: radial-gradient(circle at 50% 60%, #ccc 0%, #e5e5e5 50%, #f0f0f0 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -1px 2px rgba(255, 255, 255, 0.5),
    0 1px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .projects-dot.active {
  background: var(--brand);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.2),
    0 0 8px 2px rgba(46, 204, 113, 0.3),
    0 0 3px rgba(46, 204, 113, 0.5);
}

[data-theme="light"] .sp-item.current .sp-dot {
  box-shadow: 0 0 8px 2px rgba(46, 204, 113, 0.3);
}

[data-theme="light"] footer {
  border-top-color: var(--border);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

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

  .burger {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .navbar {
    flex-wrap: wrap;
  }
}

/* ── Large screens (1600px+) ── */
@media (min-width: 1600px) {
  #page-about>.card-deco-dots { right: calc(10rem - 35px); }
  #page-about>.card-deco-circle { top: calc(3.5rem + 3.75rem - 40px); left: -90px; width: 290px; height: 290px; }

  .hero-left-content { max-width: 700px; }
  .hero-title { font-size: 5rem; }
  .hero-sub { font-size: 1.2rem; max-width: 500px; }
  .stat-text { font-size: 1rem; }
  .btn-hero, .btn-hero-outline { font-size: 1.05rem; padding: 0.85rem 2rem; }
  .btn { font-size: 1rem; padding: 0.75rem 1.6rem; }
  .hero-photo-wrap { width: 500px; height: 570px; margin-left: -250px; }
  .hero-photo-wrap::before { inset: -4px; border-radius: 20px; }

  .section { padding: 3.75rem 10rem calc(3.75rem + 2vh) 2.5rem; }
  .section h2, .section-dark h2 { font-size: 2.5rem; }
  .section-subtitle { font-size: 1.1rem; }
  .section-card { padding: 3.5rem 3rem; }

  .about-intro { max-width: 780px; }
  .about-intro h2 { font-size: 3rem; }
  .about-text { font-size: 1.15rem; max-width: 680px; }
  .about-highlight .hl-number { font-size: 2.5rem; }
  .about-highlight .hl-label { font-size: 0.9rem; }

  .skill-category { font-size: 0.9rem; }
  .skill-group li { font-size: 1.05rem; }

  .card { padding: 2.5rem; }
  .card h3 { font-size: 1.3rem; }
  .card p { font-size: 1.05rem; }
  .card .card-role { font-size: 0.85rem; }
  .tags span { font-size: 0.85rem; }
  .card-links a { font-size: 1rem; }

  .contact-sub { font-size: 1.2rem; }
  .contact-emoji { font-size: 3.5rem; }

  .nav-links a { font-size: 1rem; }
  .logo { font-size: 1.25rem; }
  .sp-label { font-size: 0.85rem; }
}

/* ── Extra large screens (2000px+) ── */
@media (min-width: 2000px) {
  #page-about>.card-deco-dots { right: calc(13rem - 35px); width: 120px; height: 120px; }
  #page-about>.card-deco-circle { left: -100px; width: 320px; height: 320px; }
  #page-about>.card-deco-stairs { bottom: calc(3.75rem + 2vh - 40px); left: calc(3rem - 40px); width: 80px; height: 80px; }

  .hero-left-content { max-width: 850px; }
  .hero-title { font-size: 6rem; }
  .hero-sub { font-size: 1.4rem; max-width: 580px; }
  .stat-text { font-size: 1.15rem; }
  .btn-hero, .btn-hero-outline { font-size: 1.15rem; padding: 1rem 2.2rem; }
  .btn { font-size: 1.1rem; padding: 0.85rem 1.8rem; }
  .hero-photo-wrap { width: 580px; height: 660px; margin-left: -290px; }

  .section { padding: 3.75rem 13rem calc(3.75rem + 2vh) 3rem; }
  .section h2, .section-dark h2 { font-size: 3rem; }
  .section-subtitle { font-size: 1.25rem; }

  .about-intro { max-width: 900px; }
  .about-intro h2 { font-size: 3.5rem; }
  .about-text { font-size: 1.3rem; max-width: 780px; }
  .about-highlight .hl-number { font-size: 3rem; }
  .about-highlight .hl-label { font-size: 1rem; }

  .skill-category { font-size: 1rem; }
  .skill-group li { font-size: 1.2rem; }
  .skills-grid { gap: 3rem; }

  .card { padding: 3rem; gap: 1rem; }
  .card h3 { font-size: 1.5rem; }
  .card p { font-size: 1.2rem; }
  .card .card-role { font-size: 0.95rem; }
  .tags span { font-size: 0.95rem; padding: 0.3rem 0.8rem; }
  .card-links a { font-size: 1.1rem; }

  .contact-sub { font-size: 1.4rem; max-width: 560px; }

  .nav-links a { font-size: 1.1rem; }
  .logo { font-size: 1.4rem; }
  .sp-label { font-size: 0.9rem; }
}

/* ── Ultra wide / 4K screens (2560px+) ── */
@media (min-width: 2560px) {
  #page-about>.card-deco-dots { right: calc(16rem - 35px); width: 140px; height: 140px; }
  #page-about>.card-deco-circle { left: -120px; width: 360px; height: 360px; }
  #page-about>.card-deco-stairs { bottom: calc(4rem + 2vh - 45px); left: calc(4rem - 45px); width: 90px; height: 90px; }

  .hero-left { padding: 8rem 6rem 4rem; }
  .hero-left-content { max-width: 1000px; }
  .hero-title { font-size: 7rem; }
  .hero-sub { font-size: 1.6rem; max-width: 650px; }
  .stat-text { font-size: 1.3rem; max-width: 300px; }
  .btn-hero, .btn-hero-outline { font-size: 1.25rem; padding: 1.1rem 2.5rem; border-radius: 10px; }
  .btn { font-size: 1.2rem; padding: 0.95rem 2rem; border-radius: 10px; }
  .hero-photo-wrap { width: 660px; height: 750px; margin-left: -330px; }

  .section { padding: 4rem 16rem calc(4rem + 2vh) 4rem; }
  .section h2, .section-dark h2 { font-size: 3.5rem; }
  .section-subtitle { font-size: 1.4rem; }
  .section-card { padding: 4rem 3.5rem; }

  .about-intro { max-width: 1050px; }
  .about-intro h2 { font-size: 4rem; }
  .about-intro .greeting { font-size: 1.2rem; }
  .about-text { font-size: 1.45rem; max-width: 900px; }
  .about-highlight .hl-number { font-size: 3.5rem; }
  .about-highlight .hl-label { font-size: 1.1rem; }

  .skill-category { font-size: 1.1rem; }
  .skill-group li { font-size: 1.35rem; }
  .skills-grid { gap: 3.5rem; }

  .card { padding: 3.5rem; gap: 1.2rem; }
  .card h3 { font-size: 1.75rem; }
  .card p { font-size: 1.35rem; }
  .card .card-role { font-size: 1.05rem; }
  .tags span { font-size: 1.05rem; padding: 0.35rem 0.9rem; }
  .card-links a { font-size: 1.25rem; }
  .projects-row { gap: 2rem; }

  .contact-sub { font-size: 1.6rem; max-width: 640px; }
  .contact-emoji { font-size: 4rem; }

  .navbar { padding: 1.2rem 4rem; }
  .nav-links a { font-size: 1.2rem; }
  .nav-links { gap: 3rem; }
  .logo { font-size: 1.5rem; }
  .sp-label { font-size: 1rem; }
  .sp-dot { width: 14px; height: 14px; }
}

/* ── Small laptops (max 1366px) ── */
@media (max-width: 1366px) {
  #page-about>.card-deco-dots { right: calc(6rem - 35px); }

  .hero-left { padding: 5rem 3rem 2.5rem; }
  .hero-left-content { max-width: 480px; }
  .hero-photo-wrap { width: 360px; height: 410px; margin-left: -180px; }

  .section { padding: 3.75rem 6rem calc(3.75rem + 2vh) 1.5rem; }
  .section-card { padding: 2.5rem 2rem; }

  .about-intro { max-width: 560px; }
  .skills-grid { gap: 1.5rem; }
  .card { padding: 1.5rem; }
}

/* ── Tablets (max 1024px) ── */
@media (max-width: 1024px) {
  #page-about>.card-deco-dots { right: calc(5rem - 35px); width: 80px; height: 80px; }
  #page-about>.card-deco-circle { left: -60px; width: 200px; height: 200px; }

  .hero-left { flex: 0 0 58%; padding: 4.5rem 2.5rem 2rem; }
  .hero-right { flex: 0 0 42%; }
  .hero-left-content { max-width: 420px; }
  .hero-title { font-size: 2.2rem; }
  .hero-photo-wrap { width: 300px; height: 340px; margin-left: -150px; }

  .section { padding: 3.5rem 5rem calc(3.5rem + 2vh) 1.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Small windows (max 900px) ── */
@media (max-width: 900px) {
  .hero-split { overflow: hidden; }
  .hero-left { flex: 1 1 auto; padding: 4rem 2rem 1.5rem; }
  .hero-right { flex: 0 0 auto; width: 200px; justify-content: center; overflow: hidden; }
  .hero-left-content { max-width: 100%; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 0.85rem; max-width: 100%; margin-bottom: 1.2rem; }
  .hero-stats { gap: 1rem; }
  .stat-text { font-size: 0.78rem; max-width: 180px; }
  .hero-buttons { gap: 0.5rem; }
  .btn-hero, .btn-hero-outline { font-size: 0.82rem; padding: 0.55rem 1.1rem; }
  .hero-photo-wrap { width: 180px; height: 220px; margin-left: 0; overflow: hidden; }
  .hero-photo-wrap::before { inset: -2px; border-radius: 18px; background: var(--brand); }
  .deco-stairs { display: none; }
  .deco-dots-2 { display: none; }

  .navbar { padding: 0.8rem 2rem; }
  .section { padding: 2.5rem 3.5rem calc(2.5rem + 2vh) 1.5rem; }
  .section-card { padding: 2rem 1.5rem; }
  .section h2, .section-dark h2 { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.88rem; }
  .scroll-progress { right: 1rem; }
  .sp-label { display: none; }

  .about-intro { max-width: 100%; }
  .about-intro h2 { font-size: 1.8rem; }
  .about-text { font-size: 0.88rem; }
  .about-highlights { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .about-highlight .hl-number { font-size: 1.6rem; }
  .about-highlight .hl-label { font-size: 0.7rem; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .skill-group li { font-size: 0.85rem; }
  .projects-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-right: 1.5rem; }
  .card { padding: 1.2rem; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: 0.82rem; -webkit-line-clamp: 3; }
  .tags span { font-size: 0.7rem; }
  .card-links a { font-size: 0.8rem; }

  .contact-sub { font-size: 0.9rem; }
  .contact-buttons { gap: 0.5rem; }
  .btn { font-size: 0.82rem; padding: 0.5rem 1.1rem; }

  #page-about>.card-deco-dots { display: none; }
  #page-about>.card-deco-circle { display: none; }
  #page-about>.card-deco-stairs { display: none; }

  .deco-circle { width: 180px; height: 180px; bottom: -40px; left: -40px; }
  .deco-dots-hero { width: 70px; height: 70px; }
  .deco-diamonds { display: none; }
  .deco-lines { display: none; }
}

/* ── Narrow windows (max 700px) ── */
@media (max-width: 700px) {
  .navbar { padding: 0.7rem 1.2rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.78rem; }
  .logo { font-size: 1rem; }

  .hero-left { flex: 1 1 auto; padding: 3.5rem 1.5rem 1rem; }
  .hero-right { flex: 0 0 auto; width: 160px; }
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.78rem; margin-bottom: 0.8rem; }
  .hero-stats { flex-direction: column; gap: 0.4rem; }
  .stat-text { font-size: 0.72rem; max-width: 100%; }
  .btn-hero, .btn-hero-outline { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
  .hero-photo-wrap { width: 140px; height: 175px; margin-left: 0; }
  .hero-photo-wrap::before { background: var(--brand); }

  .section { padding: 2rem 2rem calc(2rem + 2vh) 1rem; }
  .section-card { padding: 1.5rem 1.2rem; }
  .section h2, .section-dark h2 { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.82rem; }

  .about-intro h2 { font-size: 1.5rem; }
  .about-text { font-size: 0.82rem; }
  .about-highlights { gap: 0.75rem; }
  .about-highlight { padding: 0.8rem 0.5rem; }
  .about-highlight .hl-number { font-size: 1.3rem; }
  .about-highlight .hl-label { font-size: 0.65rem; }

  .skills-grid { gap: 1.2rem; }
  .skill-category { font-size: 0.72rem; }
  .skill-group li { font-size: 0.8rem; }

  .projects-row { grid-template-columns: 1fr; gap: 1rem; padding-right: 1rem; }
  .card { height: auto; min-height: 0; }
  .projects-dots { display: none; }

  .scroll-progress { display: none; }

  .contact-sub { font-size: 0.85rem; }
  .contact-buttons { flex-direction: column; align-items: center; }
  .btn { font-size: 0.8rem; padding: 0.45rem 1rem; }

  .deco-circle { width: 140px; height: 140px; bottom: -30px; left: -30px; }
  .deco-dots-hero { display: none; }
  .deco-dots-2 { width: 60px; height: 60px; top: -20px; right: -20px; }

  .toggle-track { width: 60px; height: 24px; }
  .toggle-thumb { width: 18px; height: 18px; }
  [data-theme="light"] .toggle-thumb { transform: translateX(36px); }
}

/* ── Mobile layout (max 768px) ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0.7rem 1.2rem; }
  .logo { font-size: 1rem; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    gap: 1.2rem;
  }
  .nav-links a { font-size: 0.8rem; }
  .nav-links .nav-indicator { display: none; }
  .burger { display: none; }

  /* Page scroll: no vertical snap */
  .page-scroll { scroll-snap-type: none; }

  /* Hero: photo on top (dark bg), text on bottom (green bg) */
  .hero-split { flex-direction: column-reverse; }
  .hero-right {
    flex: 1 1 70%;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem 1.5rem;
    overflow: hidden;
  }
  .hero-photo-wrap {
    width: calc(100% - 1rem);
    max-width: 320px;
    height: calc(100% - 0.5rem);
    margin: 0 !important;
    overflow: hidden;
  }
  .hero-photo-wrap::before { inset: -2px; border-radius: 18px; background: linear-gradient(to bottom, var(--hero-right-bg), var(--brand)); }
  .hero-left {
    flex: 0 0 auto;
    width: auto;
    padding: 1.2rem 1.5rem 1.5rem;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
  }
  .hero-left-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-title { font-size: 2rem; margin-bottom: 0.6rem; }
  .hero-sub { font-size: 0.88rem; max-width: 340px; margin: 0 auto 1rem; line-height: 1.6; text-align: center; }
  .hero-stats { justify-content: center; gap: 1rem; margin-bottom: 1rem; }
  .stat-text { font-size: 0.8rem; max-width: 180px; text-align: center; }
  .hero-buttons { justify-content: center; gap: 0.6rem; }
  .btn-hero, .btn-hero-outline { font-size: 0.85rem; padding: 0.55rem 1.2rem; }
  .deco-circle { display: none; }
  .deco-dots-hero { display: none; }
  .deco-stairs { display: none; }
  .deco-dots-2 { display: none; }
  .deco-diamonds { display: none; }
  .deco-lines { display: none; }

  /* Sections */
  .section {
    padding: 1.5rem 1rem;
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .section-card {
    height: auto;
    padding: 2rem 1.2rem;
    border-radius: 12px;
  }
  .section:not(:first-child):not(:last-child)>.section-card { margin-top: 0; }
  .section:nth-child(2)>.section-card,
  .section:nth-child(3)>.section-card { padding-top: 2rem; }
  .section:last-child>.section-card { padding-top: 2rem; padding-bottom: 2rem; }
  #contact .section-card { padding-top: 2rem !important; padding-bottom: 2rem; }
  .section h2, .section-dark h2 { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.85rem; margin-bottom: 1.2rem; }

  /* About */
  .about-intro { max-width: 100%; }
  .about-intro h2 { font-size: 1.6rem; }
  .about-intro .greeting { font-size: 0.85rem; }
  .about-text { font-size: 0.88rem; line-height: 1.7; }
  .about-highlights { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .about-highlight { padding: 0.8rem 0.4rem; }
  .about-highlight .hl-number { font-size: 1.5rem; }
  .about-highlight .hl-label { font-size: 0.65rem; }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; }
  .skill-category { font-size: 0.72rem; }
  .skill-group { padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
  .skill-group:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .skill-group li { font-size: 0.82rem; }

  /* Projects */
  .projects-wrap { overflow: visible; }
  .projects-scroll {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .projects-row {
    grid-template-columns: 1fr;
    height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-right: 0;
    gap: 1rem;
  }
  .card { height: auto; min-height: 0; padding: 1.2rem; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: 0.85rem; -webkit-line-clamp: 4; }
  .projects-dots { display: none; }

  /* Contact */
  .contact-sub { font-size: 0.9rem; }
  .contact-buttons { flex-direction: column; align-items: center; gap: 0.5rem; }
  .btn { font-size: 0.85rem; padding: 0.55rem 1.2rem; }

  /* Hide desktop-only elements */
  .scroll-progress { display: none; }
  #page-about>.card-deco-stairs { display: none; }
  #page-about>.card-deco-dots { display: none; }
  #page-about>.card-deco-circle { display: none; }
  #page-about { overflow: hidden; }

  /* Footer */
  footer { padding: 1.5rem 1rem; }

  /* Project modal */
  .project-modal-backdrop { position: fixed; border-radius: 0; }
  .project-modal { position: fixed; inset: 0; border-radius: 0; padding: 1.5rem 1.2rem; }

  /* Card accordion expand */
  .card { height: auto; max-height: 280px; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
  .card.expanded { max-height: 600px; }
  .card p { -webkit-line-clamp: 3; }
  .card.expanded p { -webkit-line-clamp: unset; }
  .card.expanded .tags { max-height: none; }

  /* Toggle */
  .toggle-track { width: 60px; height: 24px; }
  .toggle-thumb { width: 18px; height: 18px; }
  [data-theme="light"] .toggle-thumb { transform: translateX(36px); }
}
