:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --code-bg: #f4f3ec;
  --accent: #aa3bff;
  --accent-bg: rgba(170, 59, 255, 0.1);
  --accent-border: rgba(170, 59, 255, 0.5);
  --social-bg: rgba(244, 243, 236, 0.5);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --social-bg: rgba(47, 48, 58, 0.5);
    --shadow:
      rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
}

body {
  margin: 0;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

#root {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  text-align: left;
  display: block;
  box-sizing: border-box;
}

h1,
h2 {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--text-h);
}

h1 {
  font-size: 56px;
  letter-spacing: -1.68px;
  margin: 32px 0;
  @media (max-width: 1024px) {
    font-size: 36px;
    margin: 20px 0;
  }
}
h2 {
  font-size: 24px;
  line-height: 118%;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}
p {
  margin: 0;
}

code,
.counter {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 4px;
  color: var(--text-h);
}

code {
  font-size: 15px;
  line-height: 135%;
  padding: 4px 8px;
  background: var(--code-bg);
}
/* =========================================
   GLOBAL EFFECTS
========================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(88, 120, 255, 0.12),
      transparent 45%
    );
  transition: background 0.08s ease;
}

.portfolio {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

/* =========================================
   NAVBAR — SHARED
========================================= */

.navbar {
  z-index: 999;
}

.logo {
  color: #f3f4f6;
  text-decoration: none;
}

.navbar .logo {
  overflow: hidden;
}

.navbar .logo .logo-image {
  display: block;
  width: 64px;
  height: 30px;
  max-width: 64px;
  object-fit: contain;
}

.nav-cta {
  padding: 10px 17px;
  border: 1px solid rgba(139, 124, 255, 0.65);
  border-radius: 8px;
  color: #e8e9ee;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(139, 124, 255, 0.04);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: rgba(139, 124, 255, 0.1);
  border-color: #9a8cff;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(139, 126, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 126, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image:
    radial-gradient(
      260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      black 0%,
      rgba(0, 0, 0, 0.8) 35%,
      transparent 75%
    );
  -webkit-mask-image:
    radial-gradient(
      260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      black 0%,
      rgba(0, 0, 0, 0.8) 35%,
      transparent 75%
    );
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -45px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(116, 106, 255, 0.18) 0,
      rgba(116, 106, 255, 0.18) 1px,
      transparent 1px,
      transparent 38px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(116, 106, 255, 0.12) 0,
      rgba(116, 106, 255, 0.12) 1px,
      transparent 1px,
      transparent 28px
    );
  transform:
    perspective(700px)
    rotateX(72deg)
    rotateZ(-2deg)
    scaleX(1.3)
    scaleY(1.15);
  transform-origin: center bottom;
  mask-image:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.35) 55%,
      transparent
    );
  -webkit-mask-image:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.35) 55%,
      transparent
    );
  opacity: 0.9;
  animation: meshDrift 12s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  width: 100%;
  margin: 0 auto;
  padding: 70px clamp(42px, 5vw, 82px) 95px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.92fr);
  align-items: center;
  gap: clamp(50px, 5vw, 90px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0;
  text-align: left;
}

.intro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #9ca6ba;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.intro::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #8b7eff, rgba(139, 126, 255, 0.15));
  box-shadow: 0 0 12px rgba(139, 126, 255, 0.45);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 5.4vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 750;
}

.hero-content h3 {
  margin: 24px 0 18px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0.12em;
  font-weight: 500;
  background: linear-gradient(
    90deg,
    #c7bfff 0%,
    #8b7eff 38%,
    #6fa8ff 68%,
    #9fa8ba 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 590px;
  margin: 0 0 32px;
  color: #9ca6b8;
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.primary-button,
.secondary-button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.primary-button {
  background: #e8eaf0;
  color: #101218;
}

.secondary-button {
  border: 1px solid #3c4350;
  color: #e6e8ed;
  background: rgba(255, 255, 255, 0.015);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
}

.secondary-button:hover {
  border-color: #858da0;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 27px;
}

.hero-socials a {
  color: #7f899b;
  text-decoration: none;
  font-size: 0.9rem;
}

.hero-socials a:hover {
  color: #f0f2f5;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: #858fa0;
  font-size: 0.88rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef0b1;
  box-shadow:
    0 0 0 4px rgba(126, 240, 177, 0.08),
    0 0 16px rgba(126, 240, 177, 0.5);
}

/* =========================================
   HERO RIGHT VISUAL
========================================= */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  min-height: 470px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(126, 88, 255, 0.34) 0%,
      rgba(73, 102, 255, 0.16) 35%,
      transparent 72%
    );
  filter: blur(32px);
}

