:root {
  --bg: #05070b;
  --surface: rgba(15, 21, 28, 0.72);
  --surface-2: rgba(20, 30, 38, 0.9);
  --text: #e7eef4;
  --muted: #9ab0c2;
  --accent: #76b900;
  --accent-2: #9edc2a;
  --line: rgba(118, 185, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #A3E635 0%, #76b900 50%, #9edc2a 100%);
  --glow-green: 0 0 30px rgba(118, 185, 0, 0.4), 0 0 60px rgba(118, 185, 0, 0.2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #101a22 0%, var(--bg) 45%), var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: var(--glow-green);
}

/* Gradient Text Utility */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--line);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

#neural-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: auto;
}

/*  LANDING HERO  */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 80px 0 60px;
}

.landing-content {
  max-width: 900px;
  text-align: center;
}

.landing-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Brand lockup */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-name {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: none;
  position: relative;
  background: linear-gradient(135deg, #f1f7fb 0%, #A3E635 40%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(158, 220, 42, 0.08);
}

.brand-name::after {
  content: "";
  display: block;
  width: min(420px, 82vw);
  height: 3px;
  margin: 12px auto 0;
  background: var(--gradient-primary);
  border-radius: 999px;
  opacity: 0.7;
  filter: blur(0.1px);
}

.brand-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(158, 220, 42, 0.35);
  background: rgba(158, 220, 42, 0.10);
  color: #e5f5ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  box-shadow: 0 0 22px rgba(158, 220, 42, 0.12);
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.35);
}

.brand-role {
  color: #a8bed0;
  font-weight: 700;
  font-size: 0.92rem;
}

.landing-kicker {
  margin: 0;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 21, 28, 0.35);
  color: #cfe2ee;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.landing-tagline {
  margin: 0;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  min-height: 1.6em;
}

