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

:root {
  /* Palette */
  --bg: #07080d;
  --bg-2: #0b0d15;
  --surface: #11131c;
  --surface-2: #161927;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7e9ee;
  --text-dim: #a3a8b8;
  --text-muted: #6b7185;

  /* Accents */
  --primary: #6366f1;
  --primary-glow: #818cf8;
  --secondary: #ec4899;
  --accent: #22d3ee;
  --success: #34d399;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-accent:  linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --grad-text:    linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);

  /* Typography — unified to a single family across the whole site */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: var(--font-sans);

  /* Spacing */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(99, 102, 241, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

::selection { background: var(--primary); color: white; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Restore default cursor — custom cursor was removed */
body { cursor: auto; }

/* ============================================
   BACKGROUND EFFECTS
============================================ */
.particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.bg-orbs {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.4;
  animation: float 22s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { background: #6366f1; top: -240px; left: -180px; }
.orb-2 { background: #ec4899; bottom: -240px; right: -180px; animation-delay: -5s; }
.orb-3 { background: #22d3ee; top: 40%; left: 50%; width: 420px; height: 420px; opacity: 0.22; animation-delay: -10s; }
.orb-4 { background: #a855f7; top: 65%; left: 12%; width: 380px; height: 380px; opacity: 0.25; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -60px) scale(1.12); }
  66% { transform: translate(-40px, 40px) scale(0.92); }
}

/* Aurora bands */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}
.aurora-band {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 320px;
  filter: blur(70px);
  border-radius: 50%;
  animation: aurora-drift 24s ease-in-out infinite;
}
.aurora-1 {
  top: 8%;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.35), rgba(192, 132, 252, 0.45), rgba(244, 114, 182, 0.35), transparent);
  transform: rotate(-8deg);
}
.aurora-2 {
  top: 55%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), rgba(99, 102, 241, 0.35), transparent);
  transform: rotate(6deg);
  animation-delay: -12s;
}
@keyframes aurora-drift {
  0%, 100% { transform: translateX(0) rotate(-8deg); opacity: 0.55; }
  50% { transform: translateX(40px) rotate(-6deg); opacity: 0.85; }
}

/* Shooting stars */
.shooting-stars {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.6);
}
.star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  transform: translateY(-50%);
}
.star-1 {
  top: 10%; left: -10%;
  animation: shoot 6s linear infinite;
  animation-delay: 0s;
}
.star-2 {
  top: 30%; left: -10%;
  animation: shoot 9s linear infinite;
  animation-delay: 3.5s;
}
.star-3 {
  top: 65%; left: -10%;
  animation: shoot 11s linear infinite;
  animation-delay: 7s;
}
@keyframes shoot {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  18% { opacity: 1; }
  22% { opacity: 0; transform: translate(120vw, 40vh); }
  100% { opacity: 0; transform: translate(120vw, 40vh); }
}

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

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

.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgba(7,8,13,0.6) 100%);
}

