:root {
  --primary: #22202e;
  --secondary: #3f3c4f;
  --accent: #5c4a78;
  --soft: #b596ad;
  --muted: #b8b5c3;
  --paper: #f4f1f5;
  --ink: #181720;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--primary);
}
body {
  min-width: 320px;
  background: var(--primary);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
::selection {
  background: var(--soft);
  color: var(--primary);
}
.page-shell {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.page-shell.page-ready {
  opacity: 1;
  transform: none;
}
.page-shell.page-leaving {
  opacity: 0;
  transform: translateY(8px);
}
.icon-button {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 150, 173, 0.5);
  background: rgba(181, 150, 173, 0.08);
  color: #fff;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.35s var(--ease);
}
.nav-link i {
  font-size: 0.76rem;
  opacity: 0.7;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}
.nav-link:hover i {
  transform: translateY(-1px);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(181, 150, 173, 0.18),
    rgba(92, 74, 120, 0.2)
  );
  box-shadow: inset 0 0 0 1px rgba(181, 150, 173, 0.16);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: 0 0 12px rgba(181, 150, 173, 0.35);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.35s var(--ease);
}
.mobile-nav-link.active {
  color: #fff;
  background: rgba(181, 150, 173, 0.1);
  padding-left: 17px;
  border-radius: 12px;
  border-color: transparent;
  margin: 2px 0;
}
.mobile-nav-link.active i {
  color: var(--soft);
}
.brand-mark {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.brand-logo {
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}
html.light .brand-logo {
  filter: brightness(0);
}
.nav-scrolled {
  background: rgba(34, 32, 46, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.breadcrumb a {
  transition: color 0.25s ease;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb span {
  color: var(--soft);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}
.reveal.show {
  opacity: 1;
  transform: none;
}
.card-hover {
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background-color 0.45s var(--ease);
}
.card-hover:hover {
  transform: translateY(-7px);
  border-color: rgba(181, 150, 173, 0.28);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}
.media-zoom {
  overflow: hidden;
}
.media-zoom img {
  transition:
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}
.media-zoom:hover img {
  transform: scale(1.045);
  filter: saturate(1.05);
}
.gradient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(181, 150, 173, 0.18),
    rgba(92, 74, 120, 0.05) 50%,
    transparent 72%
  );
  filter: blur(12px);
  pointer-events: none;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--soft);
  box-shadow: 0 0 10px rgba(181, 150, 173, 0.35);
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.4s var(--ease);
}
.btn-primary {
  background: var(--soft);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(181, 150, 173, 0.13);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(181, 150, 173, 0.22);
}
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(181, 150, 173, 0.08);
  border-color: rgba(181, 150, 173, 0.32);
}
.social-button {
  display: flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  transition: all 0.35s var(--ease);
}
.social-button:hover {
  transform: translateY(-3px) rotate(-2deg);
  color: #fff;
  border-color: rgba(181, 150, 173, 0.4);
  background: rgba(181, 150, 173, 0.08);
}
.footer-link {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.footer-link:hover {
  color: #fff;
  transform: translateX(3px);
}
.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.35s var(--ease);
}
.filter-button:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(181, 150, 173, 0.3);
}
.filter-button.active {
  background: var(--soft);
  color: var(--primary);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(181, 150, 173, 0.14);
}
.gallery-item.is-hidden {
  display: none;
}
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-panel {
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    opacity 0.35s ease;
}
.modal-backdrop.active .modal-panel {
  transform: none;
  opacity: 1;
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-answer > div {
  overflow: hidden;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-icon {
  transition: transform 0.4s var(--ease);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.scroll-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.scroll-top:hover {
  transform: translateY(-4px);
}
.timeline-dot {
  box-shadow:
    0 0 0 6px rgba(181, 150, 173, 0.08),
    0 0 24px rgba(181, 150, 173, 0.15);
}
.skill-chip {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.skill-chip:hover {
  color: #fff;
  border-color: rgba(181, 150, 173, 0.3);
  transform: translateY(-2px);
}
html.light .skill-chip {
  color: #4a4655;
  border-color: rgba(34, 32, 46, 0.12);
  background: rgba(255, 255, 255, 0.7);
}
html.light .skill-chip i {
  color: var(--accent);
}
html.light .skill-chip:hover {
  color: var(--primary);
  border-color: rgba(92, 74, 120, 0.3);
  background: rgba(92, 74, 120, 0.1);
}
.theme-surface {
  background: rgba(63, 60, 79, 0.32);
}
.theme-text {
  color: #fff;
}
.theme-muted {
  color: var(--muted);
}
.theme-border {
  border-color: rgba(255, 255, 255, 0.1);
}
html.light body {
  background: var(--paper);
  color: var(--primary);
}
html.light body::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(34, 32, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 32, 46, 0.035) 1px, transparent 1px);
}
html.light .theme-text {
  color: var(--primary) !important;
}
html.light .theme-muted {
  color: #6f6b78 !important;
}
html.light footer .theme-text {
  color: var(--primary) !important;
}
html.light footer .font-semibold.text-white:not(.theme-text) {
  color: var(--primary) !important;
}
html.light footer .theme-muted {
  color: var(--muted) !important;
}
html.light main .text-muted {
  color: #6f6b78 !important;
}
html.light .text-soft,
html.light .section-label,
html.light .stack-title,
html.light .timeline-year,
html.light .feature-number,
html.light .feature-icon,
html.light .interest-icon,
html.light .stat-card strong {
  color: var(--accent);
}
html.light .theme-border {
  border-color: rgba(34, 32, 46, 0.12) !important;
}
html.light .theme-surface {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(34, 32, 46, 0.1) !important;
}
html.light .theme-nav {
  background: rgba(244, 241, 245, 0.84) !important;
}
html.light .mobile-menu {
  background: rgba(244, 241, 245, 0.96) !important;
}
html.light .nav-link:hover {
  color: var(--primary);
  background: rgba(34, 32, 46, 0.045);
}
html.light .nav-link.active {
  color: var(--primary);
  background: rgba(92, 74, 120, 0.08);
}
html.light .nav-link.active::after {
  background: var(--accent);
}
html.light .nav-link.active i,
html.light .mobile-nav-link.active i {
  color: var(--accent);
}
html.light .mobile-nav-link.active {
  color: var(--primary);
  background: rgba(92, 74, 120, 0.08);
}
html.light .icon-button:hover,
html.light .social-button:hover,
html.light .filter-button:hover {
  color: var(--primary);
  border-color: rgba(92, 74, 120, 0.3);
  background: rgba(92, 74, 120, 0.1);
}
html.light .breadcrumb a:hover,
html.light .footer-link:hover {
  color: var(--accent);
}
html.light .btn-secondary {
  color: var(--primary);
  border-color: rgba(34, 32, 46, 0.12);
  background: rgba(255, 255, 255, 0.45);
}
html.light .icon-button {
  border-color: rgba(34, 32, 46, 0.12);
}
html.light .social-button {
  border-color: rgba(34, 32, 46, 0.1);
}
html.light .filter-button {
  border-color: rgba(34, 32, 46, 0.12);
}
html.light .filter-button.active {
  color: var(--primary);
}
html.light .stat-card span,
html.light .status-badge,
html.light .project-status {
  color: #6f6b78;
}
html.light .status-badge span,
html.light .project-status span {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(92, 74, 120, 0.35);
}
html.light .feature-card:hover .feature-icon,
html.light .interest-card:hover .interest-icon {
  background: rgba(92, 74, 120, 0.14);
}
html.light .nav-scrolled {
  background: rgba(244, 241, 245, 0.94);
  box-shadow: 0 14px 35px rgba(34, 32, 46, 0.08);
}
:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 3px;
}
html.light :focus-visible {
  outline-color: var(--accent);
}
img {
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .page-shell,
  .card-hover,
  .nav-link,
  .btn-primary,
  .btn-secondary,
  .social-button,
  .filter-button {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Home expansion */
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 150, 173, 0.24);
  background: rgba(181, 150, 173, 0.05);
}
.stat-card strong {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--soft);
  font-weight: 900;
}
.stat-card span {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-badge,
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(181, 150, 173, 0.18);
  background: rgba(181, 150, 173, 0.06);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-badge span,
.project-status span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: 0 0 10px rgba(181, 150, 173, 0.5);
}
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(63, 60, 79, 0.24);
  padding: 26px;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 150, 173, 0.28);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.17);
}
.feature-number {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--soft);
  padding-top: 4px;
}
.feature-icon,
.interest-icon {
  display: flex;
  height: 46px;
  width: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(181, 150, 173, 0.08);
  color: var(--soft);
  font-size: 1.05rem;
  transition:
    transform 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.feature-card:hover .feature-icon,
.interest-card:hover .interest-icon {
  transform: rotate(-4deg) scale(1.06);
  background: rgba(181, 150, 173, 0.14);
}
.stack-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(63, 60, 79, 0.2);
  padding: 22px;
}
.stack-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
}
.timeline-wrap {
  position: relative;
  padding-left: 25px;
}
.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: linear-gradient(var(--soft), rgba(181, 150, 173, 0.08));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 20px;
  padding: 0 0 28px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--soft);
  box-shadow:
    0 0 0 6px rgba(181, 150, 173, 0.07),
    0 0 18px rgba(181, 150, 173, 0.18);
}
.timeline-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  padding-top: 1px;
}
.interest-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(63, 60, 79, 0.2);
  padding: 25px;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.interest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 150, 173, 0.26);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(181, 150, 173, 0.18);
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(63, 60, 79, 0.62),
    rgba(92, 74, 120, 0.24)
  );
  padding: 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(181, 150, 173, 0.05) 48%,
    transparent 72%
  );
  z-index: -1;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.cta-orb.one {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -100px;
  background: radial-gradient(
    circle,
    rgba(181, 150, 173, 0.22),
    transparent 70%
  );
  filter: blur(10px);
}
.cta-orb.two {
  width: 220px;
  height: 220px;
  right: 100px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(92, 74, 120, 0.35), transparent 70%);
  filter: blur(8px);
}
.cta-watermark {
  position: absolute;
  right: 45px;
  bottom: 25px;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.035);
  transform: rotate(-12deg);
  z-index: -1;
}
html.light .stat-card,
html.light .feature-card,
html.light .stack-panel,
html.light .interest-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(34, 32, 46, 0.1);
}
html.light .feature-card:hover,
html.light .interest-card:hover {
  border-color: rgba(92, 74, 120, 0.24);
  box-shadow: 0 24px 55px rgba(34, 32, 46, 0.08);
}
html.light .cta-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.86),
    rgba(92, 74, 120, 0.1)
  );
  border-color: rgba(92, 74, 120, 0.16);
}
@media (max-width: 640px) {
  .stat-card {
    min-height: 72px;
    padding: 10px;
  }
  .stat-card span {
    font-size: 0.62rem;
  }
  .feature-card {
    grid-template-columns: 40px 1fr;
    padding: 21px;
  }
  .timeline-item {
    grid-template-columns: 78px 1fr;
    gap: 13px;
  }
  .cta-panel {
    padding: 28px;
    min-height: 360px;
  }
  .cta-watermark {
    right: -5px;
    bottom: 25px;
    font-size: 7rem;
  }
  .status-badge {
    align-self: flex-start;
  }
}
