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

:root {
  --bg-primary: #170d18;
  --bg-secondary: #2b1632;
  --surface: rgba(42, 21, 47, 0.78);
  --surface-strong: rgba(33, 15, 37, 0.94);
  --text-primary: #fff4ea;
  --text-secondary: #e6c9c4;
  --accent: #18d6cb;
  --accent-strong: #ff2f8f;
  --accent-soft: #ffbf66;
  --accent-deep: #7d3f2d;
  --border-color: rgba(255, 105, 180, 0.22);
  --shadow-color: rgba(17, 3, 16, 0.42);
  --gradient-soft: linear-gradient(135deg, rgba(24, 214, 203, 0.24), rgba(255, 47, 143, 0.24), rgba(255, 191, 102, 0.12));
  --max-width: 1180px;
}

body[data-theme="light"] {
  --bg-primary: #e9b5b3;
  --bg-secondary: #b2d3b9;
  --surface: rgba(255, 252, 250, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --text-primary: #341a2f;
  --text-secondary: #5d4350;
  --accent: #0f766e;
  --accent-strong: #8a1f5c;
  --accent-soft: #6a3d1f;
  --accent-deep: #5d4350;
  --border-color: rgba(52, 26, 47, 0.18);
  --shadow-color: rgba(52, 26, 47, 0.14);
  --gradient-soft: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(138, 31, 92, 0.14), rgba(106, 61, 31, 0.12));
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 214, 203, 0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255, 47, 143, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 191, 102, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg-secondary), var(--bg-primary) 34%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(145deg, #1d0f1f, #3f1941);
  z-index: 2000;
}

.loader-text {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #f7fffe;
  opacity: 0;
}