/* ============================================
   PROGRESS BAR
============================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-primary);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
  transition: width 0.05s linear;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo:hover .logo-mark svg { transform: rotate(-6deg); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.logo-mark svg { transition: transform 0.4s var(--ease); }
.logo-name { display: inline-flex; align-items: baseline; gap: 6px; }
.logo-first { color: var(--text); }
.logo-last {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-num { color: var(--primary); margin-right: 4px; font-weight: 500; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
  box-shadow: 0 8px 24px -8px rgba(99,102,241,0.6);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(99,102,241,0.8); }
.nav-cta svg { transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 32px 100px;
  overflow: hidden;
}
.hero-inner {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-left { text-align: left; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success);
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-greet {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.title-name {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.title-tagline {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.title-line { display: block; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.hero-meta .meta-row { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--primary-glow); }
.meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Terminal card */
.hero-right { position: relative; z-index: 2; }
.terminal {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
  animation: terminal-float 8s ease-in-out infinite;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(129,140,248,0.5), rgba(244,114,182,0.2) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes terminal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.terminal-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-dim);
}
.t-line { display: block; }
.t-prompt { color: var(--secondary); margin-right: 8px; }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); padding-left: 18px; }
.t-ok { color: var(--success); margin-right: 6px; }
.t-json {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre;
  overflow-x: auto;
}
.t-cursor { color: var(--text-muted); }
.t-blink {
  display: inline-block;
  color: var(--primary-glow);
  animation: blink 0.9s step-end infinite;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.typing {
  color: var(--primary-glow);
  border-right: 3px solid var(--primary);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.hero-description {
  max-width: 560px;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-description strong { color: var(--text); font-weight: 600; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(99,102,241,0.7);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  opacity: 0; transition: opacity 0.4s;
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px -10px rgba(236,72,153,0.7); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 32px; font-size: 16px; }

.hero-stats-grid {
  width: 100%;
  max-width: 1240px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 20px 40px -20px rgba(99,102,241,0.25);
}
.stat-card:hover::before { opacity: 1; }
.stat-card-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, white);
  animation: scroll-down 2s ease infinite;
}
@keyframes scroll-down {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* Terminal syntax colors */
.c-prop { color: #f472b6; }
.c-str { color: #86efac; }

/* ============================================
   SECTIONS
============================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--primary);
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
  max-width: 280px;
}
.section-sub {
  color: var(--text-dim);
  max-width: 660px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section-sub a {
  color: var(--primary-glow);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  transition: border-color 0.2s ease;
}
.section-sub a:hover { border-color: var(--primary-glow); }
.project-desc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.project-desc em { color: var(--text); font-style: normal; font-weight: 600; }

/* ============================================
   ABOUT
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-text strong { color: var(--text); font-weight: 600; }
.inline-link {
  color: var(--primary-glow);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.inline-link:hover { background-size: 100% 1px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-glow);
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.5), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-glow);
  flex-shrink: 0;
}
.info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.info-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 4px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}

.quick-links {
  display: flex;
  gap: 12px;
}
.quick-link {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.quick-link:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(99,102,241,0.1);
  transform: translateY(-3px);
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
  position: relative;
  padding-left: 20px;
  margin-top: 40px;
}
.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 44px;
}
.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 8px;
}
.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.5);
}
.marker-line {
  flex: 1;
  width: 1px;
  margin-top: 14px;
  background: linear-gradient(to bottom, var(--primary), rgba(99,102,241,0.05));
}

.timeline-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--grad-primary);
  opacity: 0; transition: opacity 0.3s;
}
.timeline-card:hover {
  transform: translateX(6px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 20px 40px -20px rgba(99,102,241,0.3);
}
.timeline-card:hover::before { opacity: 1; }

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.badge-live {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.timeline-company {
  color: var(--primary-glow);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.timeline-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}
.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}
.timeline-list strong { color: var(--text); font-weight: 600; }

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  transition: all 0.2s;
}
.chip:hover {
  background: rgba(99,102,241,0.1);
  color: var(--primary-glow);
  border-color: rgba(99,102,241,0.3);
}

/* ============================================
   PROJECTS
============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
}
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 30px 60px -20px rgba(99,102,241,0.4);
}

.project-visual {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1));
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.visual-2 { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(34, 211, 238, 0.1)); }
.visual-3 { background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(99, 102, 241, 0.1)); }
.visual-4 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(236, 72, 153, 0.1)); }
.visual-5 { background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.12)); }
.visual-6 { background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(52, 211, 153, 0.12)); }

.visual-icon {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  transition: transform 0.5s var(--ease);
}
.project-card:hover .visual-icon { transform: rotate(-6deg) scale(1.08); }

.project-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
  display: block;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-img { transform: scale(1.03); }
.project-card.featured .project-visual { padding: 0; min-height: 100%; }
.project-card.featured .project-img { border-radius: 0; border: none; box-shadow: none; min-height: 320px; }

.project-mock {
  width: 100%;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  padding: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}
.mock-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.mock-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
}
.mock-graph svg { width: 100%; height: 90px; display: block; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mock-stats div { display: flex; flex-direction: column; }
.mock-stats span {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.mock-stats strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}

.project-body { padding: 32px; }
.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-glow);
  margin-bottom: 14px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.project-desc {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 22px;
  line-height: 1.7;
}
.project-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.project-impact div { display: flex; flex-direction: column; }
.project-impact strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.project-impact span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 6px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.project-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-links a:hover { color: var(--primary-glow); }

/* ============================================
   SKILLS
============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.skill-cat:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
}
.skill-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.skill-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.15));
  color: var(--primary-glow);
}
.skill-cat-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s;
}
.skill-list li:hover {
  color: var(--text);
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}

/* Marquee */
.marquee {
  margin-top: 80px;
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}
.marquee-track span {
  color: var(--text-dim);
}
.marquee-track span:nth-child(odd):not(:nth-child(2n)) {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CONTACT
============================================ */
.section-contact { padding-bottom: 60px; }
.contact-wrap {
  max-width: 820px;
  margin: 60px auto 0;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  position: relative;
}
.contact-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
}
.contact-sub strong { color: var(--text); }
.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  transition: all 0.25s var(--ease);
}
.contact-card:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
}
.contact-card svg {
  color: var(--primary-glow);
  flex-shrink: 0;
}
.contact-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-card-value {
  display: block;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-text, .footer-built {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   REVEAL ANIMATION
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-right { max-width: 560px; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 20px; }
  .logo-name { display: none; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(7, 8, 13, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 60px 32px;
    gap: 14px;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav-menu.open { right: 0; }
  .nav-menu li { text-align: left; }
  .nav-link { font-size: 16px; padding: 14px 18px; display: block; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 20px 60px; }
  .hero-stats-grid { gap: 12px; margin-top: 56px; }
  .stat-card { padding: 18px; }
  .stat-number { font-size: 1.8rem; }
  .terminal-body { font-size: 11.5px; padding: 14px 16px; }
  .t-json { font-size: 10.5px; padding: 10px 12px; }

  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-line { display: none; }

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

  .timeline { padding-left: 0; }
  .timeline-item { gap: 18px; }
  .timeline-card { padding: 22px 20px; }

  .contact-wrap { padding: 40px 24px; }

  .footer-container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
