/* ==========================================================================
   DETECTIVES OF SUPERNATURAL (DOS) - OFFICIAL STYLESHEET (VANILLA CSS)
   Theme: Dark Cinematic Paranormal & Empirical Research
   ========================================================================== */

:root {
  --bg-dark: #050507;
  --bg-card: #0c0d12;
  --bg-card-hover: #12141c;
  --bg-surface: #151821;
  --border-color: rgba(185, 28, 28, 0.25);
  --border-hover: rgba(220, 38, 38, 0.6);
  --border-subtle: #1e2230;
  
  --red-primary: #dc2626;
  --red-dark: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.35);
  --amber-accent: #f59e0b;
  --emerald-accent: #10b981;
  --cyan-accent: #06b6d4;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-cinzel: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.7);
  --shadow-red-glow: 0 0 25px rgba(220, 38, 38, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  selection-background-color: var(--red-dark);
  selection-color: #fff;
}

::selection {
  background-color: #991b1b;
  color: #ffffff;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-cinzel {
  font-family: var(--font-cinzel);
  letter-spacing: 0.05em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 12px;
  max-width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-right: 6px;
  flex-shrink: 0;
}

.nav-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #000;
  border: 1.5px solid rgba(220, 38, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.4);
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.nav-brand-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-cinzel);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f3f4f6;
  line-height: 1.05;
  white-space: nowrap;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-brand-title .nav-sub {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: #f3f4f6;
  font-weight: 700;
  line-height: 1.0;
}

.nav-brand:hover .nav-brand-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.nav-brand:hover .nav-logo-badge {
  border-color: var(--red-primary);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.7);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08);
}

.nav-brand-text h1 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.nav-brand-text span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--red-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  flex-shrink: 1;
}

.nav-item-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item-btn:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

.nav-item-btn.active {
  color: #fff;
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--red-primary);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.25);
}

/* Horror Ambient Audio Controller Button */
.nav-audio-btn {
  background: rgba(18, 20, 29, 0.9);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-audio-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.2) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-audio-btn:hover {
  color: #fff;
  border-color: rgba(220, 38, 38, 0.8);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.nav-audio-btn:hover::before {
  opacity: 1;
}

.nav-audio-btn.playing {
  color: #fca5a5;
  border-color: var(--red-primary);
  background: rgba(36, 10, 14, 0.95);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.45), inset 0 0 8px rgba(220, 38, 38, 0.25);
}

.nav-audio-btn.playing .audio-icon-wrap {
  color: #ef4444;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
}

.nav-audio-btn.playing .audio-btn-label {
  color: #fff;
}

.audio-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  padding: 0 2px;
}

.wave-bar {
  width: 2.5px;
  background: #6b7280;
  border-radius: 1px;
  height: 3px;
  transition: all 0.2s ease;
}

.nav-audio-btn.playing .wave-bar {
  background: linear-gradient(to top, #dc2626, #f87171);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: audioWaveBounce 1.2s ease-in-out infinite alternate;
}

.nav-audio-btn.playing .wave-bar.bar-1 { height: 6px; animation-delay: 0.1s; animation-duration: 0.8s; }
.nav-audio-btn.playing .wave-bar.bar-2 { height: 12px; animation-delay: 0.35s; animation-duration: 1.1s; }
.nav-audio-btn.playing .wave-bar.bar-3 { height: 8px; animation-delay: 0.2s; animation-duration: 0.9s; }
.nav-audio-btn.playing .wave-bar.bar-4 { height: 14px; animation-delay: 0.45s; animation-duration: 1.3s; }

@keyframes audioWaveBounce {
  0% { height: 3px; }
  50% { height: 13px; }
  100% { height: 4px; }
}

.nav-emergency-btn {
  background: var(--red-primary);
  border: 1.5px solid #000000;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-emergency-btn:hover {
  background: #b91c1c;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: var(--red-primary);
}

/* Mobile Drawer */
.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #08080c;
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
  z-index: 45;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-menu.open {
  display: flex;
}

/* Page Section Wrappers */
.page-view {
  display: none;
  min-height: calc(100vh - 72px - 260px);
  padding-bottom: 60px;
}

.page-view.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 7, 0.25) 0%, rgba(5, 5, 7, 0.55) 75%, rgba(5, 5, 7, 0.85) 100%),
              linear-gradient(to bottom, rgba(5, 5, 7, 0.35) 0%, transparent 25%, transparent 75%, rgba(5, 5, 7, 0.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.hero-main-logo {
  width: clamp(180px, 24vw, 280px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(220, 38, 38, 0.45));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  user-select: none;
  pointer-events: auto;
}

.hero-main-logo:hover {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(220, 38, 38, 0.75));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--red-primary);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.35), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: clamp(1.4rem, 4.2vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  white-space: nowrap;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8);
}

