/* ==========================================================
   KHAN ABDUL KALAM — CINEMATIC DEVELOPER PORTFOLIO
   Theme: Mocha Brown · Platinum Silver · Pale Lavender
   File: styles.css
========================================================== */


/* ==========================================================
   01. DESIGN TOKENS & RESET
========================================================== */

:root {
  color-scheme: dark;

  --bg: #171311;
  --bg-soft: #211b18;
  --bg-elevated: #2b2420;
  --bg-card: #302722;

  --purple: #A9866D;
  --purple-light: #D8C7E7;
  --purple-dark: #795F50;

  --cyan: #C8C8C8;
  --cyan-light: #EEE7E1;

  --pink: #C8B8D9;
  --orange: #B69A83;
  --green: #B8B0A8;

  --text: #f5f4ff;
  --text-soft: #b4b3c9;
  --text-muted: #77768e;

  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(200, 184, 217, 0.45);

  --gradient: linear-gradient(135deg, var(--purple), var(--cyan));
  --gradient-purple: linear-gradient(135deg, #A9866D, #bb76ff);
  --gradient-cyan: linear-gradient(135deg, #C8C8C8, #3c8bff);

  --font-main: "Manrope", sans-serif;
  --font-display: "DM Sans", sans-serif;

  --container: 1220px;
  --header-height: 82px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-purple: 0 0 40px rgba(169, 134, 109, 0.18);
  --shadow-cyan: 0 0 35px rgba(200, 200, 200, 0.13);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s ease;
}


/* LIGHT THEME */

body.light-theme {
  color-scheme: light;

  --bg: #F4F0ED;
  --bg-soft: #EBE4DF;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;

  --purple: #8D6F5D;
  --purple-light: #B9A3C9;
  --purple-dark: #604838;

  --cyan: #777777;
  --cyan-light: #555555;

  --pink: #C3B3D2;
  --orange: #A98770;
  --green: #7D887F;

  --text: #211B18;
  --text-soft: #5E534D;
  --text-muted: #82756E;

  --border: rgba(54, 41, 33, 0.12);
  --border-hover: rgba(141, 111, 93, 0.4);

  --gradient: linear-gradient(135deg, #8D6F5D, #B9A3C9);
  --gradient-purple: linear-gradient(135deg, #8D6F5D, #B9A3C9);
  --gradient-cyan: linear-gradient(135deg, #777777, #B9A3C9);

  --shadow-card: 0 20px 60px rgba(58, 43, 34, 0.10);
  --shadow-purple: 0 0 40px rgba(141, 111, 93, 0.12);
  --shadow-cyan: 0 0 35px rgba(119, 119, 119, 0.10);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 15px);
  scrollbar-color: #5e45c7 var(--bg);
  scrollbar-width: thin;
}


body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


body.menu-open {
  overflow: hidden;
}


body.intro-active {
  overflow: hidden;
}


::selection {
  color: #fff;
  background: rgba(169, 134, 109, 0.75);
}


::-webkit-scrollbar {
  width: 7px;
}


::-webkit-scrollbar-track {
  background: var(--bg);
}


::-webkit-scrollbar-thumb {
  background: #45367e;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  font: inherit;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}


button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
}


img {
  display: block;
  max-width: 100%;
}


ul,
ol {
  list-style: none;
}


button {
  border: 0;
  cursor: pointer;
}


section {
  position: relative;
  overflow: hidden;
}


.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}


.section {
  padding: 125px 0;
}


.section-header {
  max-width: 760px;
  margin-bottom: 65px;
}


.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}


.section-kicker::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--purple-light);
}


.section-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2.8px;
}


.section-title span {
  color: var(--purple-light);
}


.section-subtitle {
  max-width: 580px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}


.content-label {
  color: var(--purple-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}


.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 800;
  transition: gap var(--transition), color var(--transition);
}


.text-link:hover {
  gap: 18px;
  color: var(--cyan-light);
}


.text-link span {
  font-size: 18px;
}


/* ==========================================================
   02. BUTTON SYSTEM
========================================================== */

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 25px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}


.button:hover {
  transform: translateY(-4px);
}


.button span {
  font-size: 18px;
  transition: transform var(--transition);
}


.button:hover span {
  transform: translate(3px, -3px);
}


.button-primary {
  color: #211813;
  background: linear-gradient(
    135deg,
    #D8C7B8,
    #B9A3C9
  );
  box-shadow: 0 10px 30px rgba(169, 134, 109, 0.18);
}


.button-primary:hover {
  box-shadow: 0 15px 40px rgba(169, 134, 109, 0.30);
}


.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}


.button-secondary:hover {
  border-color: var(--purple-light);
  background: rgba(200, 184, 217, 0.07);
}


/* ==========================================================
   03. CINEMATIC INTRO
========================================================== */

.cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171311;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}


.cinematic-intro.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.intro-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}


.intro-glow-one {
  top: -160px;
  left: -100px;
  background: #A9866D;
}


.intro-glow-two {
  right: -120px;
  bottom: -170px;
  background: #B9A3C9;
}


.intro-content {
  position: relative;
  z-index: 2;
  width: min(90%, 700px);
  text-align: center;
  animation: introContentIn 1.2s var(--ease) both;
}


.intro-monogram {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 34px;
  border: 1px solid rgba(216, 199, 184, 0.4);
  border-radius: 50%;
  color: #D8C7B8;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -5px;
}


.intro-monogram span:last-child {
  color: #B9A3C9;
}


.intro-overline {
  color: #A99B91;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 5px;
  margin-bottom: 22px;
}


.intro-name {
  color: #F4ECE6;
  font-family: var(--font-display);
  font-size: clamp(27px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.15;
}


.intro-name span {
  color: #B9A3C9;
}


.intro-progress {
  width: min(260px, 70%);
  height: 2px;
  overflow: hidden;
  margin: 34px auto 18px;
  background: rgba(255, 255, 255, 0.12);
}


.intro-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #A9866D, #B9A3C9);
  transform: scaleX(0);
  transform-origin: left;
  animation: introProgress 2.5s ease forwards;
}


.intro-caption {
  color: #8E8178;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
}


