/* CSS Reset and Variables */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0c14;
  --bg-card: rgba(12, 12, 20, 0.7);
  --neon-green: #39ff14;
  --neon-cyan: #00f0ff;
  --neon-orange: #ffaa00;
  --neon-red: #ff0055;
  --text-primary: #f5f5fa;
  --text-secondary: #9aa0b9;
  --border-color: rgba(0, 240, 255, 0.15);
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px; /* High legibility base scale */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* CRT Scanlines Overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
}

/* Background Cyber Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Container Utility */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-brand {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-link-cta {
  text-decoration: none;
  color: #000;
  background: var(--neon-green);
  padding: 8px 16px;
  border-radius: 2px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
  transition: var(--transition);
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--neon-green);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px 24px;
  background: radial-gradient(circle at center, rgba(20, 5, 38, 0.6) 0%, rgba(5, 5, 8, 1) 70%);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Custom Neon Button Styles */
.btn-primary {
  display: inline-block;
  text-decoration: none;
  color: #000;
  background: var(--neon-green);
  padding: 16px 32px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--neon-green);
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  color: var(--neon-cyan);
  background: transparent;
  border: 1px solid var(--neon-cyan);
  padding: 16px 32px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  color: #fff;
  border-color: #fff;
}

/* Neon Text Helpers */
.neon-text-green {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.neon-text-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.neon-text-orange {
  color: var(--neon-orange);
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

.neon-text-red {
  color: var(--neon-red);
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
}

/* Sections General */
.section-header {
  margin-bottom: 48px;
  text-align: left;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.header-line {
  width: 80px;
  height: 2px;
  background: currentColor;
}

/* Lore Section */
.lore-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.lore-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.lore-text-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.lore-text-block p:last-child {
  margin-bottom: 0;
}

.lore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.lore-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.lore-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 8, 0.9);
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  line-height: 1.4;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid var(--border-color);
  color: var(--neon-cyan);
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-family: var(--font-title);
  font-weight: bold;
}

.carousel-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 5px var(--neon-cyan);
}

/* Specs Section */
.specs-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: 4px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-name {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.specs-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.specs-action h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.specs-action p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: #020204;
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 0.8rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  html {
    font-size: 16px;
  }
  
  .lore-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .specs-box {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    display: none; /* Simplifies layout for mobile viewports */
  }
  
  .hero-title {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary, .btn-secondary {
    text-align: center;
    padding: 14px 20px;
  }
}
