/*
Theme Name: Crimson Mars
Theme URI: https://example.com/crimson-mars
Author: Antigravity
Author URI: https://google.deepmind.com
Description: A cyberpunk Mars colonization theme converted from React.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crimson-mars
*/

:root {
  --mars-red: #ff3b3b;
  --mars-dark: #1a0505;
  --retro-cyan: #00f0ff;
  --retro-amber: #ffb800;
}

body {
  background-color: #050505;
  color: #e0e0e0;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif;
}

.font-mono {
  font-family: 'Share Tech Mono', monospace;
}

/* CRT Scanline Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.2));
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  animation: scanlineScroll 10s linear infinite;
  opacity: 0.3;
}

/* Vignette */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 9998;
  pointer-events: none;
}

/* Noise */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: 9997;
  opacity: 0.05;
  pointer-events: none;
}

@keyframes scanlineScroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

.text-glow {
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.7);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.glitch-hover:hover {
  animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px)
  }

  40% {
    transform: translate(-2px, -2px)
  }

  60% {
    transform: translate(2px, 2px)
  }

  80% {
    transform: translate(2px, -2px)
  }

  100% {
    transform: translate(0)
  }
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #331111;
  border: 1px solid #ff3b3b;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff3b3b;
}

/* 3D Holo Transform Classes */
.preserve-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
}

.perspective-1000 {
  perspective: 1000px;
}

@keyframes spin-slow {
  from {
    transform: rotateY(0deg) rotateX(15deg);
  }

  to {
    transform: rotateY(360deg) rotateX(15deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Old Holo Helpers */
.rotate-x-45 {
  transform: rotateX(45deg);
}

.rotate-y-45 {
  transform: rotateY(45deg);
}

.rotate-x-12 {
  transform: rotateX(12deg);
}

/* 3D Mars Hologram */
.holo-stage {
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
  perspective: 900px;
  margin: 0 auto;
}

.holo-mars {
  width: 220px;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}

.holo-mars::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .20), rgba(0, 0, 0, .65) 60%, rgba(0, 0, 0, .9));
  transform: translateZ(2px);
  pointer-events: none;
}

.holo-strip {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 220px;
  transform-style: preserve-3d;
  transform-origin: center center;
  border-radius: 120px;
  background-size: 220px 220px;
  background-repeat: no-repeat;
  margin-left: -5px;
  backface-visibility: hidden;
  opacity: 0.98;
  background-color: #c94c4c;
  /* Fallback Mars Color */
}

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