/* ==========================================================================
   ARMANETICS — Master Corporate Design System
   Aesthetic: Minimalist, Cinematic, Defence-Grade Autonomous Systems
   Typography Scale: SpaceX-style Understated, Precision Engineering Scale
   Color Palette:
     Primary Background:   #000000
     Secondary Background: #0A0A0A
     Text Primary:         #FFFFFF
     Text Muted:           rgba(255, 255, 255, 0.7)
     Text Dim:             rgba(255, 255, 255, 0.45)
     Accent:               #00AEEF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --bg-elevated: #121212;
  --text-primary: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.45);
  --accent: #00AEEF;
  --accent-glow: rgba(0, 174, 239, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.35);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px; /* SpaceX-style refined base */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide scrollbars for cinematic immersion */
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Selection */
::selection {
  background-color: var(--accent);
  color: #000000;
}

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

/* ==========================================================================
   Navigation Bar (Completely Transparent + SpaceX Font Scale)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent !important;
  border-bottom: none !important;
}

.header-nav.nav-hidden {
  transform: translateY(-100%);
}

.header-nav.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}

.nav-logo .logo-text {
  font-size: 0.95rem; /* SpaceX refined logo size */
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.nav-logo img {
  height: auto;
  max-height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.725rem; /* SpaceX 11.5px crisp nav link */
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.2rem 0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ==========================================================================
   Split Hero Section (Premium UI Mockup Layout)
   ========================================================================== */
.split-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  padding: 6rem 5% 4rem;
  gap: 3rem;
}

@media (max-width: 900px) {
  .split-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }
}

.split-hero .section-content {
  position: relative;
  z-index: 2;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.split-hero-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-mockup {
  position: relative;
  width: 110%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 163, 255, 0.15);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-secondary);
}

.hero-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg);
}

.hero-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0,163,255,0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Full-Screen 100vh Sections (Cinematic SpaceX Proportions)
   ========================================================================== */
.fullscreen-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bg-media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.8s ease-out;
}

/* Dark Gradient Overlay */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.75) 85%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.section-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-content.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Typography Hierarchy (SpaceX Inspired) */
.tagline {
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem); /* SpaceX Heading Scale */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-description {
  font-size: clamp(0.875rem, 1.1vw, 1rem); /* 14px - 16px */
  font-weight: 300;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.section-content.centered .section-description {
  max-width: 680px;
}

/* ==========================================================================
   Buttons & CTA Elements
   ========================================================================== */
.cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.85rem; /* SpaceX refined CTA padding */
  font-size: 0.6875rem; /* 11px uppercase */
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.btn-cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.btn-solid {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #FFFFFF;
}

.btn-solid:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  color: #FFFFFF;
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Content Sections & Grid Systems
   ========================================================================== */
.content-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.content-section.dark-alt {
  background-color: var(--bg-secondary);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Feature & Architecture Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.feature-card .card-tag {
  font-size: 0.65rem; /* 10.5px */
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem; /* 17px */
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.8125rem; /* 13px */
  font-weight: 300;
  line-height: 1.65;
}

/* Spec Highlights */
.spec-box {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.spec-number {
  font-size: 1.85rem; /* 30px */
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   Media Gallery & Video Demonstration Cards
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-title {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--text-primary);
}

.gallery-meta {
  font-size: 0.6875rem; /* 11px */
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.video-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: 2px;
}

/* ==========================================================================
   Roadmap & Status Cards
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.roadmap-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1.85rem;
  position: relative;
}

.status-badge {
  display: inline-block;
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.status-completed {
  background: rgba(0, 255, 128, 0.1);
  color: #00FF80;
  border: 1px solid rgba(0, 255, 128, 0.25);
}

.status-active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.status-planned {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Timeline System (About & History)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-left: 1px solid var(--border-subtle);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.timeline-year {
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.05rem; /* 17px */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.8125rem; /* 13px */
  font-weight: 300;
  line-height: 1.65;
}

/* ==========================================================================
   Training Program Cards
   ========================================================================== */
.program-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.curriculum-list li {
  font-size: 0.75rem; /* 12px */
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curriculum-list li::before {
  content: '■';
  color: var(--accent);
  font-size: 0.5rem;
}

/* ==========================================================================
   Mission Statement Banner
   ========================================================================== */
.mission-statement-section {
  padding: 7rem 0;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.mission-statement-section h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 1.75rem;
}

.mission-statement-section p {
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.8125rem; /* 13px */
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Department Selection Cards (Contact) */
.dept-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dept-card:hover, .dept-card.active {
  border-color: var(--accent);
  background: rgba(0, 174, 239, 0.03);
}

.dept-card h4 {
  font-size: 0.95rem; /* 15px */
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dept-card p {
  font-size: 0.775rem; /* 12.5px */
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Job Cards (Careers)
   ========================================================================== */
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.job-item:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.04);
}

.job-title {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.job-meta {
  font-size: 0.75rem; /* 12px */
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.775rem; /* 12.5px */
  max-width: 320px;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-col-title {
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-links a {
  font-size: 0.75rem; /* 12px */
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.footer-col-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.75rem; /* 12px */
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fullscreen-section {
    min-height: 100vh;
    height: auto;
    padding: 6rem 0 4rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .cta-group .btn-cta {
    justify-content: center;
  }
}
