/* =============================
   AKSHIT SALGUNDI — PORTFOLIO CSS
   Color Palette:
   #FFFFFF — Pure White
   #EAEAEA — Light Gray
   #6D6D6D — Medium Gray
   #333333 — Charcoal
   #E27500 — Vivid Orange
   ============================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --white: #FFFFFF;
  --light: #EAEAEA;
  --mid: #6D6D6D;
  --dark: #333333;
  --orange: #E27500;
  --orange-light: #f08a20;
  --black: #111111;
  --bg: #0d0d0d;

  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --nav-h: 64px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  /* We handle scroll manually */
}

body {
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-y: auto;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
}

a,
button,
.btn-primary,
.btn-ghost,
.project-link,
.project-visual,
.contact-link,
.nav-item,
.cert-card,
.expertise-card,
.ach-proof {
  cursor: pointer !important;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 rgba(226, 117, 0, 0.4);
  animation: loaderPulse 0.95s ease-in-out infinite;
}

.loader-percent {
  user-select: none;
  min-width: 52px;
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(226, 117, 0, 0.4);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(226, 117, 0, 0);
  }

  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(226, 117, 0, 0);
  }
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(226, 117, 0, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor,
.cursor-follower {
  display: none !important;
}

body:has(a:hover) .cursor {
  width: 12px;
  height: 12px;
}

body:has(a:hover) .cursor-follower {
  width: 50px;
  height: 50px;
  border-color: var(--orange);
}

body:has(.btn-primary:hover) .cursor {
  background: var(--white);
}

/* ---------- SCROLL CONTAINER ---------- */
#scroll-container {
  position: relative;
  width: 100%;
  transform: none !important;
}

/* ---------- SECTION COMMON ---------- */
section {
  position: relative;
  padding: 120px 6vw;
}

.section-label {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-heading {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  cursor: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  border: 2px solid var(--orange);
}

.btn-primary:hover {
  background: transparent;
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--light);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
  --hero-stage-inset-x: 0px;
  --hero-stage-inset-y: 0px;
}

.hero-media {
  position: absolute;
  top: var(--hero-stage-inset-y);
  right: var(--hero-stage-inset-x);
  bottom: var(--hero-stage-inset-y);
  left: var(--hero-stage-inset-x);
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #050505;
  box-shadow: none;
}

.hero-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  opacity: 0;
  transform: scale(1.02);
  filter: brightness(1.08) contrast(1.08) saturate(1.06);
  will-change: transform, opacity, clip-path;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 85% at 50% 18%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.16));
}

.hero-overlay {
  position: absolute;
  top: var(--hero-stage-inset-y);
  right: var(--hero-stage-inset-x);
  bottom: var(--hero-stage-inset-y);
  left: var(--hero-stage-inset-x);
  z-index: 1;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.22) 72%, rgba(5, 5, 5, 0.32) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-noise {
  position: absolute;
  top: var(--hero-stage-inset-y);
  right: var(--hero-stage-inset-x);
  bottom: var(--hero-stage-inset-y);
  left: var(--hero-stage-inset-x);
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.4) 0.35px, transparent 0.35px),
    radial-gradient(rgba(255, 255, 255, 0.32) 0.35px, transparent 0.35px);
  background-size: 3px 3px, 2px 2px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.22), rgba(8, 8, 8, 0.08));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-main);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.5s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.65s;
  -webkit-text-stroke: 2px var(--orange);
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--mid);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero-hud {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(260px, 1.8fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.hud-left {
  min-width: 0;
}

.hud-slide-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.hud-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
  cursor: none;
}

.hud-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--orange));
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hud-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.hud-counter em {
  color: var(--orange);
  font-style: normal;
}

.hud-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: rgba(0, 0, 0, 0.3);
  cursor: none;
  transition: var(--transition-fast);
}

.hud-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.5s;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ===========================
   HERO FLOATING IMAGE CARDS
   =========================== */
.hero-images {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-img-card {
  position: absolute;
  pointer-events: all;
  cursor: none;
  border-radius: 14px;
  overflow: visible;
  opacity: 0;
  /* GSAP animates in */
}

/* Card positions — scatter around the centre text */
#hcard1 {
  width: 220px;
  top: 8%;
  left: 4%;
  transform: rotate(-4deg);
}

#hcard2 {
  width: 200px;
  top: 12%;
  right: 5%;
  transform: rotate(3deg);
}

#hcard3 {
  width: 210px;
  bottom: 14%;
  left: 5%;
  transform: rotate(3deg);
}

#hcard4 {
  width: 195px;
  bottom: 10%;
  right: 4%;
  transform: rotate(-3deg);
}

.hcard-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 117, 0, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.4s ease;
}

.hero-img-card:hover .hcard-inner {
  box-shadow: 0 30px 80px rgba(226, 117, 0, 0.25), 0 0 0 1px rgba(226, 117, 0, 0.3);
}

.hcard-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.85) saturate(1.1);
}

