/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #1a1530;
  --bg-alt: #231d3e;
  --surface: rgba(91, 35, 255, 0.07);
  --surface-h: rgba(91, 35, 255, 0.13);
  --border: rgba(91, 35, 255, 0.22);

  /* Colorhunt palette: #362F4F #5B23FF #008BFF #E4FF30 */
  --dp: #362F4F;
  --violet: #5B23FF;
  --blue-mid: #008BFF;
  --lime: #E4FF30;

  /* Semantic aliases */
  --coral: #5B23FF;
  --cyan: #008BFF;
  --purple: #E4FF30;
  --yellow: #E4FF30;
  --blue: #008BFF;
  --blue-light: #008BFF;
  --cream: #E4FF30;
  --taupe: #a09cc0;

  --text: #ede8ff;
  --text-muted: #a09cc0;
  --text-dim: #5a5470;

  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

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

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

button {
  cursor: none;
  border: none;
  background: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(91, 35, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--lime);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--violet);
  border-radius: 3px;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(26, 21, 48, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(91, 35, 255, 0.3);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

#hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--blue-mid), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--blue-mid));
  color: #fff;
  box-shadow: 0 0 24px rgba(91, 35, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(91, 35, 255, 0.7);
}

.btn-ghost {
  border: 2px solid var(--border);
  color: var(--text);
}

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

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 5%;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.hero-greeting {
  font-size: 1.1rem;
  color: var(--lime);
  font-family: var(--mono);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(150deg, #fff 0%, var(--blue-mid) 50%, var(--lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.typewriter-wrap {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 1rem;
  min-height: 2rem;
}

#typewriter {
  color: var(--lime);
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--violet);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.hero-socials a svg {
  width: 18px;
  height: 18px;
}

.hero-socials a:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(228, 255, 48, 0.4);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-avatar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.avatar-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--violet), var(--blue-mid), var(--lime), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 10s linear infinite;
}

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

.avatar-inner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: -0.05em;
}

.avatar-orbs {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet), transparent);
  opacity: 0.25;
  animation: float 4s ease-in-out infinite;
}

.orb-1 {
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  animation-delay: 0s;
}

.orb-2 {
  width: 20px;
  height: 20px;
  bottom: 20px;
  left: 0;
  animation-delay: 1.5s;
  background: radial-gradient(circle, var(--lime), transparent);
}

.orb-3 {
  width: 16px;
  height: 16px;
  top: 50%;
  right: -10px;
  animation-delay: 3s;
  background: radial-gradient(circle, var(--blue-mid), transparent);
}

@keyframes float {

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

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

.about-bio {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-bio strong {
  color: var(--text);
}

.about-stats-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 80px;
}

.mini-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.mini-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--violet);
  box-shadow: 0 0 22px rgba(91, 35, 255, 0.25);
  transform: translateY(-4px);
}

.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
  flex-shrink: 0;
}

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

.tag {
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--mono);
  border: 1px solid;
  cursor: default;
  transition: var(--transition);
}

.tag[data-color="coral"] {
  color: var(--violet);
  border-color: rgba(91, 35, 255, 0.35);
  background: rgba(91, 35, 255, 0.08);
}

.tag[data-color="cyan"] {
  color: var(--blue-mid);
  border-color: rgba(0, 139, 255, 0.35);
  background: rgba(0, 139, 255, 0.08);
}

.tag[data-color="purple"] {
  color: var(--lime);
  border-color: rgba(228, 255, 48, 0.3);
  background: rgba(228, 255, 48, 0.06);
}

.tag[data-color="yellow"] {
  color: var(--taupe);
  border-color: rgba(160, 156, 192, 0.3);
  background: rgba(160, 156, 192, 0.06);
}

.tag:hover {
  transform: scale(1.08);
  filter: brightness(1.3);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1200px;
}

.flip-card {
  height: 380px;
  cursor: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.flip-card-front {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(91, 35, 255, 0.2), rgba(0, 139, 255, 0.1));
  border-color: var(--violet);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proj-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

.proj-glow-1 {
  background: var(--violet);
}

.proj-glow-2 {
  background: var(--blue-mid);
}

.proj-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface-h);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.proj-icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.proj-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.proj-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--mono);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: auto;
}

.proj-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(0, 139, 255, 0.12);
  color: var(--blue-mid);
  border: 1px solid rgba(0, 139, 255, 0.3);
}

.proj-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-style: italic;
}

.proj-back-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 1.2rem;
}

.proj-bullets {
  padding-left: 1rem;
}

.proj-bullets li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  position: relative;
}

.proj-bullets li::before {
  content: '▸';
  color: var(--lime);
  position: absolute;
  left: -1rem;
}

/* ===== GITHUB STATS (Projects section) ===== */
.gh-stats-card {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.gh-stats-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(228, 255, 48, 0.06), transparent 60%);
  pointer-events: none;
}

