/* ===== ICO2026 Portal - Base Styles ===== */

/* ===== ICO2026 Design System Variables (inlined for subdomain) ===== */
:root {
  /* Font Stacks */
  --font-display: 'Orbitron', -apple-system, 'SF Pro Display', sans-serif;
  --font-body: 'Inter', -apple-system, 'SF Pro Text', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Primary Colors - Cyber Blue */
  --ico-primary: #5D78FF;
  --ico-primary-light: #7B93FF;
  --ico-primary-dark: #4158D0;
  --ico-primary-glow: rgba(93, 120, 255, 0.5);
  --ico-accent: #00D9FF;

  /* Background Colors - Dark Theme */
  --ico-bg-darkest: #050810;
  --ico-bg-dark: #0a0f1a;
  --ico-bg-medium: #0f1525;
  --ico-bg-light: #151d30;
  --ico-bg-panel: rgba(10, 15, 26, 0.95);

  /* Text Colors */
  --ico-text-primary: #ffffff;
  --ico-text-secondary: rgba(200, 220, 255, 0.7);
  --ico-text-muted: rgba(150, 180, 220, 0.5);

  /* Accent Colors */
  --ico-gold: #FFD700;
  --ico-success: #00FF88;
  --ico-warning: #FFAA00;
  --ico-error: #FF6B6B;
  --ico-bronze: #CD7F32;

  /* Border Colors */
  --ico-border: #5D78FF;
  --ico-border-subtle: rgba(93, 120, 255, 0.3);

  /* Gradients */
  --ico-gradient-primary: linear-gradient(135deg, #5D78FF 0%, #00D9FF 100%);
  --ico-gradient-bg: linear-gradient(180deg, #0a0f1a 0%, #050810 100%);

  /* Shadows */
  --ico-shadow: 0 4px 20px rgba(93, 120, 255, 0.15);
  --ico-shadow-lg: 0 8px 40px rgba(93, 120, 255, 0.2);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Portal-specific variables */
:root {
  --portal-sidebar-width: 260px;
  --portal-header-height: 60px;
  --portal-border-radius: 8px;
  --portal-glow-primary: 0 0 20px rgba(93, 120, 255, 0.3);
  --portal-glow-accent: 0 0 20px rgba(0, 217, 255, 0.3);
  --portal-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --portal-glow-success: 0 0 20px rgba(0, 255, 136, 0.3);
  --portal-glow-error: 0 0 20px rgba(255, 107, 107, 0.3);
  --portal-transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ico-bg-darkest);
  color: var(--ico-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--ico-primary-light);
  text-decoration: none;
  transition: var(--portal-transition);
}

a:hover {
  color: var(--ico-accent);
}

/* Background Effects */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(93, 120, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 120, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(93, 120, 255, 0.01) 2px,
    rgba(93, 120, 255, 0.01) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ico-bg-darkest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ico-border-subtle);
  border-top-color: var(--ico-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ico-primary-light);
  margin-top: 16px;
  letter-spacing: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ico-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--ico-primary-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ico-primary);
}

/* Selection */
::selection {
  background: rgba(93, 120, 255, 0.3);
  color: #fff;
}

/* Utility Classes */
.text-primary { color: var(--ico-primary-light); }
.text-accent { color: var(--ico-accent); }
.text-gold { color: var(--ico-gold); }
.text-success { color: var(--ico-success); }
.text-warning { color: var(--ico-warning); }
.text-error { color: var(--ico-error); }
.text-muted { color: var(--ico-text-muted); }
.text-secondary { color: var(--ico-text-secondary); }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }

/* Neon Text Effect */
.neon-text {
  color: var(--ico-primary-light);
  text-shadow:
    0 0 10px var(--ico-primary-glow),
    0 0 30px var(--ico-primary-glow);
}

.neon-text-accent {
  color: var(--ico-accent);
  text-shadow:
    0 0 10px rgba(0, 217, 255, 0.5),
    0 0 30px rgba(0, 217, 255, 0.3);
}

/* ============================================
   FLOATING ORBS
   ============================================ */
.cyber-float {
  position: fixed;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
}

.cyber-float-1 {
  width: 4px; height: 4px;
  background: var(--ico-primary);
  top: 30%; left: 20%;
  box-shadow: 0 0 10px var(--ico-primary), 0 0 20px var(--ico-primary-glow);
  animation: cyber-drift-1 15s ease-in-out infinite;
}

.cyber-float-2 {
  width: 3px; height: 3px;
  background: var(--ico-accent);
  top: 60%; right: 25%;
  box-shadow: 0 0 8px var(--ico-accent), 0 0 15px rgba(0, 217, 255, 0.5);
  animation: cyber-drift-2 18s ease-in-out infinite;
}

.cyber-float-3 {
  width: 2px; height: 2px;
  background: var(--ico-gold);
  top: 45%; left: 70%;
  box-shadow: 0 0 6px var(--ico-gold), 0 0 12px rgba(255, 215, 0, 0.4);
  animation: cyber-drift-3 12s ease-in-out infinite;
}

