/* ==========================================================================
   ÖMER TAHA DAĞ — TA2THD
   BROADCAST STUDIO & MEDIA PRODUCTION DESIGN SYSTEM
   High-performance, vanilla CSS architecture
   ========================================================================== */

:root {
  /* Core Cinematic Dark Backgrounds */
  --bg-deep: #04040a;
  --bg-base: #070712;
  --bg-surface: #0c0d18;
  --bg-surface-elevated: #12132a;
  --bg-card: rgba(12, 13, 24, 0.78);
  --bg-card-hover: rgba(18, 20, 42, 0.88);
  --bg-glass: rgba(10, 10, 22, 0.72);
  --bg-glass-heavy: rgba(8, 8, 18, 0.88);

  /* Broadcast Studio Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-bright: rgba(255, 255, 255, 0.24);
  --border-cyan: rgba(168, 85, 247, 0.45);
  --border-amber: rgba(245, 158, 11, 0.45);
  --border-emerald: rgba(16, 185, 129, 0.45);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Broadcast Accents */
  --accent-cyan: #a855f7;
  --accent-cyan-glow: rgba(168, 85, 247, 0.2);
  --accent-blue: #818cf8;
  --accent-blue-glow: rgba(129, 140, 248, 0.2);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  --accent-purple: #ec4899;
  --accent-purple-glow: rgba(236, 72, 153, 0.2);
  --accent-rose: #f43f5e;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-heading: 'Syne', 'Plus Jakarta Sans', sans-serif;

  /* Sizing & Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --max-width: 1240px;

  /* Kinetic Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

::selection {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
}

/* Custom Tactical Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e2035;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   AMBIENT BACKGROUND CANVAS & CINEMATIC ATMOSPHERE
   ========================================================================== */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Subtle Film Grain Noise Texture */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 1px 1px at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 50% 50%, rgba(255,255,255,0.015) 0%, transparent 100%);
  background-size: 3px 3px, 5px 5px, 7px 7px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, black 30%, transparent 80%);
  opacity: 0.6;
}

/* Cinematic Horizon Glow — Warm Violet + Magenta */
.ambient-glow-top {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.14) 0%, rgba(236, 72, 153, 0.08) 35%, rgba(129, 140, 248, 0.05) 60%, transparent 80%);
  filter: blur(90px);
  opacity: 0.8;
}

.ambient-glow-mid {
  position: absolute;
  top: 45%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.07) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 70%);
  filter: blur(110px);
}

/* Cinematic Horizontal Light Sweep */
.bg-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.012) 48%, rgba(236, 72, 153, 0.008) 52%, transparent 100%);
  animation: cinematicSweep 18s infinite linear;
}

@keyframes cinematicSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6.5rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-tag i {
  width: 13px;
  height: 13px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION: FLOATING AEROSPACE DOCK
   ========================================================================== */
.mobile-top-bar {
  display: none;
}

.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0.55rem 0.9rem 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

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

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-item i {
  width: 14px;
  height: 14px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Language Switcher */
.lang-switch-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #0a0515;
  font-weight: 700;
}

/* Terminal Console Trigger */
.btn-terminal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 20, 30, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-terminal-trigger i {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.btn-terminal-trigger kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-primary);
}

