:root {
  --gz-black: #080808;
  --gz-lime: #C8F135;
  --gz-purple: #7B2FFF;
  --gz-pink: #FF2D78;
  --gz-orange: #FF6B2B;
  --gz-blue: #00D4FF;
  --gz-white: #F5F5F5;
  --gz-gradient-hero: linear-gradient(135deg, #C8F135 0%, #00D4FF 40%, #7B2FFF 100%);
  --gz-gradient-brutal: linear-gradient(180deg, #FF2D78 0%, #7B2FFF 100%);
  --scroll-ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Scenes stay in normal flow (no sticky) so sections never overlap */
.scroll-scene-container {
  position: relative;
}

.scroll-scene {
  position: relative;
  will-change: transform, opacity;
}

.kinetic-word {
  display: inline-block;
  padding: 0.08em 0.04em;
}

@keyframes charReveal {
  from { transform: translateY(110%) rotate(6deg); opacity: 0; }
  to   { transform: translateY(0)     rotate(0deg); opacity: 1; }
}
.kinetic-char {
  display: inline-block;
  animation: charReveal 0.65s var(--scroll-ease) both;
  animation-delay: calc(var(--char-index, 0) * 0.04s);
}
.text-brutal {
  font-family: 'Space Grotesk', 'Syne', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
}
.text-gradient-gz {
  background: var(--gz-gradient-hero);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.svg-draw path, .svg-draw line, .svg-draw circle, .svg-draw polyline {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s var(--scroll-ease) forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

#hero .bg-white.rounded-3xl {
  background: linear-gradient(145deg, #ffffff 0%, #f0fff8 40%, #f5f0ff 100%) !important;
  border: 1.5px solid rgba(123, 47, 255, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(200, 241, 53, 0.1), 0 32px 80px -16px rgba(123, 47, 255, 0.12), 0 8px 24px -4px rgba(0, 212, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}
/* Noise texture overlay on the hero card */
#hero .bg-white.rounded-3xl::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Override the soft blobs with punchy Gen Z ones */
body > div.fixed.inset-0 > div:nth-child(1) {
  background: radial-gradient(circle, rgba(200, 241, 53, 0.18) 0%, rgba(0, 212, 255, 0.08) 60%, transparent 100%) !important;
  width: 700px !important;
  height: 700px !important;
}
body > div.fixed.inset-0 > div:nth-child(2) {
  background: radial-gradient(circle, rgba(123, 47, 255, 0.15) 0%, rgba(255, 45, 120, 0.06) 60%, transparent 100%) !important;
}
body > div.fixed.inset-0 > div:nth-child(3) {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%) !important;
}

/* Obsidian Assembly Canvas Trail is dynamically styled via canvas[data-cursor-trail="hero"] */
canvas[data-cursor-trail="hero"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

#scene-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(19, 53, 50, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.scene-dot.active {
  background: var(--gz-purple);
  transform: scale(1.5);
}

.gz-sketch-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  animation: floatY 6s ease-in-out infinite;
  z-index: 0;
  color: var(--gz-purple);
}
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.gz-tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  will-change: transform;
}
.gz-tilt-card:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
}

.gz-brush-underline {
  position: relative;
  display: inline-block;
}
.gz-brush-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: var(--gz-lime);
  clip-path: polygon(0 40%, 5% 0, 10% 60%, 20% 10%, 30% 70%, 40% 5%, 50% 55%, 60% 0, 70% 65%, 80% 10%, 90% 60%, 95% 0, 100% 40%, 100% 100%, 0 100%);
  opacity: 0.6;
  z-index: -1;
}

.dark .scene-dot { background: rgba(255,255,255,0.2); }
.dark .scene-dot.active { background: var(--gz-lime); }

.brand-marquee-card {
  background: rgba(255,255,255,0.9) !important;
  border: 1.5px solid rgba(123, 47, 255, 0.1) !important;
  box-shadow: 0 4px 20px -4px rgba(123, 47, 255, 0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.brand-marquee-card:hover {
  transform: translateY(-4px) scale(1.04) !important;
  border-color: rgba(200, 241, 53, 0.5) !important;
  box-shadow: 0 16px 40px -8px rgba(123, 47, 255, 0.15) !important;
}
.dark .brand-marquee-card {
  background: rgba(20, 36, 34, 0.9) !important;
  border-color: rgba(200, 241, 53, 0.1) !important;
}

/* ─── Extra Gen Z Polish ─────────────────────────────── */

/* Glitch animation for rare text elements */
@keyframes glitch {
  0%,100% { clip-path: inset(0 0 98% 0); transform: translate(0); }
  10%      { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 1px); }
  20%      { clip-path: inset(60% 0 20% 0); transform: translate(3px, -1px); }
  30%      { clip-path: inset(0 0 98% 0); transform: translate(0); }
}
.gz-glitch {
  position: relative;
  animation: glitch 6s steps(1) infinite;
}

/* Kinetic h2 section headings: auto-animated gradient underline */
.scroll-scene h2 {
  position: relative;
}
.scroll-scene h2::after {
  content: none;
}
.scroll-scene.scene-active h2::after {
  content: none;
}

/* Brutal neon border on hover for project cards */
.project-card:hover {
  box-shadow: 0 0 0 2px var(--gz-lime), 0 20px 60px -12px rgba(123,47,255,0.2) !important;
}

/* Scroll cue — animated bouncing chevron at bottom of hero */
.gz-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounceCue 2s ease-in-out infinite;
  opacity: 0.5;
  z-index: 10;
}
.gz-scroll-cue span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--gz-purple);
  border-radius: 2px;
  animation: scanDown 1.4s ease-in-out infinite;
}
.gz-scroll-cue span:nth-child(2) { animation-delay: 0.15s; opacity: 0.7; }
.gz-scroll-cue span:nth-child(3) { animation-delay: 0.30s; opacity: 0.4; }
@keyframes bounceCue {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@keyframes scanDown {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.5); background: var(--gz-lime); }
}

/* Filter button active upgrade */
.filter-btn[data-filter]:not([style*='bg-teal']) {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

/* Aurora canvas blend mode */
#webgl-bg {
  mix-blend-mode: screen;
  opacity: 0.22;
}
.dark #webgl-bg {
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* .dud style for TextScramble */
.dud {
  color: var(--gz-purple);
  font-family: 'Fragment Mono', monospace;
}

/* Hover glow for nav island */
.dynamic-island {
  transition: box-shadow 0.4s ease, transform 0.4s ease !important;
}

/* Section label pills — more vivid */
.cv-section-badge {
  background: linear-gradient(135deg, rgba(200,241,53,0.15), rgba(0,212,255,0.1)) !important;
  border-color: rgba(123,47,255,0.15) !important;
}

/* Brutal blockquote / highlight style */
.gz-highlight {
  background: var(--gz-lime);
  color: #000;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 900;
}
