/* 
   SpaceX Portfolio Theme 
   Design System: Minimalist, Tech, High Contrast
*/

:root {
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent-color: #ffffff; /* High contrast white for accents */
  --border-color: #333333;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1200px;
  --spacing-section: 120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.overline {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  border: 2px solid var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.btn-outline {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.nav-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
}

.logo span {
  font-weight: 400;
  opacity: 0.7;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
  
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    padding: 10px;
  }
  
  .nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
  }
  
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Header offset */
}

.hero-content {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

/* Sections General */
.section {
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 64px;
  border-left: 2px solid var(--text-primary);
  padding-left: 24px;
}

.section-number {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
}

/* Mission (About) */
.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-text h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.mission-text p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.mission-stats {
  display: flex;
  gap: 48px;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.grayscale-filter {
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.5s ease;
}

.grayscale-filter:hover {
  filter: grayscale(0%) contrast(100%);
}

@media (max-width: 768px) {
  .mission-content {
    grid-template-columns: 1fr;
  }
}

/* Systems (Skills) */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.system-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 32px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.system-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tech-icon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--text-secondary);
  padding: 4px 8px;
  color: var(--text-secondary);
}

.system-card h3 {
  font-size: 18px;
  margin-top: 16px;
}

.tech-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Projects */
.projects-list {
  margin-bottom: 48px;
}

.project-item {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.project-info h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.center-cta {
  text-align: center;
  margin-top: 48px;
}

/* Transmission (Email) */
.terminal-window {
  background: #111;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  background: #222;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
  margin-left: 12px;
  font-size: 12px;
  color: #888;
}

.terminal-body {
  padding: 32px;
}

.terminal-text {
  color: #0f0; /* Green terminal text */
  margin-bottom: 16px;
  font-size: 14px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #333;
}

.prompt {
  color: #0f0;
  margin-right: 8px;
}

.terminal-input {
  background: transparent;
  border: none;
  color: white;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  padding: 8px 0;
}

.terminal-input:focus {
  outline: none;
}

.full-width {
  width: 100%;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.copyright {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}
