:root {
  --neon-cyan: #00f3ff;
  --neon-pink: #ff00ff;
  --bg-dark: #050505;
  --glass: rgba(255, 255, 255, 0.1);
}

body, html {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  color: white;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

#fx-layer, #player-layer, #ui-layer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Background Layer */
#fx-layer { z-index: 1; background: radial-gradient(circle, #1a1a1a 0%, #000 100%); }

/* Logo Layer */
#player-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.logo-main {
  width: 200px;
  position: absolute; /* Keep this */
  /* Remove top: 0 and left: 0 if they are here */
  cursor: default;
  pointer-events: none; 
  will-change: transform;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
  z-index: 2;
}

/* UI Layer */
#ui-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* This allows clicks to pass through to the logo... */
}

.top-nav {
  display: flex; justify-content: flex-end; padding: 20px;
  pointer-events: auto;
}
.social-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-bottom: 50px;
  pointer-events: auto;
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 25px; /* Space between Socials and About button */
}

.social-cluster {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between individual icons */
}

.social-link {
  color: var(--neon-cyan);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: var(--neon-pink);
  filter: drop-shadow(0 0 8px var(--neon-pink));
  transform: translateY(-3px);
}

.station-name {
  font-family: 'Rajdhani', sans-serif;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
}

/* The Bottom Control Bar */
.control-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: auto; /* ...BUT this re-enables clicks for the bar! */
  border-top: 1px solid var(--neon-cyan);
  box-sizing: border-box;
  transition: border-color 0.3s ease; /* Fallback for non-GSAP changes */
}

/* Play/Pause Button */
.play-btn {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px; /* Prevents bar jumping when icon changes */
  cursor: pointer; /* This gives you the hand icon */
  transition: all 0.3s ease;
  padding: 10px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none !important; /* Forces the box shadow off the button */
  display: inline-block;
  line-height: 1;
}

.play-btn:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 15px var(--neon-pink);
  transform: scale(1.1);
}

.social-link {
  cursor: pointer;
  pointer-events: auto;
}

/* Modal Styles */
/* Info Icon in the bar */
.info-btn {
  color: var(--neon-cyan);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.info-btn:hover {
  color: var(--neon-pink);
  filter: drop-shadow(0 0 10px var(--neon-pink));
}

/* Modal Overlay - Your original setup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9); /* Slightly darker for better contrast */
  backdrop-filter: blur(10px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  
}

/* Modal Box - Your original with layout improvements */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 420px;
  padding: 45px 30px 30px 30px; /* Adjusted padding for better spacing */
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  text-align: center;
  overflow: hidden;
}

/* NEW: Top Location Text */
.location-text {
  font-family: 'Rajdhani', sans-serif;
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

/* Your original title - reduced margin-bottom to fit slogan */
.cyber-title {
  color: #fff; /* White title looks sharper with pink slogan */
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 3px;
  margin-bottom: 5px; 
}

/* NEW: Slogan Styling */
.slogan-text {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-pink);
  font-size: 0.9rem;
  letter-spacing: 5px;
  margin-bottom: 25px;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--neon-pink);
}

/* NEW: Tactical Map Styling */
.map-container {
  width: 100%;
  height: 160px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  margin-bottom: 20px;
  background: #000;
  /* This filter turns a standard map into a Cyberpunk Tactical map */
  filter: grayscale(1) invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}

/* NEW: Developed By Footer */
.modal-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: #666;
}

.dev-link {
  color: var(--neon-cyan);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.dev-link:hover {
  color: var(--neon-pink);
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px var(--neon-pink));
}

/* Your original Close Button - with z-index safety */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 110; 
  padding: 10px;
  transition: color 0.3s ease;
}

.close-btn:hover { 
  color: var(--neon-pink); 
}

/* Video Background - Your original with a slight brightness boost */
/* --- Clean Background Layer --- */
#fx-layer, #player-layer, #ui-layer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: transparent !important; /* Ensure no layer blocks the one below */
}

#fx-layer { 
  z-index: 1; 
}

#player-layer { 
  z-index: 5; 
  pointer-events: none; 
}

#ui-layer { 
  z-index: 10; 
  pointer-events: none; 
}

/* Re-enable pointer events for specific UI items */
.control-bar, .modal-overlay, .social-link, .info-btn, .play-btn {
  pointer-events: auto !important;
}

.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#bgVideo {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  /* Darker on the edges to help the UI, clearer in the middle for the church */
  background: radial-gradient(
    circle, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 600px) {
  /* 1. Force the bar to stack everything vertically and center it */
  .control-bar {
    display: flex !important;
    flex-direction: column !important; 
    height: auto !important; /* Let it grow vertically */
    padding: 40px 20px !important;
    gap: 25px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 2. Ensure each section takes full width and centers its content */
  .bar-left, .bar-center, .bar-right {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: none !important; /* Disable the desktop flex-grow */
    margin: 0 !important;
  }

  /* 3. Re-order: Logo on top, Play in middle, Socials at bottom */
  .bar-center { order: 1; }
  .bar-left { order: 2; }
  .bar-right { order: 3; }

  /* 4. Increase logo size for mobile visibility */
  .nav-logo {
    height: 75px !important; /* Bigger as requested */
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    margin-bottom: 10px;
  }

  #navLogo {
    /* This overrides the 45px in your UI.js style attribute */
    height: 85px !important; 
    filter: drop-shadow(0 0 15px var(--neon-cyan)) !important;
    margin-bottom: 10px;
  }

  /* 5. Bigger Play button for thumb-tapping */
  .play-btn {
    font-size: 4.5rem !important;
    margin: 10px 0;
  }

  /* 6. Social icons spacing */
  .social-cluster {
    gap: 30px !important;
  }

  .social-link i {
    font-size: 2rem !important;
  }

  .info-btn {
    font-size: 2.5rem !important;
  }
}