.hero-img-card:hover .hcard-img {
  transform: scale(1.07);
  filter: brightness(0.6) saturate(1.5);
}

/* WebGL canvas overlay — shown on hover */
.hcard-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-img-card:hover .hcard-canvas {
  opacity: 1;
}

/* Label */
.hcard-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  transition: color 0.3s ease;
}

.hero-img-card:hover .hcard-label {
  color: var(--orange);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.about-photo-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.about-photo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(226, 117, 0, 0.3);
  animation: spinSlow 15s linear infinite;
}

.about-photo-ring.ring2 {
  inset: -40px;
  border-color: rgba(226, 117, 0, 0.12);
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.about-photo-placeholder {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(226, 117, 0, 0.4);
  position: relative;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-overlay-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-main);
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.1em;
}

.about-badge {
  position: absolute;
  bottom: 10px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  box-shadow: 0 8px 30px rgba(226, 117, 0, 0.4);
  white-space: nowrap;
}

.about-heading {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--light);
  border-left: 3px solid var(--orange);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(226, 117, 0, 0.05);
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}

.about-body {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

/* ===========================
   EDUCATION SECTION
   =========================== */
.education-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(226, 117, 0, 0.14), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.04), transparent 40%),
    #080808;
  min-height: 72vh;
}

.education-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.education-card {
  position: relative;
  padding: 1.7rem 1.4rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.015) 100%),
    rgba(12, 16, 24, 0.52);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.education-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08) 44%, rgba(226, 117, 0, 0.44) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.education-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -26%;
  width: 72%;
  height: 180%;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.03) 58%);
  transform: rotate(12deg) translateY(-18px);
  opacity: 0.34;
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none;
}

.education-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.02) 100%),
    rgba(12, 16, 24, 0.58);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(226, 117, 0, 0.16);
}

.education-card:hover::before {
  opacity: 1;
}

.education-card:hover::after {
  opacity: 0.52;
  transform: rotate(12deg) translateY(-6px);
}

.edu-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--orange);
  background: linear-gradient(155deg, rgba(34, 37, 44, 0.96), rgba(20, 22, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.education-card:hover .edu-num {
  color: #ffffff;
  background: linear-gradient(160deg, var(--orange-light), var(--orange));
  border-color: rgba(255, 255, 255, 0.22);
  outline-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 18px rgba(226, 117, 0, 0.35), 0 10px 22px rgba(226, 117, 0, 0.3);
}

.edu-school {
  font-family: var(--font-main);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.edu-main {
  font-family: var(--font-body);
  color: var(--light);
  line-height: 1.6;
  font-size: 0.97rem;
}

.edu-meta {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-main);
  min-width: 140px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1;
}

.stat-num {
  display: inline-block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
}

.stat-plus {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

/* ---------- DATA REVEAL ANIM ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   SKILLS SECTION (Arc)
   =========================== */
.skills-section {
  background: var(--bg);
  min-height: 100vh;
  padding: 120px 4vw;
  overflow: hidden;
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
}

.skills-arc-wrap {
  position: sticky;
  top: 120px;
  width: 360px;
  height: 640px;
}

.skills-arc-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.arc-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.arc-num-dot {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  display: block;
  transition: all 0.4s ease;
}

.arc-num-dot .dot-circle {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(37, 40, 46, 0.95), rgba(20, 22, 27, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(236, 241, 248, 0.92);
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.arc-num-dot .dot-circle::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.arc-num-dot.active .dot-circle {
  background: linear-gradient(160deg, var(--orange-light), var(--orange));
  border-color: rgba(255, 255, 255, 0.22);
  outline-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(226, 117, 0, 0.45), 0 12px 26px rgba(226, 117, 0, 0.35);
  transform: scale(1.08);
  width: 38px;
  height: 38px;
  font-size: 0.8rem;
}

.arc-num-dot.active .dot-circle::before {
  background: transparent;
}

.arc-num-dot .dot-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mid);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.arc-num-dot.active .dot-label {
  opacity: 1;
  color: var(--orange);
}

/* Skills Items */
.skills-content {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-item {
  padding: 3.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.3;
  transform: translateX(30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.skill-item.active {
  opacity: 1;
  transform: translateX(0);
}

.skill-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(226, 117, 0, 0.08), transparent);
  transition: width 0.5s ease;
}

.skill-item.active::before {
  width: 100%;
}

.skill-num-badge {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--orange);
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.skill-title {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
  line-height: 1.02;
}

.skill-title-logo {
  width: 1.28em;
  height: 1.28em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.skill-title-logo iconify-icon {
  font-size: 0.92em;
}

.skill-desc {
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.5vw, 1.35rem);
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

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

.skill-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(226, 117, 0, 0.1);
  color: var(--orange);
  border: 1px solid rgba(226, 117, 0, 0.25);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 600;
  transition: var(--transition-fast);
}

.tag-logo {
  font-size: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.excel-brand {
  color: #21a366;
  filter: drop-shadow(0 0 6px rgba(33, 163, 102, 0.28));
}

.dsa-brand {
  color: #2f79b8;
  filter: drop-shadow(0 0 6px rgba(47, 121, 184, 0.28));
}

.ai-brand {
  color: #f3f3f3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}

.skill-tags span:hover {
  background: var(--orange);
  color: var(--white);
}

@media (min-width: 1025px) {
  .skills-section {
    padding-top: 96px;
    padding-bottom: 96px;
    display: block;
    overflow: visible;
  }

  .skills-inner {
    position: sticky;
    top: 96px;
    height: min(620px, calc(100vh - 192px));
    align-items: stretch;
    will-change: auto;
  }

  .skills-arc-wrap {
    position: relative;
    top: 0;
    height: 100%;
  }

  .skills-content {
    position: relative;
    overflow: visible;
    border-radius: 16px;
  }

  .skills-items {
    position: relative;
    height: min(500px, 68vh);
    width: min(100%, 1040px);
    margin: 0 auto;
    overflow: visible;
  }

  .skill-item {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(84px) scale(0.985);
    pointer-events: none;
    padding: 2.8rem 2.4rem;
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(180deg, rgba(226, 117, 0, 0.06), rgba(10, 10, 10, 0.15));
  }

  .skill-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 4;
  }

  .skill-item.leaving-up {
    opacity: 0;
    transform: translateY(-60px) scale(0.985);
    z-index: 3;
  }
}

/* ===========================
   WHAT I DO BEST (Timeline)
   =========================== */
.what-i-do-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 117, 0, 0.14), transparent 34%),
    radial-gradient(circle at 86% 80%, rgba(58, 139, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #070707 0%, #0b0b0d 100%);
  padding: 120px 6vw;
}

.cards-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cards-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(226, 117, 0, 0.45) 50%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.expertise-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.4rem;
  row-gap: 0.7rem;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  box-shadow: none;
  cursor: default;
  transition: transform 0.35s ease;
}

.expertise-card::before {
  content: '';
  position: absolute;
  left: calc(50% - 5px);
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(226, 117, 0, 0.15);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.expertise-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(60px, 8vw, 120px);
  height: 1px;
  opacity: 0.8;
}

.expertise-card:nth-child(odd)::after {
  left: calc(50% - clamp(60px, 8vw, 120px));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.55));
}

.expertise-card:nth-child(even)::after {
  left: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.02));
}

