/* ============================================
   CSS Custom Properties — Gravity Dark Theme
   ============================================ */
:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8f0;
  --text-2: #8b8ba8;
  --text-3: #5a5a72;
  --accent: #8b5cf6;       /* purple */
  --accent-2: #06b6d4;     /* cyan */
  --accent-glow: rgba(139,92,246,0.35);
  --accent-2-glow: rgba(6,182,212,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Custom Cursor
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(139,92,246,0.5);
  border-radius: 50%;
  transition: transform 0.12s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}

body.cursor-hover .cursor-dot {
  width: 10px; height: 10px;
  background: var(--accent-2);
}

body.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(6,182,212,0.5);
}

/* ============================================
   Scroll Progress
   ============================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9998;
  transition: width 0.1s;
}

/* ============================================
   Gravity Canvas
   ============================================ */
#gravity-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   Reveal animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }
.reveal:nth-child(7) { transition-delay: 0.35s; }

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Card glow effect */
.card-glow {
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.card-glow.glow-cyan { background: var(--accent-2-glow); }
.card-glow.glow-purple { background: var(--accent-glow); }
.glass-card:hover .card-glow { opacity: 1; }

/* ============================================
   Section Header
   ============================================ */
.section-header {
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: none;
  font-family: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

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

/* Magnetic */
.magnetic { transition: transform 0.3s var(--ease); }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.header.scrolled::before {
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
  cursor: none;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
  cursor: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1;
}

.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 40px;
  padding: 6px 14px;
  background: rgba(6,182,212,0.07);
  margin-bottom: 28px;
  font-family: 'Space Grotesk', sans-serif;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.name-line { display: block; }

.accent-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.role-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}

.role-sep {
  color: var(--text-3);
  font-weight: 300;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  color: var(--text-2);
  cursor: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.social-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
  transform: translateY(-3px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeUp 3s ease-in-out infinite;
}

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

.scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}

@keyframes grow-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.2; transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Planet Visual
   ============================================ */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet-scene {
  position: relative;
  width: 420px; height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet {
  width: 180px; height: 180px;
  border-radius: 50%;
  position: relative;
  z-index: 3;
  animation: float-planet 7s ease-in-out infinite;
}

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

.planet-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, #3b1f7a, #1a0845 50%, #07030f);
  box-shadow:
    inset -20px -20px 40px rgba(0,0,0,0.8),
    inset 10px 10px 30px rgba(139,92,246,0.3),
    0 0 60px rgba(139,92,246,0.25),
    0 0 120px rgba(139,92,246,0.1);
}

.planet-atmo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 40px 8px rgba(139,92,246,0.18), 0 0 80px 16px rgba(6,182,212,0.08);
}

.planet-shine {
  position: absolute;
  top: 15%; left: 20%;
  width: 40%; height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
  transform: rotate(-30deg);
}

/* Planet rings */
.planet-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,0.25);
  animation: float-planet 7s ease-in-out infinite;
}

.ring-outer {
  width: 320px; height: 80px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-color: rgba(139,92,246,0.15);
  animation-delay: 0.2s;
}

.ring-mid {
  width: 260px; height: 60px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-color: rgba(6,182,212,0.2);
  animation-delay: 0.1s;
}

.ring-inner {
  width: 210px; height: 45px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-color: rgba(139,92,246,0.3);
}

/* Moon orbit */
.orbit-path {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.05);
  animation: orbit-spin 12s linear infinite;
  z-index: 4;
}

.orbit-path-2 {
  width: 360px; height: 360px;
  animation: orbit-spin 20s linear infinite reverse;
}

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

.moon {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c084fc, #7c3aed);
  box-shadow: 0 0 12px rgba(139,92,246,0.7);
}

.moon-2 {
  width: 8px; height: 8px;
  background: radial-gradient(circle at 35% 35%, #67e8f9, #0891b2);
  box-shadow: 0 0 10px rgba(6,182,212,0.7);
}

/* Particle dots around planet */
.particle-field {
  position: absolute;
  width: 100%; height: 100%;
  z-index: 2;
}

.p-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  margin: -2px;
  animation: particle-orbit 8s linear infinite;
  animation-delay: var(--d);
  --r: 130px;
  --a: 0deg;
  transform: rotate(var(--a)) translateX(var(--r));
}

@keyframes particle-orbit {
  from { transform: rotate(var(--a)) translateX(var(--r)); opacity: 1; }
  50% { opacity: 0.3; }
  to { transform: rotate(calc(var(--a) + 360deg)) translateX(var(--r)); opacity: 1; }
}

