/* ========================================
   LUN-E LUNAR OPS — Stylesheet
   absurd.industries // 2026
   ======================================== */

/* ---- Base ---- */
body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #0A0A0A;
  color: #E8E8E8;
  overflow-x: hidden;
}

::selection {
  background-color: #FF6A00;
  color: #0A0A0A;
}

/* ---- Pixel Corners ---- */
.pixel-corners {
  clip-path: polygon(
    0px 6px,
    6px 0px,
    calc(100% - 6px) 0px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%,
    0px calc(100% - 6px)
  );
}

/* ---- Buttons ---- */
.tech-btn {
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.tech-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #FF6A00;
}

.tech-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #FF6A00;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scanline overlay (applied via inline styles mostly, but utility class) ---- */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 106, 0, 0.15) 2px,
    rgba(255, 106, 0, 0.15) 4px
  );
}

/* ---- Star field background ---- */
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--duration) infinite var(--delay);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

/* ---- Floating animation for spec images ---- */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ---- Telemetry blink ---- */
@keyframes blink-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.blink-warn {
  animation: blink-warn 1.5s infinite;
}

/* ---- Smooth scrolling ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Responsive video container ---- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.video-container iframe,
.video-container video,
.video-container > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Custom scrollbar (Webkit) ---- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #FF6A00;
  border-radius: 0;
}

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

/* ---- Link styles ---- */
a {
  transition: color 0.2s ease;
}

/* ---- Input focus ---- */
input:focus {
  outline: none;
  border-color: #FF6A00;
}

/* ---- Noise texture overlay (subtle) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}