.loader-bar {
  width: min(280px, 70vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.audio-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(12, 6, 14, 0.72);
  backdrop-filter: blur(10px);
  z-index: 2100;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.audio-prompt.is-visible {
  opacity: 1;
}

.audio-prompt[hidden] {
  display: none;
}

.audio-prompt-card {
  width: min(100%, 28rem);
  border-radius: 1.5rem;
  padding: 1.6rem;
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
  box-shadow: 0 28px 80px var(--shadow-color);
  text-align: center;
}

.audio-prompt-kicker {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

.audio-prompt-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.audio-prompt-card p {
  color: var(--text-secondary);
}

.audio-prompt-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.audio-prompt-button {
  min-width: 9.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.audio-prompt-button:hover,
.audio-prompt-button:focus-visible {
  transform: translateY(-1px);
}

.audio-prompt-button-yes {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.audio-prompt-button-no {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
}

.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 2500;
  opacity: 0;
}

.cursor {
  width: 14px;
  height: 14px;
  background: var(--accent-strong);
  mix-blend-mode: screen;
}

.cursor-follower {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(24, 214, 203, 0.75);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(-100%);
  background: rgba(29, 10, 31, 0.58);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

body[data-theme="light"] .site-nav {
  background: rgba(255, 252, 250, 0.82);
  border-bottom-color: rgba(52, 26, 47, 0.08);
}

.nav-container,
.section-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-primary);
}

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

.nav-links a,
.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 94px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

body[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.82);
}

.theme-toggle-track {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 18px rgba(8, 20, 34, 0.22);
  transition: transform 0.3s ease;
}

body[data-theme="light"] .theme-toggle-track {
  transform: translateX(50px);
}

.theme-toggle-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

body[data-theme="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.82);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(26, 8, 28, 0.95);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

body[data-theme="light"] .mobile-menu {
  background: rgba(255, 242, 242, 0.96);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-family: "Playfair Display", serif;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.26s; }

main {
  padding-bottom: 4rem;
}

.section-shell {
  position: relative;
}

.hero {
  min-height: 100vh;
  padding-top: 8.75rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
}

.hero-bg,
.hero-glow {
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  inset: 8% 0 auto;
  height: 72%;
  background:
    radial-gradient(circle at 30% 50%, rgba(24, 214, 203, 0.22), transparent 30%),
    radial-gradient(circle at 75% 35%, rgba(255, 47, 143, 0.28), transparent 28%),
    radial-gradient(circle at 52% 80%, rgba(255, 191, 102, 0.14), transparent 26%);
  filter: blur(22px);
}

.hero-glow {
  border-radius: 999px;
  filter: blur(18px);
}

.hero-glow-one {
  top: 12%;
  right: 8%;
  width: 180px;
  height: 180px;
  background: rgba(24, 214, 203, 0.22);
}

.hero-glow-two {
  bottom: 8%;
  left: 45%;
  width: 220px;
  height: 220px;
  background: rgba(255, 47, 143, 0.2);
}

.hero-grid-lines {
  position: absolute;
  inset: 10% 0 auto 34%;
  height: 60%;
  border-radius: 40px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0.25;
  pointer-events: none;
}

.hero-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(255, 191, 102, 0.05) 72%);
  box-shadow: 0 0 22px rgba(255, 191, 102, 0.32);
  pointer-events: none;
  opacity: 0.7;
}

.hero-spark-one {
  top: 18%;
  left: 48%;
}

.hero-spark-two {
  top: 64%;
  left: 8%;
  width: 10px;
  height: 10px;
}

.hero-spark-three {
  top: 22%;
  right: 18%;
  width: 12px;
  height: 12px;
}

.hero-spark-four {
  bottom: 18%;
  right: 12%;
  width: 18px;
  height: 18px;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.project-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.eyebrow,
.section-kicker {
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.hero-title,
.section-heading h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(3.5rem, 11vw, 6.6rem);
  line-height: 0.86;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(10px);
  text-shadow: 0 8px 30px rgba(255, 47, 143, 0.18);
}

.hero-subtitle {
  max-width: 14ch;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  color: #ffd7bb;
  margin-bottom: 1rem;
  opacity: 0;
}

body[data-theme="light"] .hero-subtitle {
  color: #6a3d1f;
}

.hero-description,
.contact-copy,
.panel-card p {
  color: var(--text-secondary);
}

.hero-description {
  max-width: 58ch;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  opacity: 0;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cta-button {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .cta-button {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(52, 26, 47, 0.18);
}

.secondary-button {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .secondary-button {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(52, 26, 47, 0.18);
}

.cta-button.is-selected,
.secondary-button.is-selected {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--accent-strong), #ff7a66);
  box-shadow: 0 14px 28px rgba(255, 47, 143, 0.28);
  border-color: transparent;
}

body[data-theme="light"] .cta-button.is-selected,
body[data-theme="light"] .secondary-button.is-selected {
  color: #fffaf7;
  background: linear-gradient(135deg, #8a1f5c, #0f766e);
  box-shadow: 0 14px 28px rgba(52, 26, 47, 0.18);
  border-color: transparent;
}

.cta-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-highlights li,
.project-tags span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

body[data-theme="light"] .hero-highlights li,
body[data-theme="light"] .project-tags span {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(52, 26, 47, 0.14);
  color: var(--text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hero-graphic-word {
  position: absolute;
}

.hero-graphic-word {
  z-index: 0;
  bottom: 10%;
  left: -2%;
  font-family: "Playfair Display", serif;
  font-size: clamp(4.5rem, 13vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 187, 0.28);
  opacity: 0;
  transform: translateY(32px);
}

.hero-img {
  position: relative;
  z-index: 2;
  width: min(430px, 86%);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 22px rgba(34, 6, 18, 0.2))
    drop-shadow(0 34px 48px rgba(17, 3, 16, 0.42));
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  transform-origin: center 62%;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 171, 205, 0.26);
}

.hero-orbit-one {
  width: 84%;
  height: 84%;
}

.hero-orbit-two {
  width: 98%;
  height: 98%;
}

.hero-orbit-three {
  width: 66%;
  height: 66%;
  border-style: solid;
  border-color: rgba(24, 214, 203, 0.22);
}

.hero-orbit-four {
  width: 112%;
  height: 112%;
  border-style: solid;
  border-color: rgba(255, 191, 102, 0.14);
  opacity: 0.7;
}

.hero-badge {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 24px var(--shadow-color);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  opacity: 0;
}

.hero-badge-top {
  top: 12%;
  right: 0;
}

.hero-badge-bottom {
  left: 0;
  bottom: 14%;
}

.content-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.inner-page {
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 4rem;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
}

.panel-card {
  border: 1px solid var(--border-color);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 18px 40px var(--shadow-color);
  backdrop-filter: blur(14px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.about-story {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.stat-card,
.skill-card,
.project-card,
.contact-panel {
  padding: 1.6rem;
}

.stat-number {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.stat-card h3,
.skill-card h3,
.project-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card ul {
  display: grid;
  gap: 0.85rem;
  color: var(--text-secondary);
}

.skill-card li {
  position: relative;
  padding-left: 1.1rem;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.projects-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.project-label {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
}

.project-card p {
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.featured-project {
  background:
    linear-gradient(140deg, rgba(24, 214, 203, 0.13), rgba(255, 47, 143, 0.12), rgba(255, 191, 102, 0.09)),
    var(--surface);
}

.contact-panel {
  padding: 2rem;
}

.contact-heading h2 {
  max-width: 14ch;
}

.contact-copy {
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.reveal-section {
  opacity: 0;
  transform: translateY(48px);
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-subtitle,
  .section-heading h2 {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .cursor,
  .cursor-follower {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-container,
  .section-shell {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .hero-image-wrap {
    width: min(430px, 100%);
  }

  .hero-badge-top,
  .hero-badge-bottom {
    position: static;
  }

  .hero-graphic-word {
    font-size: clamp(3.8rem, 20vw, 6rem);
    bottom: 4%;
    left: 2%;
  }

  .hero-badge {
    margin-top: 0.85rem;
  }

  .content-section {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .inner-page {
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .panel-card,
  .contact-panel {
    border-radius: 24px;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-img,
  .hero-graphic-word,
  .hero-badge,
  .reveal-section,
  .site-nav {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
