/* CSS Custom Reset and Variables */
:root {
  --primary-color: #ffffff;
  --secondary-color: #000000;
  --accent-color: #888888;
  --border-color: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --nav-bg: rgba(0, 0, 0, 0.75);
  
  /* Font Stacks */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--secondary-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
}

/* Button System */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  border-width: 1px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-nav:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  margin-right: 0.75rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.25em;
  font-size: 1.2rem;
}

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

.nav-item {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-item:hover::after {
  width: 100%;
}

/* Hero Section (SpaceX Fullscreen Style) */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 8% 8% 8%;
}

#sat.hero-section {
  background-position: top center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.section-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.mouse {
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* Headquarters Section */
.hq-section {
  display: flex;
  position: relative;
  background-color: var(--secondary-color);
  min-height: 100vh;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.hq-image-container {
  width: 50%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hq-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out;
}

.hq-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.9) 100%);
}

.hq-content {
  width: 50%;
  padding: 6% 8%;
  z-index: 2;
}

.hq-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hq-description {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hq-controls {
  margin-bottom: 3rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Details and Tabs Section */
.details-section {
  padding: 8rem 0;
  background-color: #0b0b0b;
  border-bottom: 1px solid var(--border-color);
}

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

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary-color);
  border-bottom-2px: 2px solid var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out forwards;
}

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

.specs-info h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 400;
}

.specs-image-box {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  height: 400px;
}

.specs-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer styling */
.footer {
  background-color: var(--secondary-color);
  padding: 3rem 0;
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

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

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 14px;
    opacity: 0.3;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

/* Responsive adjustments */
@media(max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .hq-image-container, .hq-content {
    width: 100%;
    height: auto;
  }
  
  .hq-image-container {
    height: 60vh;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .specs-image-box {
    height: 300px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}
