/* ==========================================================================
   ENREAP EVENT REDESIGN - FUTURISTIC & ARTISTIC CORE SYSTEM
   Inspired by Atlassian Team 26 Asia
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500;600;700&display=swap');

:root {
  --bg: #030308;
  --bg-darker: #010103;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-neon: rgba(97, 50, 242, 0.3);
  
  /* Vibrant Cyber Palette */
  --purple: #6132f2;
  --cyan: #00cff4;
  --pink: #ff007f;
  --green: #00ca72;
  --orange: #ff7e40;
  --yellow: #ffcb00;
  
  /* High-energy Gradients */
  --grad-primary: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  --grad-artistic: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--cyan) 100%);
  --grad-neon-green: linear-gradient(135deg, var(--cyan) 0%, var(--green) 100%);
  --grad-sunset: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
}

/* ===== CORE RESET & STYLING ===== */
body {
  background-color: var(--bg);
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--pink);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(97, 50, 242, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(97, 50, 242, 0.6);
}

/* ===== LAYOUT & GRID OVERLAYS ===== */
.cyber-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  z-index: 1;
}

.cyber-grid-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 20%, var(--bg) 80%);
  z-index: 2;
}

/* ===== DRifting AURORA LIGHTS ===== */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.4;
  z-index: 0;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: drift 25s infinite alternate ease-in-out;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation: drift 20s infinite alternate-reverse ease-in-out;
}

.aurora-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  top: 40%;
  left: 25%;
  opacity: 0.25;
  animation: drift 30s infinite alternate ease-in-out;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, -40px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-30px, 60px) scale(0.9) rotate(360deg);
  }
}

/* ===== GLASSMORPHIC DESIGN SYSTEM ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Custom glowing card border using pseudo-elements */
.glow-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.4s ease;
}

.glow-card:hover::before {
  background: var(--grad-artistic);
}

/* ===== SPOTLIGHT EFFECT IN JS ===== */
.spotlight-card {
  position: relative;
}

.spotlight-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(97, 50, 242, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.spotlight-card:hover .spotlight-glow {
  opacity: 1;
}

/* ===== GLOWING TEXT & GRADIENTS ===== */
.text-grad-primary {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.glow-text-pink {
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.35);
}

.glow-text-cyan {
  text-shadow: 0 0 20px rgba(0, 207, 244, 0.35);
}

.glow-text-purple {
  text-shadow: 0 0 20px rgba(97, 50, 242, 0.35);
}

/* ===== PREMIUM BUTTONS ===== */
.neon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.neon-btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(97, 50, 242, 0.3);
}

.neon-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-artistic);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.neon-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 207, 244, 0.5), 0 0 15px rgba(97, 50, 242, 0.3);
}

.neon-btn-primary:hover::after {
  opacity: 1;
}

.neon-btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: #f1f5f9;
  border: 1px solid var(--border-glass);
}

.neon-btn-outline::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1.5px;
  background: var(--border-glass);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.4s ease;
}

.neon-btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

.neon-btn-outline:hover::before {
  background: var(--grad-primary);
}

/* ===== HIGH TECH FORM TERMINAL ===== */
.terminal-input {
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 12px !important;
}

.terminal-input:focus {
  outline: none !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 207, 244, 0.15) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.terminal-input::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

/* Form validation errors tailored to dark mode */
label.error {
  color: var(--pink) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  display: block !important;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* ===== CHRONO TIMELINE RAIL ===== */
.timeline-track {
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), var(--green), transparent);
  opacity: 0.3;
}

@media (min-width: 768px) {
  .timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-glow-node {
  position: relative;
  z-index: 5;
}

.timeline-glow-node::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px var(--cyan);
  top: 50%;
  transform: translateY(-50%);
}

/* Floating custom video mockups */
.cyber-frame {
  position: relative;
  perspective: 1000px;
}

.cyber-frame-inner {
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.6);
}

.cyber-frame:hover .cyber-frame-inner {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(97, 50, 242, 0.2);
}

/* Dynamic Floating animations */
.float-slower {
  animation: hover-float 8s infinite ease-in-out;
}

.float-faster {
  animation: hover-float 5s infinite ease-in-out;
}

@keyframes hover-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* WhatsApp Floating Custom Alignment */
.wa-float-cyber {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-cyber:hover {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 15px rgba(0, 202, 114, 0.5));
}