.intro-skip {
  position: absolute;
  right: 35px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #C9B9AD;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}


.intro-skip span {
  font-size: 17px;
}


@keyframes introContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes introProgress {
  to {
    transform: scaleX(1);
  }
}
/* ==========================================================
   04. SCROLL PROGRESS
========================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10002;
  width: 0;
  height: 3px;
  background: var(--gradient);
  box-shadow: 0 0 15px rgba(169, 134, 109, 0.55);
  pointer-events: none;
}


/* ==========================================================
   05. HEADER & NAVIGATION
========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(23, 19, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(23, 19, 17, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

body.light-theme .site-header {
  background: rgba(244, 240, 237, 0.82);
}

body.light-theme .site-header.scrolled {
  background: rgba(244, 240, 237, 0.97);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(169, 134, 109, 0.5);
  border-radius: 12px;
  background: rgba(169, 134, 109, 0.12);
  color: var(--purple-light);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1.5px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.brand:hover .brand-mark {
  transform: rotate(-5deg);
  box-shadow: var(--shadow-purple);
}

.brand-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.brand-name > span {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--purple-light);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--purple-light);
  background: rgba(200, 184, 217, 0.07);
  transform: rotate(15deg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--gradient);
  color: #211813;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.nav-cta span {
  transition: transform var(--transition);
}

.nav-cta:hover span {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform var(--transition),
    width var(--transition);
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}


/* ==========================================================
   06. HERO SECTION
========================================================== */

.hero {
  display: flex;
  align-items: center;
  min-height: 850px;
  min-height: min(950px, 100svh);
  padding: 155px 0 105px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 76% 43%,
      rgba(121, 95, 80, 0.09),
      transparent 42%
    ),
    var(--bg);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  transition: transform 0.4s ease;
}

.hero-orb-purple {
  top: 10%;
  right: -12%;
  width: 520px;
  height: 520px;
  background: rgba(169, 134, 109, 0.12);
}

.hero-orb-cyan {
  right: 25%;
  bottom: -24%;
  width: 370px;
  height: 370px;
  background: rgba(200, 200, 200, 0.055);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 65px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 9px 14px;
  border: 1px solid rgba(200, 184, 217, 0.17);
  border-radius: 40px;
  background: rgba(200, 184, 217, 0.045);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
}

.status-indicator {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(184, 176, 168, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 176, 168, 0.4);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(184, 176, 168, 0);
  }
}

.hero-eyebrow {
  margin-bottom: 16px;
  color: var(--purple-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(66px, 8.4vw, 112px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -7px;
}

.hero-title > span {
  display: block;
}

.hero-title > span:nth-child(2) {
  margin-top: 9px;
}

.hero-title .hero-title-accent {
  margin-top: 9px;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.title-period {
  color: var(--purple-light);
  -webkit-text-fill-color: var(--purple-light);
}

.hero-role-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  margin-top: 27px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.role-bracket {
  color: var(--purple-light);
}

#typingText {
  color: var(--text-soft);
}

.typing-cursor {
  width: 2px;
  height: 20px;
  background: var(--purple-light);
  animation: cursorBlink 0.8s steps(2, start) infinite;
}

@keyframes cursorBlink {
  to {
    visibility: hidden;
  }
}

.hero-description {
  max-width: 520px;
  margin-top: 17px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  transition:
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    background var(--transition);
}

.social-icon:hover {
  color: var(--purple-light);
  border-color: var(--purple-light);
  background: rgba(200, 184, 217, 0.055);
  transform: translateY(-4px);
}

.social-divider {
  width: 1px;
  height: 24px;
  margin: 0 5px;
  background: var(--border);
}

.hero-location {
  color: var(--text-muted);
  font-size: 10px;
}


/* HERO PORTRAIT */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 530px;
  perspective: 1000px;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(390px, 82%);
  aspect-ratio: 0.78;
  padding: 8px;
  border: 1px solid rgba(200, 184, 217, 0.35);
  border-radius: 190px 190px 34px 34px;
  background: linear-gradient(
    155deg,
    rgba(169, 134, 109, 0.22),
    rgba(200, 200, 200, 0.04) 58%,
    rgba(169, 134, 109, 0.15)
  );
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.38),
    0 0 50px rgba(169, 134, 109, 0.11);
  transform: rotate(2deg);
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s ease;
}

.portrait-frame:hover {
  transform: rotate(0deg) translateY(-7px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 65px rgba(169, 134, 109, 0.19);
}

.portrait-glow {
  position: absolute;
  inset: -15px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient);
  filter: blur(65px);
  opacity: 0.16;
  pointer-events: none;
}

.portrait-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 184px 184px 27px 27px;
  background:
    radial-gradient(circle at 50% 35%, #31245c, transparent 55%),
    #11111f;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.8s var(--ease);
}

.portrait-frame:hover .portrait-image {
  transform: scale(1.045);
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 19, 17, 0.72),
    transparent 48%
  );
  pointer-events: none;
}