.expertise-card:hover {
  transform: translateY(-2px);
}

.expertise-card:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 9px rgba(226, 117, 0, 0.2);
}

.expertise-card[data-reveal].revealed {
  animation: cardRevealUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cards-grid .expertise-card:nth-child(1).revealed {
  animation-delay: 0.04s;
}

.cards-grid .expertise-card:nth-child(2).revealed {
  animation-delay: 0.1s;
}

.cards-grid .expertise-card:nth-child(3).revealed {
  animation-delay: 0.16s;
}

.cards-grid .expertise-card:nth-child(4).revealed {
  animation-delay: 0.22s;
}

.cards-grid .expertise-card:nth-child(5).revealed {
  animation-delay: 0.28s;
}

.cards-grid .expertise-card:nth-child(6).revealed {
  animation-delay: 0.34s;
}

.card-glow {
  display: none;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: rgba(226, 117, 0, 0.92);
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.card-number::after {
  content: '';
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.expertise-card:hover .card-icon {
  border-color: rgba(226, 117, 0, 0.75);
  transform: rotate(-5deg) scale(1.06);
}

.expertise-card:nth-child(2) .card-icon,
.expertise-card:nth-child(5) .card-icon {
  background: rgba(95, 183, 255, 0.12);
}

.expertise-card:nth-child(3) .card-icon,
.expertise-card:nth-child(6) .card-icon {
  background: rgba(140, 112, 255, 0.14);
}

.expertise-card:nth-child(odd) .card-title,
.expertise-card:nth-child(odd) .card-desc {
  grid-column: 1;
  text-align: right;
  justify-self: end;
}

.expertise-card:nth-child(even) .card-title,
.expertise-card:nth-child(even) .card-desc {
  grid-column: 3;
  text-align: left;
  justify-self: start;
}

.card-title {
  grid-row: 1;
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
  max-width: 24ch;
}

.card-desc {
  grid-row: 2;
  font-size: 1rem;
  color: #adadb3;
  line-height: 1.65;
  max-width: 38ch;
  transition: color 0.3s ease;
}

.expertise-card:hover .card-title {
  color: #ffd7b2;
}

.expertise-card:hover .card-desc {
  color: #d2d2d7;
}

@keyframes cardRevealUp {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.975);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardIconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .expertise-card,
  .card-icon,
  .cards-grid,
  .expertise-card::before,
  .expertise-card::after,
  .card-desc {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects-section {
  background: var(--bg);
  padding: 120px 6vw;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  will-change: transform;
}

.project-item.reverse {
  grid-template-columns: 60px 1fr 1fr;
}

.project-item.reverse .project-info {
  order: 2;
}

.project-item.reverse .project-visual {
  order: 1;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(226, 117, 0, 0.4);
  letter-spacing: 0.1em;
  writing-mode: vertical-lr;
  text-orientation: sideways;
}

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  background: rgba(226, 117, 0, 0.1);
  border: 1px solid rgba(226, 117, 0, 0.2);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
}

.project-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.project-item:hover .project-title {
  color: var(--orange);
}

.project-desc {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  color: var(--orange);
  border-bottom: 1px solid rgba(226, 117, 0, 0.3);
  padding-bottom: 0.2rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--white);
  border-color: var(--white);
  gap: 0.8rem;
}

.project-visual:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
  border-radius: 12px;
}

/* Project window mockup */
.project-window {
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
  will-change: transform;
  transform: translateZ(0);
}

.project-window-large {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
}

.project-item:hover .project-window {
  transform: translateY(-8px) rotate(-1deg);
}

.window-bar {
  background: #252525;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.window-url {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mid);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
}

.window-content {
  padding: 0.4rem;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.window-content-large {
  padding: 0;
  height: auto;
  line-height: 0;
  background: transparent;
}

.project-window-large .project-site-preview {
  width: min(760px, 100%);
  height: auto;
  object-fit: initial;
}

.project-site-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070707;
}

.window-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(226, 117, 0, 0.05) 0%, transparent 50%, rgba(226, 117, 0, 0.03) 100%);
  pointer-events: none;
}

