/* CSS Variables */
:root {
  --bg: #050508;
  --bg2: #080810;
  --surface: #0a0a14;
  --glass: rgba(0,255,200,0.03);
  --border: rgba(0,255,200,0.15);
  --border2: rgba(0,255,200,0.30);
  --primary: #00ffc8;
  --primary2: #00d4a8;
  --accent: #7000ff;
  --accent2: #9b30ff;
  --danger: #ff003c;
  --warning: #ffaa00;
  --success: #00ff88;
  --text: #e0fff8;
  --text2: #a0c4bc;
  --muted: #3a4a44;
  
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.monospace {
  font-family: var(--font-mono);
}

.orbitron {
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text);
  text-shadow: 0 0 10px var(--primary);
}

/* Background Effects */
.starfield {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -10;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -9;
  animation: drift 20s infinite alternate ease-in-out;
}

.aurora-1 {
  top: -20%; left: -10%;
  width: 50vw; height: 50vw;
  background: rgba(0,255,200,0.08);
}

.aurora-2 {
  top: -10%; right: -10%;
  width: 60vw; height: 60vw;
  background: rgba(112,0,255,0.06);
  animation-delay: -5s;
}

.aurora-3 {
  bottom: -20%; left: 20%;
  width: 40vw; height: 40vw;
  background: rgba(0,50,255,0.05);
  animation-delay: -10s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.scanline {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  z-index: 9998;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -8;
}

/* Custom Cursor */
.custom-cursor-dot {
  width: 4px; height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cursor-hover .custom-cursor-dot {
  background-color: var(--danger);
}
.cursor-hover .custom-cursor-ring {
  width: 40px; height: 40px;
  border-color: var(--danger);
  background-color: rgba(255,0,60,0.1);
}

/* HUD Brackets */
.hud-brackets {
  position: relative;
}

.hud-brackets::before, .hud-brackets::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  pointer-events: none;
}

.hud-brackets::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
}

.hud-brackets::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
}

.hud-brackets:hover::before, .hud-brackets:hover::after {
  box-shadow: 0 0 10px var(--primary);
  width: 16px; height: 16px;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

/* Utilities */
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--primary2), var(--accent));
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
}

.zync-logo {
  background: linear-gradient(to right, var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.zync-logo .bolt {
  -webkit-text-fill-color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  display: inline-block;
  animation: flicker 4s infinite alternate;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.5; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg); 
}
::-webkit-scrollbar-thumb {
  background: var(--border2); 
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary); 
}
