/* ╔══════════════════════════════════════════════════════════════════╗
   ║  AWALIM QUANTUM V6.1 — "ULTRA PREMIUM SPATIAL ENGINE"          ║
   ║  Optimized for 60FPS. Zero layout thrashing. Apple-grade.      ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* 🔥 SPATIAL OVERRIDE MODE 🔥 */
body.protocol-2090-active {
  overflow: hidden !important; 
  background: #020202;
  perspective: 2500px;
}

body.protocol-2090-active .grain-overlay {
  z-index: 99999;
  mix-blend-mode: overlay;
  opacity: 0.1;
  pointer-events: none;
}

/* Base Wrapper for Hardware Acceleration */
#quantum-v6-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0);
}

/* Sections in Spatial Mode */
body.protocol-2090-active .section, 
body.protocol-2090-active section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  transform-origin: center center;
  margin-top: 0 !important;
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 18, 18, 0.45) !important;
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  max-width: 1200px;
  /* Start hidden deep in Z-space */
  transform: translate(-50%, -50%) translateZ(4000px); 
  padding: 60px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  will-change: transform, opacity;
}

body.protocol-2090-active .section.quantum-visible {
  pointer-events: auto;
}

/* ✨ PREMIUM GLOW CURSOR ✨ */
.premium-glow-cursor {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(circle, rgba(163, 207, 43, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ⚡ ELEGANT TEXT SHIMMER ⚡ */
.premium-shimmer {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(163,207,43,1) 50%, #fff 60%, #fff 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
  animation-play-state: paused;
}

.premium-shimmer:hover {
  animation-play-state: running;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* 🚀 PROTOCOL TRIGGER BUTTON (APPLE STYLE) 🚀 */
.btn-2090-trigger {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100000;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-2090-trigger:hover {
  transform: scale(1.02) translateY(-2px);
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(163, 207, 43, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(163,207,43,0.15);
}

.btn-2090-trigger .status-dot {
  width: 6px;
  height: 6px;
  background: #a3cf2b;
  border-radius: 50%;
  box-shadow: 0 0 8px #a3cf2b;
}

/* Exit Button inside Mode */
.btn-2090-exit {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 100000;
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.btn-2090-exit:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ff8a8a;
}

body.protocol-2090-active .btn-2090-exit {
  display: block;
}
body.protocol-2090-active .btn-2090-trigger {
  display: none;
}

/* 3D Pagination / Progress indicator */
.quantum-progress {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000;
  display: none;
  flex-direction: column;
  gap: 12px;
}
body.protocol-2090-active .quantum-progress {
  display: flex;
}
.quantum-dot {
  width: 4px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}
.quantum-dot.active {
  background: #a3cf2b;
  height: 40px;
  box-shadow: 0 0 10px rgba(163,207,43,0.4);
}

/* Premium 3D Apple-TV Hover effect (Zero layout thrashing) */
.premium-card {
  will-change: transform;
}
body.protocol-2090-active .card, 
body.protocol-2090-active .glass-card, 
body.protocol-2090-active .portfolio-item {
  transform-style: preserve-3d;
}
