/* Custom Properties */
:root {
  --color-cyan: #00F0FF;
  --color-blue: #0055FF;
  --color-navy: #0A192F;
}

/* Base Styles & Scrollbar */
body {
  background-color: #030B17; /* Very dark navy/black */
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030B17;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(10, 25, 47, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Buttons */
.cyber-button {
  background: rgba(0, 240, 255, 0.05);
}

.cyber-button-solid {
  background: var(--color-cyan);
  color: var(--color-navy);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.3s ease;
}

.cyber-button-solid:hover {
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
  transform: translateY(-2px);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 10px var(--color-cyan)); }
  50% { opacity: 0.8; filter: drop-shadow(0 0 25px var(--color-cyan)); }
}

.animate-glow {
  animation: pulse-glow 3s infinite;
}

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

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.rotate-slow {
  animation: spin 30s linear infinite;
}

.rotate-slow-reverse {
  animation: spin-reverse 40s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 red;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(21px, 9999px, 83px, 0); }
  20% { clip: rect(98px, 9999px, 12px, 0); }
  40% { clip: rect(51px, 9999px, 51px, 0); }
  60% { clip: rect(74px, 9999px, 35px, 0); }
  80% { clip: rect(10px, 9999px, 90px, 0); }
  100% { clip: rect(61px, 9999px, 82px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(72px, 9999px, 20px, 0); }
  20% { clip: rect(11px, 9999px, 88px, 0); }
  40% { clip: rect(99px, 9999px, 40px, 0); }
  60% { clip: rect(18px, 9999px, 60px, 0); }
  80% { clip: rect(45px, 9999px, 10px, 0); }
  100% { clip: rect(82px, 9999px, 29px, 0); }
}

/* Nav Active Link */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Marquee Animation */
.marquee-content {
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Translate by -50% because the content is duplicated to make it twice as wide */
}

/* Holographic Panel */
.holographic-panel {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 85, 255, 0.1) 100%);
  position: relative;
}

.holographic-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.05) 2px,
    rgba(0, 240, 255, 0.05) 4px
  );
  pointer-events: none;
  z-index: 20;
}
