/* ========================================
   DESIGNED2DISRUPT — GLOBAL STYLES
   Histogram Identity System + Neon Industrial Aesthetic
   ======================================== */

:root {
  /* Core Neon Colors */
  --color-bg: #0a0a0f;
  --color-surface: #121218;
  --color-text: #e0e0e8;
  --color-muted: #8a8a9a;
  
  /* Histogram / Neon Palette */
  --neon-green: #39ff14;
  --neon-purple: #c026ff;
  --neon-gold: #ffd700;
  --neon-blue: #00f0ff;
  --neon-magenta: #ff00aa;
  --neon-teal: #00ffcc;
  --neon-orange: #ff5e00;
  --neon-cyan: #00e5ff;
  --neon-white: #f0f0ff;
  
  /* Persona Signature Colors */
  --dummps: #39ff14;
  --saylummoxx: #c026ff;
  --respected: #ffd700;
  --musicfuse: #00f0ff;
  --zyphr: #ff00aa;
  --kraken: #00ffcc;
  --aether: #00e5ff;
  
  /* Effects */
  --glow-intensity: 0.9;
  --neon-blur: 12px;
  --glitch-duration: 180ms;
  
  /* Typography */
  --font-primary: 'Inter', system_ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', 'Courier New', monospace;
  --font-display: 'Impact', 'Arial Black', sans-serif;
}

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

html, body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

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

/* ========================================
   NEON UTILITIES
   ======================================== */
.neon-text {
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 20px currentColor;
}

.neon-glow {
  box-shadow: 
    0 0 5px var(--neon-blue),
    0 0 15px var(--neon-blue),
    0 0 30px var(--neon-blue);
}

.glitch {
  animation: glitch 0.6s infinite linear alternate;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

.flicker {
  animation: flicker 1.2s infinite alternate ease-in-out;
}

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

/* ========================================
   HISTOGRAM ENGINE STYLES
   ======================================== */
.histogram {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.histogram-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  mix-blend-mode: screen;
}

.histogram-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 10%,
    rgba(255,255,255,0.06) 50%,
    transparent 90%
  );
  z-index: 2;
}

/* Histogram Buttons */
.histogram-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: white;
  background: transparent;
  border: 2px solid currentColor;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.23, 1.0, 0.32, 1);
  z-index: 1;
}

.histogram-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.histogram-btn:hover::before {
  transform: translateX(300%);
}

.histogram-btn:hover {
  box-shadow: 0 0 20px currentColor;
  transform: translateY(-1px);
}

.histogram-btn:active {
  transform: scale(0.985);
}

/* ========================================
   NEON INDUSTRIAL ROOM (HOME + PERSONAS + PORTFOLIO)
   ======================================== */
.neon-room {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
  overflow: hidden;
}

.neon-room::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(57, 255, 20, 0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Glossy Concrete Wall */
.wall {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, #1a1a22 0%, #121218 40%, #0a0a0f 100%);
  z-index: 2;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.8);
}

.wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      rgba(255,255,255,0.015) 5px,
      rgba(255,255,255,0.015) 7px
    );
  z-index: 3;
}

/* Wet Reflective Floor */
.floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  background: linear-gradient(
    to bottom,
    #1c1c24 0%,
    #0f0f14 35%,
    #08080c 70%,
    #040406 100%
  );
  transform: perspective(800px) rotateX(48deg);
  transform-origin: top;
  z-index: 4;
  box-shadow: 
    inset 0 40px 80px rgba(0,0,0,0.6),
    0 -10px 30px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.floor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.06) 0%,
      transparent 18%,
      transparent 65%,
      rgba(0,0,0,0.7) 95%
    );
  z-index: 5;
}

.floor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.03) 4px,
    rgba(255,255,255,0.03) 7px
  );
  z-index: 6;
  opacity: 0.6;
}

/* Ambient Fog */
.fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(15, 15, 22, 0.6) 75%
  );
  z-index: 5;
  pointer-events: none;
  animation: fog-drift 25s ease-in-out infinite;
}

@keyframes fog-drift {
  0%, 100% { opacity: 0.65; transform: translateX(0); }
  50% { opacity: 0.45; transform: translateX(4px); }
}

/* Neon Reflections */
.reflection {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

/* Parallax Layers */
.parallax-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.1s ease-out;
  z-index: 3;
}

/* ========================================
   GLOBAL NAV + HEADER
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: white;
}

.nav-logo span {
  color: var(--neon-blue);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--neon-blue), var(--neon-cyan));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========================================
   MINI GLOBAL PLAYER
   ======================================== */
.global-player {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  min-width: 300px;
  max-width: 360px;
}

.player-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.player-track {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-persona {
  font-size: 0.65rem;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.player-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--neon-cyan);
}

.player-btn svg {
  width: 15px;
  height: 15px;
}

.player-visualizer {
  width: 52px;
  height: 28px;
  margin-left: 6px;
}

.player-visualizer canvas {
  width: 100%;
  height: 100%;
}

/* ========================================
   HISTOGRAM LOADER + DIVIDERS
   ======================================== */
.histogram-loader {
  height: 4px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.histogram-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: histo-scan 1.8s infinite;
}

@keyframes histo-scan {
  0% { left: -40%; }
  100% { left: 140%; }
}

.histogram-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  position: relative;
  margin: 40px 0;
}

.histogram-divider::before,
.histogram-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--neon-blue);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--neon-blue);
}

.histogram-divider::before { left: 0; }
.histogram-divider::after { right: 0; }

/* ========================================
   PAGE TRANSITION
   ======================================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: #0a0a0f;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #050508;
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   USER HISTOGRAM SIGNATURE
   ======================================== */
.user-signature {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 900;
  width: 72px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.user-signature canvas {
  width: 100%;
  height: 100%;
}

/* ========================================
   CLEAN CYBERPUNK PAGES (ABOUT, SERVICES, CONTACT)
   ======================================== */
.cyberpunk-page {
  min-height: 100vh;
  padding-top: 80px;
}

.cyber-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* ========================================
   BUTTONS & CARDS
   ======================================== */
.btn-neon {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  border: 2px solid var(--neon-blue);
  color: white;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-neon:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 25px var(--neon-blue);
}

.btn-persona {
  padding: 12px 24px;
  font-size: 0.8rem;
  border-color: currentColor;
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .global-player {
    left: 16px;
    right: 16px;
    min-width: auto;
  }
  
  .user-signature {
    display: none;
  }
}
