:root {
  --bg: #000000;
  --bg-card: rgba(255, 255, 255, 0.015);
  --c1: #c084fc;
  --c2: #7c3aed;
  --c3: #f0abfc;
  --text: #e2e8f0;
  --muted: #475569;
  --border: rgba(255, 255, 255, 0.04);
  --glow: 0 0 40px rgba(192, 132, 252, 0.25);
  --radius: 20px;
  --ff: 'Inter', sans-serif;
  --fh: 'Outfit', sans-serif;
  --fm: 'Space Mono', monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #000000, #00081c);
  color: var(--text);
  font-family: var(--ff);
  overflow-x: hidden;
  line-height: 1.65;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.3);
  border-radius: 3px;
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s;
}

.pl-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--c1);
  border-left-color: var(--c2);
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 12px var(--c1));
  margin-bottom: 20px;
}

.pl-text {
  font-family: var(--fh);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--c1);
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

/* ── Cursor ── */
#cursor {
  width: 8px;
  height: 8px;
  background: var(--c1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--c1), 0 0 30px var(--c1);
  transition: transform .1s;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(192, 132, 252, .5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: all .12s ease-out;
}

#cursor.hover {
  transform: translate(-50%, -50%) scale(2.5);
  background: transparent;
  border: 1px solid var(--c1);
}

#cursor-ring.hover {
  width: 60px;
  height: 60px;
  opacity: .3;
}



/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 8%;
  background: rgba(2, 8, 4, .7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}

nav.shrink {
  padding: .7rem 8%;
}

.logo {
  font-family: var(--fh);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform .3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 1002;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: var(--c1);
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: rgba(8, 4, 16, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.nav-links.active {
  right: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: 1px;
  transition: all .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c1);
  transition: width .3s;
}

.nav-links a:hover {
  color: var(--c1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-item {
  margin-top: 1rem;
}

.nav-cta {
  padding: .7rem 1.8rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #000 !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
  display: inline-block;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 132, 252, .4);
}

/* ── Sections ── */
section {
  padding: 110px 8%;
  max-width: 1440px;
  margin: 0 auto;
}

.s-label {
  display: block;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: 4px;
  color: var(--c1);
  margin-bottom: .8rem;
}

.s-title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  display: inline-block;
  background: linear-gradient(135deg, #fff 30%, var(--c1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s-head {
  margin-bottom: 4rem;
}

/* ── Hero ── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(192, 132, 252, .08);
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 50px;
  padding: .45rem 1.2rem;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--c1);
  margin-bottom: 2rem;
  animation: badgePulse 3s infinite;
  cursor: pointer;
  transition: all .3s ease;
}

.hero-badge:hover {
  background: rgba(192, 132, 252, .15);
  border-color: rgba(192, 132, 252, .4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 132, 252, .2);
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c1);
  animation: blink 1.5s infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, .3)
  }

  50% {
    box-shadow: 0 0 0 8px rgba(192, 132, 252, 0)
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-name {
  font-family: var(--fh);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: .95;
  margin-bottom: 1.5rem;
}

.hero-name .line1 {
  display: block;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(192, 132, 252, .4));
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-typing {
  font-family: var(--fm);
  font-size: clamp(.85rem, 2vw, 1rem);
  color: var(--c1);
  min-height: 1.5em;
  margin-bottom: 2.5rem;
}

.hero-typing::after {
  content: '|';
  animation: blink .7s infinite;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--fh);
  font-size: .9rem;
  transition: all .3s ease;
  border: none;
  cursor: none;
}

.btn-glow {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #000;
  box-shadow: 0 4px 20px rgba(192, 132, 252, .35);
}

.btn-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(192, 132, 252, .55);
}

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(192, 132, 252, .4);
  color: var(--c1);
  transform: translateY(-4px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--fh);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat .lbl {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-sep {
  width: 1px;
  background: var(--border);
  height: 40px;
  align-self: center;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.hl {
  color: var(--c1);
  font-weight: 600;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(192, 132, 252, .15), transparent 50%, rgba(124, 58, 237, .15));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

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

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.meta-item .val {
  font-family: var(--fh);
  font-size: 2rem;
  font-weight: 900;
}

.meta-item .val.c1 {
  color: var(--c1);
}

.meta-item .val.c2 {
  color: var(--c2);
}

.meta-item .val.c3 {
  color: var(--c3);
}

.meta-item .key {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ── Skills ── */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.radial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.radial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all .4s;
}

.radial-card:hover {
  border-color: rgba(192, 132, 252, .3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4), var(--glow);
}

.radial-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
}

