:root {
  --bg: #0a0e1a;
  --bg-elev: #111728;
  --bg-card: #141b2e;
  --border: #1f2940;
  --border-strong: #2a3556;
  --text: #e4e7f1;
  --text-dim: #9098b1;
  --text-muted: #6b7392;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(99,102,241,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e9f2;
  --border-strong: #d0d7e4;
  --text: #0f172a;
  --text-dim: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 48px rgba(99,102,241,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
}

.bg-glow {
  position: fixed;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,14,26,0.7);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav {
  background: rgba(248,250,252,0.8);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 18px;
}

.brand-name { font-size: 16px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

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

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

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #8b5cf6, #6366f1);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 6s linear infinite;
}

@keyframes gradientShimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  max-width: 540px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--mono);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
}

.btn-ghost:hover {
  color: var(--accent-2);
}

.hero-socials {
  display: flex;
  gap: 14px;
}

.hero-socials a {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ORBITAL SKILLS */
.orbital-container {
  --outer: clamp(300px, 38vw, 480px);
  --inner: calc(var(--outer) * 0.68);
  --photo: calc(var(--outer) * 0.4);
  --ring: calc(var(--outer) * 0.55);
  position: relative;
  width: var(--outer);
  height: var(--outer);
  margin: 0 auto;
}

.orbital-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.92); }
  50%     { opacity: 0.6; transform: scale(1.08); }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(99, 102, 241, 0.28);
  z-index: 1;
  transform: translate(-50%, -50%);
  animation: orbitSpin var(--speed, 30s) linear infinite;
  will-change: transform;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-1 {
  width: var(--outer);
  height: var(--outer);
  --speed: 42s;
  --orbit-size: var(--outer);
}

.orbit-2 {
  width: var(--inner);
  height: var(--inner);
  --speed: 26s;
  --orbit-size: var(--inner);
  animation-direction: reverse;
  border-color: rgba(139, 92, 246, 0.3);
}

.orbit-item {
  --item-size: clamp(50px, 6vw, 64px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--item-size);
  height: var(--item-size);
  margin: calc(var(--item-size) / -2);
  transform:
    rotate(var(--angle))
    translateY(calc(var(--orbit-size) / -2))
    rotate(calc(-1 * var(--angle)));
}

.orbit-item-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(99, 102, 241, 0);
  animation: counterSpin var(--speed, 30s) linear infinite;
  transition: border-color 0.3s, box-shadow 0.3s, scale 0.3s;
  cursor: default;
}

.orbit-2 .orbit-item-inner { animation-direction: reverse; }

@keyframes counterSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.oi-icon { font-size: clamp(18px, 2.4vw, 22px); }
.oi-label {
  font-family: var(--mono);
  font-size: clamp(8px, 0.9vw, 9.5px);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.orbit-item-inner:hover {
  scale: 1.18;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(99, 102, 241, 0.25);
  z-index: 10;
}

.text-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ring);
  height: var(--ring);
  max-width: var(--ring);
  max-height: var(--ring);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: textRingSpin 22s linear infinite;
  pointer-events: none;
  overflow: visible;
}

.text-ring text {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--accent);
  letter-spacing: 2.2px;
}

@keyframes textRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.profile-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--photo);
  height: var(--photo);
  margin-top: calc(var(--photo) / -2);
  margin-left: calc(var(--photo) / -2);
  z-index: 3;
  animation: corePulse 5s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); }
  50%     { transform: scale(1.03); }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow:
    0 0 0 2px var(--accent),
    0 20px 60px rgba(99, 102, 241, 0.5);
}

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 999;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  transition: width 0.05s linear;
}

/* CURSOR SPOTLIGHT */
.cursor-spot {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

body:hover .cursor-spot { opacity: 1; }

/* AMBIENT BLOBS */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: 20%; left: -10%;
  animation: blobFloat1 18s ease-in-out infinite;
}

.blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: 10%; right: -8%;
  animation: blobFloat2 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(-100px, -60px) scale(1.1); }
}

[data-theme="light"] .bg-blob { opacity: 0.15; }
[data-theme="light"] .cursor-spot { mix-blend-mode: multiply; }

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.section-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
  transform: translateX(-100%);
  animation: tagShine 3s ease-in-out infinite;
}

@keyframes tagShine {
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

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

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

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

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

.highlight-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.4s;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.2) rotate(-10deg);
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

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

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-card h3::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.chip {
  background: rgba(99,102,241,0.1);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(99,102,241,0.2);
  font-family: var(--mono);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

[data-theme="light"] .chip {
  background: rgba(99,102,241,0.08);
}

.chip:hover {
  background: rgba(99,102,241,0.25);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.chips-sm .chip {
  font-size: 11.5px;
  padding: 4px 10px;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 50px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 8px;
  width: 18px; height: 18px;
  background: var(--bg);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
  animation: dotPulseGlow 2.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes dotPulseGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99,102,241,0.2), 0 0 0 0 rgba(99,102,241,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(99,102,241,0.2), 0 0 0 12px rgba(99,102,241,0); }
}

.timeline-item:first-child .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: liveDotPulse 1.8s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.2), 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(16,185,129,0.2), 0 0 0 14px rgba(16,185,129,0); }
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.timeline-content:hover::before {
  transform: scaleY(1);
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.exp-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.exp-period {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.exp-company {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 14px;
}

.exp-company strong { color: var(--text); }

.exp-points {
  list-style: none;
  padding: 0;
}

.exp-points li {
  color: var(--text-dim);
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.6;
}

.exp-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.exp-points strong { color: var(--text); }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s ease-out;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(99,102,241,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
  left: 160%;
}

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

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card), rgba(99,102,241,0.06));
  border-color: rgba(99,102,241,0.3);
}

.project-card.featured::after {
  content: 'FEATURED';
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  background: var(--gradient);
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  z-index: 2;
}

.project-icon {
  font-size: 36px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: transform 0.4s;
}

.project-card:hover .project-icon {
  transform: rotate(-8deg) scale(1.08);
}

.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}


.project-head h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.project-sub {
  color: var(--text-muted);
  font-size: 13px;
}

.project-desc {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 14.5px;
}

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

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.project-features li {
  color: var(--text-dim);
  padding: 4px 0 4px 22px;
  position: relative;
  font-size: 14px;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.project-links {
  margin-top: auto;
  padding-top: 16px;
}

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  background: var(--gradient);
  transition: width 0.4s ease, left 0.4s ease;
}

.edu-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

.edu-card:hover::before {
  width: 100%;
  left: 0;
}

.edu-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.5s;
}

.edu-card:hover .edu-icon {
  transform: rotate(360deg) scale(1.1);
}

.edu-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.edu-meta {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

.edu-school {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
}

.edu-year {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 13px;
}

/* CONTACT */
@property --conic-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--conic-angle), #6366f1, #8b5cf6, #06b6d4, #6366f1);
  animation: conicSpin 6s linear infinite;
  opacity: 0.7;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: inherit;
  z-index: -1;
}

@keyframes conicSpin {
  to { --conic-angle: 360deg; }
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18);
}

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

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

.contact-icon {
  font-size: 22px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(-6deg);
}

.contact-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14.5px;
  font-weight: 500;
}

/* FOOTER */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .contact-card { padding: 32px 20px; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -27px; }
  .orbital-container { --outer: clamp(280px, 78vw, 380px); }
  .cursor-spot { display: none; }
}

@media (max-width: 500px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .timeline-content { padding: 20px; }
  .project-card { padding: 22px; }
}
