/* ===== SPACERIDE 2026 - COMPILED CSS ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050b1a;
  font-family: 'Exo 2', sans-serif;
  color: white;
  overflow-x: hidden;
}

#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-wrapper {
  position: relative;
  z-index: 2;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(5, 11, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #00aaff;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand i {
  color: #ff00ff;
}

.nav-brand span {
  color: #00aaff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ffff;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #00ffff;
  transition: all 0.3s ease;
}

.nav-controls {
  display: flex;
  gap: 1rem;
}

.nav-controls button {
  background: transparent;
  border: 1px solid #00aaff;
  color: #00aaff;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-controls button:hover {
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

@media (max-width: 850px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #00aaff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    flex-wrap: nowrap;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  margin-bottom: 1rem;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-content h1 .year {
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #00ffff;
  animation: fadeInUp 1s ease-in;
}

.cta-btn {
  background: linear-gradient(45deg, #00aaff, #cc00ff);
  padding: 1rem 2.5rem;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 60px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  background: linear-gradient(45deg, #cc00ff, #00aaff);
}

.floating-planets {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  animation: float 6s ease-in-out infinite;
}

.planet {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  filter: blur(1px);
}

.planet.earth {
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
  top: 0;
  left: 0;
}

.planet.mars {
  background: linear-gradient(135deg, #Ff6B00, #FF1744);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
  top: 50px;
  right: 50px;
  width: 80px;
  height: 80px;
}

.planet.moon {
  background: linear-gradient(135deg, #BDBDBD, #757575);
  box-shadow: 0 0 20px rgba(189, 189, 189, 0.3);
  top: 120px;
  left: 40px;
  width: 60px;
  height: 60px;
}

.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  top: 20%;
  left: 10%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: shoot 3s linear infinite;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px #ff00ff, 0 0 20px #00aaff; }
  50% { text-shadow: 0 0 20px #ff00ff, 0 0 30px #00aaff, 0 0 40px #00ffff; }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-70%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shoot {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(300px, 300px); opacity: 0; }
}

/* ===== SOLAR SYSTEM SECTION ===== */
.solar-interactive {
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
}

.solar-interactive h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

.solar-interactive .sub {
  font-size: 1.1rem;
  color: #00aaff;
  margin-bottom: 2rem;
}

#solarCanvas {
  margin: 2rem auto;
  display: block;
  max-width: 95%;
  background: radial-gradient(ellipse at center, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
  border-radius: 10px;
}

/* ===== FACT POPUP ===== */
.fact-popup {
  position: absolute;
  background: rgba(5, 20, 40, 0.95);
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 300px;
  z-index: 500;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  animation: popupFadeIn 0.3s ease;
}

.fact-popup.hidden {
  display: none;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== COUNTDOWN AND NEWS SECTION ===== */
.countdown-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.countdown-card,
.news-ticker {
  background: rgba(0, 170, 255, 0.05);
  border: 2px solid #00aaff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
}

.countdown-card h3,
.news-ticker h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #00ffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer {
  font-size: 2.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  letter-spacing: 0.5rem;
}

.ticker-wrap {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 0.5rem;
}

.ticker {
  animation: ticker 20s linear infinite;
  white-space: nowrap;
  font-size: 1rem;
  color: #00aaff;
  padding: 0.5rem;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .countdown-news {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 2.5rem;
  font-family: 'Orbitron', monospace;
  text-align: center;
  margin: 3rem 0 2rem 0;
  padding: 1rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.card {
  background: rgba(0, 170, 255, 0.08);
  border: 2px solid #00aaff;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}

.card:hover {
  transform: translateY(-10px);
  border-color: #00ffff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.5rem;
  padding: 1rem;
  color: #00ffff;
  margin: 0;
}

.card p {
  padding: 0 1rem 1rem 1rem;
  color: #ddd;
  line-height: 1.5;
}

.explore360,
.card button {
  background: linear-gradient(45deg, #00aaff, #cc00ff);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  margin: 0 1rem 1rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.explore360:hover,
.card button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(5, 11, 26, 0.95);
  border-top: 1px solid #00aaff;
  padding: 2rem;
  text-align: center;
  position: relative;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.footer-social a {
  color: #00aaff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #00ffff;
  transform: scale(1.2);
  text-shadow: 0 0 10px #00ffff;
}

footer p {
  color: #ddd;
  margin: 0.5rem 0;
}

.rocket-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #00aaff, #cc00ff);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
  transition: all 0.3s ease;
  animation: float-btn 2s ease-in-out infinite;
}

.rocket-top.show {
  display: flex;
}

.rocket-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

@keyframes float-btn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050b1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00aaff, #cc00ff);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #00ffff, #ff00ff);
}

/* ===== FORM STYLES ===== */
form {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(0, 170, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid #00aaff;
}

label {
  display: block;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
  color: #00ffff;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00aaff;
  border-radius: 8px;
  color: white;
  font-family: 'Exo 2', sans-serif;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background: linear-gradient(45deg, #00aaff, #cc00ff);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* ===== SECTION SPACING ===== */
main {
  min-height: 100vh;
}

section {
  padding: 2rem;
}

/* ===== ANIMATIONS ===== */
.glow-text {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00aaff;
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ===== PARALLAX ===== */
.parallax-card {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 11, 26, 0.7);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(5, 11, 26, 0.95);
  padding: 2rem;
  border: 2px solid #00ffff;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.close-btn {
  color: #00ffff;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #ff00ff;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== LOADING SPINNER ===== */
.loader {
  border: 4px solid rgba(0, 170, 255, 0.3);
  border-top: 4px solid #00ffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== LIGHTBOX ===== */
.lightbox-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.lightbox-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.lightbox-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lightbox-item:hover img {
  transform: scale(1.1);
}

.lightbox-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-item:hover .lightbox-item-overlay {
  opacity: 1;
}

.lightbox-item-overlay i {
  font-size: 2rem;
  color: #00ffff;
}

/* ===== CONFETTI ANIMATION ===== */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #00ffff;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .countdown-news {
    grid-template-columns: 1fr;
  }

  .floating-planets {
    display: none;
  }

  .nav-controls {
    gap: 0.5rem;
  }

  .nav-controls button {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .cta-btn {
    padding: 0.8rem 1.5rem;
  }

  .timer {
    font-size: 1.8rem;
  }

  .footer-social {
    gap: 1rem;
    font-size: 1.4rem;
  }

  .rocket-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}