.radial-ring svg {
  transform: rotate(-90deg);
  width: 100px;
  height: 100px;
}

.radial-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, .05);
  stroke-width: 8;
}

.radial-ring .fill {
  fill: none;
  stroke: url(#grad1);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.radial-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--c1);
}

.radial-card h4 {
  font-family: var(--fh);
  font-weight: 700;
  margin-bottom: .5rem;
}

.radial-card p {
  font-size: .8rem;
  color: var(--muted);
}

.tech-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.tech-stack h4 {
  font-family: var(--fh);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--c1);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 2rem;
}

.chip {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem 1rem;
  font-size: .82rem;
  color: var(--muted);
  transition: all .3s;
}

.chip:hover {
  background: rgba(192, 132, 252, .1);
  color: var(--c1);
  border-color: rgba(192, 132, 252, .4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 132, 252, .15);
}

/* ── DSA Section ── */
.dsa-platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.dsa-platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all .4s ease;
}

.dsa-platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

.lc-card {
  border-top: 1px solid rgba(245, 158, 11, .25);
}

.lc-card:hover {
  border-color: rgba(245, 158, 11, .4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(245, 158, 11, .08);
}

.gfg-card {
  border-top: 1px solid rgba(47, 141, 70, .25);
}

.gfg-card:hover {
  border-color: rgba(47, 141, 70, .4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(47, 141, 70, .08);
}

.dsa-plat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dsa-plat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-icon {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .25);
  color: #f59e0b;
}

.gfg-icon {
  background: rgba(47, 141, 70, .1);
  border: 1px solid rgba(47, 141, 70, .25);
  color: #2f8d46;
}

.dsa-plat-header h3 {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .2rem;
}

.dsa-plat-sub {
  font-size: .78rem;
  color: var(--muted);
}

.dsa-plat-link {
  margin-left: auto;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  transition: color .3s;
}

.dsa-plat-link:hover {
  color: var(--c1);
}

.dsa-big-stat {
  text-align: center;
  margin: 1.5rem 0;
}

.dsa-big-num {
  display: block;
  font-family: var(--fh);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .3rem;
}

.lc-color {
  color: #f59e0b;
  text-shadow: 0 0 30px rgba(245, 158, 11, .4);
}

.gfg-color {
  color: #2f8d46;
  text-shadow: 0 0 30px rgba(47, 141, 70, .4);
}

.dsa-big-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dsa-diff-row {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.diff-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .3rem .8rem;
}

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

.diff-pill.easy .diff-dot {
  background: #22c55e;
}

.diff-pill.medium .diff-dot {
  background: #f59e0b;
}

.diff-pill.hard .diff-dot {
  background: #ef4444;
}

.diff-count {
  font-weight: 700;
  color: var(--text);
  margin-left: .2rem;
}

.dsa-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, .05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.dsa-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
}

.dsa-plat-note {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* DSA Total Card */
.dsa-total-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(192, 132, 252, .08));
  border: 1px solid rgba(124, 58, 237, .3);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .4s ease;
}

.dsa-total-card:hover {
  border-color: rgba(192, 132, 252, .35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4), 0 0 40px rgba(124, 58, 237, .12);
  transform: translateY(-6px);
}

.dsa-total-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, .25), transparent 70%);
  pointer-events: none;
}

.dsa-total-label {
  font-family: var(--fm);
  font-size: .72rem;
  letter-spacing: 3px;
  color: var(--c1);
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.dsa-total-num {
  font-family: var(--fh);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(192, 132, 252, .3));
  margin-bottom: .5rem;
}

.dsa-total-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.dsa-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.topic-pill {
  font-size: .72rem;
  font-family: var(--fm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .75rem;
  color: var(--muted);
  transition: all .3s;
}

.topic-pill:hover {
  background: rgba(192, 132, 252, .08);
  color: var(--c1);
  border-color: rgba(192, 132, 252, .3);
  transform: translateY(-2px);
}

/* ── Projects ── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all .4s ease;
  /* transform-style:preserve-3d; will-change:transform; - DISABLED FOR PERFORMANCE */
}

