/* ═══════════════════════════════════════════════
   PRAKUL AGARWAL — PORTFOLIO CSS
   Dark Theme · Glassmorphism · Animated
═══════════════════════════════════════════════ */

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

:root {
  --bg:          #030712;
  --bg-2:        #0a0f1e;
  --bg-3:        #0f172a;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.12);

  --primary:     #7c3aed;
  --primary-2:   #6d28d9;
  --accent:      #06b6d4;
  --accent-2:    #0891b2;

  --grad:        linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-text:   linear-gradient(135deg, #a78bfa, #38bdf8);
  --grad-glow:   linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));

  --text-1:      #f8fafc;
  --text-2:      #94a3b8;
  --text-3:      #64748b;

  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;

  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── CANVAS BACKGROUND ─── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── CURSOR GLOW ─── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%,-50%);
  transition: opacity 0.3s;
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ─── UTILITY ─── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-24 { margin-top: 24px; }

/* ─── NAVIGATION ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-bracket {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

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

.nav-link.nav-cta {
  background: var(--grad);
  color: white;
  border-radius: 8px;
  margin-left: 8px;
}

.nav-link.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(124,58,237,0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3,7,18,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-link {
  color: var(--text-1);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 12px;
  transition: var(--transition);
  display: block;
}

.mobile-link:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

/* ─── SECTION BASE ─── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

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

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,58,237,0.12);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(124,58,237,0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after { opacity: 0.05; }

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 0 0 rgba(124,58,237,0);
  transition: var(--transition), box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}

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

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 20px;
  min-height: 2.5rem;
}

.typed-wrapper {
  color: var(--text-1);
}

#typed-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor-blink {
  color: var(--primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

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

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

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

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ─── HERO VISUAL ─── */
.hero-visual { display: flex; align-items: center; justify-content: center; }

.hero-card {
  width: 100%;
  max-width: 440px;
  perspective: 900px;
}

.hero-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.code-window {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 24px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(124,58,237,0.12);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

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

.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.code-window-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
  margin-left: 8px;
}

.code-body {
  padding: 24px;
}

.code-body pre {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.c-keyword { color: #c084fc; }
.c-var     { color: #38bdf8; }
.c-op      { color: #94a3b8; }
.c-prop    { color: #7dd3fc; }
.c-str     { color: #86efac; }
.c-bool    { color: #f97316; }

/* Floating badges */
.floating-badges { position: absolute; inset: 0; pointer-events: none; }

.fbadge {
  position: absolute;
  background: rgba(15,23,42,0.9);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: float linear infinite alternate;
}

.fbadge i { color: var(--primary); }
.fbadge-1 { top: -16px; right: -20px; animation-duration: 3s; animation-delay: 0s; }
.fbadge-2 { bottom: 40px; right: -24px; animation-duration: 3.5s; animation-delay: 0.5s; }
.fbadge-3 { bottom: -16px; left: 20px; animation-duration: 4s; animation-delay: 1s; }
.fbadge-4 { top: 40px; left: -24px; animation-duration: 3.2s; animation-delay: 0.3s; }

@keyframes float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-10px); }
}

/* ─── SCROLL INDICATOR ─── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 3;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border-2);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--text-3);
  border-radius: 2px;
  animation: wheel 1.5s ease infinite;
}

@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════ */
.about-section { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper { position: relative; }

.about-image-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 32px;
}

.avatar-initials {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  font-family: var(--font);
  letter-spacing: -2px;
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.3);
  animation: ring-rotate 8s linear infinite;
}

.ring-2 {
  inset: -24px;
  border-color: rgba(6,182,212,0.2);
  animation-direction: reverse;
  animation-duration: 12s;
}

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

.about-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-4px); }

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.tag {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════
   SKILLS SECTION
═══════════════════════════════════════════════ */
.skills-section { background: var(--bg); }

.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.skill-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.skill-tab:hover { background: var(--surface-2); color: var(--text-1); }

.skill-tab.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.skills-panel { display: none; }
.skills-panel.active { display: block; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.skill-card:hover::before { opacity: 0.3; }

.skill-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c, var(--primary));
  flex-shrink: 0;
  z-index: 1;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-1);
  flex: 1;
  z-index: 1;
}

.skill-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════ */
.projects-section { background: var(--bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

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

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(6,182,212,0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

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

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.08));
}

.project-card-inner { padding: 28px; height: 100%; display: flex; flex-direction: column; gap: 12px; }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--pc, var(--primary));
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.project-links a:hover { color: var(--text-1); border-color: var(--border-2); transform: translateY(-2px); }

.project-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.project-desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-tech span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
}

.project-card.project-cta {
  background: transparent;
  border: 2px dashed var(--border);
  min-height: 160px;
}