@media (max-width: 760px) {
  .brand-role { text-align: center; }
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.landing-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-chip {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(158, 220, 42, 0.25);
  background: rgba(158, 220, 42, 0.08);
  color: #d6e6f0;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(158, 220, 42, 0.65);
  background: rgba(158, 220, 42, 0.14);
}

.tagline-prefix {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  display: block;
  min-height: 1.5rem;
}

.tagline-main {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-height: 2em;
}

@media (max-width: 760px) {
  .landing-sep { display: none; }
}

.cursor {
  display: none;
  width: 2px;
  height: 1em;
  background: var(--accent-2);
  margin-left: 4px;
  animation: blink 0.7s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.container { width: min(1100px, 92vw); margin: 0 auto; overflow: visible; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  margin: 16px auto; width: min(1100px, 92vw);
  border: 1px solid var(--line);
}

.glass {
  background: rgba(15, 21, 28, 0.35);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.nav-wrap { display: flex; align-items: center; justify-content: center; padding: 14px 18px; }
.brand { font-size: 1.1rem; font-weight: 800; letter-spacing: .3px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent-2); }
nav { display: flex; gap: 14px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--text); }

/*  HERO  */
.hero { 
  padding: 78px 0 22px; 
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px; align-items: center;
}

.profile-card {
  padding: 10px; max-width: 360px; margin-left: auto;
  transform: rotate(1.2deg);
  box-shadow: 0 0 40px rgba(118, 185, 0, .2);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 0 60px rgba(118, 185, 0, .4), 0 0 100px rgba(118, 185, 0, .2);
}

@keyframes float {
  0%, 100% { transform: rotate(1.2deg) translateY(0px); }
  50% { transform: rotate(1.2deg) translateY(-10px); }
}

.profile-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

.tag { color: var(--accent-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1.05; }
h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { 
  margin: 14px 0; 
  color: #ccdae5; 
  font-size: clamp(1rem, 2.7vw, 1.45rem); 
  font-weight: 600; 
}
.section > h2 {
  background: linear-gradient(135deg, #f1f7fb 0%, #A3E635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}
p { color: var(--muted); line-height: 1.85; }
.hero > p { max-width: 850px; }
.strong-text { font-weight: 600; color: #d3e3ee; }
.emphasis { font-style: italic; color: #b7c8d5; }

.hero-actions { display: flex; gap: 12px; margin: 22px 0 30px; flex-wrap: wrap; }

.quote-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.quote-card { padding: 12px 14px; border-style: dashed; }
.quote-card p { margin: 0; font-weight: 600; color: #d3e3ee; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 11px 18px; border-radius: 10px;
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #102100;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(118, 185, 0, .35);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(118, 185, 0, .5);
}
.btn-secondary { 
  color: var(--text); 
  border: 1px solid var(--line); 
  background: rgba(255,255,255,.02);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(118, 185, 0, 0.1);
}

.section { padding: 80px 0; position: relative; z-index: 2; }
.section > h2 { margin-top: 0; margin-bottom: 40px; color: #f1f7fb; }

#projects { 
  overflow: visible;
  padding: 40px 0;
}

#projects .container {
  overflow: visible;
}

/*  CAREER ROAD  */
/*  CAREER LADDER  */
.ladder {
  position: relative;
  padding: 24px 0 6px;
  display: grid;
  gap: 26px;
}

.ladder-rail {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(158, 220, 42, 0.0) 0%,
    rgba(158, 220, 42, 0.35) 20%,
    rgba(0, 200, 255, 0.30) 55%,
    rgba(158, 220, 42, 0.35) 80%,
    rgba(158, 220, 42, 0.0) 100%
  );
  box-shadow: 0 0 40px rgba(118, 185, 0, 0.12);
  opacity: 0.9;
}

.ladder-rung {
  position: relative;
  width: min(520px, 92%);
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: 16px;
}

.ladder-step h3 { margin: 0; font-size: 1.08rem; }
.meta { margin: 6px 0 10px; font-size: .9rem; color: #b7c8d5; }

.phase-topics-title {
  margin: 16px 0 8px;
  color: #dff5cf;
  font-size: .92rem;
}

.phase-topics {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.phase-topics li::marker { color: var(--accent-2); }

.phase-coursework {
  gap: 6px;
  list-style: none;
  padding-left: 0;
}

.phase-coursework a,
.phase-coursework .course-without-link {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.phase-coursework a:hover { color: var(--accent-2); }

.phase-coursework a > span,
.phase-coursework .course-without-link > span {
  color: var(--accent-2);
  font-weight: 700;
}

.ladder-rung--left { justify-self: start; transform: translateX(-34px); }
.ladder-rung--right { justify-self: end; transform: translateX(34px); }

/* Connecting rung bar */
.ladder-rung::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(158, 220, 42, 0.25);
  box-shadow: 0 0 20px rgba(158, 220, 42, 0.12);
}

.ladder-rung--left::before { right: -64px; }
.ladder-rung--right::before { left: -64px; }

/* Node at the bottom center of each card */
.ladder-node {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(158,220,42,.8), 0 0 40px rgba(158,220,42,.25);
  z-index: 2;
}

.ladder-node--current {
  background: rgb(0, 200, 255);
  box-shadow: 0 0 22px rgba(0,200,255,.55), 0 0 55px rgba(0,200,255,.25);
}

/* Reveal animation for ladder rungs with slide-in effect */
.ladder-rung {
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ladder-rung--left {
  transform: translateX(-60px) translateY(20px) scale(0.95);
}

.ladder-rung--right {
  transform: translateX(60px) translateY(20px) scale(0.95);
}

.ladder-rung.show {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

@media (max-width: 760px) {
  .ladder-rail { left: 16px; transform: none; }
  .ladder-rung { justify-self: stretch; width: 100%; padding-left: 44px; }
  .ladder-rung--left,
  .ladder-rung--right { 
    transform: translateY(30px) scale(0.95); 
  }
  .ladder-rung.show {
    transform: translateY(0) scale(1);
  }
  .ladder-node { 
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
  }
  .ladder-rung::before { display: none; }
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(158, 220, 42, 0.25);
  background: rgba(158, 220, 42, 0.10);
  color: #dff5cf;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-left: 8px;
}

/*  PROJECTS RAIL  */
#projects { overflow: hidden; }

#projects.scroll-locked {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 800px at 20% 0%, #101a22 0%, #05070b 45%), #05070b;
}

.project-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,220,42,.55) rgba(255,255,255,.05);
  scroll-behavior: smooth;
}
.project-rail::-webkit-scrollbar { height: 10px; }
.project-rail::-webkit-scrollbar-thumb { background: rgba(158,220,42,.55); border-radius: 999px; }
.project-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }

.card {
  padding: 18px 22px; 
  background: var(--surface-2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.card:hover::before {
  transform: scaleX(1);
}
.rail-card { scroll-snap-align: start; min-height: 280px; }
.card:hover { 
  transform: translateY(-8px) rotateX(2deg); 
  border-color: rgba(158,220,42,.7); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(118, 185, 0, 0.2);
}
.card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.05rem; }
.card p { margin: 0 0 12px; font-size: 0.9rem; }
.card span { color: var(--accent-2); font-size: .85rem; font-weight: 700; }

/* Project rail dots */
.rail-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.rail-dot:hover {
  background: rgba(158, 220, 42, 0.6);
  transform: scale(1.2);
}

.rail-dot.active {
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(158, 220, 42, 0.7);
  transform: scale(1.3);
}

.rail-hint { margin-top: 8px; color: #a4bac9; font-size: .9rem; text-align: center; }

/* ========================================
   PROJECT GRID — Responsive card layout
   ======================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Large screens: 4 columns */
@media (max-width: 1400px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium screens: 3 columns */
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2 columns */
@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile: 1 column */
@media (max-width: 500px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Card */
.project-card {
  padding: 20px;
  background: rgba(15, 25, 35, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(158, 220, 42, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(158, 220, 42, 0.15);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
}

.project-summary {
  font-size: 0.85rem;
  color: #a4bac9;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Hidden details - shown on expand */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.project-details p {
  font-size: 0.85rem;
  color: #c4d4e4;
  line-height: 1.6;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-card.expanded .project-details {
  max-height: 300px;
}

.project-card.expanded .project-summary {
  display: none;
}

.project-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-tags {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.project-expand-btn {
  background: rgba(158, 220, 42, 0.15);
  border: 1px solid rgba(158, 220, 42, 0.4);
  color: var(--accent-2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.project-expand-btn:hover {
  background: rgba(158, 220, 42, 0.3);
  box-shadow: 0 0 15px rgba(158, 220, 42, 0.3);
}

.project-card.expanded .project-expand-btn {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
  color: #ff8888;
}

.project-card.expanded .project-expand-btn:hover {
  background: rgba(255, 100, 100, 0.3);
}

/*  ENDORSEMENTS CAROUSEL  */
.endorsement-stage {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.endorsement-card {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity .6s ease, transform .6s ease;
  background: var(--surface-2);
}

.endorsement-card.active {
  opacity: 1;
  transform: translateX(0);
}

.endorsement-card.exit-left {
  opacity: 0;
  transform: translateX(-100%);
}

.endorsement-card blockquote {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #d3e3ee;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.endorsement-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.endorsement-card footer strong {
  color: var(--accent-2);
  font-size: 1rem;
}

.endorsement-card footer span {
  color: var(--muted);
  font-size: .88rem;
}

/*  CONTACT  */
.contact-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 24px;
}

.contact-btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: rgba(118, 185, 0, 0.1);
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer { text-align: center; padding: 25px 12px 32px; }
.footer p { margin: 0; color: #90a6b8; font-size: .9rem; }

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 24px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.skill-category h4 {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.3);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: rgba(118, 185, 0, 0.2);
  border-color: var(--accent-2);
  transform: scale(1.05);
}

.skill-badge svg {
  width: 16px;
  height: 16px;
}

/* STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(118, 185, 0, 0.15);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* TECH ICONS IN PROJECT CARDS */
.tech-stack {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tech-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  background: rgba(118, 185, 0, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*  REVEAL  */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/*  RESPONSIVE  */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .profile-card { margin: 0; max-width: 320px; }
  .road-card { width: 100% !important; justify-self: stretch !important; }
  .road-card[data-side="left"],
  .road-card[data-side="right"] { transform: translateY(20px) scale(.96); border-radius: 14px; }
  .road-card.show { transform: translateY(0) scale(1); }
  .road-dot { display: none; }
  .road-svg { display: none; }
  .project-rail { grid-auto-columns: 82vw; }
  .endorsement-stage { height: 280px; }
  .nav-wrap { flex-direction: column; gap: 12px; }
  nav { flex-wrap: wrap; justify-content: center; }
}