.visual-window {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(30, 34, 45, 0.95), rgba(17, 20, 28, 0.88));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 70px rgba(107, 92, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  transform:
    translate(var(--parallax-x, 0px), var(--parallax-y, 0px))
    rotate(-2deg);
  transition: transform 0.35s ease;
}

.visual-window:hover {
  transform: rotate(0deg) translateY(-5px);
}

.window-top {
  height: 43px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #505664;
}

.window-code {
  padding: 30px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.9;
  color: #a9b1bf;
}

.window-code p {
  margin: 0;
}

.code-purple {
  color: #b095ff;
}

.code-string {
  color: #8dd8c8;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(18, 21, 29, 0.86);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.floating-card span {
  color: #727c90;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.floating-card strong {
  margin-top: 5px;
  color: #f0f2f5;
}

.floating-card small {
  margin-top: 3px;
  color: #737d8f;
}

.card-one {
  top: 28px;
  right: 30px;
  transform:
    translate(
      calc(var(--parallax-x, 0px) * 1.35),
      calc(var(--parallax-y, 0px) * 1.35)
    );
  transition: transform 0.12s ease-out;
}

.card-one strong {
  font-size: 1.9rem;
}

.card-two {
  bottom: 28px;
  left: 5px;
  transform:
    translate(
      calc(var(--parallax-x, 0px) * -0.9),
      calc(var(--parallax-y, 0px) * -0.9)
    );
  transition: transform 0.12s ease-out;
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #60697a;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.scroll-down:hover {
  color: #b5bcc8;
}

/* =========================================
   MAIN / SHARED SECTIONS
========================================= */

main {
  width: 100%;
  padding-left: clamp(42px, 6vw, 100px);
  padding-right: clamp(42px, 6vw, 100px);
}

section {
  padding: 100px 0;
  border-top: 1px solid #292d35;
}

.section-label {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #7f8794;
  text-transform: uppercase;
}

section p {
  max-width: 750px;
  line-height: 1.8;
  color: #aeb5c2;
}

.about-heading h2,
.skills-heading h2,
.projects-heading h2,
.education-heading h2,
.contact-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: inherit;
}

.about-heading h2 span,
.skills-heading h2 span,
.projects-heading h2 span,
.education-heading h2 span,
.contact-heading h2 span {
  color: #8f98aa;
}

#about,
#skills,
#projects,
#education,
#contact {
  scroll-margin-top: 95px;
}

/* =========================================
   ABOUT
========================================= */

.about-section {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 120px;
  background: transparent;
}

.about-layout {
  display: grid;
  grid-template-columns:
    minmax(520px, 1.25fr)
    minmax(430px, 0.95fr)
    minmax(300px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.about-left {
  position: relative;
  z-index: 3;
}

.about-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.about-heading h2 {
  max-width: 700px;
  color: #f3f4f6;
}

.about-heading h2 span {
  display: block;
}

.about-text {
  max-width: 650px;
}

.about-text p {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #9da6b6;
}

.about-metrics {
  display: flex;
  align-items: stretch;
  margin-top: 34px;
}

.about-metric {
  position: relative;
  min-width: 135px;
  padding-right: 30px;
  margin-right: 30px;
}

.about-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
}

.about-metric strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.75rem;
  line-height: 1;
  color: #f3f4f6;
}

.about-metric span {
  font-size: 0.85rem;
  color: #929bac;
}

.about-learning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: #909aac;
  font-size: 0.9rem;
}

.about-learning-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b7eff;
  box-shadow: 0 0 12px rgba(139, 126, 255, 0.8);
}

.about-learning-line {
  width: 85px;
  height: 1px;
  margin-left: 10px;
  background: linear-gradient(90deg, rgba(139, 126, 255, 0.65), transparent);
}