.gh-stats-card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 28px rgba(228, 255, 48, 0.15);
  transform: translateY(-3px);
}

.gh-card-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.gh-card-logo svg {
  width: 44px;
  height: 44px;
  color: var(--lime);
}

.gh-card-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.gh-card-info a {
  font-size: 0.8rem;
  color: var(--blue-mid);
  font-family: var(--mono);
  transition: var(--transition);
}

.gh-card-info a:hover {
  color: var(--lime);
}

.gh-stat-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.gh-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: rgba(228, 255, 48, 0.06);
  border: 1px solid rgba(228, 255, 48, 0.2);
}

.gh-pill-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.gh-pill-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gh-card-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.gh-status-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.gh-verify-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lime);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(228, 255, 48, 0.3);
  transition: var(--transition);
}

.gh-verify-btn:hover {
  background: rgba(228, 255, 48, 0.1);
}

/* ===== COMPETITIVE ===== */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

.cp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(91, 35, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.cp-card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(91, 35, 255, 0.3);
}

.cp-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cp-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.cp-logo svg {
  width: 48px;
  height: 48px;
}

.cp-platform {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cp-handle {
  font-size: 0.8rem;
  color: var(--blue-mid);
  font-family: var(--mono);
  transition: var(--transition);
}

.cp-handle:hover {
  color: var(--lime);
}

.cp-stats-main {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lc-ring {
  stroke: var(--lime);
}

.cf-ring {
  stroke: var(--blue-mid);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-num {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.ring-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cp-breakdown {
  flex: 1;
}

.diff-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.diff-label {
  font-size: 0.78rem;
  width: 52px;
  color: var(--text-muted);
}

.diff-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.diff-bar {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}

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

.medium .diff-bar {
  background: var(--blue-mid);
}

.hard .diff-bar {
  background: var(--violet);
}

.diff-num {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
  width: 28px;
  text-align: right;
  color: var(--text);
}

.cf-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.cf-stat-row:last-child {
  border-bottom: none;
}

.cf-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cf-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--blue-mid);
}

.cp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.cp-status {
  font-size: 0.73rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.cp-verify-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lime);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(228, 255, 48, 0.3);
  transition: var(--transition);
}

.cp-verify-btn:hover {
  background: rgba(228, 255, 48, 0.1);
}

/* ===== AWARDS / TIMELINE ===== */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--blue-mid), var(--lime), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-icon {
  position: absolute;
  left: -1.4rem;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid;
}

.tl-gold {
  background: rgba(228, 255, 48, 0.08);
  border-color: var(--lime);
}

.tl-cyan {
  background: rgba(0, 139, 255, 0.1);
  border-color: var(--blue-mid);
}

.tl-purple {
  background: rgba(91, 35, 255, 0.1);
  border-color: var(--violet);
}

.tl-coral {
  background: rgba(228, 255, 48, 0.06);
  border-color: var(--lime);
}

.tl-blue {
  background: rgba(0, 139, 255, 0.1);
  border-color: var(--blue-mid);
}

.tl-content {
  margin-left: 0.8rem;
}

.tl-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tl-sub {
  font-size: 0.82rem;
  color: var(--blue-mid);
  margin-bottom: 0.4rem;
  font-family: var(--mono);
}

.tl-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tl-desc strong {
  color: var(--text);
}

.tl-desc em {
  color: var(--lime);
  font-style: normal;
}

/* ===== EDUCATION ===== */
.edu-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 3rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.edu-card:hover {
  border-color: var(--violet);
  box-shadow: 0 0 30px rgba(91, 35, 255, 0.2);
}

.edu-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.edu-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--violet), var(--blue-mid));
  color: #fff;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
}

.edu-institute {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.edu-right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.edu-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.edu-detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edu-detail-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}

.edu-cgpa {
  color: var(--lime);
  font-size: 1.2rem;
}

/* ===== CONTACT ===== */
.contact-container {
  text-align: center;
}

.contact-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  font-size: 0.9rem;
  text-align: left;
}

.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex-shrink: 0;
}

.contact-card:hover {
  border-color: var(--violet);
  transform: translateX(8px);
  background: var(--surface-h);
}

/* ===== FOOTER ===== */
#footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

#footer strong {
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 21, 48, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    display: none;
    z-index: 999;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  #hamburger {
    display: flex;
  }

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

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

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

  .gh-stats-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .gh-stat-pills {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .cp-stats-main {
    flex-direction: column;
  }

  .edu-card {
    flex-direction: column;
  }

  .edu-right {
    align-items: flex-start;
  }

  .edu-detail {
    align-items: flex-start;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(91, 35, 255, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(91, 35, 255, 0.4);
  }
}

.cp-card.data-loaded {
  animation: pulse-glow 1s ease;
}