.project-card.project-cta:hover {
  border-color: rgba(124,58,237,0.4);
  border-style: solid;
}

.project-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 28px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}

.project-cta-inner i:first-child { font-size: 2rem; }
.project-cta-inner:hover { color: var(--text-1); }

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

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.timeline-dot {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--grad);
  border: 4px solid var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.3), 0 0 20px rgba(124,58,237,0.3);
  margin-top: 4px;
}

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

.timeline-content:hover {
  border-color: var(--border-2);
  transform: translateX(4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

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

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

.timeline-desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tech span {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a78bfa;
  font-size: 0.75rem;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════ */
.contact-section {
  background: var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--surface-2);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-1);
  font-weight: 500;
}

/* ─── CONTACT FORM ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-1);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: var(--transition);
  resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-note {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-3);
  min-height: 1.2rem;
}

.form-note.success { color: #34d399; }
.form-note.error   { color: #f87171; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-3);
}

.heart { color: #f43f5e; }

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--text-1);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 120px;
    text-align: center;
    justify-items: center;
  }

  .hero-desc, .hero-actions, .hero-socials, .hero-badge { justify-content: center; }
  .hero-visual { width: 100%; max-width: 480px; }
  .hero-scroll-indicator { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-block { order: -1; }

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

  .project-card.featured { grid-column: span 1; }

  .timeline::before { display: none; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .timeline-dot { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

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

  .hero-actions { flex-direction: column; align-items: center; }

  .skills-tabs { flex-wrap: wrap; }

  .about-stats { flex-direction: column; align-items: center; }
  .stat-card { min-width: 140px; }

  .contact-form { padding: 20px; }
}

/* ─── SELECTION ─── */
::selection { background: rgba(124,58,237,0.35); color: var(--text-1); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.6); }

/* ═══════════════════════════════════════════════
   TERMINAL SECTION
═══════════════════════════════════════════════ */

.terminal-section { background: var(--bg); }

.section-subtitle {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.95rem;
}

