/* =========================================================
   REIGNAIA'S PORTFOLIO — STYLESHEET.
   ========================================================= */

/* 1. FONTS, THEME COLORS & GLOBAL RESET
   --------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fff9fc;
  --surface: #ffffff;
  --surface-2: #fff0f7;
  --ink: #30232b;
  --muted: #7f6d77;
  --pink: #e76aa5;
  --pink-dark: #c84986;
  --pink-soft: #f8cfe2;
  --line: #f0dce6;
  --shadow: 0 18px 50px rgba(126, 57, 89, .09);
  --nav: rgba(255, 249, 252, .90);
  --radius: 22px;
}

[data-theme="dark"] {
  --bg: #171218;
  --surface: #211820;
  --surface-2: #2b1d29;
  --ink: #fff1f8;
  --muted: #c0aab7;
  --pink: #ff78b8;
  --pink-dark: #ff9ac9;
  --pink-soft: #593047;
  --line: #49313f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
  --nav: rgba(23, 18, 24, .92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  transition: background .25s, color .25s;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.16;
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
}

h1 em {
  color: var(--pink-dark);
  font-style: normal;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.section-wrap {
  width: min(1160px, 90%);
  margin-inline: auto;
}

/* 2. HEADER & NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--nav);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.site-header .brand-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.site-header .brand-highlight {
  color: var(--pink-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
}

.site-header .brand-subtitle {
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 600;
}

.accent {
  color: var(--pink-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 25px);
}

.nav-links a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

/* 3. BUTTONS & SMALL SHARED ELEMENTS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(180, 71, 125, .15);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pink-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: #9c3d6e;
}

.btn-small {
  padding: 10px 15px;
  font-size: .78rem;
}

.hero-actions,
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.form-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.form-buttons button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px var(--pink-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--pink-dark);
  font-size: .85rem;
  font-weight: 800;
}

/* 4. HOME / HERO
   --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 60px;
  min-height: 590px;
  padding-block: 86px 74px;
}

.hero-description {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 33px;
  color: var(--muted);
  font-size: .78rem;
}

.note-line {
  width: 34px;
  height: 1px;
  background: var(--pink);
}

.hero-art {
  --photo-width: clamp(190px, 26vw, 285px);
  position: relative;
  display: grid;
  place-items: center;
  height: 410px;
}

.hero-blob {
  position: absolute;
  width: min(370px, 85%);
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--pink-soft), var(--surface-2));
  transform: rotate(-4deg);
}

.profile-frame {
  position: relative;
  width: var(--photo-width);
  max-width: 285px;
  z-index: 1;
  aspect-ratio: 4 / 5;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.sparkle {
  position: absolute;
  color: var(--pink-dark);
  font-size: 2rem;
}

.hero-art .sparkle-one {
  top: 14%;
  left: calc(50% - var(--photo-width) / 2 - 22px);
  right: auto;
  z-index: 2;
  line-height: 1;
}

.sparkle-two {
  bottom: 45px;
  left: 32px;
  display: none;
}

.coquette-bow {
  position: absolute;
  top: 7%;
  left: calc(50% + var(--photo-width) / 2 - 14px);
  right: auto;
  z-index: 2;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1;
  filter: drop-shadow(0 4px 5px rgba(180, 70, 120, .15));
  transform: rotate(10deg);
}

.hero-art .floating-card {
  display: none !important;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--pink-dark);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.eyebrow.showcase-label {
  display: none !important;
}

/* 5. FEATURED WORKS
   --------------------------------------------------------- */
.featured-section {
  padding-block: 66px;
  border-top: 1px solid var(--line);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  min-width: 0;
}

.image-link {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: transparent;
  cursor: zoom-in;
}

.featured-card .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: var(--surface-2);
}

.featured-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s;
}

.image-link:hover img,
.featured-card .image-link:hover img {
  transform: scale(1.03);
}

.featured-title {
  display: block;
  margin-top: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  font-weight: 800;
}

