@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Poppins:wght@400;500&display=swap');

html,body{
    min-height:100%;
    margin:0;
    background: #02020a; 
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:#fff;
}

.galaxy {
    position:fixed;
    inset:0;
    overflow:hidden;
    background:
    radial-gradient(1200px 600px at 10% 20%, rgba(90,30,130,0.30), transparent 10%),
    radial-gradient(900px 450px at 80% 70%, rgba(30,80,150,0.26), transparent 12%),
    linear-gradient(180deg, #03021a 0%, #06041a 40%, #020115 100%);
    background-blend-mode:screen,screen,normal;
    display:block;
    z-index:0;
}

.galaxy::before,
.galaxy::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    mix-blend-mode: screen;
    filter: blur(80px) saturate(140%);
    opacity:0.9;
}

    
.galaxy::before{
    background:      
    radial-gradient(500px 280px at 25% 30%, rgba(255,100,200,0.12), transparent 20%),    
    radial-gradient(420px 220px at 40% 50%, rgba(120,80,255,0.09), transparent 18%);
}

.galaxy::after{
    background:
    radial-gradient(700px 380px at 85% 70%, rgba(0,220,255,0.12), transparent 12%),
    radial-gradient(300px 180px at 70% 30%, rgba(255,200,90,0.06), transparent 18%);
    transform: translateZ(0); 
}

#stars {
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
}

.star {
    position:absolute;
    border-radius:50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
    transform: translate3d(0,0,0);
    will-change: opacity, transform;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    mix-blend-mode: screen;
}

@keyframes twinkle {
    0%   { opacity: 0.15; transform: scale(0.9); }
    40%  { opacity: 1;     transform: scale(1.18); }
    100% { opacity: 0.15;  transform: scale(0.9); }
}

.starfield-far {
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity:0.7;
    mix-blend-mode: screen;
    z-index:1;
    pointer-events:none;
    transform: translateZ(0);
    filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
    .star { animation: none !important; opacity:0.85 !important; }
}

@media (max-width:640px){
    :root { --star-count: 90; }
}

.home-main{
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.navbar {
  width: 100%;
  background: rgba(15, 15, 40, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
}

.logo a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  background: linear-gradient(90deg, #fff, #88c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo a:hover {
  color: #9fd3ff;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.25s ease;
  letter-spacing: 0.5px;
}

.nav-item:hover {
  color: #80c8ff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 40, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    padding: 12px 20px;
    width: 100%;
    text-align: left;
  }

  .nav-item:hover {
    background: rgba(255,255,255,0.05);
    transform: none;
  }
}

.footer-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
}

.footer {
  width: 100%;
  background: rgba(10, 10, 25, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 20px 0;
  color: #ccc;
  text-align: center;
  position: relative;
  bottom: 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #9fd3ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a i {
    font-size: 1.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover i {
    transform: translateY(-2px);
    color: #88c8ff;
}

@media (max-width: 768px) {
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}