:root {
  --bg-color: #050510;
  --bg-gradient: radial-gradient(circle at 50% 50%, #2a1a4e 0%, #050510 100%);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #00f0ff;
  /* Neon Cyan */
  --accent-secondary: #7000ff;
  /* Neon Purple */
  --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
  --gradient-text: linear-gradient(90deg, #00f0ff, #ff00de);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  /* Sci-fi header font */
}

/* Utilities */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.glass-panel-glow {
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-color);
  background-image: radial-gradient(circle at 50% 50%, #3a2a5e 0%, #050510 100%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary);
}

/* Glassmorphism Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 240, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(10px);
  height: 80px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-primary);
}

.btn:hover::before {
  width: 100%;
}

.cta-btn {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #fff;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-secondary);
}

.cta-btn::before {
  background: linear-gradient(135deg, #7000ff 0%, #ff00de 100%);
}

/* Sections */
section {
  padding: 80px 0;
}

footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Live Badge Button */
.live-badge-btn {
  position: absolute;
  bottom: 50px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.live-badge-btn:hover {
  background: var(--accent-primary);
  color: black;
}

.live-badge-btn .indicator {
  width: 8px;
  height: 8px;
  background-color: #666;
  border-radius: 50%;
}

.live-badge-btn.is-live .indicator {
  background-color: #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

/* --- Team Extensions --- */

/* Social Icons in Card */
.team-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 5px var(--accent-primary));
  transform: translateY(-2px);
}

/* Team Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.team-modal-content {
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.team-modal-close:hover {
  color: var(--accent-primary);
}

.team-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

.team-modal-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-secondary);
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.team-modal-bio {
  line-height: 1.8;
  color: #ddd;
  font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE STYLES - MOBILE FIRST
   ======================================== */

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--accent-primary);
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  /* Solid black for max contrast */
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 30px;
  padding: 80px 20px 20px 20px;
}

.mobile-menu a {
  font-size: 1.8rem;
  /* Larger font */
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 15px 30px;
  border-radius: 4px;
  border: 1px solid transparent;
  width: 80%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  /* Subtle background */
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Logo Responsive Sizing */
.logo {
  display: flex;
  align-items: center;
}

.logo img,
.logo picture img {
  height: auto;
  width: 250px;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Mobile Styles (< 768px) */
@media (max-width: 767px) {

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  nav .cta-btn {
    display: none;
  }

  /* Adjust container padding */
  .container {
    padding: 0 10px;
  }

  /* Logo sizing for mobile */
  .logo img,
  .logo picture img {
    height: 35px;
    width: auto;
  }

  /* Hero section adjustments */
  .hero h1 {
    font-size: 2rem !important;
  }

  section {
    padding: 40px 0;
  }

  /* Video player */
  .glass-panel video {
    min-height: 250px !important;
  }

  /* Button sizing */
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Team grid */
  #team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Archive grid */
  #archive-grid {
    grid-template-columns: 1fr !important;
  }

  /* Glass panels */
  .glass-panel {
    padding: 15px !important;
  }

  /* Modal adjustments */
  .team-modal-content {
    padding: 20px !important;
    width: 95% !important;
  }

  .modal .glass-panel {
    padding: 20px !important;
    width: 95% !important;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Live badge positioning */
  .live-badge-btn {
    bottom: 20px;
    left: 10px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* Adjust flex layouts for mobile */
  .hero>div[style*="display: flex"] {
    flex-direction: column !important;
  }

  /* Contact form */
  #contact {
    padding: 40px 0 !important;
  }

  /* Footer */
  footer {
    padding: 20px;
  }
}

/* Tablet Styles (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {

  .logo img,
  .logo picture img {
    height: 40px;
    width: auto;
  }

  .hero h1 {
    font-size: 2.5rem !important;
  }

  #team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #archive-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {

  .logo img,
  .logo picture img {
    height: 30px;
    width: auto;
  }

  .hero h1 {
    font-size: 1.75rem !important;
  }

  header {
    padding: 15px 0;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .mobile-menu a {
    font-size: 1.2rem;
  }
}

/* Desktop Styles (768px+) */
@media (min-width: 768px) {
  .team-modal-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 30px;
  }

  .team-modal-img {
    width: 150px;
    height: 150px;
    margin-bottom: 0;
  }

  /* Ensure mobile menu is hidden on desktop */
  .mobile-menu-overlay {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .mobile-menu a {
    font-size: 1.2rem;
  }
}

/* Desktop Styles (>= 768px) - Hide mobile menu elements */
@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }

  .mobile-menu-overlay {
    display: none !important;
  }
}