.about-portrait-area {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.about-profile-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 520px;
  max-width: 115%;
  height: auto;
  object-fit: contain;
  transform: scale(1.08);
  transform-origin: center bottom;
  filter: brightness(1.03) contrast(1.02) saturate(0.98);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 72%,
      rgba(0, 0, 0, 0.92) 82%,
      rgba(0, 0, 0, 0.45) 92%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 72%,
      rgba(0, 0, 0, 0.92) 82%,
      rgba(0, 0, 0, 0.45) 92%,
      transparent 100%
    );
}

/* These elements still exist in JSX but are intentionally disabled. */
.about-orbit,
.about-portrait-glow {
  display: none;
}

.about-developer-tag {
  position: absolute;
  z-index: 3;
  right: 5px;
  bottom: 62px;
  color: #8d97ab;
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.15em;
}

.about-info-cards {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
}

.about-info-card {
  position: relative;
  min-height: 125px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(27, 30, 39, 0.85), rgba(18, 21, 28, 0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.about-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 126, 255, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.about-info-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: #757f91;
}

.about-info-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #f1f3f6;
}

.about-info-card p {
  margin: 0;
  color: #8e98a9;
  font-size: 0.88rem;
  line-height: 1.55;
}

.about-info-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 2rem;
  color: #f3f4f6;
}

.about-info-card strong small {
  font-size: 0.9rem;
  color: #7e8798;
}

.about-info-year {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #929bad;
  font-size: 0.68rem;
}

/* =========================================
   SKILLS
========================================= */

.skills-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.skills-heading {
  max-width: 850px;
  margin-bottom: 55px;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skill-panel {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(27, 30, 39, 0.82), rgba(18, 21, 28, 0.76));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.skill-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 124, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.skill-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.skill-panel-top > span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: #737c8e;
}

.skill-panel-top h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e9ebef;
}

.skill-items {
  display: grid;
  gap: 13px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item strong {
  color: #f0f2f5;
  font-size: 1rem;
}

.skill-item span {
  color: #7f8999;
  font-size: 0.82rem;
  text-align: right;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #a7afbd;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.skill-tags span:hover {
  transform: translateY(-2px);
  color: #f2f3f6;
  border-color: rgba(139, 124, 255, 0.45);
  background: rgba(139, 124, 255, 0.06);
}

.exploring-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  background:
    radial-gradient(circle at 85% 20%, rgba(114, 88, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(27, 30, 39, 0.82), rgba(18, 21, 28, 0.76));
}

.exploring-label {
  margin: 0 0 15px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #8b82ff;
}

.exploring-panel h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  color: #f0f2f5;
}

.exploring-panel p {
  margin: 0;
  max-width: 520px;
  color: #8f98a9;
  line-height: 1.7;
}

.exploring-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.exploring-list span {
  padding: 8px 12px;
  border: 1px solid rgba(139, 124, 255, 0.22);
  border-radius: 8px;
  color: #a79fff;
  background: rgba(139, 124, 255, 0.05);
  font-size: 0.85rem;
}

/* =========================================
   PROJECTS
========================================= */

.projects-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.projects-heading {
  max-width: 900px;
  margin-bottom: 55px;
}

.projects-showcase {
  display: grid;
  gap: 18px;
}

.project-feature {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(27, 30, 39, 0.84), rgba(18, 21, 28, 0.78));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.project-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(111, 84, 255, 0.08), transparent 35%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.project-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 124, 255, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.project-feature:hover::before {
  opacity: 1;
}

.project-feature-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.project-index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #727b8d;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-status.completed {
  color: #8fe1ba;
  border: 1px solid rgba(100, 220, 165, 0.18);
  background: rgba(100, 220, 165, 0.04);
}

.project-status.completed::before {
  background: #71dfad;
  box-shadow: 0 0 10px rgba(113, 223, 173, 0.6);
}

.project-status.progress {
  color: #aaa2ff;
  border: 1px solid rgba(139, 124, 255, 0.2);
  background: rgba(139, 124, 255, 0.05);
}

.project-status.progress::before {
  background: #8d80ff;
  box-shadow: 0 0 10px rgba(141, 128, 255, 0.6);
}