.window-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wl {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.w80 {
  width: 80%;
}

.w60 {
  width: 60%;
}

.w90 {
  width: 90%;
}

.w40 {
  width: 40%;
}

.w70 {
  width: 70%;
}

/* EDA Visualization */
.eda-visual-wrap {
  background: #141414;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
  height: clamp(340px, 48vw, 520px);
  will-change: transform;
  transform: translateZ(0);
}

.project-item:hover .eda-visual-wrap {
  transform: translateY(-8px) rotate(1deg);
}

.eda-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
}

.eda-chart {
  margin-bottom: 1.5rem;
}

.bar-group {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.eda-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--orange), rgba(226, 117, 0, 0.3));
  border-radius: 4px 4px 0 0;
  animation: barRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards var(--delay);
  transform-origin: bottom;
  transform: scaleY(0);
}

@keyframes barRise {
  to {
    transform: scaleY(1);
  }
}

.eda-scatter {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.s-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

.eda-label-text {
  position: absolute;
  bottom: 1rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid);
  letter-spacing: 0.1em;
}

/* ===========================
   ACHIEVEMENTS SECTION
   =========================== */
.achievements-section {
  background:
    linear-gradient(180deg, #090909 0%, #050505 100%);
  padding: 130px 6vw;
}

.achievements-showcase {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5.2rem;
}

.achievement-row {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 2.8rem;
  align-items: stretch;
  position: relative;
  padding-top: 1rem;
}

.achievement-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, rgba(226, 117, 0, 0.95), rgba(226, 117, 0, 0));
}

.achievement-row-reverse {
  grid-template-columns: 1.35fr 0.95fr;
}

.achievement-copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ach-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.ach-icon {
  font-size: 1.4rem;
}

.ach-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border-radius: 50px;
  background: rgba(226, 117, 0, 0.12);
  color: var(--orange);
  border: 1px solid rgba(226, 117, 0, 0.45);
}

.ach-badge-pill.leadership {
  background: rgba(226, 117, 0, 0.12);
  color: var(--orange);
  border-color: rgba(226, 117, 0, 0.45);
}

.ach-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.95rem;
  letter-spacing: -0.018em;
  line-height: 1.02;
}

.ach-desc {
  font-size: 1.02rem;
  color: #a9a9a9;
  line-height: 1.72;
  margin-bottom: 1.35rem;
  max-width: 58ch;
}

.ach-proof {
  display: block;
  width: 100%;
  height: clamp(420px, 52vh, 620px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  margin-bottom: 0;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.ach-proof-doc {
  height: clamp(560px, 70vh, 920px);
}

.ach-proof:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 117, 0, 0.48);
}

.ach-proof-image,
.ach-proof-pdf {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.ach-proof-image {
  object-fit: contain;
  object-position: center;
  background: #0f0f0f;
}

@media (max-width: 1024px) {

  .achievement-row,
  .achievement-row-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievement-row::before {
    width: 110px;
  }

  .ach-proof-doc {
    height: clamp(420px, 62vh, 760px);
  }

  .ach-proof {
    height: clamp(300px, 44vh, 520px);
  }
}

.ach-cert-tag span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===========================
   CERTIFICATES SECTION
   =========================== */
.certs-section {
  background: var(--bg);
  padding: 100px 0 120px;
  overflow: visible;
}

.certs-section .section-header {
  padding: 0 6vw;
}

.certs-carousel {
  position: relative;
}

.certs-track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cert-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 12, 14, 0.84);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: var(--transition-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cert-nav-left {
  left: 1.25rem;
}

.cert-nav-right {
  right: 1.25rem;
}

.cert-nav:hover {
  border-color: rgba(240, 138, 32, 0.95);
  background: var(--orange-light);
  color: #000;
}

.cert-nav:disabled {
  opacity: 0.45;
  cursor: default !important;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 14, 0.5);
  color: rgba(255, 255, 255, 0.55);
}

