:root {
  --hud-cyan: #00f3ff;
  --hud-cyan-dim: rgba(0, 243, 255, 0.15);
  --hud-cyan-glow: rgba(0, 243, 255, 0.6);
  --hud-gold: #ffb700;
  --hud-red: #ff2a2a;
  --hud-bg: #030812;
  --font-main: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--hud-cyan);
  background-color: var(--hud-bg);
  background-image: url('assets/18000rpm_LMP3.jpeg');
  background-image: -webkit-image-set(url('assets/18000rpm_LMP3.webp') type('image/webp'), url('assets/18000rpm_LMP3.jpeg') type('image/jpeg'));
  background-image: image-set(url('assets/18000rpm_LMP3.webp') type('image/webp'), url('assets/18000rpm_LMP3.jpeg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow-x: hidden;
  text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
}

p {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1.5;
  color: #a0d8ef;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* =========================================
   HUD FX & BACKGROUNDS
   ========================================= */
.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, 243, 255, 0.05) 50%, rgba(0, 243, 255, 0.05));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9998;
}

.vignette {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;
  pointer-events: none;
  z-index: 9997;
}

.hud-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(var(--hud-cyan-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-cyan-dim) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Rotating HUD Circles */
.hud-bg-circle-1, .hud-bg-circle-2 {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.hud-bg-circle-1 {
  width: 120vw; height: 120vw;
  border: 1px dashed var(--hud-cyan);
  animation: rotate-slow 120s linear infinite;
}

.hud-bg-circle-2 {
  width: 90vw; height: 90vw;
  border: 2px solid transparent;
  border-top-color: var(--hud-cyan);
  border-bottom-color: var(--hud-cyan);
  animation: rotate-slow-reverse 90s linear infinite;
}

@keyframes rotate-slow {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rotate-slow-reverse {
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hud-cyan-dim);
  background: rgba(3, 8, 18, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 243, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 45px;
  filter: drop-shadow(0 0 5px var(--hud-cyan));
}

.hud-bracket {
  width: 10px; height: 30px;
  border: 2px solid var(--hud-cyan);
}
.hud-bracket.left { border-right: none; }
.hud-bracket.right { border-left: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item a {
  text-decoration: none;
  color: var(--hud-cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

.nav-item a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--hud-cyan-dim);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nav-item a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--hud-cyan);
}

.nav-item a:hover::before {
  transform: scaleY(1);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  padding: 6rem 0;
  position: relative;
}

.hero-hud-wrapper {
  position: relative;
  background: rgba(3, 8, 18, 0.6);
  border: 1px solid var(--hud-cyan-dim);
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 50px rgba(0, 243, 255, 0.05);
  overflow: hidden;
}

/* HUD Corners */
.corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 3px solid var(--hud-cyan);
}
.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arc Rings */
.hud-ring-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 350px; height: 350px;
  z-index: -1;
  opacity: 0.3;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.ring-outer {
  width: 100%; height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--hud-cyan);
  border-bottom-color: var(--hud-cyan);
  animation: spin 10s linear infinite;
}

.ring-inner {
  width: 80%; height: 80%;
  border: 2px dashed var(--hud-cyan);
  animation: spin-reverse 15s linear infinite;
}

.ring-core {
  width: 60%; height: 60%;
  border: 4px solid rgba(0, 243, 255, 0.2);
  border-left-color: var(--hud-gold);
  border-right-color: var(--hud-gold);
  animation: spin 5s ease-in-out infinite alternate;
}

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

/* Glitch Title */
.hero h1 {
  font-size: 5rem;
  color: #fff;
  text-shadow: 0 0 10px var(--hud-cyan), 0 0 20px var(--hud-cyan);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Typewriter Subtitle */
#hero-subtitle {
  font-size: 1.5rem;
  color: var(--hud-gold);
  margin-bottom: 3rem;
  min-height: 2rem;
  text-shadow: 0 0 8px var(--hud-gold);
}

/* Data Readouts */
.data-readouts {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border: 1px solid var(--hud-cyan-dim);
  border-radius: 4px;
}

.readout .label {
  color: #fff;
  opacity: 0.7;
  margin-right: 8px;
}
.readout .value {
  color: var(--hud-cyan);
  font-weight: bold;
  text-shadow: 0 0 5px var(--hud-cyan);
}
.readout .status-ok {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

/* =========================================
   SECTIONS & PANELS
   ========================================= */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 10px var(--hud-cyan);
}
.hud-prefix {
  color: var(--hud-gold);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-shadow: none;
}
.hud-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--hud-cyan) 0%, transparent 100%);
  box-shadow: 0 0 8px var(--hud-cyan);
}

