/* Font & Base */
body {
  margin: 0;
  font-family: 'Space Mono', monospace;
  background-color: #000;
  color: #ffde99;
  overflow-x: hidden;
  text-align: center;
}

/* Background Layers */
body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0;
  height: 100vh; 
  width: 100vw;
  background: radial-gradient( rgba(14,14,44,0.8) 0%, rgba(0,0,0,0.95) 100%);
  z-index: -3;
}

.stars, .moon, .rocket {
  position: fixed;
  z-index: -2;
}

.stars {
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
}

.star {
  position: absolute;
  background: white;
  width: 2px; 
  height: 2px;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { 
    opacity: 0.3; 
}
  50% { 
    opacity: 1; 
}
}

.navbar {
  width: 100vw;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container1 {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1.2rem;
}

.brand {
  text-shadow: 0px 0px 3px white ;
  font-size: 2.2rem;
  text-align: left;
  font-weight: bold;
  letter-spacing: 2px;
  font-family:Georgia, 'Times New Roman', Times, serif;
  color: #ffde99;
}

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

.nav-links li a {
  text-decoration: none;
  color: #ddd;
  padding: 0.4rem 0.7rem;
  transition: 0.3s;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #fff;
  border-bottom: 2px solid #f9c74f;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.menubar {
  font-size: 2rem;
  color: #fff;
  display: none;
  cursor: pointer;
}
/* Dropdown shared */
    .dropdown-menu {
      position: absolute;
      top: 120%;
      right: 0;
      background-color: #222;
      border: 1px solid #444;
      border-radius: 8px;
      display: none;
      flex-direction: column;
      min-width: 180px;
      z-index: 1002;
      cursor: pointer;
    }

    .dropdown-menu.show {
      display: flex;
    }

    .dropdown-menu li {
      padding: 10px 15px;
    }

    .dropdown-menu li a {
      color: white;
      text-decoration: none;
      transition: 0.2s;
    }
    dropdown-menu li a:hover {
      color: white;
    }

    .user-icon {
      font-size: 1.8rem;
      color: #ffde99;
      padding: 5px;
    }


.dark-btn {
  padding: 8px 15px;
  border: 2px solid #ffde99;
  background: transparent;
  border-radius: 5px;
  color: #ffde99;
  cursor: pointer;
  margin-left: 20px;
  transition: 0.3s ease;
}

.dark-btn:hover {
  background: #ffde99;
  color: #000;
}

@media (max-width: 900px) {
  .container1 {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
}

@media (max-width: 768px) {
  .menubar {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 180px;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }
}
/* .dark-btn {
      padding: 8px 15px;
      border: 2px solid #ffde99;
      background: transparent;
      border-radius: 5px;
      color: #ffde99;
      cursor: pointer;
      margin-left: 20px;
      transition: 0.3s ease;
    }

    .dark-btn:hover {
      background: #ffde99;
      color: #000;
    } */

.mode-toggle {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.2rem;
  margin: 1.5rem auto 0 auto;
  max-width: 95vw;
  width: 370px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}


    .dark-btn {
      padding: 8px 15px;
      border: 2px solid #ffde99;
      background: transparent;
      border-radius: 5px;
      color: #ffde99;
      cursor: pointer;
      margin-left: 20px;
      transition: 0.3s ease;
    }

    .dark-btn:hover {
      background: #ffde99;
      color: #000;
    }

    .hero {
      text-align: center;
      padding: 100px 30px 50px;
      animation: fadeIn 2s ease-out;
    }

    .hero h1 {
      font-size: 3.5rem;
      color: #ffde99;
      text-shadow: 2px 2px #222;
    }
    /* .subtitle{
        height: 80px;
        width: 100%;
    } */
    /* .hero .subtitle {
      font-size: 1.3rem;
      color: #ccc;
      margin: 20px auto 40px;
      max-width: 600px;
      animation: typing 5s steps(95, end) 1 forwards;
      white-space: nowrap;
      overflow: hidden;
      border-right: 3px solid #ffde99;
    } */
    .hero {
      text-align: center;
      /* margin-top: 100px; */
    }

    .subtitle {
      font-size: 1.3rem;
      color: #ccc;
      margin: 20px auto 40px;
      white-space: nowrap;
      overflow: hidden;
      border-right: 3px solid #ffde99;
      display: inline-block;
      animation: typing 4s steps(94, end) 1 forwards;
      width: 0;
    }

    @keyframes typing {
      from { width: 0; }
      to { width: 94ch; }
    }

header h1{
  margin-top: 0px;
  padding: 2.5rem 1rem 1rem;
  color: #b8e3ff; 
  text-shadow: 0 0 10px rgba(184, 227, 255, 0.6);
  
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

header p {
  font-size: 1.2rem;
  color: #eaffff;
}

/* Module Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 3rem 6vw;
  max-width: 1400px;
  margin: auto;
}

/* Big, Cinematic Module Cards */
.module {
  background: rgba(0, 0, 0, 0.4);
  /* border: 3px solid #f5c1f5; */
  border: 3px solid #b8e3ff;;
  /* border: 3px solid #ffde99; */
  border-radius: 20px;
  padding: 2.5rem 2rem;
  font-size: 1.4rem;
  color: #eaffff;
  box-shadow: 0 0 10px #ffde99;
  transition: all 0.35s ease;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  overflow: hidden;
   display: block;
  text-decoration: none;
  z-index: 1;
  
 
}

.module:hover {
  transform: scale(1.07) rotateZ(0.5deg);
  box-shadow: 0 0 20px white;
  border-color: #ffffff;
  
}

/* Glowing Pulse */
.module::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(0,255,255,0.04), transparent 70%);
  animation: orbitPulse 12s infinite linear;
  z-index: 0;
}
.image{
  z-index: 0;
  /* display: none; */
  width: 120px;
  height: 80px;
}
@keyframes orbitPulse {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Custom Mission Card */
.custom {
  background: rgba(255,255,255,0.03);
  color: white;
  border-color: #ffde99;
  /* border-color: #ff88ff; */
  /* box-shadow: 0 0 40px #ffb4ff, 0 0 90px rgba(255,120,255,0.2); */
  box-shadow: 0 0 10px #ffde99;
}

.custom:hover {
  box-shadow: 0 0 50px #ffde99;
  /* box-shadow: 0 0 20px #ffaaff, 0 0 120px rgba(255,90,255,0.4); */
}