@media (max-width: 540px) {
  .hero-title {
    font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    white-space: normal;
  }
}

.hero-tagline {
  font-family: var(--font-cinzel);
  font-size: clamp(0.95rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.75), 0 2px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .hero-tagline {
    font-size: clamp(0.85rem, 4vw, 1.15rem);
    letter-spacing: 0.1em;
    padding: 0 8px;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #f3f4f6;
  max-width: 700px;
  margin: 0 auto 32px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
  background: rgba(5, 5, 7, 0.4);
  backdrop-filter: blur(4px);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.btn-primary {
  background: var(--red-primary);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.7);
}

.btn-secondary {
  background: rgba(18, 20, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(30, 34, 48, 0.9);
  border-color: var(--red-primary);
  transform: translateY(-2px);
}

/* Telemetry Metrics Bar */
.telemetry-bar {
  background: #090a0f;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(15, 17, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.telemetry-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.telemetry-data h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.telemetry-data p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Section Common Styling */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 60px auto 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Cards & Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 28px;
}

/* Card Elements */
.dos-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.dos-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), var(--shadow-red-glow);
}

/* Team Card Specifics */
.team-portrait-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  overflow: hidden;
}

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

.dos-card:hover .team-portrait-img {
  transform: scale(1.05);
}

.team-role-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--red-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.team-expertise {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-primary);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Filter Controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  background: rgba(18, 20, 28, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(220, 38, 38, 0.15);
  border-color: var(--red-primary);
  color: #fff;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.open {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.status-badge.documented {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
}

.status-badge.debunked {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid #06b6d4;
}

.status-badge.resolved {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid #a855f7;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

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

/* Footer */
.site-footer {
  background: #020204;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #151821;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0a0b10;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), var(--shadow-red-glow);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #dc2626;
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  z-index: 99999;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.9), 0 4px 12px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.modal-close-btn:hover {
  background: #ef4444;
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(239, 68, 68, 1), 0 6px 16px rgba(0, 0, 0, 0.9);
}

.video-red-cross-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 99999 !important;
  background: #dc2626 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.95), 0 4px 12px rgba(0, 0, 0, 0.85) !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  pointer-events: auto !important;
}

.video-red-cross-btn:hover {
  background: #ef4444 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 28px rgba(239, 68, 68, 1), 0 6px 18px rgba(0, 0, 0, 0.9) !important;
}

/* ==========================================================================
   VIDEO & MEDIA COVERAGE STYLES
   ========================================================================== */
.media-card-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.media-card-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.media-card-thumbnail-wrap:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.media-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
}

.media-card-thumbnail-wrap:hover .media-play-btn {
  transform: scale(1.15);
  background: #ef4444;
}

.video-badge-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(220, 38, 38, 0.3);
  margin-bottom: 20px;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Upload Dropzone Styles */
.upload-dropzone {
  border: 2px dashed rgba(239, 68, 68, 0.35);
  background: rgba(15, 17, 23, 0.8);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.08);
}

.upload-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
  display: none;
}

.upload-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  transition: width 0.2s ease;
}

/* Responsive Media Queries */
@media (max-width: 1100px) and (min-width: 821px) {
  .nav-item-btn {
    padding: 5px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
  .nav-menu {
    gap: 2px;
  }
  .nav-emergency-btn {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
  .nav-audio-btn {
    padding: 5px 8px;
    font-size: 0.64rem;
  }
  .nav-brand-title {
    font-size: 0.54rem;
  }
  .nav-brand-title .nav-sub {
    font-size: 0.44rem;
  }
}

@media (max-width: 820px) {
  .nav-menu, .nav-emergency-btn {
    display: none;
  }
  .nav-actions-wrap {
    margin-left: auto !important;
    padding-left: 0 !important;
    border-left: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   CINEMATIC PRELOADER STYLES
   ========================================================================== */
#dos-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a0405 0%, #030305 60%, #000000 100%);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
}

#dos-preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  filter: blur(10px);
}

.preloader-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: preloaderPulseGlow 3s ease-in-out infinite alternate;
}

.preloader-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  text-align: center;
}

