/* ===== ICO2026 Base Styles ===== */

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

html {
  scroll-behavior: smooth;
}

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

/* Background Grid Effect */
.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: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

/* Cyber Particles Animation */
.cyber-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.cyber-particles::before,
.cyber-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-particle 20s ease-in-out infinite;
}

.cyber-particles::before {
  background: radial-gradient(circle, rgba(93, 120, 255, 0.3) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.cyber-particles::after {
  background: radial-gradient(circle, rgba(0, 217, 255, 0.25) 0%, transparent 70%);
  bottom: 20%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -30px) scale(1.1);
  }
  50% {
    transform: translate(20px, 50px) scale(0.9);
  }
  75% {
    transform: translate(-30px, 20px) scale(1.05);
  }
}

/* Additional floating elements */
.cyber-float {
  position: fixed;
  pointer-events: none;
  z-index: 3;
}

.cyber-float-1 {
  width: 4px;
  height: 4px;
  background: var(--ico-primary);
  border-radius: 50%;
  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);
  border-radius: 50%;
  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);
  border-radius: 50%;
  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);
  border-radius: 50%;
  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);
  border-radius: 50%;
  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; }
}

/* Cyber line decoration */
.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-MOVING ORB - Border Runner
   ============================================ */
.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);
  }
}

/* ============================================
   CYBER PULSE RINGS
   ============================================ */
.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(--mq-red);
  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(--mq-red);
  box-shadow: 0 0 20px var(--mq-red-glow);
}

.cyber-pulse-ring-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 20%;
  animation-delay: -2s;
  border-color: var(--mq-red-light);
  box-shadow: 0 0 15px var(--mq-red-glow);
}

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

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

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

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

/* ============================================
   CYBER HEX GRID DECORATION
   ============================================ */
.cyber-hex {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
}

.cyber-hex::before {
  content: '';
  display: block;
  width: 40px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--ico-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hex-pulse 4s ease-in-out infinite;
}

.cyber-hex-1 { top: 15%; left: 8%; }
.cyber-hex-1::before { animation-delay: 0s; }

.cyber-hex-2 { top: 40%; right: 5%; }
.cyber-hex-2::before { animation-delay: -1.3s; border-color: var(--ico-accent); }

.cyber-hex-3 { bottom: 25%; left: 12%; }
.cyber-hex-3::before { animation-delay: -2.6s; }

.cyber-hex-4 { top: 70%; right: 15%; }
.cyber-hex-4::before { animation-delay: -0.8s; border-color: var(--ico-gold); }

@keyframes hex-pulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

/* ============================================
   DATA STREAM LINES
   ============================================ */
.data-stream {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--ico-primary), transparent);
  opacity: 0.3;
}

.data-stream-1 {
  height: 100px;
  left: 5%;
  top: 30%;
  animation: stream-flow 3s ease-in-out infinite;
}

.data-stream-2 {
  height: 80px;
  right: 8%;
  top: 50%;
  animation: stream-flow 4s ease-in-out infinite;
  animation-delay: -1.5s;
  background: linear-gradient(180deg, transparent, var(--ico-accent), transparent);
}

.data-stream-3 {
  height: 60px;
  left: 85%;
  top: 20%;
  animation: stream-flow 3.5s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes stream-flow {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(30px) scaleY(1.5);
    opacity: 0.5;
  }
}

/* ============================================
   CORNER BRACKETS DECORATION
   ============================================ */
.corner-bracket {
  position: fixed;
  pointer-events: none;
  z-index: 3;
  width: 30px;
  height: 30px;
  opacity: 0.4;
}

.corner-bracket::before,
.corner-bracket::after {
  content: '';
  position: absolute;
  background: var(--ico-primary);
  box-shadow: 0 0 5px var(--ico-primary-glow);
}

.corner-bracket-tl {
  top: 20px;
  left: 20px;
}
.corner-bracket-tl::before { width: 20px; height: 2px; top: 0; left: 0; }
.corner-bracket-tl::after { width: 2px; height: 20px; top: 0; left: 0; }

.corner-bracket-tr {
  top: 20px;
  right: 20px;
}
.corner-bracket-tr::before { width: 20px; height: 2px; top: 0; right: 0; }
.corner-bracket-tr::after { width: 2px; height: 20px; top: 0; right: 0; }

.corner-bracket-bl {
  bottom: 20px;
  left: 20px;
}
.corner-bracket-bl::before { width: 20px; height: 2px; bottom: 0; left: 0; }
.corner-bracket-bl::after { width: 2px; height: 20px; bottom: 0; left: 0; }

.corner-bracket-br {
  bottom: 20px;
  right: 20px;
}
.corner-bracket-br::before { width: 20px; height: 2px; bottom: 0; right: 0; }
.corner-bracket-br::after { width: 2px; height: 20px; bottom: 0; right: 0; }

/* ============================================
   BINARY/CODE RAIN (subtle)
   ============================================ */
.code-rain {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ico-primary);
  opacity: 0.08;
  writing-mode: vertical-rl;
  animation: code-fall 15s linear infinite;
}