.btn-terminal-trigger:hover {
  border-color: var(--border-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   HERO SECTION (COMMAND DECK)
   ========================================================================== */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Top Telemetry Row */
.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.callsign-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Live RF Audio/Radio Waveform Bar */
.rf-waveform-bar {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  padding-left: 0.25rem;
}

.rf-waveform-bar span {
  display: inline-block;
  width: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  animation: rfWave 1.2s infinite ease-in-out alternate;
}
.rf-waveform-bar span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.rf-waveform-bar span:nth-child(2) { height: 11px; animation-delay: 0.3s; }
.rf-waveform-bar span:nth-child(3) { height: 7px; animation-delay: 0.5s; }
.rf-waveform-bar span:nth-child(4) { height: 13px; animation-delay: 0.2s; }
.rf-waveform-bar span:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes rfWave {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

/* Headline */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  color: #fff;
}

.highlight-text {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

/* Action Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Telemetry Counters */
.hero-telemetry-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(14, 18, 26, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  padding-right: 0.75rem;
}

.telemetry-item:last-child {
  border-right: none;
  padding-right: 0;
}

.telemetry-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.telemetry-value span {
  color: var(--accent-cyan);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

/* Hero Signature Visual */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.tactical-hud-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-medium);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Corner Crosshair Reticles */
.tactical-hud-frame::before {
  content: '┌            ┐';
  position: absolute;
  top: -8px;
  left: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.tactical-hud-frame::after {
  content: '└            ┘';
  position: absolute;
  bottom: -8px;
  left: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: var(--bg-surface);
  aspect-ratio: 4 / 4.7;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 13, 0.85) 85%, var(--bg-base) 100%);
  pointer-events: none;
}

/* Floating Status Chips on Visual */
.hero-tag-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid var(--border-amber);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-floating-chip {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(20px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.chip-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.chip-info p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ==========================================================================
   MISSION SECTION: WHAT / WHY / HOW TRIPARTITE FRAMEWORK
   ========================================================================== */
.mission-section {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

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

.mission-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mission-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.mission-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mission-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.mission-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-icon i {
  width: 22px;
  height: 22px;
}

.mission-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.mission-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.mission-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mission-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #d1d5db;
  line-height: 1.45;
}

.mission-highlights li i {
  width: 15px;
  height: 15px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.mission-footer-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

/* ==========================================================================
   DIRECTORY SECTION: ALL SUBPAGES BRIEF SUMMARIES
   ========================================================================== */
.directory-section {
  padding: 5rem 0;
}

.directory-category-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.directory-category-title i {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.directory-card {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.directory-card:hover {
  border-color: var(--border-bright);
  background: rgba(18, 24, 35, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.directory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.directory-slug-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.directory-tab-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.directory-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.directory-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.directory-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  align-self: flex-start;
}

.directory-card-action:hover {
  background: var(--accent-cyan);
  color: #0a0515;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   PROJECTS SECTION: MODULAR BENTO GRID
   ========================================================================= */
.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: #fff;
  color: #07090e;
  border-color: #fff;
  font-weight: 700;
}

/* Projects Bento Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Universal Spotlight Card */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.spotlight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Mouse Spotlight Cursor Light */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Card Geometry Spans */
.card-featured {
  grid-column: span 8;
}

.card-half {
  grid-column: span 6;
}

.card-compact {
  grid-column: span 4;
}

.card-full {
  grid-column: span 12;
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #090c12;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid var(--border-amber);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.project-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-action i {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.link-action:hover {
  color: #fff;
}

.link-action:hover i {
  transform: translateX(3px);
}

.link-subpage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-subpage:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0a0515;
}

/* ==========================================================================
   EXPERIENCE SECTION: AEROSPACE FLIGHT LOG
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  width: 64px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exp-org-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.exp-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-icon i {
  width: 22px;
  height: 22px;
}

.exp-org-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.exp-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.exp-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.exp-badge-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.exp-role-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-role-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.exp-role-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin: 0.2rem 0 0.5rem 0;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ==========================================================================
   SKILLS & AVIONICS MATRIX
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.skill-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.skill-icon-wrapper i {
  width: 24px;
  height: 24px;
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.55rem;
}

.skill-category-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(168, 85, 247, 0.08);
}

/* ==========================================================================
   CONTACT SECTION: GROUND STATION TERMINAL
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  width: 20px;
  height: 20px;
}

.info-text h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.info-text p {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.04);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

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

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   CLI TERMINAL MODAL (AEROSPACE CONSOLE)
   ========================================================================== */
.terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.terminal-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-window {
  width: 100%;
  max-width: 820px;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.terminal-header {
  background: #10141f;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ctrl-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.ctrl-close { background: #ef4444; }
.ctrl-minimize { background: #f59e0b; }
.ctrl-maximize { background: #10b981; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.terminal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.terminal-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.terminal-quick-bar {
  background: #0c0f18;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.quick-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.quick-chip:hover {
  background: var(--accent-cyan);
  color: #03131d;
  font-weight: 700;
}

.terminal-body {
  padding: 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
  flex: 1;
}

.output-line {
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.output-info { color: var(--accent-cyan); font-weight: 600; }
.output-highlight { color: #38bdf8; font-weight: 600; }
.output-warning { color: var(--accent-amber); }
.output-success { color: var(--accent-emerald); }
.output-error { color: var(--accent-rose); }

.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.prompt-symbol {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.82rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
}

/* ==========================================================================
   EMBEDDED CONSOLE DECK (PAGE BOTTOM TERMINAL)
   ========================================================================== */
.console-deck-section {
  padding: 5.5rem 0 4rem;
  position: relative;
}

.embedded-terminal {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-md);
  background: #080b14;
}

.embedded-terminal .terminal-body {
  min-height: 280px;
  max-height: 380px;
}

.terminal-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGlow 2s infinite ease-in-out;
}

.chip-ext {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-info { border-left: 3px solid var(--accent-cyan); }
.toast-success { border-left: 3px solid var(--accent-emerald); }
.toast-error { border-left: 3px solid var(--accent-rose); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #030406;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.asimov-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 620px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

#system-time {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET ADAPTATION)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-badge-row, .hero-cta-group {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-telemetry-panel {
    max-width: 580px;
    margin: 0 auto;
  }

  .card-featured, .card-half, .card-compact {
    grid-column: span 6;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile Bottom Dock */
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding: 0 1.25rem;
    background: rgba(8, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
  }

  .mobile-top-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .navbar-wrapper {
    top: auto;
    bottom: 1rem;
    padding: 0 0.75rem;
  }

  .navbar {
    width: 100%;
    justify-content: space-around;
    padding: 0.5rem 0.5rem;
    gap: 0;
  }

  .nav-brand, .nav-actions {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
  }

  .nav-item {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
  }

  .nav-item i {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-telemetry-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .telemetry-item:nth-child(2) {
    border-right: none;
  }

  .card-featured, .card-half, .card-compact {
    grid-column: span 12;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }

  .timeline-marker {
    width: 40px;
    height: 28px;
    font-size: 0.58rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
