@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-body, "Roboto", sans-serif);
  background-color: #000;
  background-image: url('/textures/hdsteel-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: var(--foreground, #f4f4f8);
  min-height: 100vh;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--electricBlue, #1f8eff);
  text-decoration: none;
}

a:hover {
  color: var(--neonGreen, #32ff7e);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, "Geist", sans-serif);
  margin-bottom: 1rem;
}

/* Buttons */
button {
  font-family: var(--font-body, "Roboto", sans-serif);
  background-color: var(--electricBlue, #1f8eff);
  color: var(--foreground, #f4f4f8);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--neonGreen, #32ff7e);
}

/* Inputs */
input,
textarea,
select {
  font-family: var(--font-body, "Roboto", sans-serif);
  background-color: var(--darkGray, #1a1a1a);
  color: var(--foreground, #f4f4f8);
  border: 1px solid var(--lightGray, #bbbbbb);
  border-radius: 0.25rem;
  padding: 0.5rem;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--electricBlue, #1f8eff);
}

/* Footer */
footer {
  background-color: var(--darkGray, #1a1a1a);
  color: var(--foreground, #f4f4f8);
  text-align: center;
  padding: 1rem;
}

/* Animations */
@keyframes slowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hudScanLine {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.1); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.animate-slow-shift {
  animation: slowShift 20s ease infinite;
}

.animate-hudScanLine {
  animation: hudScanLine 4s infinite ease-in-out;
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite ease-in-out;
}

/* Material Icons */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Hover glow effect */
.hover-glow {
  transition: box-shadow 0.2s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 8px rgba(31, 142, 255, 0.5);
}

/* Steel overlay effect */
.bg-steel-overlay {
  background-image: url('/textures/hdsteel-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  filter: brightness(1.25) contrast(1.15) saturate(1.1);
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-steel-texture {
  background-image: url('/textures/hdsteel-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* HUD beveled shape */
.clip-bevel-frame {
  clip-path: polygon(
    12px 0%, 100% 0%, 100% 100%, 12px 100%, 0% 92%, 0% 8%
  );
  background: linear-gradient(145deg, #0f1114, #0b0d11);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 255, 0.12),
    0 0 20px rgba(0, 255, 255, 0.06),
    0 0 80px rgba(0, 255, 255, 0.04);
  position: relative;
}

/* HUD curved hologram illusion (NEW) */
.curved-holo-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) perspective(1200px) rotateX(10deg);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 255, 0.06) 0%,
    rgba(0, 255, 255, 0.03) 50%,
    transparent 80%
  );
  border-radius: 60% / 15%;
  filter: brightness(1.4) blur(1.5px) contrast(1.4);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.hud-scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 255, 0.05),
    rgba(0, 255, 255, 0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hud-curved-shell {
  perspective: 1800px;
  transform-style: preserve-3d;
  transform: scale(1.01);
  margin-top: 2rem;
}

.hud-inner-curved {
  transform: rotateX(12deg);
  transform-origin: center top;
  background: radial-gradient(ellipse at center, #0f1114 0%, #0b0d11 100%);
  border-radius: 20px;
  box-shadow:
    inset 0 0 50px rgba(0, 255, 255, 0.05),
    0 20px 40px rgba(0, 255, 255, 0.1);
  padding: 1rem;
}

/* global.css */

.curved-hud-background {
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
  mix-blend-mode: screen;
}