.proj-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(192, 132, 252, .1);
  border-color: rgba(192, 132, 252, .25);
}

.proj-banner {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.proj-banner .icon {
  font-size: 4.5rem;
  opacity: .5;
  color: var(--c1);
  z-index: 1;
  text-shadow: 0 0 20px rgba(192, 132, 252, .4);
  transition: all .4s ease;
}

.proj-card:hover .proj-banner .icon {
  transform: scale(1.1);
  opacity: .8;
}

.proj-banner .proj-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(192, 132, 252, .12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.proj-card:hover .proj-glow {
  opacity: 1;
}

.proj-body {
  padding: 1.8rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.ptag {
  font-size: .7rem;
  padding: .25rem .7rem;
  background: rgba(192, 132, 252, .08);
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 4px;
  color: var(--c1);
  font-family: var(--fm);
}

.proj-body h3 {
  font-family: var(--fh);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.proj-body p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.proj-links {
  display: flex;
  gap: .8rem;
}

.proj-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all .3s;
}

.proj-link.primary {
  background: rgba(192, 132, 252, .1);
  border: 1px solid rgba(192, 132, 252, .3);
  color: var(--c1);
}

.proj-link.primary:hover {
  background: rgba(192, 132, 252, .2);
  box-shadow: 0 4px 16px rgba(192, 132, 252, .2);
}

.proj-link.ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.proj-link.ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .15);
}

/* ── Charts ── */
.charts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.chart-card h4 {
  font-family: var(--fh);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bc-label {
  font-size: .78rem;
  color: var(--muted);
  width: 90px;
  flex-shrink: 0;
}

.bc-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  overflow: hidden;
}

.bc-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  width: 0;
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 10px rgba(192, 132, 252, .5);
}

.bc-pct {
  font-size: .75rem;
  color: var(--c1);
  font-weight: 700;
  width: 35px;
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#donut-canvas {
  max-width: 220px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
  color: var(--muted);
}

.dl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Timeline (Education) ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--c1), var(--c2), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .7s ease;
}

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

.tl-dot {
  position: absolute;
  left: -2.7rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c1);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--c1);
}

.tl-date {
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--c1);
  display: block;
  margin-bottom: .4rem;
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: all .3s;
}

.tl-card:hover {
  border-color: rgba(192, 132, 252, .25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.tl-card h3 {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .3rem;
}

.tl-card .org {
  font-size: .85rem;
  color: var(--c2);
  font-weight: 600;
  margin-bottom: .6rem;
  display: block;
}

.tl-card p {
  font-size: .88rem;
  color: var(--muted);
}

/* ── Experience Cards ── */
.exp-cards {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.exp-card:hover::after {
  transform: scaleX(1);
}

.exp-card:hover {
  border-color: rgba(192, 132, 252, .2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 0 25px rgba(192, 132, 252, .07);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.exp-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(192, 132, 252, .1), rgba(124, 58, 237, .1));
  border: 1px solid rgba(192, 132, 252, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--c1);
  transition: all .3s;
}

.exp-card:hover .exp-icon {
  background: linear-gradient(135deg, rgba(192, 132, 252, .2), rgba(124, 58, 237, .2));
  box-shadow: 0 4px 16px rgba(192, 132, 252, .2);
}

.exp-header h3 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .2rem;
}

.exp-header h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.exp-header h3 a:hover {
  color: var(--c1);
}

.exp-org {
  font-size: .85rem;
  color: var(--c2);
  font-weight: 600;
}

.exp-badge {
  margin-left: auto;
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: 1px;
  color: var(--c1);
  background: rgba(192, 132, 252, .08);
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 50px;
  padding: .25rem .9rem;
  white-space: nowrap;
}

.exp-date {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.exp-list {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.exp-list li {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

.exp-list li::marker {
  color: var(--c1);
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}



/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: var(--fh);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.c-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s;
  font-size: .9rem;
}

.c-link:hover {
  color: var(--c1);
}

.c-link.resume-dl:hover {
  color: #22c55e;
}

.resume-badge {
  display: inline-block;
  background: rgba(34, 197, 94, .15);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #22c55e;
  border-radius: 4px;
  font-size: .65rem;
  font-family: var(--fm);
  padding: .1rem .45rem;
  margin-left: .4rem;
  letter-spacing: 1px;
  vertical-align: middle;
}

.c-link .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c1);
  font-size: 1rem;
  transition: all .3s;
  flex-shrink: 0;
}

.c-link:hover .icon-wrap {
  background: rgba(192, 132, 252, .1);
  border-color: rgba(192, 132, 252, .3);
  box-shadow: 0 4px 16px rgba(192, 132, 252, .2);
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.fg label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .5px;
}

.fg input,
.fg textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text);
  font-family: var(--ff);
  font-size: .9rem;
  transition: all .3s;
}

