/* ============================================
   SPACEX-INSPIRED DARK AEROSPACE THEME
   Modern, minimal, high-contrast design
   ============================================ */

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

:root {
  /* Colors */
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --accent: #a78bfa;
  --accent-warm: #c9a962;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --container-width: 1200px;
  --container-padding: clamp(20px, 5vw, 80px);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-main);
  background: var(--bg-black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 20px;
  z-index: 1000;
  padding: 16px 24px;
  background: var(--white);
  color: var(--bg-black);
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.nav-links a:hover {
  color: var(--white);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--container-padding) 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.6) 80%,
    rgba(0,0,0,1) 100%
  );
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-300);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-500), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--bg-black);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--white);
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-padding) var(--container-padding);
}

.section-dark {
  background: var(--bg-black);
}

.section-darker {
  background: var(--bg-dark);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   MISSION STATEMENT SECTION
   ============================================ */
.mission-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) var(--container-padding);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.mission-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 1000px;
  color: var(--gray-200);
}

.mission-text strong {
  font-weight: 600;
  color: var(--white);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: center;
  padding: 60px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
  display: grid;
  gap: 80px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-card);
}

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

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

.project-content {
  padding: 20px 0;
}

.project-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.project-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.project-description {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-stat {
  text-align: left;
}

.project-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--gray-600);
  padding-bottom: 4px;
}

.project-link:hover {
  border-color: var(--white);
  opacity: 1;
}

.project-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   FULL-WIDTH IMAGE SECTION
   ============================================ */
.full-image-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 60px var(--container-padding);
}

.full-image-section .bg-image {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.full-image-section .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-image-section .bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0,0,0,0.7) 100%
  );
}

.full-image-content {
  max-width: 600px;
}

.full-image-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.full-image-text {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.7;
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--gray-800);
  margin-left: 20px;
}

.timeline-item {
  position: relative;
  padding: 32px 0 32px 40px;
  border-bottom: 1px solid var(--gray-800);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 40px;
  width: 9px;
  height: 9px;
  background: var(--white);
  border-radius: 50%;
}

.timeline-year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.timeline-description {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 600px;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.timeline-link:hover {
  color: var(--white);
  opacity: 1;
}

/* ============================================
   UPDATES / NEWS GRID
   ============================================ */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.update-card {
  background: var(--bg-card);
  padding: 32px;
  transition: background 0.3s ease;
}

.update-card:hover {
  background: var(--bg-card-hover);
}

.update-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.update-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.update-excerpt {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.update-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.update-link:hover {
  color: var(--white);
  opacity: 1;
}

/* ============================================
   BIO / ABOUT GRID
   ============================================ */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.bio-card {
  background: var(--bg-card);
  padding: 32px;
}

.bio-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-800);
}

.bio-card-content {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.7;
}

/* ============================================
   TAGS
   ============================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--white);
  color: var(--white);
  opacity: 1;
}

/* ============================================
   CONTACT / FOOTER SECTION
   ============================================ */
.contact-section {
  text-align: center;
  padding: var(--section-padding) var(--container-padding);
  border-top: 1px solid var(--gray-800);
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.contact-email {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 48px;
}

.contact-email a {
  border-bottom: 2px solid var(--gray-600);
  padding-bottom: 4px;
}

.contact-email a:hover {
  border-color: var(--white);
  opacity: 1;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  padding: 12px 0;
}

.social-link:hover {
  color: var(--white);
  opacity: 1;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-nav a:hover {
  color: var(--white);
  opacity: 1;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: var(--gray-800);
  margin: 0 var(--container-padding);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Initial state for scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .stats-grid {
    gap: 32px;
  }

  .stat-number {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .timeline {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
  }

  .timeline-item {
    padding-left: 0;
  }

  .timeline-item::before {
    display: none;
  }

  .project-stats {
    gap: 24px;
  }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* ============================================
   HERITAGE / QUOTE SECTION
   ============================================ */
.heritage-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding) var(--container-padding);
  overflow: hidden;
}

.heritage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.heritage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.heritage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.3) 100%
  );
}

.heritage-content {
  max-width: 600px;
  z-index: 1;
}

.heritage-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.heritage-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.heritage-text {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
  opacity: 0;
}

.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}