.project-feature-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.project-feature-content > div {
  max-width: 850px;
}

.project-feature h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  color: #f1f3f6;
}

.project-feature p {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: #909aaa;
}

.project-feature .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  padding-top: 0;
}

.project-feature .project-tech span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #a1a9b7;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.84rem;
}

.project-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(139, 124, 255, 0.28);
  border-radius: 9px;
  color: #ddd9ff !important;
  background: rgba(139, 124, 255, 0.05);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.project-link::after {
  content: "↗";
  display: inline-block;
  transition: transform 0.25s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 124, 255, 0.6);
  background: rgba(139, 124, 255, 0.1);
  opacity: 1 !important;
}

.project-link:hover::after {
  transform: translate(3px, -3px);
}

.project-building {
  background:
    radial-gradient(circle at 90% 10%, rgba(111, 84, 255, 0.07), transparent 32%),
    linear-gradient(145deg, rgba(25, 28, 37, 0.82), rgba(17, 20, 27, 0.78));
}

/* =========================================
   EDUCATION
========================================= */

.education-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.education-heading {
  max-width: 900px;
  margin-bottom: 65px;
}

.education-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.education-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 130px;
  gap: 40px;
  align-items: center;
  padding: 38px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    padding-left 0.28s ease,
    background 0.28s ease;
}

.education-row:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, rgba(139, 124, 255, 0.06), transparent 65%);
}

.education-year {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  color: #7d8697;
}

.education-type {
  display: block;
  margin-bottom: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: #9188ff;
  transition: color 0.25s ease;
}

.education-row:hover .education-type {
  color: #b7adff;
}

.education-main h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: #eef0f4;
}

.education-main p {
  margin: 0;
  color: #8993a4;
  line-height: 1.6;
}

.education-score {
  text-align: right;
}

.education-score span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #727c8e;
}