/* ============================================
   About – Bento Grid
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.bento-card {
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.bento-card:hover { transform: translateY(-4px); }

.bento-bio {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-bio p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.bento-bio p:last-child { margin-bottom: 0; }
.bento-bio strong { color: var(--text); font-weight: 600; }
.bento-bio em { color: var(--accent); font-style: normal; font-weight: 600; }

.bento-stat {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  min-height: 130px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-plus {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bento-edu {
  grid-column: span 2;
}

.edu-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(139,92,246,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento-edu h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bento-edu p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 8px;
}

.edu-year {
  font-size: 0.76rem;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}

.bento-location {
  grid-column: span 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.location-pin {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(6,182,212,0.15);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.bento-location p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.loc-city {
  font-size: 0.8rem !important;
  color: var(--text-3) !important;
  font-weight: 400 !important;
  margin-top: 2px;
}

.bento-stat-sm {
  padding: 24px 16px;
  min-height: 110px;
}

.bento-stat-sm .stat-number { font-size: 2.2rem; }

/* ============================================
   Experience (Timeline)
   ============================================ */
.experience { background: transparent; }

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 10%, var(--accent-2) 90%, transparent);
  opacity: 0.3;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

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

.timeline-dot {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.dot-inner {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.dot-inner.dot-cyan { background: var(--accent-2); }
.dot-inner.dot-dim { background: var(--text-3); }

.dot-ring {
  position: absolute;
  top: 22px; left: 50%;
  transform: translate(-50%, 0);
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: ring-pulse 2.5s ease-in-out infinite;
}

.ring-cyan { border-color: var(--accent-2); }
.ring-dim { border-color: var(--text-3); }

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, 0) scale(1.5); opacity: 0; }
}

.timeline-card {
  padding: 28px;
  transition: transform 0.4s var(--ease);
}

.timeline-card:hover { transform: translateY(-4px); }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tl-company {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.tl-project {
  font-size: 0.82rem;
  color: var(--text-3);
  font-style: italic;
}

.tl-date {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 12px;
  flex-shrink: 0;
}

.tl-details {
  margin-bottom: 20px;
}

.tl-details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tl-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 4px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-tags span {
  font-size: 0.75rem;
  color: var(--accent-2);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 40px;
  padding: 3px 10px;
  background: rgba(6,182,212,0.05);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

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

.skill-card {
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.skill-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

.skill-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(139,92,246,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.3s;
}

.skill-icon.icon-cyan {
  background: rgba(6,182,212,0.12);
  color: var(--accent-2);
}

.skill-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

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

.chip {
  font-size: 0.77rem;
  padding: 4px 11px;
  border-radius: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
}

.chip em { color: var(--accent-2); font-style: normal; margin-left: 3px; }

.chip-purple {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
  color: #c4b5fd;
}

.chip-cyan {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.25);
  color: #67e8f9;
}

/* Tilt card (JS driven) */
.tilt-card { transform-style: preserve-3d; }

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

.project-card {
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.project-card:hover { transform: translateY(-8px); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

.project-visual {
  height: 180px;
  background: linear-gradient(135deg, var(--from), var(--to));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 60%);
}

.project-icon-wrap {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.project-float-dots {
  position: absolute;
  inset: 0;
}

.project-float-dots span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: float-rand 4s ease-in-out infinite;
}

.project-float-dots span:nth-child(1) { width: 60px; height: 60px; top: 10%; right: 10%; animation-delay: 0s; }
.project-float-dots span:nth-child(2) { width: 30px; height: 30px; bottom: 15%; left: 12%; animation-delay: 1.5s; }
.project-float-dots span:nth-child(3) { width: 18px; height: 18px; top: 60%; right: 22%; animation-delay: 0.8s; }

@keyframes float-rand {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.project-body { padding: 24px; }

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

.project-year {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}

.project-company {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.project-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 0.73rem;
  padding: 3px 10px;
  border-radius: 40px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  cursor: none;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.contact-item:hover { transform: translateX(6px); }

.ci-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(139,92,246,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.ci-icon.icon-cyan {
  background: rgba(6,182,212,0.12);
  color: var(--accent-2);
}

.contact-item > div:not(.card-glow):not(.ci-icon) {
  flex: 1;
}

.contact-item h4 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  font-family: 'Space Grotesk', sans-serif;
}

.contact-item p {
  font-size: 0.92rem;
  color: var(--text);
}

.ci-arrow {
  color: var(--text-3);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}

.contact-item:hover .ci-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Form */
.contact-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Space Grotesk', sans-serif;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(139,92,246,0.05);
}

.input-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  transition: width 0.4s var(--ease);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line { width: 100%; }

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.3s;
  cursor: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px 14px;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  cursor: none;
}

.back-to-top:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-bio { grid-column: span 2; grid-row: auto; }
  .bento-edu { grid-column: span 2; }
  .planet-scene { width: 320px; height: 320px; }
  .planet { width: 140px; height: 140px; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 24px 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,8,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  .menu-toggle { display: flex; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-bio { grid-column: span 2; }
  .bento-edu { grid-column: span 2; }
  .bento-stat { min-height: 100px; }

  .section { padding: 80px 0; }
  .hero-name { font-size: 2.8rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-bio, .bento-edu { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .section-title { font-size: 1.8rem; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-dot { display: none; }
}