.about { padding: 4rem 0; }

.hud-panel {
  position: relative;
  padding: 2rem;
  background: rgba(3, 8, 18, 0.7);
  border-left: 4px solid var(--hud-cyan);
  border-right: 1px solid var(--hud-cyan-dim);
  backdrop-filter: blur(5px);
  max-width: 800px;
}
.hud-panel p {
  font-size: 1.2rem;
  color: #d1f4ff;
}

.panel-deco {
  position: absolute;
  left: 0; width: 100%; height: 1px;
  background: var(--hud-cyan);
}
.panel-deco.top { top: 0; width: 50%; }
.panel-deco.bottom { bottom: 0; width: 30%; right: 0; left: auto;}

/* =========================================
   APPS GRID
   ========================================= */
.apps { padding: 4rem 0 6rem 0; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.app-card {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

/* Card Borders Complex */
.card-borders {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.cb-top { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--hud-cyan-dim); }
.cb-right { position: absolute; top: 0; right: 0; width: 2px; height: 100%; background: var(--hud-cyan-dim); }
.cb-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--hud-cyan-dim); }
.cb-left { position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: var(--hud-cyan-dim); }

.app-card:hover .cb-top, .app-card:hover .cb-bottom { background: var(--hud-cyan); box-shadow: 0 0 10px var(--hud-cyan); }
.app-card:hover .cb-left, .app-card:hover .cb-right { background: var(--hud-cyan); box-shadow: 0 0 10px var(--hud-cyan); }

/* App Image & Crosshair */
.app-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.app-img-wrapper img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0,243,255,0.3));
}

.target-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px;
  border: 1px solid var(--hud-cyan-dim);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.5s;
}
.target-crosshair::before, .target-crosshair::after {
  content: '';
  position: absolute;
  background: var(--hud-cyan);
  opacity: 0.5;
}
.target-crosshair::before { top: 50%; left: -10px; right: -10px; height: 1px; transform: translateY(-50%); }
.target-crosshair::after { left: 50%; top: -10px; bottom: -10px; width: 1px; transform: translateX(-50%); }

.app-card:hover .target-crosshair {
  width: 130px; height: 130px;
  border-color: var(--hud-cyan);
  transform: translate(-50%, -50%) rotate(45deg);
}

.app-card h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}
.app-card .app-desc {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 50px;
}

/* HUD Button */
.hud-btn {
  display: inline-block;
  padding: 8px 25px;
  border: 1px solid var(--hud-cyan);
  color: var(--hud-cyan);
  font-family: var(--font-mono);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  background: transparent;
  transition: all 0.3s;
  overflow: hidden;
}

.hud-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: rgba(0, 243, 255, 0.2);
  transition: left 0.3s;
  z-index: -1;
}

.app-card:hover .hud-btn {
  background: var(--hud-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--hud-cyan);
}

.contact { padding: 4rem 0 6rem 0; }
.contact-panel {
  text-align: center;
  margin: 0 auto;
  max-width: 500px;
  padding: 1.5rem;
}
.contact-email {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--hud-gold);
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.3s;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 183, 0, 0.5);
}
.contact-email:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--hud-gold);
  transform: scale(1.05);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  padding: 2rem 0;
  background: #000;
  border-top: 1px solid var(--hud-cyan-dim);
}

.footer-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-hud .line {
  height: 1px; width: 50px;
  background: var(--hud-cyan-dim);
}

.footer-hud p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
  body {
    background-image: none;
    background-color: #030812;
  }

  .scanlines,
  .vignette,
  .hud-grid,
  .hud-bg-circle-1,
  .hud-bg-circle-2,
  .hud-ring-container,
  .card-borders,
  .target-crosshair {
    display: none !important;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-hud-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .hero h1 { font-size: 3rem; }
  .data-readouts { flex-direction: column; gap: 1rem; align-items: center; }
  .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; display: flex; }
  .header-inner { flex-direction: column; gap: 1rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .section-header h2 { font-size: 2rem; }
  .hud-line { display: none; }
  .app-card { padding: 1.5rem 1rem; }
  .contact-panel { padding: 1.25rem; }
  .footer-hud { flex-direction: column; gap: 10px; }
}