/* 6. ABOUT
   --------------------------------------------------------- */
.about-section {
  padding-block: 66px;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 70px;
}

.about-visual {
  position: relative;
  max-width: 390px;
  margin: auto;
}

.about-visual img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-stamp {
  position: absolute;
  right: -20px;
  bottom: 25px;
  display: grid;
  place-content: center;
  width: 100px;
  height: 100px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transform: rotate(9deg);
}

.about-copy h3 {
  max-width: 570px;
  font-size: 1.7rem;
}

.about-copy p {
  color: var(--muted);
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 23px 0;
}

.info-chips span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .76rem;
  font-weight: 700;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.about-facts small,
.contact-detail small {
  display: block;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.about-facts strong {
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.about-facts-simple {
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 0;
}

.about-facts-simple strong {
  font-size: .92rem;
  font-weight: 700;
}

.design-philosophy {
  position: relative;
  margin-top: 27px;
  padding: 23px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.design-philosophy .eyebrow {
  margin-bottom: 8px;
}

.design-philosophy blockquote {
  max-width: 900px;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.philosophy-bow {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.6rem;
}

/* 7. SKILLS
   --------------------------------------------------------- */
.skills-section {
  padding-block: 66px;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 22px;
}

.panel {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skills-layout > .panel {
  height: 100%;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.panel-heading h3 {
  margin-bottom: 4px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.panel-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: 1.3rem;
}

.technical-panel {
  display: flex;
  flex-direction: column;
}

.technical-panel .skill-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
}

.skill-item {
  margin-bottom: 0;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .87rem;
  font-weight: 700;
}

.skill-label span:last-child {
  color: var(--muted);
  font-size: .76rem;
}

.skill-icon {
  display: inline-block;
  width: 1.35rem;
  text-align: center;
}

.skill-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-2);
}

.skill-fill {
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink));
  transition: width 1s ease;
}

.soft-panel .panel-heading {
  margin-bottom: 10px;
}


/* SOFT SKILLS CARDS */
.soft-panel .panel-heading {
  margin-bottom: 12px;
}

.soft-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease;
}

.soft-skill:last-child {
  margin-bottom: 0;
}

.soft-skill:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.soft-skill-top {
  min-width: 0;
}

.soft-skill h4 {
  margin: 0 0 4px;
  font-size: .78rem;
  line-height: 1.3;
}

.soft-skill p {
  margin: 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.4;
}

.soft-skill > .cert-link {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--pink);
  border-radius: 8px;
  color: var(--pink-dark);
  font-size: .65rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.soft-skill > .cert-link:hover {
  background: var(--pink);
  color: white;
}

.fine-print {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.fine-print code,
.cv-copy code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  font-size: .72rem;
}

/* 8. PROJECT SEARCH, FILTERS & CARDS
   --------------------------------------------------------- */
.projects-section {
  padding-block: 66px;
}

.project-tools {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}

.project-tools,
.project-tools * {
  box-sizing: border-box;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}

.search-box span {
  font-size: 1.4rem;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: .8;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--pink-soft);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: .2s ease;
}