.inline-code {
  font-family: var(--mono);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ─── Terminal wrapper ─── */
.terminal-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  background: #080d1a;
  border: 1px solid rgba(124,58,237,0.25);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(124,58,237,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: box-shadow 0.4s;
}

.terminal-wrapper:focus-within {
  border-color: rgba(124,58,237,0.5);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.15),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 100px rgba(124,58,237,0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ─── Chrome bar ─── */
.term-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  user-select: none;
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tdot {
  width: 13px; height: 13px;
  border-radius: 50%;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  position: relative;
}

.tdot:hover { filter: brightness(1.25); transform: scale(1.1); }

.tdot-red    { background: #ff5f56; box-shadow: 0 0 6px #ff5f5666; }
.tdot-yellow { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e66; }
.tdot-green  { background: #27c93f; box-shadow: 0 0 6px #27c93f66; }

.term-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.term-title i { color: #a78bfa; }

.term-actions {
  display: flex;
  gap: 6px;
}

.term-action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text-3);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.term-action-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: #a78bfa;
}

/* ─── Status bar ─── */
.term-statusbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  flex-wrap: wrap;
}

.tsb-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tsb-item i { font-size: 0.65rem; }

.tsb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

.tsb-green {
  background: #27c93f;
  box-shadow: 0 0 6px #27c93f;
  animation: pulse-tsb 2s ease infinite;
}

.tsb-right { margin-left: auto; color: rgba(255,255,255,0.2); }

@keyframes pulse-tsb {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Body / output ─── */
.term-body {
  height: 440px;
  overflow-y: auto;
  padding: 20px 24px 12px;
  display: flex;
  flex-direction: column;
  cursor: text;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}

.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 2px; }

.term-output {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.87rem;
  line-height: 1.65;
  word-break: break-word;
}

/* ─── Output lines ─── */
.t-line {
  display: block;
  padding: 1px 0;
  opacity: 0;
  transform: translateY(4px);
  animation: t-line-in 0.2s forwards;
}

@keyframes t-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.t-line.t-cmd      { color: var(--text-1); }
.t-line.t-out      { color: #94a3b8; }
.t-line.t-success  { color: #4ade80; }
.t-line.t-error    { color: #f87171; }
.t-line.t-warn     { color: #fbbf24; }
.t-line.t-info     { color: #38bdf8; }
.t-line.t-accent   { color: #a78bfa; }
.t-line.t-blank    { height: 10px; display: block; opacity: 1; transform: none; animation: none; }
.t-line.t-dim      { color: var(--text-3); }
.t-line.t-white    { color: #f8fafc; }

/* Prompt in history */
.t-prompt-echo {
  color: #4ade80;
  margin-right: 8px;
  user-select: none;
}

/* ASCII / preformatted */
.t-pre {
  font-family: var(--mono);
  white-space: pre;
  line-height: 1.4;
}

/* Inline color spans */
.t-purple { color: #a78bfa; }
.t-cyan   { color: #38bdf8; }
.t-green  { color: #4ade80; }
.t-yellow { color: #fbbf24; }
.t-red    { color: #f87171; }
.t-orange { color: #fb923c; }
.t-white  { color: #f8fafc; }
.t-gray   { color: #64748b; }
.t-bold   { font-weight: 700; }

/* Progress bar */
.t-bar-wrap {
  display: inline-block;
  width: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  height: 6px;
  vertical-align: middle;
  overflow: hidden;
  margin: 0 8px;
}

.t-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad);
  width: 0;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Input row ─── */
.term-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 6px;
  flex-shrink: 0;
}

.term-prompt {
  font-family: var(--mono);
  font-size: 0.87rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
}

.tp-user   { color: #4ade80; }
.tp-at     { color: #64748b; }
.tp-host   { color: #38bdf8; }
.tp-colon  { color: #64748b; }
.tp-path   { color: #a78bfa; }
.tp-dollar { color: #64748b; margin-left: 4px; }

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.87rem;
  color: var(--text-1);
  caret-color: #a78bfa;
  padding: 0;
  min-width: 0;
}

.term-input::placeholder { color: rgba(255,255,255,0.12); }

/* Scan-line CRT effect */
.terminal-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* ─── Matrix rain canvas ─── */
.matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: inherit;
}

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

/* ─── Tab autocomplete hint ─── */
.t-autocomplete {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
  pointer-events: none;
}

/* ─── Quick command chips ─── */
.term-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.chip-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

.term-chip {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.term-chip:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

/* ─── Terminal maximised state ─── */
.terminal-wrapper.term-maximised {
  position: fixed;
  inset: 12px;
  z-index: 500;
  border-radius: var(--radius-lg);
}

.terminal-wrapper.term-maximised .term-body {
  height: calc(100vh - 160px);
}

/* ─── Minimise animation ─── */
.terminal-wrapper.term-minimised {
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  pointer-events: none;
}

/* ─── Responsive terminal ─── */
@media (max-width: 600px) {
  .term-body { height: 320px; padding: 12px 14px 10px; }
  .term-statusbar { gap: 10px; font-size: 0.65rem; }
  .tsb-item:nth-child(n+4) { display: none; }
  .term-chips { gap: 6px; }
  .term-chip { font-size: 0.72rem; padding: 5px 10px; }
}

/* ═══════════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════════ */
.services-section { background: var(--bg-2); }

/* Hero freelance inline badge */
.hero-freelance-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  margin-top: 10px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* ─── Availability banner ─── */
.avail-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(39,201,63,0.05);
  border: 1px solid rgba(39,201,63,0.18);
  border-radius: 14px;
  padding: 14px 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.avail-pulse {
  width: 10px; height: 10px;
  background: #27c93f;
  border-radius: 50%;
  flex-shrink: 0;
  animation: avail-ring 2s ease infinite;
  box-shadow: 0 0 0 0 rgba(39,201,63,0.7);
}

@keyframes avail-ring {
  0%   { box-shadow: 0 0 0 0 rgba(39,201,63,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(39,201,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,201,63,0); }
}

.avail-banner span:not(.avail-pulse) { color: var(--text-2); font-size: 0.9rem; }
.avail-banner strong { color: #4ade80; }

.avail-cta-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.avail-cta-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.3); }

/* ─── Services Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sclr, #7c3aed), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}

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

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--sclr, var(--primary));
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.service-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.75;
  flex: 1;
}

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

.service-tags span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 5px;
  transition: var(--transition);
}

.service-card:hover .service-tags span {
  border-color: rgba(var(--sclr, 124 58 237) / 0.2);
}

/* ─── Services CTA ─── */
.services-cta {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.services-cta p {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 500px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .avail-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .avail-cta-btn { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}


/* ─── GAME MODE OVERLAY ─── */
body.game-mode::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.85);
  z-index: -1;
  pointer-events: none;
  animation: fadeDim 1.5s ease forwards;
}
body.game-mode #particle-canvas {
  z-index: 100 !important;
  position: fixed !important;
}
body.game-mode .terminal-section { position: relative; z-index: 101; }
@keyframes fadeDim { from { opacity: 0; } to { opacity: 1; } }


/* ─── HACKER MODE & SNAKE ─── */
body.hacker-mode .terminal-body {
  color: #16a34a !important;
}
body.hacker-mode .t-white,
body.hacker-mode .t-cyan,
body.hacker-mode .t-purple,
body.hacker-mode .t-green,
body.hacker-mode .t-dim,
body.hacker-mode .t-error,
body.hacker-mode .t-accent {
  color: #22c55e !important;
  text-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}

