/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #1a1a24;
  --surface: #16161f;
  --surface-2: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(99,102,241,0.4);

  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-glow: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.05));

  --shadow-glow: 0 0 40px rgba(99,102,241,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(99,102,241,0.25);

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-h: 72px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(99,102,241,0.5);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(99,102,241,0.2);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: auto;
}

body.game-open, body.terminal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
select, input, textarea { font-family: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }

.hidden-field { display: none; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-orb, .cursor-dot { display: none; }

/* Click ripple */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.6s cubic-bezier(0, 0.5, 0.5, 1) forwards;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250,250,250,0.85);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 14px;
  animation: pulse 2s ease infinite;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mumbai-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.theme-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.theme-icon.sun { opacity: 0; transform: translateY(10px); color: var(--amber); }
.theme-icon.moon { opacity: 1; transform: translateY(0); color: #c4b5fd; }

[data-theme="light"] .theme-icon.sun { opacity: 1; transform: translateY(0); }
[data-theme="light"] .theme-icon.moon { opacity: 0; transform: translateY(-10px); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  transition: var(--transition);
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-instagram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-instagram:hover {
  color: #e1306c;
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

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

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: var(--surface);
}

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

.btn-ghost {
  color: var(--text-secondary);
  padding: 14px 20px;
}

.btn-ghost:hover { color: var(--text-primary); }

/* Magnetic button effect applied via JS */
.magnetic { will-change: transform; }

/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--indigo);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

.gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Glitch effect on hover */
.hero-name:hover .name-line {
  animation: glitch 0.4s steps(2) forwards;
}

@keyframes glitch {
  0% { transform: none; text-shadow: none; }
  20% { transform: skew(-2deg); text-shadow: 3px 0 var(--cyan); }
  40% { transform: skew(2deg) translateX(-3px); text-shadow: -3px 0 var(--purple); }
  60% { transform: skew(-1deg); text-shadow: 2px 0 var(--indigo); }
  80% { transform: skew(1deg) translateX(2px); }
  100% { transform: none; text-shadow: none; }
}

.hero-role {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.role-studio {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.studio-link {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  transition: var(--transition);
}

.studio-link:hover { opacity: 0.8; }

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 36px;
}

.typewriter-wrap {
  color: var(--text-primary);
  font-weight: 600;
}

.typewriter-cursor {
  animation: blink 1s ease infinite;
  color: var(--indigo);
}

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

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-mono);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.hero-stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}

.about-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body strong { color: var(--text-primary); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.hi-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Stats Card / Orbit */
.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.stat-orbit {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin 20s linear infinite;
}

.ring-1 { inset: 0; border-top-color: var(--indigo); animation-duration: 15s; }
.ring-2 { inset: 20px; border-right-color: var(--purple); animation-duration: 20s; animation-direction: reverse; }
.ring-3 { inset: 40px; border-bottom-color: var(--cyan); animation-duration: 25s; }

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

.orbit-center {
  position: absolute;
  inset: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 50%;
}

.orbit-num {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orbit-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sb-num {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.sb-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  justify-content: center;
  font-family: var(--font-mono);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg-2); }

.skills-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.skill-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  font-family: var(--font-mono);
}

.skill-tab:hover { color: var(--text-primary); border-color: var(--border-hover); }

.skill-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.skill-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.skill-card:hover::before { opacity: 1; }

.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.skill-icon { font-size: 24px; }

.skill-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--indigo);
  background: rgba(99,102,241,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--level, 80%);
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.skill-tag:hover { color: var(--text-primary); border-color: var(--indigo); }
.skill-tag:hover::after { opacity: 1; }

/* skill card fade when tab filtering */
.skill-card.hidden { opacity: 0; pointer-events: none; transform: scale(0.95); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg); }

/* Projects notice */
.projects-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 48px;
}

.projects-notice svg { flex-shrink: 0; color: var(--indigo); opacity: 0.8; }

/* Flagship */
.project-flagship {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.project-flagship::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.project-flagship::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent);
  pointer-events: none;
}

.project-flagship:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.08em;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.5s ease infinite;
}

.flagship-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.project-emoji { font-size: 40px; margin-bottom: 16px; }

.flagship-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.flagship-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.flagship-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.ff-group { }

.ff-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.ff-list { display: flex; flex-direction: column; gap: 6px; }

.ff-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 12px;
  position: relative;
}

.ff-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-size: 12px;
}

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

/* Browser mock preview */
.flagship-right {
  display: flex;
  align-items: flex-start;
}

.flagship-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-browser {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.browser-bar {
  background: var(--bg-2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
}

.browser-screen {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-height: 180px;
}

.mock-nav {
  height: 20px;
  background: var(--surface-2);
  border-radius: 4px;
}

.mock-hero {
  height: 50px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.1));
  border-radius: 6px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mock-card {
  height: 60px;
  background: var(--surface-2);
  border-radius: 6px;
  animation: shimmer 2s ease infinite alternate;
}

.mock-card:nth-child(2) { animation-delay: 0.2s; }
.mock-card:nth-child(3) { animation-delay: 0.4s; }
.mock-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes shimmer {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.mock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border: 1px solid var(--green);
  padding: 3px 8px;
  border-radius: 4px;
  animation: pulse 2s ease infinite;
}

.preview-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--bg-3);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.ps-icon { font-size: 16px; }

/* Stack tags */
.stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(99,102,241,0.1);
  color: var(--indigo-light);
  border: 1px solid rgba(99,102,241,0.2);
  transition: var(--transition);
}

