/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
  --midnight: #030712;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --neon-cyan: #00f2ff;
  --neon-dim: rgba(0, 242, 255, 0.08);
  --silver: #e2e8f0;
  --silver-muted: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(0, 242, 255, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--midnight);
  color: var(--silver);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, .logo, .btn {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--silver);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--silver-muted);
  max-width: 55ch;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.9rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--silver);
  text-transform: uppercase;
}

.logo span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--silver-muted);
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--neon-cyan);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--neon-cyan);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-toggle.active .hamburger {
  background: transparent;
}

.mobile-toggle.active .hamburger::before {
  transform: rotate(45deg) translateY(8px);
}

.mobile-toggle.active .hamburger::after {
  transform: rotate(-45deg) translateY(-8px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
  background: radial-gradient(circle at 50% 0%, #0f172a 0%, #030712 70%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.flight-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flight-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.flight-line {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
  stroke-dasharray: 12 18;
  stroke-linecap: round;
  animation: flightMove 4s linear infinite;
}

.line-2 {
  stroke: rgba(192, 192, 192, 0.5);
  stroke-width: 1.5;
  animation-duration: 6s;
  animation-delay: -2s;
}

.line-3 {
  stroke: rgba(0, 242, 255, 0.4);
  stroke-width: 1;
  animation-duration: 5s;
  animation-delay: -1s;
}

@keyframes flightMove {
  to { stroke-dashoffset: -360; }
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 500px);
  height: min(20vw, 250px);
  pointer-events: none;
  z-index: 1;
}

.hero-aircraft {
  width: 100%;
  height: 100%;
  animation: floatAircraft 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,242,255,0.3));
}

.halo-ring {
  position: absolute;
  inset: -10%;
  border: 1px solid rgba(0, 242, 255, 0.15);
  border-radius: 50%;
  animation: haloPulse 3s ease-out infinite;
}

@keyframes floatAircraft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes haloPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
  padding: 2rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 8px rgba(0,242,255,0.3);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--silver) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--silver-muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, rgba(0,242,255,0.15), rgba(0,242,255,0.05));
  border: 1px solid rgba(0, 242, 255, 0.5);
  color: var(--neon-cyan);
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,242,255,0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 0 24px rgba(0,242,255,0.3), inset 0 0 12px rgba(0,242,255,0.15);
  transform: translateY(-2px);
}

/* Hero Dashboard (Floating Cockpit Interface) */
.hero-dashboard {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 280px;
  padding: 1.25rem;
  display: none;
  z-index: 5;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,242,255,0.1);
}

.dash-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dash-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--silver-muted);
  text-transform: uppercase;
}

.dash-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.dash-label {
  color: var(--silver-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dash-value {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-cyan);
  font-size: 0.75rem;
}

.dash-footer {
  margin-top: auto;
}

.dash-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.dash-bar span {
  display: block;
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.5s;
}

.dash-status {
  font-size: 0.7rem;
  color: var(--silver-muted);
  letter-spacing: 1px;
}

/* =========================================
   SYSTEMS / ABOUT
   ========================================= */
.systems {
  background: linear-gradient(180deg, #030712 0%, #0b1221 100%);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.glass-card {
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.glass-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--silver);
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--silver-muted);
  line-height: 1.5;
}

/* =========================================
   PROGRAMS
   ========================================= */
.programs {
  background: radial-gradient(circle at 80% 50%, rgba(0,242,255,0.03), transparent 60%), #030712;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.program-card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.program-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  opacity: 0.7;
}

.program-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--silver);
}

.program-card p {
  color: var(--silver-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.program-meta {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  background: rgba(0, 242, 255, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 255, 0.2);
}

/* =========================================
   AVIATION LAB
   ========================================= */
.lab {
  background: linear-gradient(180deg, #0b1221 0%, #030712 100%);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lab-card {
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.lab-card:hover {
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.06);
}

.lab-pill {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 99px;
  color: var(--silver-muted);
  margin-bottom: 1rem;
}

.lab-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--silver);
}

.lab-platform {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lab-card > p:last-child {
  font-size: 0.95rem;
  color: var(--silver-muted);
  line-height: 1.5;
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: radial-gradient(circle at 20% 50%, rgba(0,242,255,0.03), transparent 60%), #030712;
}

.contact-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  overflow: hidden;
}

.holo-scan {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,242,255,0.06), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: holoScan 5s ease-in-out infinite;
}

@keyframes holoScan {
  0% { left: -60%; }
  20% { left: 120%; }
  100% { left: 120%; }
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-lead {
  color: var(--silver-muted);
  margin-bottom: 2rem;
  max-width: 45ch;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-bottom: 0.25rem;
}

.contact-list a,
.contact-list address {
  color: var(--silver);
  font-style: normal;
  transition: color 0.3s;
}

.contact-list a:hover,
.contact-list a:focus {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,242,255,0.3);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--neon-cyan);
  box-shadow: 0 4px 8px -4px rgba(0,242,255,0.15);
}

.form-group select {
  background: var(--navy-900);
  color: var(--silver);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  background: #02040a;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 1024px) {
  .hero-dashboard {
    display: block;
  }
}

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .hero-visual {
    opacity: 0.25;
    right: 50%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(70%, 300px);
    height: 100vh;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
  }
  .nav-menu.active {
    right: 0;
  }
  .mobile-toggle {
    display: block;
    z-index: 1100;
  }
  .section {
    padding: 4rem 0;
  }
  .hero-dashboard {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}