/* ---------- NAVBAR ---------- */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

.logo {
  font-size: 1.8rem;       
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo span:first-child {
  font-size: 1.2rem;       
  color: red;
  text-shadow: 0 2px 5px red, 0 3px 8px rgba(255,0,0,0.3); /* softer glow */
  transition: all 0.3s ease;
}

.logo span:last-child {
  font-size: 1.8rem;       
  color: #3399ff;
  text-shadow: 0 2px 5px #3399ff, 0 3px 8px rgba(51,153,255,0.3); /* softer glow */
  transition: all 0.3s ease;
}

/* Optional subtle hover effect */
.logo:hover span:first-child {
  text-shadow: 0 4px 8px red, 0 4px 12px rgba(255,0,0,0.4);
  transform: translateY(-1px);
}

.logo:hover span:last-child {
  text-shadow: 0 4px 8px #3399ff, 0 4px 12px rgba(51,153,255,0.4);
  transform: translateY(-0.5px);
}


nav ul { list-style: none; display: flex; gap: 40px; }
nav a {
  text-decoration: none; color: white;
  font-size: 1.05rem; font-weight: 600;
  position: relative; padding: 6px 0;
  transition: color 0.3s ease;
}
nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0%; height: 2px; background: #66fcf1;
  transition: width 0.3s ease;
}
nav a:hover { color: #66fcf1; }
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span {
  height: 3px; width: 25px; background: white;
  margin: 4px 0; border-radius: 2px;
}
nav ul.mobile {
  display: none; flex-direction: column; gap: 20px;
  position: absolute; top: 70px; right: 20px;
  background: rgba(0,0,0,0.8); padding: 20px;
  border-radius: 10px;
}
nav ul.mobile.show { display: flex; }
@media (max-width: 900px) {
  nav ul.desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 7% 60px;
  gap: 35px;
}
.hero-content {
  flex: 0.8;
  max-width: 45%;
  padding: 20px;
  margin-left: 7px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.hero-content h1 { font-size: 2.4rem; margin-bottom: 16px; text-transform: uppercase; }
.hero-content p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 22px; color: #eee; }

/* ---------- BUTTON (Professional Gradient) ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(90deg, #a832e6 0%, #5b4bff 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* subtle depth */
}

.btn:hover {
  transform: scale(1.05) translateY(-2px);
  background: linear-gradient(90deg, #b94cf0 0%, #6b5cff 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}


/* ---------- MEMORIES BOX ---------- */
.memories-box {
  position: relative;   /* needed for absolute children */
  width: 550px;
  height: 400px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(220%);
  -webkit-backdrop-filter: blur(18px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  margin: 60px 0 0 60px;
  transition: transform 0.5s ease;
}



.memories-box h2 {
  position: absolute;   /* overlay */
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 10px;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(to right, #0681fb, #37005f);
  text-align: center;
  z-index: 2;
}

.memories-box img {
  width: 100%;
  height: 100%;        /* fills the entire box */
  object-fit: cover;   /* crop instead of stretch */
  transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(1.11);
  opacity: 0.95;
}

.memories-box img:hover {
  transform: scale(1.19);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .memories-box { 
    width: 95%; 
    height: 280px; 
    margin: 40px auto 0 auto; 
  }
  .memories-box h2 { 
    font-size: 1.1rem; 
  }
}

@media (max-width: 500px) {
  .memories-box { 
    height: 220px; 
  }
}


/* ---------- SECTIONS ---------- */
hr { width: 80%; margin: 40px auto; border: none; border-top: 2px solid rgba(255, 255, 255, 0.2); }
section.extra {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 10%; text-align: center;
}
/* ---------- GLASS BOX (Frozen Style) ---------- */
.glass-box {
  position: relative;
  background: rgba(0, 0, 0, 0.55); /* dark translucent glass */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 35px 25px;
  max-width: 700px;
  width: 100%;
  margin: 20px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  /* Frost blur */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  /* Soft shadow */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.glass-box h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.glass-box p {
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.5;
}

.glass-box img.illustration {
  width: 80%;
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* Example button styling (like screenshot) */
.glass-box .btn {
  background: linear-gradient(135deg, #8a2be2, #5f17d3);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(138,43,226,0.4);
}
.glass-box .btn:hover {
  background: linear-gradient(135deg, #9b30ff, #6a0dad);
  transform: translateY(-2px);
}


/* Glass Panel - slightly bigger */
.nav-glass-panel {
  background: rgba(255, 255, 255, 0.02); /* very subtle transparency */
  backdrop-filter: blur(10px);
  border-radius: 18px;  /* slightly bigger curve */
  padding: 12px 30px;   /* bigger padding for size */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

/* Hover effect - subtle space glow */
.nav-glass-panel:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 255, 0.3), 0 0 8px rgba(0, 255, 255, 0.3);
  filter: brightness(1.05);
  transform: translateY(-2px); /* slight lift on hover */
}

/* Menu items */
ul.desktop {
  display: flex;
  gap: 2rem; /* increased from 1.2rem to 2rem for more distance */
  list-style: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

ul.desktop li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.25s ease;
}

/* Glow underline effect on hover */
ul.desktop li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00f2ff, #2301ff);
  transition: width 0.3s ease;
  border-radius: 1px;
}

ul.desktop li a:hover {
  color: #00f2ff;
  text-shadow: 0 0 3px #00f2ff, 0 0 6px #2301ff;
}

ul.desktop li a:hover::after {
  width: 100%;
}

/* ---------- MEMORIES IMAGE ---------- */
.memories-box img {
  width: 100%;
  height: auto;
  border-radius: 1px;
  display: block;
  margin: 0 auto;
}

/* ---------- NASA LIVE NEWS ---------- */
.nasa-live-news {
  max-width: 900px;         
  margin: 0 auto;
  padding: 20px 30px;      
  background: rgba(255, 255, 255, 0.07); 
  backdrop-filter: blur(15px);      
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5); 
  border-left: 6px solid #1ec9ff;  
  color: #ffffff;
  font-weight: 600;                 
  font-size: 1.4rem;                
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: 0.3px;
  position: absolute;
  top: 230px;
  left: 26%;
  transform: translateX(-50%);
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift effect */
.nasa-live-news:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* NASA logo styling */
.nasa-live-news .nasa-logo img {
  width: 3em;                     
  height: 0.4em;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Text styling */
.nasa-live-news .nasa-text {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* ---------- HERO CONTENT ---------- */
.hero-content {
  text-align: center;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 10px 0 20px 0;
}

.hero-content .btn {
  padding: 10px 25px;
  font-size: 1rem;
  background-color: #04f2d6;
  color: rgb(248, 246, 246);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background-color: #00c2a6;
  transform: translateY(-2px);
}

.hero {
  position: relative;
}

.hero-content {
  text-align: center;
  margin-top: 200px;
  margin-bottom: 20px;
}

.memories-box {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  left: 90px;
  margin-top: 100px;
}

.memories-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 20px;  /* 👈 shifts image slightly down */
}
#memory-title {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #00f2ff7a, #2301ff6c);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#memory-title:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* ---------- Dog Bot Assistant (Glass Bulb Style) ---------- */
.dog-bot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  border-radius: 50%; /* pure bulb shape */
  background: rgba(255, 255, 255, 0.08); /* transparent glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); /* soft neutral shadow */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dog-bot:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); /* subtle lift */
}

.dog-bot img {
  width: 65%;
  height: auto;
  object-fit: contain;
  animation: floaty 3s ease-in-out infinite;
}

/* ---------- Glassy Note Bubble ---------- */
.dog-note {
  position: absolute;
  bottom: 115%;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f9f9f9;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 14px;
  min-width: 190px;
  text-align: center;
  line-height: 1.4;
  font-family: 'Quicksand', 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); /* subtle soft glass shadow */
}

/* Accent in Text */
.dog-note strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Arrow under note */
.dog-note::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent;
}

/* Show note on hover */
.dog-bot:hover .dog-note {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ---------- Loader Overlay ---------- */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Dots */
.loader-dots {
  display: flex;
  gap: 12px;
}

.loader-dots div {
  width: 14px;
  height: 14px;
  background: #00d4ff;
  border-radius: 50%;
  animation: bounce 1s infinite;
}

.loader-dots div:nth-child(2) { animation-delay: 0.2s; }
.loader-dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1.3); opacity: 1; }
}