.code-rain-1 { left: 3%; top: -100px; animation-delay: 0s; }
.code-rain-2 { left: 25%; top: -150px; animation-delay: -5s; }
.code-rain-3 { right: 10%; top: -80px; animation-delay: -10s; }
.code-rain-4 { right: 30%; top: -120px; animation-delay: -7s; }

@keyframes code-fall {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.08; }
  90% { opacity: 0.08; }
  100% { transform: translateY(calc(100vh + 200px)); opacity: 0; }
}

/* ============================================
   RED FLOATING ORBS
   ============================================ */
.cyber-float-red {
  position: fixed;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  background: var(--mq-red);
}

.cyber-float-red-1 {
  width: 6px;
  height: 6px;
  top: 25%;
  right: 15%;
  box-shadow: 0 0 15px var(--mq-red), 0 0 30px var(--mq-red-glow), 0 0 45px var(--mq-red-glow);
  animation: red-drift-1 12s ease-in-out infinite;
}

.cyber-float-red-2 {
  width: 4px;
  height: 4px;
  bottom: 35%;
  left: 25%;
  box-shadow: 0 0 10px var(--mq-red), 0 0 20px var(--mq-red-glow);
  animation: red-drift-2 15s ease-in-out infinite;
}

.cyber-float-red-3 {
  width: 5px;
  height: 5px;
  top: 55%;
  left: 10%;
  box-shadow: 0 0 12px var(--mq-red-light), 0 0 25px var(--mq-red-glow);
  animation: red-drift-3 18s ease-in-out infinite;
}

@keyframes red-drift-1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.9; }
  50% { transform: translate(-60px, 80px); opacity: 0.5; }
}

@keyframes red-drift-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50% { transform: translate(70px, -50px); opacity: 0.4; }
}

@keyframes red-drift-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.8; }
  50% { transform: translate(40px, 60px); opacity: 0.5; }
}

/* ============================================
   CYBER SHIELD DECORATIONS
   ============================================ */
.cyber-shield {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  width: 50px;
  height: 60px;
  opacity: 0.1;
  animation: shield-pulse 5s ease-in-out infinite;
}

.cyber-shield::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--mq-red);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: inset 0 0 20px var(--mq-red-glow);
}

.cyber-shield-1 {
  top: 30%;
  right: 8%;
  animation-delay: 0s;
}

.cyber-shield-2 {
  bottom: 25%;
  left: 6%;
  animation-delay: -2.5s;
  transform: scale(0.8);
}

@keyframes shield-pulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

/* ============================================
   CIRCUIT LINES
   ============================================ */
.circuit-line {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  background: var(--mq-red);
  opacity: 0.15;
}

.circuit-line-1 {
  width: 150px;
  height: 2px;
  top: 35%;
  left: 0;
  animation: circuit-flow-h 4s ease-in-out infinite;
}

.circuit-line-1::before {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--mq-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mq-red), 0 0 20px var(--mq-red-glow);
}

.circuit-line-2 {
  width: 2px;
  height: 120px;
  top: 20%;
  right: 12%;
  animation: circuit-flow-v 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.circuit-line-2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background: var(--mq-red-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mq-red-light), 0 0 20px var(--mq-red-glow);
}

.circuit-line-3 {
  width: 100px;
  height: 2px;
  bottom: 40%;
  right: 0;
  animation: circuit-flow-h-reverse 4.5s ease-in-out infinite;
  animation-delay: -2s;
}

.circuit-line-3::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--mq-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mq-red), 0 0 20px var(--mq-red-glow);
}

@keyframes circuit-flow-h {
  0%, 100% { width: 50px; opacity: 0.1; }
  50% { width: 200px; opacity: 0.3; }
}

@keyframes circuit-flow-h-reverse {
  0%, 100% { width: 50px; opacity: 0.1; }
  50% { width: 180px; opacity: 0.25; }
}

@keyframes circuit-flow-v {
  0%, 100% { height: 60px; opacity: 0.1; }
  50% { height: 180px; opacity: 0.3; }
}

/* ============================================
   SCANNING LINE EFFECT
   ============================================ */
.scan-line {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mq-red), var(--mq-red-light), var(--mq-red), transparent);
  pointer-events: none;
  z-index: 4;
  opacity: 0.3;
  animation: scan-move 8s linear infinite;
}

@keyframes scan-move {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* ============================================
   GLITCH EFFECT (subtle)
   ============================================ */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
  background: transparent;
  animation: glitch-bg 10s step-end infinite;
}

@keyframes glitch-bg {
  0%, 95%, 100% { opacity: 0; }
  96% { opacity: 0.02; background: var(--mq-red); }
  97% { opacity: 0; }
  98% { opacity: 0.01; background: var(--ico-accent); }
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Section */
section {
  position: relative;
  z-index: 10;
  padding: var(--section-padding);
}

/* Links */
a {
  color: var(--ico-primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Selection */
::selection {
  background: var(--ico-primary);
  color: white;
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }
}
