:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #161b22;
  --bg4: #1c2128;
  --border: #21262d;
  --border2: #30363d;
  --accent: #00ff88;
  --accent2: #0ea5e9;
  --accent3: #a855f7;
  --accent4: #f59e0b;
  --text: #e6edf3;
  --muted: #7d8590;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 15s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent);
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: translateY(-20px) scale(1); }
  90% { opacity: 0.6; transform: translateY(-100vh) scale(1); }
  100% { opacity: 0; transform: translateY(-120vh) scale(0); }
}

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

/* ===== NAV ===== */
nav {
  padding: 16px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(8, 12, 16, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(8, 12, 16, 0.9);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

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

.logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.logo span { color: var(--muted); font-weight: 400; }

.logo::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: logo-reveal 2s 0.5s ease forwards;
}

@keyframes logo-reveal {
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.3s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

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

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

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-left { max-width: 520px; }

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero-tag::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--accent);
  animation: expand-line 0.8s 0.5s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes expand-line {
  to { transform: scaleX(1); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.greeting {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s ease forwards;
}

.highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-expand 0.8s 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes underline-expand {
  to { transform: scaleX(1); }
}

.cursor-blink {
  color: var(--accent);
  font-weight: 300;
  animation: blink-cursor 1s step-end infinite;
}

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

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s ease forwards;
}

.hero-sub code {
  font-family: var(--mono);
  color: var(--accent2);
  font-size: 13px;
  background: rgba(14, 165, 233, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s ease forwards;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00cc6a);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.btn-ghost {
  border: 1.5px solid var(--border2);
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
}

/* ===== CODE WINDOW ===== */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 136, 0.05);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease forwards, float-window 6s ease-in-out infinite;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

@keyframes float-window {
  0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-10px); }
}

.code-window-header {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

.code-window-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 200px;
}

.code-line {
  display: block;
  white-space: pre;
  position: relative;
  padding-left: 24px;
}

.code-line::before {
  content: attr(data-line);
  position: absolute;
  left: 0;
  color: var(--border2);
  font-size: 11px;
  width: 18px;
  text-align: right;
}

.code-keyword { color: var(--accent3); }
.code-string { color: #f0c27f; }
.code-bool { color: var(--accent); }
.code-comment { color: #4a5568; }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 60px 0;
  background: var(--bg2);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.stat {
  flex: 1;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.stat:last-child { border-right: none; }

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0;
  transition: opacity 0.3s;
}

.stat:hover::before { opacity: 1; }
.stat:hover { background: rgba(0, 255, 136, 0.02); }

.stat-num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
  font-weight: 500;
}

/* ===== SECTION ===== */
section { padding: 80px 0; border-bottom: 1px solid var(--border); }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 700;
}

/* ===== ABOUT GRID ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.about-card:hover {
  border-color: var(--border2);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.about-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== TERMINAL ===== */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-bar {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot-r { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.dot-g { width: 10px; height: 10px; border-radius: 50%; background: #27c93f; }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.2;
}

.t-key { color: var(--accent2); }
.t-str { color: #f0c27f; }
.t-bool { color: var(--accent3); }
.t-comment { color: #4a5568; }

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

@keyframes blink { 50% { opacity: 0; } }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.skill-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-chip::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-chip:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skill-chip:hover::before { opacity: 1; }

.skill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dot-green { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot-blue  { background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.dot-purple{ background: var(--accent3); box-shadow: 0 0 10px var(--accent3); }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.project-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 160px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-image::before { opacity: 1; }

.project-icon {
  font-size: 48px;
  z-index: 1;
  transition: transform 0.4s;
}

.project-card:hover .project-icon { transform: scale(1.1); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transform: translateY(10px);
  transition: all 0.3s;
}

.project-card:hover .project-view {
  transform: translateY(0);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent2);
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.tag-green  { background: rgba(0, 255, 136, 0.1);  color: var(--accent); }
.tag-blue   { background: rgba(14, 165, 233, 0.1); color: var(--accent2); }
.tag-purple { background: rgba(168, 85, 247, 0.1); color: var(--accent3); }

/* ===== CONTACT ===== */
.contact-intro {
  text-align: center;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.contact-card:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.04);
  transform: translateY(-2px);
}

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

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.contact-card:hover .contact-icon { transform: scale(1.1); }

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px;
}

.footer-content p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.heart {
  color: #ff4757;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

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

.footer-sub a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-sub a:hover { color: var(--accent); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays for children */
.about-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.about-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.about-card.reveal:nth-child(3) { transition-delay: 0.3s; }

.skill-chip.reveal:nth-child(1) { transition-delay: 0.05s; }
.skill-chip.reveal:nth-child(2) { transition-delay: 0.1s; }
.skill-chip.reveal:nth-child(3) { transition-delay: 0.15s; }
.skill-chip.reveal:nth-child(4) { transition-delay: 0.2s; }
.skill-chip.reveal:nth-child(5) { transition-delay: 0.25s; }
.skill-chip.reveal:nth-child(6) { transition-delay: 0.3s; }
.skill-chip.reveal:nth-child(7) { transition-delay: 0.35s; }
.skill-chip.reveal:nth-child(8) { transition-delay: 0.4s; }
.skill-chip.reveal:nth-child(9) { transition-delay: 0.45s; }
.skill-chip.reveal:nth-child(10) { transition-delay: 0.5s; }

.project-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.project-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.project-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.project-card.reveal:nth-child(4) { transition-delay: 0.4s; }

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

/* ===== FADE UP (hero) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    min-height: auto;
  }
  .hero-right { order: -1; }
  .code-window { max-width: 100%; transform: none !important; animation: fadeUp 0.8s 0.8s ease forwards !important; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(8, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .greeting { font-size: 18px; }
  .hero-sub { font-size: 14px; }
  .btn { padding: 10px 18px; font-size: 12px; }
  section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(0, 255, 136, 0.2);
  color: var(--text);
}