.cyber-float-4 {
  width: 5px; height: 5px;
  background: var(--ico-primary-light);
  bottom: 30%; left: 40%;
  box-shadow: 0 0 12px var(--ico-primary-light), 0 0 25px var(--ico-primary-glow);
  animation: cyber-drift-4 20s ease-in-out infinite;
}

.cyber-float-5 {
  width: 3px; height: 3px;
  background: var(--ico-accent);
  top: 20%; right: 15%;
  box-shadow: 0 0 8px var(--ico-accent);
  animation: cyber-drift-5 16s ease-in-out infinite;
}

@keyframes cyber-drift-1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.8; }
  50% { transform: translate(100px, 80px); opacity: 0.4; }
}
@keyframes cyber-drift-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50% { transform: translate(-80px, -60px); opacity: 0.3; }
}
@keyframes cyber-drift-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(60px, -40px); opacity: 0.9; }
}
@keyframes cyber-drift-4 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-50px, 70px); opacity: 0.8; }
}
@keyframes cyber-drift-5 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(70px, 50px); opacity: 0.3; }
}

/* ============================================
   PULSE LINES
   ============================================ */
.cyber-line {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--ico-primary-glow), transparent);
  height: 1px;
  opacity: 0.3;
}

.cyber-line-1 {
  width: 200px;
  top: 25%; left: 5%;
  animation: line-pulse 8s ease-in-out infinite;
}

.cyber-line-2 {
  width: 150px;
  bottom: 35%; right: 8%;
  animation: line-pulse 10s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.1; transform: scaleX(0.8); }
  50% { opacity: 0.4; transform: scaleX(1.2); }
}

/* ============================================
   EDGE RUNNING ORBS
   ============================================ */
.edge-orb-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.edge-orb {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ico-primary);
  box-shadow:
    0 0 10px var(--ico-primary),
    0 0 20px var(--ico-primary),
    0 0 40px var(--ico-primary-glow),
    0 0 60px var(--ico-primary-glow);
  animation: edge-run 25s linear infinite, orb-color-shift 8s ease-in-out infinite;
}

.edge-orb-2 {
  animation-delay: -12.5s;
  animation-direction: reverse;
}

@keyframes edge-run {
  0% { top: 0; left: 0; }
  25% { top: 0; left: calc(100% - 8px); }
  50% { top: calc(100% - 8px); left: calc(100% - 8px); }
  75% { top: calc(100% - 8px); left: 0; }
  100% { top: 0; left: 0; }
}

@keyframes orb-color-shift {
  0%, 100% {
    background: var(--ico-primary);
    box-shadow: 0 0 10px var(--ico-primary), 0 0 20px var(--ico-primary), 0 0 40px var(--ico-primary-glow);
  }
  33% {
    background: var(--ico-accent);
    box-shadow: 0 0 10px var(--ico-accent), 0 0 20px var(--ico-accent), 0 0 40px rgba(0, 217, 255, 0.5);
  }
  66% {
    background: var(--ico-gold);
    box-shadow: 0 0 10px var(--ico-gold), 0 0 20px var(--ico-gold), 0 0 40px rgba(255, 215, 0, 0.5);
  }
}

/* ============================================
   PULSE RINGS (Blue theme for portal)
   ============================================ */
.cyber-pulse-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cyber-pulse-ring {
  position: absolute;
  border: 1px solid var(--ico-primary);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-expand 6s ease-out infinite;
}

.cyber-pulse-ring-1 {
  width: 150px; height: 150px;
  top: 20%; left: 15%;
  animation-delay: 0s;
  border-color: var(--ico-primary);
  box-shadow: 0 0 20px var(--ico-primary-glow);
}

.cyber-pulse-ring-2 {
  width: 120px; height: 120px;
  top: 60%; right: 20%;
  animation-delay: -2s;
  border-color: var(--ico-accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.cyber-pulse-ring-3 {
  width: 180px; height: 180px;
  bottom: 30%; left: 60%;
  animation-delay: -4s;
  border-color: var(--ico-primary-light);
  box-shadow: 0 0 25px var(--ico-primary-glow);
}

.cyber-pulse-ring-4 {
  width: 100px; height: 100px;
  top: 40%; left: 80%;
  animation-delay: -1s;
  border-color: var(--ico-accent);
}

.cyber-pulse-ring-5 {
  width: 200px; height: 200px;
  bottom: 15%; left: 10%;
  animation-delay: -3s;
  border-color: var(--ico-primary);
  box-shadow: 0 0 30px var(--ico-primary-glow);
}

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* ============================================
   TEXT SHIMMER
   ============================================ */
.text-shimmer {
  background: linear-gradient(90deg,
    var(--ico-text-primary) 0%,
    var(--ico-accent) 50%,
    var(--ico-text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