.fg input:focus,
.fg textarea:focus {
  outline: none;
  border-color: rgba(192, 132, 252, .4);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 20px rgba(192, 132, 252, .08);
}

.fg textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── Footer ── */
footer {
  padding: 3rem 8%;
  text-align: center;
  border-top: 1px solid var(--border);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all .3s;
}

.socials a:hover {
  color: var(--c1);
  border-color: rgba(192, 132, 252, .4);
  background: rgba(192, 132, 252, .08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 132, 252, .2);
}

.foot-copy {
  color: var(--muted);
  font-size: .82rem;
}

/* ── Modal ── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 4, .9);
  backdrop-filter: blur(16px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.modal-bg.show {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #080414;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 700px;
  width: 100%;
  position: relative;
  transform: scale(.92) translateY(30px);
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
}

.modal-bg.show .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  cursor: none;
  transition: all .3s;
}

.modal-close:hover {
  color: var(--c1);
  border-color: rgba(192, 132, 252, .3);
}

.modal-title {
  font-family: var(--fh);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--c1);
}

.modal-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.modal-btns {
  display: flex;
  gap: 1rem;
}

/* ── Reveal ── */
.hero-anim {
  opacity: 0;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

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

.hero-badge.hero-anim {
  animation-delay: 0.1s;
}

.hero-name.hero-anim {
  animation-delay: 0.2s;
}

.hero-title.hero-anim {
  animation-delay: 0.3s;
}

.hero-typing.hero-anim {
  animation-delay: 0.4s;
}

.hero-btns.hero-anim {
  animation-delay: 0.5s;
}

.hero-stats.hero-anim {
  animation-delay: 0.6s;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--c1), var(--c2));
  border-radius: 0 0 3px 3px;
  transition: height .5s ease;
}

.cert-card:hover::before {
  height: 100%;
}

.cert-card:hover {
  border-color: rgba(192, 132, 252, .2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 0 30px rgba(192, 132, 252, .08);
}

.cert-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192, 132, 252, .1), rgba(124, 58, 237, .1));
  border: 1px solid rgba(192, 132, 252, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c1);
  transition: all .3s;
}

.cert-card:hover .cert-icon {
  background: linear-gradient(135deg, rgba(192, 132, 252, .2), rgba(124, 58, 237, .2));
  box-shadow: 0 4px 16px rgba(192, 132, 252, .25);
}

.cert-body h3 {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--text);
}

.cert-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cert-body h3 a:hover {
  color: var(--c1);
}

.cert-issuer {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--fm);
  font-size: .72rem;
  letter-spacing: 1px;
  color: var(--c2);
  margin-bottom: .8rem;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 50px;
  padding: .2rem .8rem;
}

.cert-body p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cert-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.framework-tag {
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .5px;
  color: var(--c2);
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 20px;
  padding: .2rem .6rem;
  display: inline-block;
}

.desktop-only {
  display: inline;
}

/* ── Responsive ── */
@media(max-width:1024px) {

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

  .charts-wrap {
    grid-template-columns: 1fr;
  }

  .dsa-platform-row {
    grid-template-columns: 1fr;
  }
}

@media(max-width:768px) {
  .desktop-only {
    display: none;
  }

  .nav-actions {
    gap: 0.8rem !important;
  }

  .nav-cta {
    padding: .5rem 1rem !important;
    font-size: .8rem !important;
  }

  section {
    padding: 80px 5%;
  }

  nav {
    padding: .8rem 5%;
  }

  .nav-links {
    width: 100%;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .num {
    font-size: 1.6rem;
  }

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

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