.stack-tag:hover { background: rgba(99,102,241,0.2); }
.stack-tag.sm { font-size: 11px; padding: 4px 10px; }

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent);
  pointer-events: none;
  transition: var(--transition);
}

.project-card-glow.purple {
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent);
}

.project-card:hover .project-card-glow {
  opacity: 1.5;
  width: 280px;
  height: 280px;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pc-emoji { font-size: 32px; }

.pc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pc-tag.highlight {
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border-color: rgba(16,185,129,0.3);
}

.pc-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pc-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pc-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pc-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.pc-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-size: 16px;
  line-height: 1.2;
}

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

.pc-impact {
  padding: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  text-align: center;
}

.impact-num {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   BUSINESS
   ============================================================ */
.business { background: var(--bg-2); }

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  text-align: center;
}

.biz-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.biz-icon { font-size: 32px; margin-bottom: 16px; }

.biz-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.biz-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Marquee */
.tech-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  align-items: center;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience { background: var(--bg); }

.timeline {
  position: relative;
  max-width: 720px;
}

.timeline-line {
  position: absolute;
  left: 12px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: height 1s ease;
}

.timeline-item {
  display: flex;
  gap: 40px;
  padding-bottom: 48px;
  position: relative;
}

.tl-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid var(--bg);
  z-index: 1;
  margin-top: 4px;
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  flex: 1;
  transition: var(--transition);
}

.tl-card:hover { border-color: var(--border-hover); }

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--indigo);
  margin-bottom: 8px;
}

.tl-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tl-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tl-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.tl-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--bg-2); }

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cta-card:hover { border-color: var(--border-hover); }

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent);
  pointer-events: none;
}

.cta-overline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}

.cta-body {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

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

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

.easter-hint {
  font-size: 13px;
  color: var(--text-muted);
  cursor: default;
  transition: var(--transition);
}

.easter-hint:hover { color: var(--indigo); }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-instagram:hover { color: #e1306c; }

.contact-instagram {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.contact-instagram:hover .cd-value { color: #e1306c; }
.contact-instagram:hover .cd-icon { border-color: #e1306c; color: #e1306c; }

.footer-minimal { padding: 24px 0; }
.footer-back { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-back:hover { color: var(--text-primary); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
}

.contact-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#contactParticles {
  width: 100%;
  height: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  align-items: start;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  margin-top: 16px;
}

.contact-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cd-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  flex-shrink: 0;
}

.cd-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.cd-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.cd-available {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

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

.contact-stats {
  display: flex;
  gap: 32px;
}

.cs-item { display: flex; flex-direction: column; }

.cs-num {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Form Panel */
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: sticky;
  top: 96px;
}

.form-header { margin-bottom: 32px; }

.form-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-subtitle { font-size: 15px; color: var(--text-muted); }

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: var(--surface-2);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-bottom: 16px;
}

.submit-loading { display: none; align-items: center; gap: 8px; }

.form-submit.loading .submit-text,
.form-submit.loading svg { display: none; }
.form-submit.loading .submit-loading { display: flex; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Form success */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px 0;
}

.form-success.visible { display: flex; }
.contact-form.hidden { display: none; }

.success-icon { color: var(--green); }

.success-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.success-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

/* ============================================================
   TERMINAL EASTER EGG
   ============================================================ */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.terminal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.terminal-window {
  width: 100%;
  max-width: 680px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 0 60px rgba(99,102,241,0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  font-size: 13px;
  color: #8b949e;
  text-align: center;
}

.terminal-close {
  color: #8b949e;
  font-size: 14px;
  transition: var(--transition);
}

.terminal-close:hover { color: #f8fafc; }

.terminal-body {
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line {
  font-size: 14px;
  line-height: 1.5;
  color: #c9d1d9;
}

.t-prompt { color: #58a6ff; }
.t-text { color: #c9d1d9; }
.t-accent { color: #79c0ff; }
.t-success { color: #56d364; }
.t-error { color: #f85149; }
.t-warning { color: #e3b341; }
.t-info { color: #8b949e; }
.t-art { color: #79c0ff; white-space: pre; font-size: 11px; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #30363d;
  background: #0d1117;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 14px;
  caret-color: var(--indigo);
}

/* ============================================================
   MATRIX RAIN
   ============================================================ */
.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.matrix-canvas.active { opacity: 1; }

/* ============================================================
   SNAKE GAME
   ============================================================ */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-overlay.open { opacity: 1; pointer-events: all; }

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 420px;
}

.game-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  flex: 1;
}

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

.game-close {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  transition: var(--transition);
}

.game-close:hover { color: var(--text-primary); }

#snakeCanvas {
  border: 1px solid #333;
  border-radius: 8px;
  background: #0a0a0f;
}

.game-instructions {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .stats-card { position: static; }
  .stat-orbit { width: 160px; height: 160px; }
  .orbit-center { inset: 50px; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .flagship-content { grid-template-columns: 1fr; }
  .flagship-right { display: none; }
  .flagship-features { grid-template-columns: 1fr 1fr; }

  .business-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-panel { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-instagram { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }

  .section { padding: 80px 0; }

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

  .flagship-features { grid-template-columns: 1fr; }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-stat { padding: 0 16px; }
  .stat-divider { display: none; }

  .cta-card { padding: 40px 24px; }

  .mumbai-time { display: none; }
  .nav-container { justify-content: space-between; }
  .nav-actions { gap: 8px; }

  .footer-top { flex-direction: column; gap: 24px; }

  .contact-form-panel { padding: 32px 24px; }
  .contact-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(52px, 18vw, 80px); }
  .project-flagship { padding: 24px; }
  .flagship-badge { font-size: 11px; }
}