.preloader-logo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-emblem-img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.45)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
  animation: preloaderFloat 4s ease-in-out infinite alternate;
}

.preloader-fallback-vector {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #f1f5f9;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(229, 9, 20, 0.5);
  margin-bottom: 4px;
}

.preloader-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--red-primary);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.preloader-progress-track {
  width: 260px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #ef4444, #f87171, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
  border-radius: 99px;
  transition: width 0.15s ease-out;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 1.5px;
  min-height: 18px;
  text-transform: uppercase;
}

.preloader-skip-btn {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preloader-skip-btn:hover {
  color: #fff;
  border-color: var(--red-primary);
  background: rgba(229, 9, 20, 0.1);
}

@keyframes preloaderFloat {
  0% {
    transform: translateY(0px) scale(1);
  }
  100% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes preloaderPulseGlow {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ==========================================================================
   ADMIN PORTAL SIDEBAR & CMS LAYOUT
   ========================================================================== */
.admin-layout-container {
  display: flex;
  gap: 24px;
  min-height: 680px;
  margin-top: 16px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .admin-layout-container {
    flex-direction: column;
  }
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #08090e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

@media (max-width: 960px) {
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
  }
}

.admin-sidebar-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 8px 12px 4px;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .admin-sidebar-category {
    display: none;
  }
}

.admin-sidebar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.admin-sidebar-nav-btn .btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-nav-btn.active {
  color: #fff;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: inset 2px 0 0 var(--red-primary), 0 0 12px rgba(220, 38, 38, 0.15);
}

.admin-sidebar-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.admin-sidebar-nav-btn.active .admin-sidebar-badge {
  background: var(--red-primary);
  color: #fff;
}

.admin-content-pane {
  flex: 1;
  min-width: 0;
  background: #06070b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.admin-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.admin-tab-pane.active {
  display: block;
}

.admin-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-pane-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.admin-pane-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Research Page Specific Styles */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.research-card {
  background: #08090e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 38, 38, 0.1);
}

.research-card-header {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.research-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.research-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Entity Item Row in Admin */
.admin-item-row {
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.admin-item-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-item-thumb {
  width: 80px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0a0b10;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.admin-search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & DESKTOP RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Filter bar touch scrollability */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tablet / Medium Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }
  .research-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* Small Screens & Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Typography & Headers */
  .section-header {
    margin: 36px auto 24px;
    padding: 0 8px;
  }

  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    letter-spacing: 0.03em;
  }

  .section-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Hero Adjustments */
  .hero-section {
    padding: 40px 0 50px;
    min-height: auto;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-main-logo {
    width: clamp(140px, 45vw, 220px);
    max-height: 220px;
  }

  .hero-pill {
    padding: 5px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    padding: 10px 14px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Force 1-column layouts for cards on mobile */
  .grid-4,
  .grid-3,
  .grid-2,
  .research-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Telemetry Grid */
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .telemetry-item {
    padding: 12px 10px;
    gap: 10px;
  }

  .telemetry-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .telemetry-data h4 {
    font-size: 1.15rem;
  }

  .telemetry-data p {
    font-size: 0.62rem;
  }

  /* Buttons & Action Controls */
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  /* Form Controls */
  .form-control {
    font-size: 16px; /* Prevents auto-zoom on mobile Safari */
    padding: 11px 14px;
  }

  /* Modals */
  .modal-overlay {
    padding: 12px;
  }

  .modal-content {
    padding: 20px 16px;
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  /* Admin Items & CMS Rows */
  .admin-item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-item-thumb {
    width: 100%;
    height: 140px;
    aspect-ratio: auto;
  }

  .admin-content-pane {
    padding: 16px;
  }

  /* Table / List Adjustments */
  .dos-card {
    border-radius: var(--radius-md);
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .nav-brand-title {
    font-size: 0.72rem;
  }

  .nav-brand-title .nav-sub {
    font-size: 0.46rem;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-audio-btn {
    padding: 5px 8px;
    font-size: 0.62rem;
  }

  .mobile-menu-label {
    display: none;
  }
}