.filter-toggle:hover,
.filter-toggle[aria-expanded="true"] {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.filter-panel[hidden] {
  display: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-group label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-group select,
.project-tools select {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .85rem;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.filter-actions button {
  min-height: 38px;
}

.results-count {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .78rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  transition: transform .25s, box-shadow .25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  overflow: hidden;
  border: 0;
  background: var(--surface-2);
  cursor: zoom-in;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .3s;
}

.project-thumb:hover img {
  transform: scale(1.03);
}

.project-card-body {
  padding: 19px;
}

.project-meta,
.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.project-meta {
  color: var(--muted);
  font-size: .68rem;
}

.project-card .project-meta {
  display: none;
}

.project-meta-row .category-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 11px;
  border: 0;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .7rem;
  font-weight: 800;
}

.project-year-type {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 600;
  text-align: right;
}

.project-card .category-pill {
  display: none !important;
}

.project-card h3,
.project-card-body h3 {
  margin-top: 0;
  margin-bottom: 9px;
  font-size: 1.1rem;
}

.project-card p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .83rem;
}

.tag-row,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row {
  margin-bottom: 17px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .68rem;
}

.tools-used {
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: .78rem;
}

.tools-used strong {
  color: var(--ink);
}

.project-card .tools-used {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-card .tools-used strong {
  font-size: .78rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions .btn {
  padding: 9px 13px;
  font-size: .75rem;
}

.empty-state {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  color: var(--pink);
  font-size: 2rem;
}

/* 9. PROJECT DETAIL MODAL & IMAGE VIEWER
   --------------------------------------------------------- */
.image-modal {
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 100px rgba(0, 0, 0, .28);
}

.image-modal::backdrop {
  background: rgba(25, 10, 19, .65);
  backdrop-filter: blur(5px);
}

.modal-close {
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: start;
  gap: 25px;
}

.gallery-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: stretch;
  gap: 10px;
}

.modal-main-image {
  display: block;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  cursor: zoom-in;
}

.modal-main-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 65vh;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.modal-thumbs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}

.modal-thumbs button {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
}

.modal-thumbs button.selected {
  border-color: var(--pink);
}

.modal-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 75px;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-details h2 {
  margin: 3px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.modal-details > p {
  color: var(--muted);
  font-size: .9rem;
}

.modal-details h3 {
  margin: 20px 0 8px;
  font-size: .9rem;
  letter-spacing: 0;
}

.modal-details ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .85rem;
}

.modal-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .75rem;
  font-weight: 800;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.compare-item {
  min-width: 0;
}

.compare-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: zoom-in;
}

.compare-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.compare-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.compare-arrow {
  color: var(--pink-dark);
  font-size: 1.7rem;
}

.modal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.image-modal {
  width: min(1000px, 94vw);
  padding: 18px;
  overflow: auto;
  text-align: center;
}

.image-modal img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 10px auto;
  border-radius: 10px;
  object-fit: contain;
}

.image-modal p {
  margin: 8px;
  color: var(--muted);
  font-size: .8rem;
}

.image-close {
  display: block;
  margin-left: auto;
}

/* 10. TIMELINE & EDUCATION / CERTIFICATES
   --------------------------------------------------------- */
.timeline-section,
.education-section {
  padding-block: 66px;
}

.timeline {
  max-width: 780px;
  margin: 5px auto 0;
  padding-left: 29px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -36px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  outline: 1px solid var(--pink);
  background: var(--pink);
}

.timeline-date {
  margin-bottom: 7px;
  color: var(--pink-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.timeline-item h3 {
  margin-bottom: 5px;
}

.timeline-org {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.timeline-item > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: .9rem;
}

.credential-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-2);
}

.credential-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--pink);
  color: #fff;
  font-size: 1.4rem;
}

.credential-summary h3 {
  margin-bottom: 5px;
}

.credential-summary p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.credential-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.credential-card .credential-org {
  margin-bottom: 7px;
  color: var(--pink-dark);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.credential-card h3 {
  margin-bottom: 7px;
  font-size: .97rem;
}

.credential-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .77rem;
}

.credential-card .cert-link {
  margin-top: auto;
}

/* 11. CV SECTION
   --------------------------------------------------------- */
.cv-section {
  padding-block: 45px 80px;
}

.cv-card {
  position: relative;
  display: grid;
  grid-template-columns: .35fr 1fr;
  align-items: center;
  gap: 35px;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, #f9c9df, #f8e5ee 65%, #fff7fb);
  color: #3b2330;
}

.cv-decoration {
  position: relative;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -.1em;
  text-shadow: 2px 3px 0 #e879ad;
  transform: rotate(-8deg);
}

.cv-decoration span {
  font-size: 2rem;
  vertical-align: top;
}

.cv-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cv-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: #735565;
}