.portrait-label {
  position: absolute;
  right: -26px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.portrait-label-line {
  width: 30px;
  height: 1px;
  background: var(--purple-light);
}

.portrait-orbit {
  position: absolute;
  border: 1px solid rgba(200, 184, 217, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 470px;
  height: 470px;
}

.orbit-two {
  width: 560px;
  height: 560px;
  border-style: dashed;
  opacity: 0.45;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(38, 31, 27, 0.85);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  animation: floatChip 5s ease-in-out infinite;
}

.chip-top {
  top: 17%;
  right: -3%;
}

.chip-bottom {
  bottom: 16%;
  left: -7%;
  animation-delay: -2.5s;
}

.chip-symbol {
  color: var(--purple-light);
  font-size: 18px;
}

.cyan-symbol {
  color: var(--cyan-light);
}

@keyframes floatChip {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.visual-coordinate {
  position: absolute;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.coordinate-top {
  top: 4%;
  left: 2%;
}

.coordinate-bottom {
  right: 0;
  bottom: 4%;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.5px;
  transform: translateX(-50%);
}

.scroll-cue-line {
  width: 32px;
  height: 1px;
  background: var(--purple-light);
}

.hero-index {
  position: absolute;
  right: 35px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 9px;
}

.hero-index-line {
  width: 35px;
  height: 1px;
  background: var(--border);
}
/* ==========================================================
   07. PROFILE SELECTOR
========================================================== */

.profile-selector {
  overflow: hidden;
  padding: 125px 0 115px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      180deg,
      rgba(169, 134, 109, 0.035),
      transparent 55%,
      rgba(200, 200, 200, 0.025)
    ),
    var(--bg-soft);
}

.profile-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.profile-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 550px;
  height: 250px;
  border-radius: 50%;
  background: rgba(169, 134, 109, 0.11);
  filter: blur(110px);
  transform: translateX(-50%);
}

.profile-heading {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.profile-heading .section-kicker {
  justify-content: center;
}

.profile-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 75px);
  font-weight: 700;
  letter-spacing: -3.5px;
  line-height: 1.12;
}

.profile-title span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.profile-description {
  max-width: 500px;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 30px 15px 26px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition:
    transform 0.45s var(--ease),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 10%,
    var(--card-glow, rgba(169, 134, 109, 0.1)),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.profile-card:hover {
  z-index: 2;
  transform: translateY(-12px) scale(1.025);
  border-color: var(--card-border, var(--border-hover));
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.24);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-developer {
  --card-glow: rgba(169, 134, 109, 0.16);
  --card-border: rgba(169, 134, 109, 0.5);
}

.profile-creator {
  --card-glow: rgba(200, 200, 200, 0.12);
  --card-border: rgba(200, 200, 200, 0.45);
}

.profile-explorer {
  --card-glow: rgba(182, 154, 131, 0.12);
  --card-border: rgba(182, 154, 131, 0.45);
}

.profile-story {
  --card-glow: rgba(200, 184, 217, 0.12);
  --card-border: rgba(200, 184, 217, 0.45);
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transition:
    border-radius 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}

.profile-card:hover .profile-avatar {
  border-radius: 50%;
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 0 30px rgba(169, 134, 109, 0.2);
}

.avatar-purple {
  background: linear-gradient(145deg, #8e72ff, #4420ac);
}

.avatar-cyan {
  background: linear-gradient(145deg, #4be7f4, #187cbb);
}

.avatar-orange {
  background: linear-gradient(145deg, #ffc080, #d35d37);
}

.avatar-pink {
  background: linear-gradient(145deg, #ff9fda, #a2389a);
}

.avatar-letter {
  font-family: var(--font-display);
  font-size: 65px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.avatar-decoration {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  font-weight: 800;
}

.profile-card h3 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.profile-card > p {
  min-height: 22px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.8;
}

.profile-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  transition: color var(--transition);
}

.profile-card-action span {
  color: var(--purple-light);
  transition: transform var(--transition);
}

.profile-card:hover .profile-card-action {
  color: var(--text);
}

.profile-card:hover .profile-card-action span {
  transform: translate(3px, -3px);
}

.profile-footnote {
  margin-top: 38px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-align: center;
}


/* ==========================================================
   08. ABOUT
========================================================== */

.about {
  overflow: hidden;
  background: var(--bg);
}

.about::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -300px;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(169, 134, 109, 0.05);
  filter: blur(110px);
}

.about .section-header {
  margin-bottom: 70px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 100px;
}

.about-visual {
  position: relative;
  width: 100%;
  max-width: 410px;
  margin-inline: auto;
}

.about-image-frame {
  position: relative;
  aspect-ratio: 0.83;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(169, 134, 109, 0.32);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(169, 134, 109, 0.15),
    rgba(200, 200, 200, 0.035)
  );
}

.about-image-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  pointer-events: none;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  background: #11111f;
}

.about-image-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.about-image-caption span:last-child {
  color: var(--purple-light);
}

.about-decoration {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.decoration-square {
  top: -24px;
  right: -24px;
  width: 115px;
  height: 115px;
  border-top: 2px solid var(--purple-light);
  border-right: 2px solid var(--purple-light);
  border-radius: 0 20px 0 0;
}

.decoration-circle {
  bottom: -28px;
  left: -28px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(169, 134, 109, 0.45);
  border-radius: 50%;
}

.about-stamp {
  position: absolute;
  top: 55px;
  left: -42px;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(200, 200, 200, 0.35);
  border-radius: 50%;
  background: rgba(11, 11, 23, 0.94);
  box-shadow: var(--shadow-cyan);
  color: var(--purple-light);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
  transform: rotate(-12deg);
}

.about-stamp strong {
  margin: 3px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 10px;
}

.about-content h3 {
  margin-bottom: 25px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 51px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -2px;
}

.about-content h3 span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.about-content > p:not(.content-label) {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 2;
}

.about-facts {
  display: grid;
  gap: 0;
  margin: 29px 0;
  border-top: 1px solid var(--border);
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.fact-number {
  padding-top: 2px;
  color: var(--purple-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.about-fact h4 {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.about-fact p {
  color: var(--text-muted);
  font-size: 11px;
}
/* ==========================================================
   09. PROJECTS
========================================================== */

.projects {
  overflow: hidden;
  background: var(--bg-soft);
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  right: -220px;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(200, 200, 200, 0.035);
  filter: blur(100px);
}

.projects .section-header {
  max-width: 820px;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 440px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.project-feature:hover {
  border-color: rgba(169, 134, 109, 0.35);
  box-shadow: var(--shadow-purple);
}

.project-feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
  overflow: hidden;
}

.chess-visual {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(169, 134, 109, 0.22),
      transparent 65%
    ),
    linear-gradient(145deg, #29211D, #171311);
}

.project-visual-top {
  position: absolute;
  top: 24px;
  right: 25px;
  left: 25px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.project-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 410px;
}

.chess-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 58px);
  grid-template-rows: repeat(4, 58px);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(-7deg);
  transition: transform 0.6s var(--ease);
}

.project-feature:hover .chess-board {
  transform: rotate(0deg) scale(1.05);
}

.chess-board span {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 33px;
}

.chess-board span:nth-child(8n + 1),
.chess-board span:nth-child(8n + 3),
.chess-board span:nth-child(8n + 6),
.chess-board span:nth-child(8n + 8) {
  background: #B69A83;
}

.chess-board span:nth-child(8n + 2),
.chess-board span:nth-child(8n + 4),
.chess-board span:nth-child(8n + 5),
.chess-board span:nth-child(8n + 7) {
  background: #3C302A;
}

.project-art-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(169, 134, 109, 0.2);
  filter: blur(80px);
}

.project-visual-index {
  position: absolute;
  bottom: 23px;
  left: 25px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
}

.project-feature-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 45px;
}

.project-feature-content h3 {
  margin-bottom: 15px;
  font-family: var(--font-display);
  font-size: clamp(31px, 3.5vw, 43px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.7px;
}

.project-feature-content > p:not(.content-label) {
  max-width: 420px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 2;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  transform-style: preserve-3d;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.project-card:hover {
  border-color: rgba(169, 134, 109, 0.42);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  background: #302722;
}

.project-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  min-height: 190px;
  overflow: hidden;
}

.project-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(8, 8, 16, 0.2)
  );
  pointer-events: none;
}

.project-card-number {
  position: absolute;
  top: 17px;
  left: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}


/* CALENDAR PROJECT */

.calendar-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 200, 200, 0.15), transparent 60%),
    linear-gradient(145deg, #3C302A, #171311);
}

.calendar-art {
  position: relative;
  width: 67%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(30, 24, 21, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
  transition: transform 0.5s var(--ease);
}

.project-card:hover .calendar-art {
  transform: rotate(0) scale(1.04);
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--purple-light);
  font-size: 8px;
  font-weight: 800;
}

.calendar-month {
  margin: 13px 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calendar-days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 8px;
}

.calendar-days span:nth-child(5) {
  background: var(--purple-light);
  color: #211813;
}


/* TRAVELO PROJECT */

.travelo-visual {
  background:
    radial-gradient(circle at 65% 20%, rgba(182, 154, 131, 0.17), transparent 40%),
    linear-gradient(145deg, #332923, #171311);
}

.travelo-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
}

.travelo-sun {
  position: absolute;
  top: 23%;
  right: 22%;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffc08a;
  box-shadow: 0 0 45px rgba(182, 154, 131, 0.4);
}

.travelo-mountain {
  position: absolute;
  right: -5%;
  bottom: 0;
  left: -5%;
  height: 62%;
  clip-path: polygon(0 100%, 0 65%, 28% 8%, 53% 65%, 72% 25%, 100% 70%, 100% 100%);
}

.mountain-one {
  background: #6B596D;
  transform: translateY(10px);
}

.mountain-two {
  height: 43%;
  background: #3C302A;
  transform: scaleX(-1);
}

.travelo-road {
  position: absolute;
  bottom: -40%;
  left: 38%;
  width: 28%;
  height: 90%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
}

.travelo-label {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}


/* NAVIGATION PROJECT */

.navigation-visual {
  background:
    radial-gradient(circle at 45% 50%, rgba(169, 134, 109, 0.2), transparent 60%),
    #211b18;
}

.navigation-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(169, 134, 109, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 134, 109, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: rotate(-10deg);
}

.map-route {
  position: absolute;
  top: 40%;
  left: 24%;
  width: 52%;
  height: 28%;
  border-top: 3px dashed var(--purple-light);
  border-right: 3px dashed var(--purple-light);
  border-radius: 0 35px 0 0;
  filter: drop-shadow(0 0 6px rgba(200, 200, 200, 0.45));
  transform: rotate(-10deg);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  transform: rotate(-45deg);
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.pin-start {
  top: 26%;
  left: 20%;
}

.pin-end {
  right: 18%;
  bottom: 24%;
  background: var(--cyan);
  color: #071018;
}


/* WEATHER PROJECT */

.weather-visual {
  background:
    radial-gradient(circle at 60% 45%, rgba(200, 200, 200, 0.14), transparent 55%),
    linear-gradient(145deg, #3C302A, #171311);
}

.weather-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
}

.weather-sun {
  position: absolute;
  top: 27%;
  left: 37%;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ffd98a;
  box-shadow: 0 0 40px rgba(255, 217, 138, 0.3);
}

.weather-cloud {
  position: absolute;
  top: 44%;
  left: 44%;
  display: flex;
  align-items: center;
}

.weather-cloud span {
  display: block;
  width: 27px;
  height: 27px;
  margin-left: -5px;
  border-radius: 50%;
  background: #d6e9fa;
}

.weather-cloud span:first-child {
  width: 36px;
  height: 36px;
}

.weather-cloud span:last-child {
  width: 23px;
  height: 23px;
}

.weather-art > p {
  position: absolute;
  bottom: 23px;
  left: 20px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.weather-temperature {
  position: absolute;
  right: 20px;
  bottom: 13px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
}


/* PORTFOLIO PROJECT */

.portfolio-visual {
  background:
    radial-gradient(circle at 50% 45%, rgba(169, 134, 109, 0.25), transparent 55%),
    linear-gradient(145deg, #30251F, #171311);
}

.portfolio-art {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
}

.portfolio-art-k {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -5px;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.portfolio-art-line {
  width: 65px;
  height: 2px;
  margin: 10px 0;
  background: var(--gradient);
}

.portfolio-art-caption {
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.5px;
}


/* PROJECT CARD CONTENT */

.project-card-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.project-card-content .content-label {
  margin-bottom: 10px;
  font-size: 9px;
}

.project-card-content h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.project-card-content > p:not(.content-label) {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.9;
}

.project-card-content .project-tags {
  margin-top: auto;
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  transition: color var(--transition);
}

.project-link span {
  color: var(--purple-light);
  transition: transform var(--transition);
}

.project-link:hover {
  color: var(--purple-light);
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.projects-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 45px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.projects-footer > p {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}
/* ==========================================================
   10. SKILL UNIVERSE
========================================================== */

.skills {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(169, 134, 109, 0.045), transparent 48%),
    var(--bg);
}

.skills .section-header {
  margin-inline: auto;
  text-align: center;
}

.skills .section-kicker {
  justify-content: center;
}

.skills .section-subtitle {
  margin-inline: auto;
}

.skills-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.skills-orb {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(169, 134, 109, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 50px rgba(169, 134, 109, 0.015),
    0 0 0 100px rgba(200, 200, 200, 0.012);
}

.skills-universe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 30px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 45px 20px;
}

.skills-universe::before,
.skills-universe::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 65%;
  border: 1px solid rgba(169, 134, 109, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
}

.skills-universe::after {
  width: 65%;
  height: 82%;
  border-color: rgba(200, 200, 200, 0.09);
  transform: translate(-50%, -50%) rotate(25deg);
}

.skill-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 135px;
  min-height: 135px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(38, 31, 27, 0.84);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition:
    transform 0.4s var(--ease),
    border-color var(--transition),
    box-shadow var(--transition);
}

.skill-node:hover {
  z-index: 5;
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(169, 134, 109, 0.55);
  box-shadow: var(--shadow-purple);
}

.skill-node-icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 16px;
  background: rgba(169, 134, 109, 0.12);
  color: var(--purple-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  transition:
    background var(--transition),
    color var(--transition);
}

.skill-node:hover .skill-node-icon {
  background: var(--gradient);
  color: #171311;
}

.skill-node-name {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.node-css .skill-node-icon,
.node-sql .skill-node-icon {
  color: var(--cyan);
  background: rgba(200, 200, 200, 0.1);
}

.node-python .skill-node-icon,
.node-ui .skill-node-icon {
  color: var(--orange);
  background: rgba(182, 154, 131, 0.1);
}

.node-git .skill-node-icon {
  color: var(--pink);
  background: rgba(200, 184, 217, 0.1);
}

.node-data .skill-node-icon {
  color: var(--green);
  background: rgba(184, 176, 168, 0.1);
}

.skill-universe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(169, 134, 109, 0.2);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(169, 134, 109, 0.15),
    rgba(23, 19, 17, 0.92) 70%
  );
  box-shadow:
    0 0 50px rgba(169, 134, 109, 0.12),
    inset 0 0 35px rgba(200, 200, 200, 0.04);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.core-ring {
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(169, 134, 109, 0.3);
  border-radius: 50%;
  animation: orbitSpin 25s linear infinite;
}

.core-ring-two {
  inset: -23px;
  border-style: solid;
  border-color: rgba(200, 200, 200, 0.12);
  animation-duration: 35s;
  animation-direction: reverse;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.core-monogram {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -4px;
}

.core-caption {
  margin-top: 6px;
  color: var(--purple-light);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2px;
}

.skills-note {
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(650px, 100%);
  margin: 50px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.skills-note-symbol {
  color: var(--purple-light);
  font-size: 21px;
}

.skills-note p {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.9;
}


/* ==========================================================
   11. JOURNEY & TIMELINE
========================================================== */

.journey {
  overflow: hidden;
  background: var(--bg-soft);
}

.journey::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -300px;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(200, 200, 200, 0.035);
  filter: blur(120px);
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 90px;
}

.journey-intro {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.journey-number {
  display: inline-block;
  margin-bottom: 25px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--purple-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.journey-intro h3 {
  margin-bottom: 23px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -2px;
}

.journey-intro h3 span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.journey-intro > p {
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 2;
}

.journey-timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 31px;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 7px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--purple),
    rgba(200, 200, 200, 0.4),
    transparent
  );
}

.timeline-entry {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(38, 31, 27, 0.65);
  transition:
    border-color var(--transition),
    transform var(--transition),
    background var(--transition);
}

.timeline-entry:hover {
  transform: translateX(5px);
  border-color: rgba(169, 134, 109, 0.35);
  background: rgba(38, 31, 27, 0.95);
}

.timeline-marker {
  position: absolute;
  top: 33px;
  left: -31px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg-soft);
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 0 4px rgba(200, 200, 200, 0.1);
}

.timeline-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.timeline-category {
  color: var(--purple-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.timeline-index {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.timeline-entry h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.timeline-organization {
  margin-bottom: 15px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
}

.timeline-entry > p:not(.timeline-organization) {
  margin-bottom: 17px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.9;
}

.timeline-status {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid rgba(200, 200, 200, 0.15);
  border-radius: 6px;
  background: rgba(200, 200, 200, 0.04);
  color: var(--purple-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}
/* ==========================================================
   12. CONTACT
========================================================== */

.contact {
  overflow: hidden;
  background: var(--bg);
}

.contact-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.contact-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
}

.contact-glow-one {
  top: -200px;
  left: -200px;
  background: rgba(169, 134, 109, 0.1);
}

.contact-glow-two {
  right: -250px;
  bottom: -250px;
  background: rgba(200, 200, 200, 0.07);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 100px;
}

.contact-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(49px, 6vw, 75px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -4px;
}

.contact-title span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.contact-description {
  max-width: 490px;
  margin-top: 25px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 2;
}

.contact-portrait-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  max-width: 360px;
  margin-top: 30px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-portrait {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border: 2px solid rgba(200, 184, 217, 0.45);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.contact-portrait-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-portrait-copy span {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.contact-portrait-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
}

.contact-main-button {
  margin-top: 30px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.contact-detail-card:hover {
  transform: translateX(5px);
  border-color: rgba(169, 134, 109, 0.4);
  background: rgba(169, 134, 109, 0.045);
}

.contact-detail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(169, 134, 109, 0.18);
  border-radius: 13px;
  background: rgba(169, 134, 109, 0.1);
  color: var(--purple-light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.contact-detail-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.contact-detail-copy > span {
  color: var(--text-muted);
  font-size: 10px;
}

.contact-detail-copy strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.contact-detail-arrow {
  color: var(--purple-light);
  font-size: 16px;
  transition: transform var(--transition);
}

.contact-detail-card:hover .contact-detail-arrow {
  transform: translate(3px, -3px);
}


/* ==========================================================
   13. CINEMATIC OUTRO
========================================================== */

.outro {
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 130px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse at 50% 48%,
      rgba(169, 134, 109, 0.1),
      transparent 50%
    ),
    #171311;
}

.outro-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.outro-orb {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(169, 134, 109, 0.16);
  filter: blur(110px);
  transform: translateX(-50%);
  animation: outroPulse 5s ease-in-out infinite alternate;
}

.outro-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

@keyframes outroPulse {
  from {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.5;
  }

  to {
    transform: translateX(-50%) scale(1.25);
    opacity: 1;
  }
}

.outro-container {
  text-align: center;
}

.outro-overline {
  color: var(--purple-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 4px;
}

.outro-monogram {
  margin: 22px 0 25px;
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -7px;
}

.outro-monogram span {
  color: var(--purple-light);
}

.outro-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.5vw, 77px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -4px;
}

.outro-title > span:first-child {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.outro-period {
  color: var(--purple-light);
}

.outro-description {
  max-width: 490px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 2;
}

.outro-button {
  margin-top: 32px;
}

.outro-end-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 75px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.outro-end-line {
  width: 35px;
  height: 1px;
  background: var(--border-hover);
}


/* ==========================================================
   14. FOOTER
========================================================== */

.site-footer {
  padding: 26px 0;
  background: #110E0C;
}

body.light-theme .site-footer {
  background: #E8E0DA;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand .brand-mark {
  width: 37px;
  height: 37px;
  font-size: 14px;
}

.footer-brand .brand-name {
  font-size: 13px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 9px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--purple-light);
}


/* ==========================================================
   15. BACK TO TOP
========================================================== */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(169, 134, 109, 0.35);
  border-radius: 13px;
  background: rgba(38, 31, 27, 0.92);
  color: var(--purple-light);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    border-color var(--transition);
  backdrop-filter: blur(12px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-cyan);
}


/* ==========================================================
   16. SCROLL REVEAL ANIMATIONS
========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
/* ==========================================================
   17. LIGHT THEME SUPPORT
========================================================== */

body.light-theme {
  color-scheme: light;

  --bg: #F5F0EB;
  --bg-soft: #EAE1D9;
  --bg-elevated: #fff;
  --bg-card: #fff;

  --text: #211B18;
  --text-soft: #5E534D;
  --text-muted: #82756E;

  --border: rgba(54, 41, 33, 0.12);
  --border-hover: rgba(141, 111, 93, 0.4);

  --shadow-card: 0 20px 60px rgba(58, 43, 34, 0.10);
  --shadow-purple: 0 0 40px rgba(141, 111, 93, 0.12);
  --shadow-cyan: 0 0 35px rgba(119, 119, 119, 0.10);
}

body.light-theme .site-header {
  background: rgba(244, 240, 237, 0.84);
}

body.light-theme .site-header.scrolled {
  background: rgba(244, 240, 237, 0.97);
}

body.light-theme .nav-link {
  color: var(--text-soft);
}

body.light-theme .nav-link.active,
body.light-theme .nav-link:hover {
  color: var(--text);
}

body.light-theme .hero {
  background: var(--bg);
}

body.light-theme .profile-selector,
body.light-theme .projects,
body.light-theme .journey {
  background: var(--bg-soft);
}

body.light-theme .profile-card,
body.light-theme .project-card,
body.light-theme .timeline-entry,
body.light-theme .contact-detail-card,
body.light-theme .skills-note {
  background-color: rgba(255, 255, 255, 0.7);
}

body.light-theme .profile-card:hover,
body.light-theme .project-card:hover,
body.light-theme .timeline-entry:hover {
  background-color: #fff;
}

body.light-theme .skill-node {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .portrait-frame {
  background: linear-gradient(
    145deg,
    rgba(169, 134, 109, 0.2),
    rgba(200, 200, 200, 0.08)
  );
}

body.light-theme .floating-chip {
  background: rgba(255, 255, 255, 0.94);
}

body.light-theme .project-feature {
  background: #fff;
}

body.light-theme .outro {
  background: #211B18;
}

body.light-theme .site-footer {
  background: #E7DED6;
}


/* ==========================================================
   18. RESPONSIVE — SMALL DESKTOP / LAPTOP
========================================================== */

@media (max-width: 1150px) {

  :root {
    --container: 1000px;
  }

  .nav-links {
    gap: 17px;
  }

  .navbar {
    gap: 20px;
  }

  .hero-container {
    gap: 35px;
  }

  .hero-title {
    font-size: clamp(65px, 8.5vw, 95px);
  }

  .hero-visual {
    min-height: 490px;
  }

  .portrait-frame {
    width: min(340px, 82%);
  }

  .orbit-one {
    width: 420px;
    height: 420px;
  }

  .orbit-two {
    width: 470px;
    height: 470px;
  }

  .about-grid {
    gap: 65px;
  }

  .journey-layout {
    gap: 55px;
  }

  .contact-layout {
    gap: 55px;
  }

  .profile-grid {
    gap: 15px;
  }

  .project-grid {
    gap: 17px;
  }

}


/* ==========================================================
   19. RESPONSIVE — TABLETS
========================================================== */

@media (max-width: 900px) {

  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 44px, var(--container));
  }

  .section {
    padding: 95px 0;
  }

  .navbar {
    min-height: var(--header-height);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    padding: 15px 25px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    background: rgba(23, 19, 17, 0.98);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
  }

  .nav-link::after {
    display: none;
  }

  body.light-theme .nav-links {
    background: rgba(244, 240, 237, 0.98);
  }

  .hero {
    min-height: auto;
    padding: 140px 0 110px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero-title {
    font-size: clamp(75px, 13vw, 110px);
  }

  .hero-description {
    max-width: 590px;
  }

  .hero-visual {
    min-height: 490px;
  }

  .portrait-frame {
    width: 325px;
  }

  .orbit-one {
    width: 410px;
    height: 410px;
  }

  .orbit-two {
    width: 465px;
    height: 465px;
  }

  .chip-top {
    left: calc(50% - 230px);
  }

  .chip-bottom {
    right: calc(50% - 240px);
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }

  .about-stamp {
    left: -23px;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature-visual,
  .project-art {
    min-height: 360px;
  }

  .project-feature-content {
    padding: 35px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin-inline: auto;
  }

  .profile-card {
    padding: 28px 16px;
  }

  .skills-universe {
    gap: 22px;
  }

  .skill-node {
    width: 112px;
    min-height: 112px;
    border-radius: 19px;
  }

  .skill-node-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .skill-universe-core {
    width: 135px;
    height: 135px;
  }

  .core-monogram {
    font-size: 35px;
  }

  .journey-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .journey-intro {
    position: relative;
    top: auto;
    max-width: 620px;
  }

  .journey-intro h3 br {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-content {
    max-width: 650px;
  }

  .contact-details {
    max-width: 650px;
  }

  .footer-container {
    flex-wrap: wrap;
  }

  .footer-copyright {
    order: 3;
    width: 100%;
    text-align: left;
  }

}
/* ==========================================================
   20. RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 600px) {

  :root {
    --header-height: 66px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 76px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(38px, 10vw, 54px);
    letter-spacing: -2px;
  }

  .section-subtitle {
    margin-top: 16px;
    font-size: 12px;
  }

  .section-kicker {
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .section-kicker::before {
    width: 17px;
  }

  .button {
    min-height: 49px;
    padding: 13px 17px;
    font-size: 11px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 13px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta {
    display: none;
  }

  .theme-toggle,
  .menu-toggle {
    width: 37px;
    height: 37px;
  }


  /* INTRO */

  .intro-monogram {
    margin-bottom: 28px;
    font-size: 76px;
    letter-spacing: -7px;
  }

  .intro-overline {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  .intro-name {
    font-size: clamp(27px, 8vw, 40px);
    letter-spacing: -1.6px;
  }

  .intro-progress {
    margin-top: 28px;
  }

  .intro-caption {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  .intro-skip {
    right: 18px;
    bottom: 20px;
  }


  /* HERO */

  .hero {
    padding: 125px 0 80px;
  }

  .hero-container {
    gap: 38px;
  }

  .availability-badge {
    margin-bottom: 23px;
    padding: 8px 11px;
    font-size: 9px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: clamp(59px, 16vw, 90px);
    letter-spacing: -4px;
  }

  .hero-role-line {
    margin-top: 23px;
    font-size: 15px;
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.9;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 25px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-socials {
    gap: 9px;
    margin-top: 27px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .hero-location {
    font-size: 9px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .portrait-frame {
    width: min(275px, 75%);
    border-radius: 145px 145px 25px 25px;
  }

  .portrait-image-wrap {
    border-radius: 140px 140px 19px 19px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 380px;
    height: 380px;
  }

  .floating-chip {
    gap: 7px;
    padding: 10px 11px;
    font-size: 8px;
  }

  .chip-top {
    top: 45px;
    left: 0;
  }

  .chip-bottom {
    right: 0;
    bottom: 45px;
  }

  .chip-symbol {
    font-size: 15px;
  }

  .visual-coordinate {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .coordinate-top {
    top: 16px;
    right: 0;
  }

  .coordinate-bottom {
    bottom: 15px;
    left: 0;
  }

  .hero-scroll-cue {
    bottom: 25px;
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .hero-index {
    display: none;
  }


  /* PROFILE SELECTOR */

  .profile-selector {
    padding: 80px 0;
  }

  .profile-heading {
    margin-bottom: 38px;
  }

  .profile-title {
    font-size: clamp(40px, 10vw, 56px);
    letter-spacing: -2px;
  }

  .profile-description {
    font-size: 12px;
  }

  .profile-grid {
    gap: 12px;
  }

  .profile-card {
    padding: 20px 8px 18px;
    border-radius: 16px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 17px;
  }

  .avatar-letter {
    font-size: 49px;
  }

  .avatar-decoration {
    right: 4px;
    bottom: 2px;
    font-size: 15px;
  }

  .profile-card h3 {
    font-size: 12px;
  }

  .profile-card > p {
    min-height: 34px;
    font-size: 8px;
  }

  .profile-card-action {
    gap: 4px;
    margin-top: 12px;
    font-size: 8px;
  }

  .profile-footnote {
    font-size: 7px;
    letter-spacing: 1.5px;
    line-height: 1.8;
  }


  /* ABOUT */

  .about .section-header {
    margin-bottom: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    width: min(310px, 86%);
  }

  .about-stamp {
    top: 40px;
    left: -25px;
    width: 75px;
    height: 75px;
  }

  .about-stamp strong {
    font-size: 8px;
  }

  .decoration-square {
    right: -15px;
    width: 75px;
    height: 75px;
  }

  .decoration-circle {
    left: -15px;
    width: 70px;
    height: 70px;
  }

  .about-content h3 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .about-content > p:not(.content-label) {
    font-size: 11px;
  }


  /* PROJECTS */

  .project-feature {
    border-radius: 20px;
  }

  .project-feature-visual,
  .project-art {
    min-height: 290px;
  }

  .chess-board {
    grid-template-columns: repeat(4, 43px);
    grid-template-rows: repeat(4, 43px);
  }

  .chess-board span {
    font-size: 25px;
  }

  .project-visual-top {
    top: 17px;
    right: 16px;
    left: 16px;
    font-size: 7px;
  }

  .project-visual-index {
    left: 17px;
    bottom: 15px;
  }

  .project-feature-content {
    padding: 25px 21px;
  }

  .project-feature-content h3 {
    font-size: 33px;
  }

  .project-feature-content > p:not(.content-label) {
    font-size: 11px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card-visual {
    aspect-ratio: 1.55;
  }

  .project-card-content {
    padding: 22px;
  }

  .project-card-content h3 {
    font-size: 21px;
  }

  .project-card-content > p:not(.content-label) {
    font-size: 11px;
  }

  .projects-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 32px;
    padding-top: 23px;
  }

  .projects-footer > p {
    font-size: 8px;
    line-height: 1.8;
  }


  /* SKILLS */

  .skills-universe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 15px 0;
  }

  .skills-universe::before,
  .skills-universe::after {
    display: none;
  }

  .skill-node {
    width: 100%;
    min-height: 105px;
    max-width: 145px;
    border-radius: 17px;
  }

  .skill-node-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 17px;
  }

  .skill-node-name {
    font-size: 9px;
  }

  .skill-universe-core {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 125px;
    height: 125px;
    margin: 20px 0;
    transform: none;
  }

  .core-ring {
    inset: -8px;
  }

  .core-ring-two {
    inset: -17px;
  }

  .core-monogram {
    font-size: 33px;
  }

  .skills-note {
    gap: 11px;
    margin-top: 32px;
    padding: 15px;
  }

  .skills-note p {
    font-size: 9px;
  }


  /* JOURNEY */

  .journey-layout {
    gap: 38px;
  }

  .journey-intro h3 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }

  .journey-timeline {
    gap: 15px;
    padding-left: 24px;
  }

  .journey-timeline::before {
    left: 5px;
  }

  .timeline-marker {
    left: -24px;
    width: 11px;
    height: 11px;
  }

  .timeline-entry {
    padding: 21px 17px;
    border-radius: 15px;
  }

  .timeline-marker {
    top: 26px;
  }

  .timeline-entry h3 {
    font-size: 18px;
  }

  .timeline-entry > p:not(.timeline-organization) {
    font-size: 10px;
  }


  /* CONTACT */

  .contact-layout {
    gap: 38px;
  }

  .contact-title {
    font-size: clamp(47px, 12vw, 65px);
    letter-spacing: -2.8px;
  }

  .contact-description {
    font-size: 11px;
  }

  .contact-detail-card {
    gap: 12px;
    padding: 15px 12px;
  }

  .contact-detail-icon {
    width: 41px;
    height: 41px;
    border-radius: 11px;
    font-size: 11px;
  }

  .contact-detail-copy > span {
    font-size: 9px;
  }

  .contact-detail-copy strong {
    font-size: 10px;
  }


  /* OUTRO */

  .outro {
    min-height: 580px;
    padding: 90px 0;
  }

  .outro-overline {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  .outro-monogram {
    font-size: 60px;
  }

  .outro-title {
    font-size: clamp(34px, 9vw, 51px);
    letter-spacing: -2px;
  }

  .outro-description {
    font-size: 11px;
  }

  .outro-end-mark {
    gap: 9px;
    margin-top: 55px;
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .outro-end-line {
    width: 20px;
  }


  /* FOOTER */

  .site-footer {
    padding: 26px 0;
  }

  .footer-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .footer-copyright {
    order: initial;
    font-size: 9px;
    line-height: 1.8;
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-links a {
    font-size: 10px;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 41px;
    height: 41px;
  }

}
/* ==========================================================
   21. VERY SMALL MOBILE SCREENS
========================================================== */

@media (max-width: 360px) {

  .container {
    width: calc(100% - 28px);
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .portrait-frame {
    width: 240px;
  }

  .orbit-one {
    width: 290px;
    height: 290px;
  }

  .orbit-two {
    width: 330px;
    height: 330px;
  }

  .floating-chip {
    padding: 8px;
    font-size: 7px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
  }

  .avatar-letter {
    font-size: 42px;
  }

  .profile-card h3 {
    font-size: 11px;
  }

  .chess-board {
    grid-template-columns: repeat(4, 36px);
    grid-template-rows: repeat(4, 36px);
  }

  .chess-board span {
    font-size: 21px;
  }

  .project-feature-visual,
  .project-art {
    min-height: 250px;
  }

  .outro-title {
    font-size: 32px;
  }

}


/* ==========================================================
   22. REDUCED MOTION ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .cinematic-intro {
    transition: none;
  }

}
.contact-portrait-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.outro {
  background: #211b18;
}

.outro-orb {
  background: rgba(182, 154, 131, 0.16);
}

.outro-grid {
  opacity: 0.12;
}

.outro-monogram {
  color: var(--text);
}

.outro-monogram span {
  color: var(--lavender);
}

.outro-title {
  font-size: clamp(42px, 6vw, 76px);
}

.outro-title span {
  color: var(--lavender);
}

.outro-description {
  font-size: 16px;
}

.outro-end-line {
  background: var(--mocha-light);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #14100E;
}

.footer-copyright {
  font-size: 13px;
}

.footer-links a {
  font-size: 13px;
}

.back-to-top {
  border: 1px solid rgba(200, 184, 217, 0.4);
  border-radius: 50%;
  background: #302722;
  color: var(--lavender);
}

.back-to-top:hover {
  background: var(--lavender);
  color: #211813;
}


/* ==========================================================
   REVEAL TIMING & INTERACTION POLISH
========================================================== */

/* Reveal timing is driven by JS; never hide content when JS is unavailable. */

.reveal,
.reveal-left,
.reveal-right {
  transition-duration: 0.8s;
}

.profile-card,
.project-card,
.contact-detail-card {
  transition-delay: var(--reveal-delay, 0ms);
}

a,
button {
  touch-action: manipulation;
}

img.image-unavailable {
  opacity: 0.25;
}


/* ==========================================================
   WARM LIGHT THEME
========================================================== */

body.light-theme {
  color-scheme: light;

  --bg: #F5F0EB;
  --bg-soft: #EAE1D9;
  --bg-elevated: #FFFDFC;
  --bg-card: #FFFDFC;

  --text: #28211D;
  --text-soft: #554A43;
  --text-muted: #776B62;

  --border: rgba(65, 49, 39, 0.15);
  --border-hover: rgba(121, 95, 80, 0.45);

  background: var(--bg);
  color: var(--text);
}

body.light-theme .site-header {
  background: rgba(245, 240, 235, 0.88);
}

body.light-theme .site-header.scrolled {
  background: rgba(245, 240, 235, 0.97);
}

body.light-theme .cinematic-intro {
  background: #211b18;
}

body.light-theme .hero {
  background:
    radial-gradient(
      ellipse at 78% 42%,
      rgba(169, 134, 109, 0.12),
      transparent 44%
    ),
    var(--bg);
}

body.light-theme .profile-selector,
body.light-theme .projects,
body.light-theme .journey {
  background: var(--bg-soft);
}

body.light-theme .profile-card,
body.light-theme .project-card,
body.light-theme .timeline-entry,
body.light-theme .contact-detail-card,
body.light-theme .skills-note {
  background-color: rgba(255, 255, 255, 0.62);
}

body.light-theme .project-feature,
body.light-theme .skill-universe-core {
  background: #FFFDFC;
}

body.light-theme .floating-chip {
  background: rgba(255, 253, 252, 0.94);
}

body.light-theme .outro {
  background: #2B2420;
  color: #F4EEE8;
}

body.light-theme .site-footer {
  background: #E7DED6;
}

body.light-theme .contact-portrait-wrap {
  background: rgba(255, 255, 255, 0.55);
}


/* ==========================================================
   RESPONSIVE POLISH — SMALL DESKTOP
========================================================== */

@media (max-width: 1150px) {

  .hero-title {
    font-size: clamp(62px, 8vw, 96px);
  }

  .hero-container {
    gap: 35px;
  }

  .about-grid {
    gap: 55px;
  }

  .nav-links {
    gap: 16px;
  }

}


/* ==========================================================
   RESPONSIVE POLISH — TABLETS
========================================================== */

@media (max-width: 900px) {

  .container {
    width: min(100% - 48px, 760px);
  }

  .section {
    padding-block: 90px;
  }

  .hero {
    min-height: auto;
    padding: 145px 0 110px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .portrait-frame {
    width: min(390px, 72%);
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .project-feature {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-universe {
    max-width: 680px;
    margin-inline: auto;
  }

  .journey-layout {
    grid-template-columns: 1fr 1.2fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================
   RESPONSIVE POLISH — SMALL TABLETS & LARGE PHONES
========================================================== */

@media (max-width: 760px) {

  .container {
    width: calc(100% - 40px);
  }

  .site-header {
    background: rgba(23, 19, 17, 0.94);
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    padding: 16px 24px 26px;
    border-bottom: 1px solid var(--border);
    background: rgba(33, 27, 24, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 125px 0 95px;
  }

  .hero-title {
    font-size: clamp(58px, 12vw, 86px);
    letter-spacing: -0.065em;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .orbit-one {
    width: 410px;
    height: 410px;
  }

  .orbit-two {
    width: 460px;
    height: 460px;
  }

  .floating-chip {
    font-size: 11px;
  }

  .hero-scroll-cue,
  .hero-index {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .about-visual {
    max-width: 380px;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature-visual,
  .project-art {
    min-height: 330px;
  }

  .project-feature-content {
    padding: 32px;
  }

  .journey-layout {
    grid-template-columns: 1fr;
  }

  .contact-title {
    font-size: clamp(48px, 11vw, 72px);
  }

}


/* ==========================================================
   RESPONSIVE POLISH — MOBILE
========================================================== */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding-block: 76px;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .section-title {
    font-size: clamp(39px, 10vw, 58px);
    letter-spacing: -0.04em;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .hero {
    padding: 112px 0 80px;
  }

  .hero-title {
    font-size: clamp(53px, 13vw, 76px);
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .availability-badge {
    font-size: 11px;
  }

  .hero-role-line {
    font-size: 18px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 340px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-socials {
    gap: 10px;
  }

  .hero-visual {
    min-height: 385px;
  }

  .portrait-frame {
    width: min(300px, 76%);
  }

  .orbit-one {
    width: 320px;
    height: 320px;
  }

  .orbit-two {
    width: 360px;
    height: 360px;
  }

  .chip-top {
    top: 42px;
    left: 0;
  }

  .chip-bottom {
    right: 0;
    bottom: 42px;
  }

  .floating-chip {
    padding: 9px 12px;
    font-size: 10px;
  }

  .visual-coordinate {
    display: none;
  }

  .profile-grid {
    gap: 14px;
  }

  .profile-card {
    padding: 24px 12px 22px;
  }

  .profile-avatar {
    width: 82px;
    height: 82px;
    margin-bottom: 16px;
    border-radius: 20px;
  }

  .avatar-letter {
    font-size: 48px;
  }

  .profile-card h3 {
    font-size: 16px;
  }

  .profile-card > p {
    min-height: 0;
    font-size: 11px;
  }

  .profile-card-action {
    font-size: 11px;
  }

  .about-content h3 {
    font-size: 36px;
  }

  .about-content > p:not(.content-label) {
    font-size: 14px;
  }

  .about-stamp {
    left: -12px;
    width: 76px;
    height: 76px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-feature-content {
    padding: 25px;
  }

  .project-feature-content > p:not(.content-label) {
    font-size: 14px;
  }

  .project-card-content {
    padding: 23px;
  }

  .project-card-content h3 {
    font-size: 22px;
  }

  .project-card-content > p:not(.content-label) {
    font-size: 14px;
  }

  .skills-universe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .skill-node {
    width: 100%;
    max-width: none;
    min-height: 112px;
  }

  .skill-node-name {
    font-size: 12px;
  }

  .skill-universe-core {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .skills-note p {
    font-size: 13px;
  }

  .journey-intro h3 {
    font-size: 36px;
  }

  .timeline-entry {
    padding: 22px 18px;
  }

  .timeline-entry h3 {
    font-size: 19px;
  }

  .timeline-entry > p:not(.timeline-organization) {
    font-size: 13px;
  }

  .contact-description {
    font-size: 15px;
  }

  .contact-detail-card {
    padding: 15px;
  }

  .contact-detail-copy strong {
    font-size: 13px;
  }

  .contact-portrait {
    width: 62px;
    height: 62px;
  }

  .contact-portrait-copy span {
    font-size: 8px;
  }

  .contact-portrait-copy strong {
    font-size: 15px;
  }

  .outro {
    min-height: 550px;
    padding-block: 80px;
  }

  .outro-title {
    font-size: clamp(35px, 9vw, 52px);
  }

  .outro-description {
    font-size: 14px;
  }

  .footer-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-copyright {
    font-size: 12px;
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 17px;
  }

  .footer-links a {
    font-size: 12px;
  }

}


/* ==========================================================
   RESPONSIVE POLISH — VERY SMALL PHONES
========================================================== */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 28px);
  }

  .hero-title {
    font-size: 51px;
  }

  .hero-visual {
    min-height: 345px;
  }

  .portrait-frame {
    width: 245px;
  }

  .orbit-one {
    width: 285px;
    height: 285px;
  }

  .orbit-two {
    width: 325px;
    height: 325px;
  }

  .floating-chip {
    font-size: 9px;
  }

  .profile-card h3 {
    font-size: 14px;
  }

  .contact-portrait-wrap {
    gap: 12px;
    padding-right: 13px;
  }

}


/* ==========================================================
   ACCESSIBILITY — REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}