/* ==========================================
   DEEPAK'S CYBERPUNK PORTFOLIO — Design System v2
   Enhanced dark neon with deeper glows & immersion
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ---- Colors: Deep Cyberpunk Neon ---- */
  --bg-void: #050508;
  --bg-surface: #0c0c14;
  --bg-elevated: #14142a;
  --bg-glass: rgba(12, 12, 20, 0.6);
  --bg-glass-strong: rgba(12, 12, 20, 0.85);
  --bg-glass-light: rgba(20, 20, 42, 0.4);

  --cyan: #00f0ff;
  --cyan-bright: #40f8ff;
  --cyan-dim: #00a0aa;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --cyan-subtle: rgba(0, 240, 255, 0.08);
  --cyan-deep: rgba(0, 240, 255, 0.02);

  --magenta: #ff00aa;
  --magenta-bright: #ff44cc;
  --magenta-dim: #aa0077;
  --magenta-glow: rgba(255, 0, 170, 0.4);
  --magenta-subtle: rgba(255, 0, 170, 0.08);

  --neon-green: #39ff14;
  --neon-green-dim: #28b30e;
  --neon-green-glow: rgba(57, 255, 20, 0.4);

  --violet: #7c3aed;
  --violet-bright: #a855f7;
  --violet-glow: rgba(124, 58, 237, 0.4);
  --violet-subtle: rgba(124, 58, 237, 0.08);

  --amber: #f5a623;
  --amber-glow: rgba(245, 166, 35, 0.4);
  --amber-subtle: rgba(245, 166, 35, 0.08);

  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --text-dim: #3a3a50;
  --text-ghost: #1e1e30;

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-hero: clamp(4rem, 12vw, 10rem);
  --fs-h2: clamp(2rem, 5vw, 4.5rem);
  --fs-h3: clamp(1.25rem, 3vw, 2rem);
  --fs-body: clamp(0.875rem, 1.2vw, 1rem);
  --fs-small: clamp(0.75rem, 1vw, 0.875rem);
  --fs-tag: 0.65rem;
  --fs-micro: 0.55rem;

  /* ---- Spacing ---- */
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* ---- Borders & Radius ---- */
  --border-subtle: 1px solid rgba(0, 240, 255, 0.06);
  --border-glow: 1px solid rgba(0, 240, 255, 0.2);
  --border-magenta: 1px solid rgba(255, 0, 170, 0.2);
  --border-violet: 1px solid rgba(124, 58, 237, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 600ms;
  --dur-glacial: 1200ms;

  /* ---- Shadows ---- */
  --shadow-neon-cyan: 0 0 10px var(--cyan-glow), 0 0 40px rgba(0,240,255,0.12), 0 0 80px rgba(0,240,255,0.05);
  --shadow-neon-magenta: 0 0 10px var(--magenta-glow), 0 0 40px rgba(255,0,170,0.12), 0 0 80px rgba(255,0,170,0.05);
  --shadow-neon-green: 0 0 10px var(--neon-green-glow), 0 0 40px rgba(57,255,20,0.12);
  --shadow-neon-violet: 0 0 10px var(--violet-glow), 0 0 40px rgba(124,58,237,0.12);
  --shadow-neon-amber: 0 0 10px var(--amber-glow), 0 0 40px rgba(245,166,35,0.12);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-deep: 0 24px 80px rgba(0,0,0,0.6);

  /* ---- Holographic gradient ---- */
  --gradient-holo: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.15) 0%,
    rgba(124, 58, 237, 0.1) 25%,
    rgba(255, 0, 170, 0.15) 50%,
    rgba(57, 255, 20, 0.1) 75%,
    rgba(0, 240, 255, 0.15) 100%
  );
}

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-void);
  overflow-x: hidden;
  cursor: none;
}

/* Restore cursor on touch devices */
@media (pointer: coarse) {
  body { cursor: auto; }
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

/* ========== WEBGL CANVAS ========== */
#webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ========== CONTENT LAYER ========== */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ========== SECTION BASE ========== */
section {
  position: relative;
  min-height: 100vh;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

p {
  max-width: 60ch;
  color: var(--text-secondary);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              text-shadow var(--dur-normal) var(--ease-out);
}
a:hover {
  color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta-glow);
}

strong { color: var(--text-primary); }
em { color: var(--cyan); font-style: normal; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--cyan-subtle);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--cyan);
}

/* ========== SELECTION ========== */
::selection {
  background: var(--cyan);
  color: var(--bg-void);
}

::-moz-selection {
  background: var(--cyan);
  color: var(--bg-void);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 2px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) var(--bg-void);
}

/* ========== UTILITY CLASSES ========== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}