.cv-copy .eyebrow {
  color: #a23e70;
}

.cv-copy small {
  display: block;
  margin-top: 12px;
  color: #795d6b;
}

.cv-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.cv-inline .eyebrow {
  margin-bottom: 5px;
}

.cv-inline h3 {
  margin: 0 0 4px;
}

.cv-inline p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.cv-inline .cv-actions {
  margin: 0;
}

/* 12. CONTACT & FORM
   --------------------------------------------------------- */
.contact-section {
  padding-block: 66px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.contact-copy h3 {
  font-size: 1.6rem;
}

.contact-copy > p {
  color: var(--muted);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.contact-detail > span:first-child {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: 1.2rem;
}

.contact-detail strong {
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.contact-detail[href^="mailto:"] {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 11px;
  margin-top: 25px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--pink-dark);
  font-size: .9rem;
  font-weight: 800;
  transition: .2s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.contact-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: .79rem;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
  opacity: .8;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .73rem;
}

/* 13. FOOTER
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  min-height: 75px;
  padding: 18px 5%;
  border-top: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.site-footer p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .8rem;
  font-weight: 800;
  transition: .2s ease;
}

.footer-links a:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.back-top {
  color: var(--pink-dark);
  font-size: .8rem;
  font-weight: 800;
}

/* 14. TABLET RESPONSIVENESS
   --------------------------------------------------------- */
@media (max-width: 1000px) {
  .site-header {
    gap: 12px;
    padding-inline: 4%;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: .75rem;
  }

  .theme-label {
    display: none;
  }

  .hero {
    gap: 30px;
  }

  .about-grid,
  .contact-grid {
    gap: 35px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-tools {
    max-width: 100%;
  }
}

/* 15. MOBILE NAVIGATION & LAYOUT
   --------------------------------------------------------- */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 75px;
  }

  .site-header {
    height: 68px;
    gap: 10px;
    padding-inline: 5%;
  }

  .site-header .brand-name {
    gap: 4px;
  }

  .site-header .brand-highlight {
    font-size: 1.05rem;
  }

  .site-header .brand-subtitle {
    font-size: .78rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--pink-dark);
    font-size: 1.25rem;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 12px 5% 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 13px 5px;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: 0;
    padding-block: 58px 48px;
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    --photo-width: min(65%, 250px);
    height: 340px;
  }

  .profile-frame {
    width: var(--photo-width);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .about-grid,
  .contact-grid,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-visual {
    width: min(100%, 340px);
  }

  .about-stamp {
    right: -8px;
  }

  .skills-layout > .panel {
    height: auto;
  }

  .technical-panel .skill-list {
    justify-content: flex-start;
  }

  .project-tools {
    padding: 15px;
    gap: 12px;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .project-card-body {
    padding: 15px;
  }

  .modal-project-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main-row {
    grid-template-columns: minmax(0, 1fr) 75px;
  }

  .gallery-main-row .modal-main-image img {
    min-height: 230px;
  }

  .gallery-main-row .modal-thumbs img {
    min-height: 58px;
  }

  .cv-inline {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .cv-inline .cv-actions {
    width: 100%;
  }

  .cv-inline .cv-actions .btn {
    flex: 1;
  }

  .cv-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cv-decoration {
    font-size: 4rem;
  }

  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    padding: 22px 5%;
    text-align: center;
  }

  .site-footer p {
    flex: none;
    width: 100%;
    font-size: .75rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 10px;
  }
}

/* 16. SMALL MOBILE
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .section-wrap {
    width: 90%;
  }

  .site-header .brand-logo {
    width: 36px;
    height: 36px;
  }

  .site-header .brand-name {
    gap: 3px;
    font-size: .95rem;
  }

  .site-header .brand-highlight {
    font-size: 1rem;
  }

  .site-header .brand-subtitle {
    font-size: .73rem;
  }

  .theme-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: .9rem;
  }

  .header-actions {
    gap: 7px;
  }

  .hero {
    padding-block: 45px 35px;
  }

  h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-art {
    height: 290px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .featured-card .image-link {
    padding: 8px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .design-philosophy {
    padding: 20px;
  }

  .philosophy-bow {
    top: 12px;
    right: 14px;
  }

  .panel {
    padding: 20px;
  }

  .project-tools {
    padding: 10px;
  }

  .search-row {
    gap: 7px;
  }

  .filter-toggle {
    padding-inline: 12px;
    font-size: .76rem;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-panel .filter-actions {
    grid-column: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body {
    padding: 18px;
  }

  .project-meta-row {
    gap: 6px;
  }

  .project-year-type {
    font-size: .68rem;
  }

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .credential-summary {
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
  }

  .cv-inline {
    padding: 18px;
  }

  .cv-inline .cv-actions {
    flex-direction: column;
  }

  .cv-inline .cv-actions .btn,
  .cv-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 19px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .form-buttons .btn {
    width: 100%;
  }

  .gallery-main-row {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 6px;
  }

  .gallery-main-row .modal-main-image img {
    min-height: 190px;
  }

  .gallery-main-row .modal-thumbs img {
    min-height: 48px;
  }
   
  .compare-row {
    gap: 6px;
  }

  .compare-arrow {
    font-size: 1.3rem;
  }

  .site-footer {
    padding: 20px 16px;
  }

  .site-footer p {
    font-size: .7rem;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    width: 34px;
    height: 34px;
  }
}

/* 17. VERY SMALL SCREENS
   --------------------------------------------------------- */
@media (max-width: 380px) {
  .site-header {
    padding-inline: 4%;
  }

  .site-header .brand-logo {
    width: 32px;
    height: 32px;
  }

  .site-header .brand-name {
    font-size: .88rem;
  }

  .site-header .brand-highlight {
    font-size: .94rem;
  }

  .site-header .brand-subtitle {
    font-size: .68rem;
  }

  .header-actions {
    gap: 6px;
  }

  .menu-toggle {
    min-width: 38px;
    min-height: 38px;
    padding: 6px 9px;
  }

  .hero-actions .btn {
    padding-inline: 14px;
  }

  .gallery-main-row {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .gallery-main-row .modal-thumbs img {
    min-height: 44px;
  }

  .footer-links {
    gap: 6px;
  }
}

/* 18. ACCESSIBILITY
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* =====================================
   EDUCATION & CREDENTIALS SECTION
===================================== */

.education-section {
  padding: 90px 6%;
  background: var(--bg);
  color: var(--ink);
}

.edu-container {
  max-width: 1150px;
  margin: 0 auto;
}

.edu-heading {
  text-align: center;
  margin-bottom: 45px;
}

.edu-eyebrow {
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.edu-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 12px 0;
}

.edu-heading h2 span {
  color: var(--pink);
}

.edu-heading p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.edu-divider {
  color: var(--pink);
  margin-top: 20px;
  font-size: 1.3rem;
}

/* EDUCATION FEATURE CARD */

.edu-feature-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 35px;
  margin-bottom: 65px;
  background: var(--surface);
  border: 1px solid var(--pink-soft);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(220, 100, 155, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(220, 100, 155, 0.13);
}

.edu-feature-icon {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: 20px;
  font-size: 2.2rem;
}

.edu-feature-content {
  flex: 1;
}

.edu-status {
  display: inline-block;
  color: var(--pink-dark);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.edu-feature-content h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

.edu-school {
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 15px;
}

.edu-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.edu-ribbon {
  position: absolute;
  top: 18px;
  right: -32px;
  transform: rotate(35deg);
  background: var(--pink);
  color: white;
  padding: 7px 40px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* CERTIFICATION HEADING */

.edu-cert-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.edu-cert-heading h3 {
  font-size: 1.6rem;
  margin-top: 8px;
}

.edu-small-bow {
  font-size: 2rem;
}

/* CERTIFICATE GRID */

.edu-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.edu-cert-card {
  background: var(--surface);
  border: 1px solid var(--pink-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(220, 100, 155, 0.13);
}

/* CERTIFICATE PREVIEW */

.edu-cert-preview {
  padding: 16px;
  background: var(--surface-2);
}

.edu-cert-placeholder {
  min-height: 170px;
  background: var(--surface);
  border: 2px solid var(--pink-soft);
  outline: 1px solid var(--pink-soft);
  outline-offset: -8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 15px;
}

.edu-cert-placeholder span {
  color: var(--pink);
  font-size: 1.8rem;
}

.edu-cert-placeholder strong {
  color: var(--pink-dark);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.edu-cert-placeholder small {
  color: var(--muted);
  font-size: 0.7rem;
}

/* CERTIFICATE DETAILS */

.edu-cert-info {
  padding: 20px;
}

.edu-cert-label {
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.edu-cert-info h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 9px 0;
}

.edu-cert-info p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.edu-cert-meta {
  padding-top: 12px;
  border-top: 1px solid var(--pink-soft);
  color: var(--muted);
  font-size: 0.75rem;
}

.edu-note {
  text-align: center;
  color: var(--pink);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* TABLET */

@media (max-width: 900px) {
  .edu-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .education-section {
    padding: 65px 5%;
  }

  .edu-feature-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 20px;
    gap: 18px;
  }

  .edu-feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .edu-feature-content h3 {
    font-size: 1.15rem;
  }

  .edu-details {
    flex-direction: column;
    gap: 8px;
  }

  .edu-cert-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .edu-cert-heading h3 {
    font-size: 1.3rem;
  }

  .edu-ribbon {
    font-size: 0.6rem;
  }
}


/* =====================================
   MAGICAL MOVING GLITTER BACKGROUND
===================================== */

#glitterCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Keep website content above the glitter */
.site-header,
section,
footer,
main,
.modal,
button,
nav {
  position: relative;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #glitterCanvas {
    display: none;
  }
}


/* ========================================
   EXPERIENCE & PRACTICAL PROJECTS
======================================== */

.experience-section {
  position: relative;
}

.experience-timeline {
  max-width: 850px;
  margin: 15px auto 0;
}

.experience-card {
  padding: 23px 25px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}

.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.experience-card:last-child {
  margin-bottom: 0;
}

.experience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

.experience-card .timeline-date {
  margin-bottom: 9px;
}

.experience-card .timeline-org {
  margin-bottom: 10px;
}

.experience-type {
  display: inline-block;
  padding: 6px 11px;
  margin-bottom: 13px;
  border-radius: 30px;
  background: var(--surface-2);
  color: var(--pink-dark);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.5;
}

.experience-card > p:not(.timeline-date):not(.timeline-org) {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 15px;
}

.experience-highlights {
  padding: 15px 17px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.experience-highlights strong {
  display: block;
  color: var(--pink-dark);
  font-size: .8rem;
  margin-bottom: 9px;
}

.experience-highlights ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: .82rem;
}

.experience-highlights li {
  padding-left: 3px;
  margin-bottom: 6px;
}

.experience-highlights li:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 720px) {

  .experience-timeline {
    margin-left: 8px;
    padding-left: 24px;
  }

  .experience-card {
    padding: 19px 16px;
    margin-bottom: 20px;
  }

  .experience-card h3 {
    font-size: 1.08rem;
  }

  .experience-type {
    font-size: .66rem;
  }

  .experience-highlights {
    padding: 13px;
  }

  .experience-highlights ul {
    font-size: .78rem;
  }
}


/* ========================================
   HEADER VISIBILITY FIX
======================================== */

/* Keep the header above the background animation */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
    isolation: isolate;
    background: var(--nav);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Keep the animated background behind the website */
#glitterCanvas {
    position: fixed !important;
    inset: 0;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Keep page content in its own layer */
main,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Prevent horizontal overflow without breaking sticky positioning */
html,
body {
    overflow-x: clip;
}