.education-score strong {
  display: inline-block;
  font-size: 1.65rem;
  color: #f1f3f6;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.education-row:hover .education-score strong {
  color: #a99cff;
  transform: translateX(-4px);
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact-heading {
  max-width: 950px;
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.contact-copy {
  max-width: 650px;
}

.contact-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #949eae;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #8e98a8;
  font-size: 0.9rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-primary,
.contact-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-primary {
  background: #eceef3;
  color: #111318;
}

.contact-secondary {
  border: 1px solid rgba(139, 124, 255, 0.3);
  color: #ddd9ff;
  background: rgba(139, 124, 255, 0.05);
}

.contact-primary:hover,
.contact-secondary:hover {
  transform: translateY(-3px);
}

.contact-primary:hover {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.contact-secondary:hover {
  border-color: rgba(139, 124, 255, 0.6);
  background: rgba(139, 124, 255, 0.1);
}

.contact-secondary::after {
  content: "↗";
  display: inline-block;
  transition: transform 0.25s ease;
}

.contact-secondary:hover::after {
  transform: translate(3px, -3px);
}

/* =========================================
   FOOTER
========================================= */

footer {
  width: 100%;
  padding: 40px clamp(42px, 6vw, 100px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #292d35;
  color: #8f96a3;
}

/* =========================================
   HERO ENTRANCE ANIMATIONS
========================================= */

.hero-animate {
  opacity: 0;
  transform: translateY(45px);
  filter: blur(5px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 { animation-delay: 0.1s; }
.hero-delay-2 { animation-delay: 0.22s; }
.hero-delay-3 { animation-delay: 0.34s; }
.hero-delay-4 { animation-delay: 0.46s; }
.hero-delay-5 { animation-delay: 0.58s; }
.hero-delay-6 { animation-delay: 0.7s; }
.hero-delay-7 { animation-delay: 0.82s; }

.hero-visual-animate {
  opacity: 0;
  transform: translateX(70px) scale(0.94);
  animation:
    heroVisualReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroVisualReveal {
  from {
    opacity: 0;
    transform: translateX(70px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes meshDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 152px 0, 0 112px;
  }
}

/* =========================================
   DESKTOP NAVBAR
========================================= */

@media (min-width: 1001px) {
  .navbar {
    position: sticky;
    top: 12px;
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 12px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .logo,
  .nav-cta {
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo {
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(16, 18, 24, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .nav-cta {
    padding: 0 20px;
    border-color: rgba(139, 124, 255, 0.34);
    border-radius: 24px;
    background: rgba(16, 18, 24, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .nav-cta:hover {
    background: rgba(139, 124, 255, 0.08);
    border-color: rgba(139, 124, 255, 0.55);
  }

  .nav-links {
    position: relative;
    isolation: isolate;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(7, 88px);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(16, 18, 24, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --lens-x: 0px;
  }

  .nav-links a {
    position: relative;
    z-index: 2;
    width: 88px;
    padding: 9px 4px;
    border: none;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    color: #9da5b4;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff;
  }

  .nav-links a:hover {
    transform: translateY(-1px);
  }

  .nav-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    width: 88px;
    height: calc(100% - 12px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: saturate(135%) brightness(1.08);
    -webkit-backdrop-filter: saturate(135%) brightness(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(139, 124, 255, 0.08),
      0 5px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transform: translateX(var(--lens-x));
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-slider::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background:
      radial-gradient(
        circle at 30% 20%,
        rgba(255, 255, 255, 0.16),
        transparent 45%
      );
    pointer-events: none;
  }

  .nav-links[data-active="home"] { --lens-x: 0px; }
  .nav-links[data-active="about"] { --lens-x: 92px; }
  .nav-links[data-active="skills"] { --lens-x: 184px; }
  .nav-links[data-active="projects"] { --lens-x: 276px; }
  .nav-links[data-active="education"] { --lens-x: 368px; }
  .nav-links[data-active="contact"] { --lens-x: 552px; }

  .nav-links a.magnifier-pass {
    animation: magnifierPass 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu {
    display: none !important;
  }
}

@keyframes magnifierPass {
  0% {
    transform: scaleX(1) scaleY(1);
  }

  35% {
    transform: scaleX(1.12) scaleY(1.08);
  }

  65% {
    transform: scaleX(1.06) scaleY(1.04);
  }

  100% {
    transform: scaleX(1) scaleY(1);
  }
}

/* =========================================
   ABOUT — LARGE DESKTOP FINAL LAYOUT
========================================= */

@media (min-width: 1181px) {
  .about-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .about-layout {
    max-width: 1320px;
    margin: 0 auto;
    grid-template-columns:
      minmax(0, 1.12fr)
      minmax(430px, 0.92fr)
      minmax(270px, 0.66fr);
    gap: 26px;
    align-items: center;
  }

  .about-left {
    align-self: center;
  }

  .about-heading {
    max-width: 640px;
    margin-bottom: 30px;
  }

  .about-heading h2 {
    max-width: 640px;
  }

  .about-text {
    max-width: 570px;
  }

  .about-text p {
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .about-metrics {
    margin-top: 24px;
  }

  .about-learning {
    margin-top: 26px;
  }

  .about-portrait-area {
    min-height: 520px;
    align-items: center;
  }

  .about-profile-image {
    width: 500px;
    max-width: none;
    transform: translateY(-5px) scale(1.04);
  }

  .about-developer-tag {
    right: 12px;
    bottom: 40px;
  }

  .about-info-cards {
    gap: 12px;
    align-self: center;
  }

  .about-info-card {
    min-height: 108px;
    padding: 17px 18px;
  }

  .about-info-label {
    margin-bottom: 10px;
  }

  .about-info-card h3 {
    font-size: 1.15rem;
  }

  .about-info-card p {
    font-size: 0.84rem;
  }

  .about-info-card strong {
    font-size: 1.65rem;
  }
}

/* =========================================
   TABLET / SMALL DESKTOP
========================================= */

@media (max-width: 1180px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  }

  .about-info-cards {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
  }

  .about-portrait-area {
    min-height: 560px;
  }
}

@media (max-width: 1000px) {
  .navbar {
    position: fixed;
    top: 8px;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 520px;
    transform: translateX(-50%);
    padding: 7px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(16, 18, 24, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
      width 0.3s ease,
      padding 0.3s ease,
      border-radius 0.3s ease,
      background 0.3s ease;
  }

  .navbar.scrolled {
    width: calc(100% - 52px);
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(16, 18, 24, 0.78);
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .navbar .logo {
    transition:
      transform 0.3s ease,
      font-size 0.3s ease;
  }

  .navbar.scrolled .logo {
    transform: scale(0.96);
  }

  .nav-links {
    display: none;
  }

  .navbar .mobile-menu-trigger,
  .navbar .mobile-menu-trigger:hover,
  .navbar .mobile-menu-trigger:focus,
  .navbar .mobile-menu-trigger:active {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .navbar .mobile-menu-trigger .logo-image {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 1001;
    transition:
      opacity 0.25s ease,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.25s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: rgba(139, 124, 255, 0.18);
    z-index: 0;
  }

  .mobile-menu a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 132px;
    height: 42px;
    padding: 0 14px 0 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(15, 17, 24, 0.995);
    color: #c8ccd5;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.22s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.22s ease,
      border-color 0.22s ease,
      color 0.22s ease;
  }

  .mobile-menu-icon {
    position: absolute;
    left: -8px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(19, 21, 29, 0.96);
    color: #e2e5eb;
    box-shadow:
      0 7px 18px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2;
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }

  .mobile-menu a.active {
    color: #ffffff;
    border-color: rgba(139, 124, 255, 0.38);
    background:
      linear-gradient(
        90deg,
        rgba(139, 124, 255, 0.22),
        rgba(16, 18, 25, 0.98)
      );
  }

  .mobile-menu a.active .mobile-menu-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #8b7cff, #6048ff);
    border-color: rgba(167, 154, 255, 0.55);
    box-shadow:
      0 0 16px rgba(120, 100, 255, 0.28),
      0 7px 18px rgba(0, 0, 0, 0.24);
    transform: scale(1.04);
  }

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

  .mobile-menu.open a:nth-child(1) { transition-delay: 0.02s; }
  .mobile-menu.open a:nth-child(2) { transition-delay: 0.05s; }
  .mobile-menu.open a:nth-child(3) { transition-delay: 0.08s; }
  .mobile-menu.open a:nth-child(4) { transition-delay: 0.11s; }
  .mobile-menu.open a:nth-child(5) { transition-delay: 0.14s; }
  .mobile-menu.open a:nth-child(6) { transition-delay: 0.17s; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 90px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 620px;
    min-height: 400px;
  }

  .card-one {
    right: 20px;
  }

  .card-two {
    left: 20px;
  }

  .scroll-down {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-left {
    max-width: 760px;
  }

  .about-portrait-area {
    min-height: 520px;
    max-width: 520px;
    margin: 20px auto 0;
  }

  .about-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-info-large {
    grid-column: 1 / -1;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .project-feature-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-link {
    justify-self: start;
  }

  .education-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .education-score {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  footer {
    flex-direction: column;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
  .hero,
  .about-section,
  .skills-section,
  .projects-section,
  .education-section,
  .contact-section {
    min-height: auto;
    height: auto;
  }

  .hero {
    padding-top: 45px;
    padding-bottom: 72px;
  }

  .hero::after {
    height: 140px;
    bottom: -35px;
  }

  .visual-window {
    margin-top: 16px;
  }

  .about-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .skills-section,
  .projects-section,
  .education-section,
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .about-heading {
    margin-bottom: 36px;
  }

  .skills-heading,
  .projects-heading,
  .education-heading,
  .contact-heading {
    margin-bottom: 30px;
  }

  .about-portrait-area {
    min-height: 0;
    height: auto;
    margin-top: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .about-profile-image {
    width: min(100%, 300px);
    height: auto;
    margin: 0 auto;
    transform: none;
  }

  .about-info-cards {
    margin-top: 12px;
  }

  .project-feature h3 {
    line-height: 1.05;
  }

  #about,
  #skills,
  #projects,
  #education,
  #contact {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    padding: 56px 22px 40px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-visual {
    display: none;
  }

  main {
    padding-left: 22px;
    padding-right: 22px;
  }

  .about-text p {
    font-size: 0.98rem;
  }

  .about-metrics {
    flex-wrap: wrap;
    gap: 22px;
  }

  .about-metric {
    min-width: auto;
    padding-right: 22px;
    margin-right: 0;
  }

  .about-metric:not(:last-child)::after {
    right: 4px;
  }

  .about-learning-line {
    width: 45px;
  }

  .about-developer-tag {
    display: none;
  }

  .about-info-cards {
    grid-template-columns: 1fr;
  }

  .about-info-large {
    grid-column: auto;
  }

  .skill-panel {
    min-height: auto;
    padding: 20px;
  }

  .skill-panel-top {
    margin-bottom: 20px;
  }

  .skill-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }

  .skill-item span {
    text-align: left;
  }

  .project-feature {
    padding: 18px;
  }

  .project-feature-top {
    margin-bottom: 20px;
  }

  .project-feature .project-tech {
    margin-top: 18px;
    gap: 7px;
  }

  .project-feature .project-tech span {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .education-heading {
    margin-bottom: 36px;
  }

  .education-row {
    gap: 14px;
    padding: 24px 4px;
  }

  .education-row:hover {
    padding-left: 8px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-primary,
  .contact-secondary {
    width: 100%;
    padding: 11px 16px;
  }

  footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8b7cff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================
   MOBILE COMPACT CONTENT — FINAL
   Keeps Home + About unchanged
========================================= */
@media (max-width: 700px) {

  /* Sections after About */
  .skills-section,
  .projects-section,
  .education-section,
  .contact-section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .skills-heading,
  .projects-heading,
  .education-heading,
  .contact-heading {
    margin-bottom: 26px !important;
  }

  /* SKILLS */
  .skills-layout {
    gap: 12px !important;
  }

  .skill-panel,
  .exploring-panel {
    min-height: 0 !important;
    padding: 18px 20px !important;
    border-radius: 14px !important;
  }

  .skill-panel-top {
    margin-bottom: 14px !important;
  }

  .skill-panel-top h3 {
    font-size: 1rem !important;
  }

  .skill-items {
    gap: 0 !important;
  }

  .skill-item {
    display: grid !important;
    grid-template-columns: minmax(72px, 0.7fr) minmax(0, 1.3fr) !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
  }

  .skill-item strong {
    font-size: 0.94rem !important;
  }

  .skill-item span {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .skill-tags {
    gap: 7px !important;
  }

  .skill-tags span {
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 7px !important;
  }

  .exploring-panel h3 {
    margin-bottom: 8px !important;
    font-size: 1.25rem !important;
  }

  .exploring-panel p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .exploring-list {
    margin-top: 16px !important;
    gap: 7px !important;
  }

  .exploring-list span {
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
  }

  /* PROJECTS */
  .projects-showcase {
    gap: 12px !important;
  }

  .project-feature {
    padding: 17px 18px !important;
    border-radius: 14px !important;
  }

  .project-feature-top {
    margin-bottom: 16px !important;
  }

  .project-feature-content {
    gap: 18px !important;
  }

  .project-feature h3 {
    margin-bottom: 10px !important;
    font-size: 1.45rem !important;
    line-height: 1.08 !important;
  }

  .project-feature p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .project-feature .project-tech {
    margin-top: 14px !important;
    gap: 6px !important;
  }

  .project-feature .project-tech span {
    padding: 6px 9px !important;
    font-size: 0.76rem !important;
  }

  .project-link {
    padding: 9px 12px !important;
    font-size: 0.84rem !important;
  }

  /* EDUCATION */
  .education-heading {
    margin-bottom: 26px !important;
  }

  .education-row {
    gap: 10px !important;
    padding: 20px 4px !important;
  }

  .education-year {
    font-size: 0.7rem !important;
  }

  .education-type {
    margin-bottom: 5px !important;
  }

  .education-main h3 {
    margin-bottom: 5px !important;
    font-size: 1.15rem !important;
  }

  .education-main p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .education-score span {
    margin-bottom: 3px !important;
  }

  .education-score strong {
    font-size: 1.4rem !important;
  }

  /* CONTACT */
  .contact-grid {
    gap: 24px !important;
  }

  .contact-copy p {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .contact-availability {
    margin-top: 16px !important;
  }

  .contact-actions {
    gap: 9px !important;
  }

  .contact-primary,
  .contact-secondary {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }
}
