/* --- Base Navbar Container --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  width: 92%;
  max-width: 1150px;
  margin: 20px auto;
  z-index: 1000;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo {
  width: 75px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* --- Desktop Links (Unchanged) --- */
.desktop-only {
  display: flex;
  gap: 8px;
}

.desktop-only a {
  color: #888 !important;
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
}

.desktop-only a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Mobile Trigger --- */
#menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100001;
  padding: 10px;
  display: none;
}

.hamburger-box {
  width: 24px;
  height: 14px;
  position: relative;
}

.line {
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.line.top {
  top: 0;
}
.line.bottom {
  bottom: 0;
}

#menu-toggle.is-active .line.top {
  transform: translateY(6px) rotate(45deg);
  background: #00ff77;
}
#menu-toggle.is-active .line.bottom {
  transform: translateY(-6px) rotate(-45deg);
  background: #00ff77;
}

/* --- Mobile Overlay (The Cinematic Glass Fix) --- */
.mobile-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100000;

  /* Use touch-action to prevent background movement without 'overflow:hidden' */
  touch-action: none;
  overscroll-behavior: contain;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at 90% 5%);
  transition:
    clip-path 0.6s ease-in-out,
    opacity 0.4s ease;
  pointer-events: none;
}

.mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  clip-path: circle(150% at 90% 5%);
  pointer-events: all;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff77, transparent);
  opacity: 0.1;
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

.overlay-content {
  width: 85%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.system-text {
  font-family: monospace;
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 5px;
  margin-bottom: 40px;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spacing between button modules */
  width: 100%;
}

/* --- MOBILE GLASS BUTTON LOOK --- */
.overlay-links a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 5px;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;

  /* Button Styling */
  padding: 18px 0;
  width: 100%;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Entrance Animation */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-visible .overlay-links a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.08s + 0.3s);
}

/* Tap/Hover State */
.overlay-links a:active,
.overlay-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 119, 0.3);
  color: #00ff77;
  box-shadow: 0 0 20px rgba(0, 255, 119, 0.1);
  transform: scale(1.02);
}

.menu-footer {
  margin-top: 50px;
}

@keyframes navPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
  .desktop-only {
    display: none;
  }
  #menu-toggle {
    display: block;
  }
  .navbar {
    width: 95%;
    border-radius: 50px;
    padding: 10px 20px;
    background: rgba(10, 10, 10, 0.6);
  }
}
/* --- Footer Container: Cinematic Wide --- */
.mission-footer {
  width: 95%;
  max-width: 1400px;
  margin: 100px auto 40px;
  padding: 60px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden; /* Prevents mobile horizontal scroll */
}

/* --- Layout Grid Refinement --- */
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand {
  flex: 0 0 300px;
}

.name-svg {
  height: 45px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.tagline {
  display: block;
  font-size: 0.6rem;
  color: #555;
  letter-spacing: 2.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
  max-width: 800px;
}

/* --- Navigation Groups --- */
.nav-group label {
  display: block;
  font-size: 0.65rem;
  color: #444;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: bold;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-list a {
  color: #888;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.link-list a:hover {
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Address & Coordinate Interactive Link --- */
.address-link {
  text-decoration: none;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.address-box {
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #888;
  transition: color 0.3s ease;
}

.geo-coords {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: #444;
  margin-top: 10px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.address-link:hover .address-box {
  color: #fff;
}

.address-link:hover .geo-coords {
  color: #00ff77;
  text-shadow: 0 0 8px rgba(0, 255, 119, 0.6);
}

.address-link:hover {
  transform: translateX(8px);
}

/* --- Social Icons --- */
.social-wrapper {
  display: flex;
  gap: 20px;
}

.social-icon {
  color: #555;
  width: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.15);
  filter: drop-shadow(0 0 10px #fff);
}

/* --- Status Indicator Glow --- */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pulse-container {
  position: relative;
  width: 10px;
  height: 10px;
}

.pulse-core {
  width: 100%;
  height: 100%;
  background: #00ff77;
  border-radius: 50%;
  box-shadow:
    0 0 10px #00ff77,
    0 0 20px rgba(0, 255, 119, 0.4);
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #00ff77;
  border-radius: 50%;
  animation: glow-spread 2s infinite ease-out;
}

@keyframes glow-spread {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: #00ff77;
  font-weight: bold;
}

/* --- Footer Bottom --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal {
  color: #333;
  font-size: 0.6rem;
  letter-spacing: 1px;
  font-family: monospace;
}

/* --- RESPONSIVE REDO (MOBILE FIX) --- */
@media (max-width: 900px) {
  .mission-footer {
    width: 92%;
    padding: 40px 25px;
    margin: 60px auto 20px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-brand {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .name-svg {
    height: 35px;
    margin: 0 auto 15px;
  }

  .tagline {
    font-size: 0.55rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-nav {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    max-width: 100%;
  }

  .nav-group label {
    margin-bottom: 15px;
    font-size: 0.6rem;
    color: #666; /* More subtle in mobile */
  }

  .social-wrapper {
    justify-content: center;
    gap: 30px; /* Bigger gaps for touch */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding-top: 30px;
  }

  .status-indicator {
    justify-content: center;
  }

  .address-link:hover {
    transform: none; /* Disable horizontal shift on mobile */
  }

  .legal {
    line-height: 1.6;
    max-width: 250px;
  }
}