.certs-track-wrap::before,
.certs-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 3;
  pointer-events: none;
}

.certs-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.certs-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.certs-track {
  display: flex;
  align-items: stretch;
  gap: 1.4rem;
  width: fit-content;
  padding: 0 6vw;
  animation: none;
}

.cert-card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-width: clamp(400px, 29vw, 520px);
  width: clamp(400px, 29vw, 520px);
  min-height: 360px;
  transition: var(--transition);
  cursor: pointer;
}

.cert-card:hover {
  border-color: rgba(226, 117, 0, 0.3);
  background: rgba(226, 117, 0, 0.04);
  transform: translateY(-5px);
}

.cert-preview {
  width: 100%;
  height: 245px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.cert-preview-image,
.cert-preview-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.cert-preview-image {
  object-fit: cover;
  object-position: center;
}

.cert-info h4 {
  font-family: var(--font-main);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cert-info span {
  font-size: 0.86rem;
  color: var(--mid);
  font-family: var(--font-mono);
}

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2.2rem 2.2rem;
}

.cert-modal.open {
  display: flex;
}

.cert-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.cert-modal-stage {
  width: min(1200px, calc(100vw - 4.5rem));
  height: min(86vh, 900px);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.cert-modal-stage iframe,
.cert-modal-stage img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.cert-modal-stage img {
  object-fit: contain;
  background: #0b0b0b;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
  background: #070707;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 6vw 60px;
  text-align: left;
}

.contact-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(430px, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: stretch;
}

.contact-copy {
  padding-top: 0.2rem;
}

.contact-heading {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 5.5vw, 4.9rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.contact-heading .highlight {
  color: var(--orange);
}

.contact-sub {
  font-size: 1.03rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  max-width: 580px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  transition: var(--transition);
  cursor: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(226, 117, 0, 0.1), rgba(226, 117, 0, 0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.contact-link:hover {
  background: rgba(226, 117, 0, 0.04);
  border-color: rgba(226, 117, 0, 0.3);
  transform: translateX(5px);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.contact-brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.contact-link-icon.icon-github {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.contact-link-icon.icon-github .contact-brand-icon {
  width: 22px;
  height: 22px;
}

.contact-link-icon.icon-linkedin {
  background: transparent;
  border-color: transparent;
  border-radius: 50%;
}

.contact-link-icon.icon-linkedin .contact-brand-icon {
  width: 26px;
  height: 26px;
  filter: none;
}

.contact-link-icon.icon-email {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.link-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mid);
  text-transform: uppercase;
}

.link-val {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-link-arrow {
  font-size: 1.4rem;
  color: var(--orange);
  transition: transform var(--transition-fast);
  position: relative;
  z-index: 1;
}

.contact-link:hover .contact-link-arrow {
  transform: translateX(4px);
}

.contact-cv-panel {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(130% 90% at 5% 5%, rgba(226, 117, 0, 0.1), rgba(226, 117, 0, 0) 52%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.86), rgba(10, 10, 12, 0.96));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.44);
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.contact-download-btn {
  margin-top: 1rem;
}

.cv-download-btn:hover {
  background: transparent;
  color: var(--orange);
}

.cv-viewer-wrap {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #101014;
  width: 100%;
  aspect-ratio: 1 / 1.414;
}

.cv-viewer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #101014;
}

.contact-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  color: var(--mid);
  font-family: var(--font-mono);
}

@media (max-width: 1100px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .contact-cv-panel {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .contact-section {
    padding-top: 90px;
  }

  .cv-download-btn {
    width: 100%;
  }

  .cv-viewer {
    min-height: 0;
  }
}

/* ===========================
   FLOATING BOTTOM NAV
   =========================== */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  animation: navAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 2s;
}

@keyframes navAppear {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(40, 40, 44, 0.42), rgba(20, 20, 24, 0.56));
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.45rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(226, 226, 230, 0.72);
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
  cursor: none;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--white);
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  box-shadow: 0 8px 20px rgba(226, 117, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-item.nav-cta {
  background: transparent;
  color: rgba(226, 226, 230, 0.72);
  font-weight: 600;
  padding: 0.58rem 1.2rem;
}

.nav-item.nav-cta.active {
  color: var(--white);
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  box-shadow: 0 8px 20px rgba(226, 117, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-item.nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ===========================
   KEYFRAMES
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

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

/* ===========================
   SELECTION
   =========================== */
::selection {
  background: var(--orange);
  color: var(--white);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
  display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-hud {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    border-radius: 18px;
    padding: 0.8rem;
  }

  .hud-right {
    justify-content: space-between;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-photo-wrap {
    margin: 0 auto;
  }

  .about-badge {
    right: 50%;
    transform: translateX(50%);
  }

  .about-stats {
    justify-content: center;
  }

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

  .stat-item {
    align-items: center;
    min-width: 120px;
  }

  .skills-section {
    min-height: 100vh;
  }

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

  .skills-arc-wrap {
    display: none;
  }

  .skills-content {
    overflow: visible;
  }

  .skills-items {
    position: relative;
    height: auto;
  }

  .skill-item {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
  }

  .cards-grid {
    gap: 1rem;
  }

  .expertise-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .cards-grid::before {
    left: 28px;
  }

  .expertise-card::before {
    left: 23px;
  }

  .expertise-card::after,
  .expertise-card:nth-child(odd)::after,
  .expertise-card:nth-child(even)::after {
    left: 28px;
    width: 36px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04));
  }

  .card-number,
  .card-icon {
    grid-column: 1;
    justify-self: center;
  }

  .expertise-card .card-title,
  .expertise-card .card-desc,
  .expertise-card:nth-child(odd) .card-title,
  .expertise-card:nth-child(odd) .card-desc,
  .expertise-card:nth-child(even) .card-title,
  .expertise-card:nth-child(even) .card-desc {
    grid-column: 2;
    text-align: left;
    justify-self: start;
  }

  .card-title,
  .card-desc {
    max-width: 100%;
  }

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

  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-window-large {
    width: fit-content;
    max-width: 100%;
  }

  .window-content-large {
    padding: 0;
    height: auto;
  }

  .project-item .project-num {
    display: none;
  }

  .project-item.reverse .project-info,
  .project-item.reverse .project-visual {
    order: unset;
  }

  .cert-card {
    min-width: 300px;
    width: 300px;
  }

  .cert-modal-stage {
    width: min(1000px, calc(100vw - 3rem));
    height: min(82vh, 760px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 5vw;
  }

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

  .education-card {
    padding: 1.4rem 1.2rem 1.25rem;
  }

  .edu-school {
    font-size: 1.04rem;
  }

  .hero-section {
    min-height: 640px;
    --hero-stage-inset-x: 0px;
    --hero-stage-inset-y: 0px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 15vw, 5.5rem);
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-hud {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .hud-bars {
    gap: 0.35rem;
  }

  .hud-counter {
    font-size: 0.65rem;
  }

  .hud-btn {
    width: 30px;
    height: 30px;
  }

  .cards-grid {
    gap: 0.9rem;
  }

  .expertise-card {
    grid-template-columns: 58px minmax(0, 1fr);
    row-gap: 0.4rem;
    padding: 0.25rem 0;
  }

  .cards-grid::before {
    left: 25px;
  }

  .expertise-card::before {
    left: 20px;
  }

  .expertise-card::after,
  .expertise-card:nth-child(odd)::after,
  .expertise-card:nth-child(even)::after {
    left: 25px;
    width: 28px;
  }

  .card-number {
    font-size: 0.68rem;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-desc {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .nav-item span {
    display: none;
  }

  .nav-item {
    padding: 0.7rem;
  }

  .nav-item.nav-cta span {
    display: block;
  }

  .nav-item.nav-cta {
    padding: 0.6rem 1.2rem;
  }

  .contact-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .certs-track-wrap::before,
  .certs-track-wrap::after {
    width: 80px;
  }

  .cert-card {
    min-width: 260px;
    width: 260px;
    min-height: 250px;
  }

  .cert-nav {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .cert-nav-left {
    left: 0.55rem;
  }

  .cert-nav-right {
    right: 0.55rem;
  }

  .cert-preview {
    height: 150px;
  }

  .cert-modal {
    padding: 3.4rem 0.8rem 0.8rem;
  }

  .cert-modal-close {
    top: 0.6rem;
    right: 0.7rem;
  }

  .cert-modal-stage {
    width: calc(100vw - 1.4rem);
    height: calc(100vh - 4.8rem);
    border-radius: 10px;
  }
}

/* ===========================
   THEME TOGGLE SWITCH (top-right pill)
   =========================== */
.theme-switch {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.3s ease;
}

body.loaded .theme-switch {
  opacity: 1;
  pointer-events: auto;
}

.theme-switch-track {
  width: 68px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.theme-switch-track:hover {
  border-color: rgba(226, 117, 0, 0.5);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(226, 117, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Icons inside the track */
.ts-icon {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
  pointer-events: none;
}

/* Moon on the LEFT — active in dark mode: bright white */
.ts-moon {
  color: #ffffff;
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

/* Sun on the RIGHT — inactive in dark mode: dimmed orange */
.ts-sun {
  color: rgba(226, 117, 0, 0.45);
  opacity: 0.45;
  transform: scale(0.85);
}

/* Sliding thumb */
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0e0f0, #c8c8d8);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
  z-index: 1;
}

/* ── Light mode states ── */
body[data-theme="light"] .theme-switch-track {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .theme-switch-track:hover {
  border-color: rgba(226, 117, 0, 0.4);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(226, 117, 0, 0.18);
}

/* Thumb slides right in light mode */
body[data-theme="light"] .theme-switch-thumb {
  transform: translateX(34px);
  background: linear-gradient(145deg, #fff8ee, #ffe8c0);
  box-shadow:
    0 2px 10px rgba(226, 117, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Moon dims in light mode */
body[data-theme="light"] .ts-moon {
  color: rgba(80, 80, 120, 0.3);
  opacity: 0.28;
  transform: scale(0.8);
  filter: none;
}

/* Sun brightens in light mode — black and large */
body[data-theme="light"] .ts-sun {
  color: #1a1a1a;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(226,117,0,0.4));
  transform: scale(1);
}


/* ===========================
   LIGHT MODE
   =========================== */
body[data-theme="light"] {
  --bg:    #f4f4f6;
  --white: #111111;
  --light: #1e1e1e;
  --mid:   #555555;
  --dark:  #dddddd;
  --black: #ebebee;
  background: #f4f4f6;
  color: #111111;
}

body[data-theme="light"] .loader { background: #f4f4f6; }

body[data-theme="light"] #scroll-container { background: #f4f4f6; }

body[data-theme="light"] section { background: #f4f4f6; }

/* Hero */
body[data-theme="light"] .hero-section { background: #f4f4f6; }
body[data-theme="light"] .hero-media { background: #e8e8ec; }
body[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(244, 244, 246, 0.2) 0%, rgba(244, 244, 246, 0.38) 72%, rgba(244, 244, 246, 0.5) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.04) 100%);
}
body[data-theme="light"] .hero-noise { display: none; }
body[data-theme="light"] .hero-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: none;
}

/* About */
body[data-theme="light"] .about-section { background: #ededf0; }
body[data-theme="light"] .about-quote { background: rgba(226, 117, 0, 0.06); }
body[data-theme="light"] .photo-overlay-text { color: #1e1e1e; }

/* Education */
body[data-theme="light"] .education-section {
  background: radial-gradient(circle at 85% 20%, rgba(226, 117, 0, 0.07), transparent 45%), #ededf0;
}
body[data-theme="light"] .education-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0.78) 100%), rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-theme="light"] .education-card::before {
  background: linear-gradient(132deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.01) 44%, rgba(226, 117, 0, 0.28) 100%);
}
body[data-theme="light"] .education-card::after { opacity: 0; }
body[data-theme="light"] .education-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0.9) 100%), rgba(255, 255, 255, 1);
  border-color: rgba(226, 117, 0, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(226, 117, 0, 0.1);
}
body[data-theme="light"] .edu-num {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Skills */
body[data-theme="light"] .skills-section { background: #f4f4f6; }
body[data-theme="light"] .skill-item { border-bottom-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .skill-item::before { background: linear-gradient(90deg, rgba(226, 117, 0, 0.06), transparent); }
body[data-theme="light"] .skill-title-logo { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.09); }
body[data-theme="light"] .skill-tags span { background: rgba(226, 117, 0, 0.08); border-color: rgba(226, 117, 0, 0.2); }
body[data-theme="light"] .skill-tags span:hover { background: var(--orange); color: #fff; }
body[data-theme="light"] .arc-num-dot .dot-circle {
  background: linear-gradient(155deg, #f3f4f7, #e7e9ee);
  border-color: rgba(0, 0, 0, 0.14);
  color: #555;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14), 0 0 0 3px #f4f4f6;
}
body[data-theme="light"] .arc-num-dot.active .dot-circle {
  background: var(--orange);
  border-color: var(--orange);
  color: #000000;
  box-shadow: 0 0 18px rgba(226, 117, 0, 0.45), 0 0 0 3px #f4f4f6;
  width: 38px;
  height: 38px;
  font-size: 0.8rem;
}

@media (min-width: 1025px) {
  body[data-theme="light"] .skill-item {
    background: linear-gradient(180deg, rgba(226, 117, 0, 0.03), rgba(255, 255, 255, 0.55));
    border-color: rgba(0, 0, 0, 0.06);
  }
}

/* What I Do Best */
body[data-theme="light"] .what-i-do-section {
  background:
    linear-gradient(180deg, #ededf0, #f2f2f4),
    radial-gradient(circle at 14% 15%, rgba(226, 117, 0, 0.05), transparent 34%);
}
body[data-theme="light"] .cards-grid::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(226, 117, 0, 0.55) 50%, rgba(0, 0, 0, 0.08));
}
body[data-theme="light"] .expertise-card {
  background: transparent;
  box-shadow: none;
}
body[data-theme="light"] .expertise-card::before {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(226, 117, 0, 0.16);
}
body[data-theme="light"] .expertise-card::after {
  opacity: 1;
}
body[data-theme="light"] .expertise-card:nth-child(odd)::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3));
}
body[data-theme="light"] .expertise-card:nth-child(even)::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.04));
}
body[data-theme="light"] .card-icon {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: none;
}
body[data-theme="light"] .card-title { color: #161616; }
body[data-theme="light"] .card-desc { color: #666; }
body[data-theme="light"] .expertise-card:hover .card-desc { color: #333; }

/* Projects */
body[data-theme="light"] .projects-section { background: #f4f4f6; }
body[data-theme="light"] .project-item { border-bottom-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .project-window {
  background: #f0f0f2;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .window-bar { background: #e4e4e8; border-bottom-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .window-content { background: #fafafa; }
body[data-theme="light"] .window-url { background: rgba(0, 0, 0, 0.05); }
body[data-theme="light"] .eda-visual-wrap {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}
body[data-theme="light"] .bar-group { border-bottom-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .eda-scatter { border-color: rgba(0, 0, 0, 0.07); }

/* Achievements */
body[data-theme="light"] .achievements-section { background: #ededf0; }
body[data-theme="light"] .achievement-row::before { background: linear-gradient(90deg, rgba(226, 117, 0, 0.75), rgba(226, 117, 0, 0)); }
body[data-theme="light"] .ach-proof {
  border-color: rgba(0, 0, 0, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}
body[data-theme="light"] .ach-proof:hover { border-color: rgba(226, 117, 0, 0.38); }
body[data-theme="light"] .ach-desc { color: #555; }

/* Certificates */
body[data-theme="light"] .certs-section { background: #f4f4f6; }
body[data-theme="light"] .certs-track-wrap::before { background: linear-gradient(to right, #f4f4f6, transparent); }
body[data-theme="light"] .certs-track-wrap::after  { background: linear-gradient(to left, #f4f4f6, transparent); }
body[data-theme="light"] .cert-nav {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #222;
}
body[data-theme="light"] .cert-nav:hover {
  border-color: rgba(240, 138, 32, 0.95);
  background: var(--orange-light);
  color: #000;
}
body[data-theme="light"] .cert-nav:disabled {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: #888;
}
body[data-theme="light"] .cert-card { background: rgba(255, 255, 255, 0.85); border-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .cert-card:hover { border-color: rgba(226, 117, 0, 0.28); background: rgba(255, 255, 255, 1); }
body[data-theme="light"] .cert-preview { border-color: rgba(0, 0, 0, 0.07); background: #f0f0f2; }
body[data-theme="light"] .cert-info h4 { color: #111; }
body[data-theme="light"] .cert-info span { color: #777; }

/* Contact */
body[data-theme="light"] .contact-section { background: #ededf0; }
body[data-theme="light"] .contact-link { background: rgba(255, 255, 255, 0.7); border-color: rgba(0, 0, 0, 0.07); }
body[data-theme="light"] .contact-link:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(226, 117, 0, 0.28); }
body[data-theme="light"] .contact-link::before { background: linear-gradient(120deg, rgba(226, 117, 0, 0.12), rgba(226, 117, 0, 0)); }
body[data-theme="light"] .contact-link-icon { background: rgba(226, 117, 0, 0.08); border-color: rgba(0, 0, 0, 0.09); }
body[data-theme="light"] .contact-cv-panel {
  background:
    radial-gradient(120% 85% at 4% 4%, rgba(226, 117, 0, 0.14), rgba(226, 117, 0, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 247, 249, 0.95));
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}
body[data-theme="light"] .cv-viewer-wrap { border-color: rgba(0, 0, 0, 0.1); background: #ffffff; }
body[data-theme="light"] .cv-viewer { background: #ffffff; }
body[data-theme="light"] .cv-download-btn:hover { background: rgba(226, 117, 0, 0.08); }
body[data-theme="light"] .contact-footer { border-top-color: rgba(0, 0, 0, 0.07); color: #777; }

/* Floating Nav */
body[data-theme="light"] .nav-list {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 245, 248, 0.88));
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}
body[data-theme="light"] .nav-item { color: rgba(30, 30, 30, 0.7); }
body[data-theme="light"] .nav-item:hover { color: #111; background: rgba(0, 0, 0, 0.05); }
body[data-theme="light"] .nav-item.nav-cta { color: rgba(30, 30, 30, 0.7); }
body[data-theme="light"] .nav-item.nav-cta:hover { background: rgba(0, 0, 0, 0.04); color: #111; }

/* Cert Modal */
body[data-theme="light"] .cert-modal { background: rgba(244, 244, 246, 0.88); }
body[data-theme="light"] .cert-modal-stage { background: #fff; border-color: rgba(0, 0, 0, 0.09); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14); }
body[data-theme="light"] .cert-modal-close { border-color: rgba(0, 0, 0, 0.12); background: rgba(255, 255, 255, 0.7); color: #333; }

/* ---- Smooth global transition for theme switch ---- */
body,
body * {
  transition-property: background-color, border-color, color, box-shadow, fill, stroke;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

/* But don't slow down existing faster animations */
body [data-reveal],
body .skill-item,
body .expertise-card,
body .education-card,
body .expertise-card::before,
body .expertise-card::after {
  transition-duration: 0.35s, 0.35s, 0.35s, 0.35s, 0.9s !important;
}