/* ========== GLOBAL STYLES ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: white;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.4;
  animation: starTwinkle 20s linear infinite;
  z-index: -10;
  pointer-events: none;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  color: magenta;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px magenta;
}

.date-time, .location {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ccc;
}

/* ========== BUTTON ========== */
button {
  padding: 1rem 2rem;
  font-size: 1rem;
  background: magenta;
  color: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 0 15px magenta;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px magenta;
}

/* ========== RSVP SECTION ========== */
.rsvp {
  padding: 6rem 2rem;
  text-align: center;
  z-index: 2;
  position: relative;
}

.rsvp-content {
  max-width: 600px;
  margin: 0 auto;
}

input[type="text"],
input[type="email"] {
  padding: 0.75rem;
  margin: 0.5rem;
  width: 80%;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.rsvp p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #aaa;
}

.hidden {
  display: none;
}

@keyframes starTwinkle {
  0% { background-position: 0 0; }
  100% { background-position: 100% 100%; }
}

/* ========== MULTIPLE FLOATING PLANETS ========== */
.planet {
  position: absolute;
  border-radius: 50%;
  animation: floatPlanet 12s ease-in-out infinite alternate;
  z-index: 1;
  opacity: 0.9;
}

/* Example planet styles */

.planet.mercury {
  width: 30px;
  height: 30px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/64/Mercury_in_true_color.jpg');
  background-size: cover;
  top: 20%;
  left: 15%;
}

.planet.venus {
  width: 40px;
  height: 40px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e5/Venus-real_color.jpg');
  background-size: cover;
  top: 40%;
  right: 10%;
}

.planet.earth {
  width: 45px;
  height: 45px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg');
  background-size: cover;
  top: 60%;
  left: 30%;
  box-shadow: 0 0 10px #00aaff;
}

.planet.mars {
  width: 35px;
  height: 35px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/0/02/OSIRIS_Mars_true_color.jpg');
  background-size: cover;
  bottom: 20%;
  right: 20%;
}

.planet.jupiter {
  width: 70px;
  height: 70px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e2/Jupiter.jpg');
  background-size: cover;
  top: 8%;
  left: 60%;
}

.planet.saturn {
  width: 65px;
  height: 65px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c7/Saturn_during_Equinox.jpg');
  background-size: cover;
  bottom: 10%;
  left: 70%;
  box-shadow: 0 0 15px rgba(255, 204, 153, 0.5);
}

.planet.uranus {
  width: 50px;
  height: 50px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/3/3d/Uranus2.jpg');
  background-size: cover;
  top: 10%;
  right: 25%;
}

.planet.neptune {
  width: 50px;
  height: 50px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/56/Neptune_Full.jpg');
  background-size: cover;
  bottom: 15%;
  left: 10%;
}

.planet.moon {
  width: 60px;
  height: 60px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e1/FullMoon2010.jpg');
  background-size: cover;
  bottom: 30%;
  right: 5%;
  box-shadow: 0 0 10px #ccc, 0 0 30px #999;
}


@keyframes floatPlanet {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}
/* ========== STARFIELD BACKGROUND ========== */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-repeat: repeat;
  animation: starTwinkle 20s linear infinite;
  z-index: -10;
  pointer-events: none;
}

@keyframes pulseText {
  0% {
    text-shadow: 0 0 10px magenta;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 25px magenta;
    transform: scale(1.05);
  }
  100% {
    text-shadow: 0 0 10px magenta;
    transform: scale(1);
  }
}

.pulsating-text {
  animation: pulseText 2s ease-in-out infinite;
}

.intro-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #eee;
  text-shadow: 0 0 10px #ca27ff;
}
.hidden-photo {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.hidden-photo img {
  display: block;
  max-width: 220px;
  border-radius: 10px;
  filter: brightness(0.3) contrast(1.2) grayscale(0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.hidden-photo img:hover,
.hidden-photo img.revealed {
  filter: brightness(1) contrast(1) grayscale(0);
  box-shadow: 0 0 30px magenta;
}
.floating-ty {
  max-width: 180px;
  border-radius: 50%;
  box-shadow: 0 0 25px magenta;
  animation: floatTy 10s ease-in-out infinite;
  z-index: 3;
  position: relative;
}

/* Floating animation for Ty */
@keyframes floatTy {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* ========== FLOATING ASTRONAUT ========== */
.floating-astronaut {
  width: 60px;
  height: 60px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/4/4a/Astronaut-EVA.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 35%;
  left: 40%;
  animation: floatPlanet 12s ease-in-out infinite alternate;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  filter: brightness(1.15) contrast(1.1) saturate(1.2);
}

/* ========== ENHANCED PLANETS ========== */
.planet.enhanced {
  background-size: cover;
  filter: contrast(1.1) saturate(1.2) brightness(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .date-time,
  .location {
    font-size: 1rem;
  }

  button {
    width: 100%;
    font-size: 1rem;
  }

  .rsvp-content input[type="text"],
  .rsvp-content input[type="email"] {
    width: 90%;
    font-size: 1rem;
  }

  .planet {
    width: 30px !important;
    height: 30px !important;
  }

  .planet.jupiter,
  .planet.saturn,
  .planet.uranus,
  .planet.neptune,
  .planet.moon,
  .planet.astronaut {
    width: 40px !important;
    height: 40px !important;
  }

  .hidden-photo img,
  .floating-ty {
    max-width: 140px;
  }

  .intro-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
/* ========== PARALLAX GALAXY BACKGROUND ========== */
.parallax-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 200vh;
  background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/28/ESO_-_Milky_Way.jpg/1920px-ESO_-_Milky_Way.jpg') no-repeat center center;
  background-size: cover;
  animation: moveGalaxy 120s linear infinite;
  opacity: 0.35;
  z-index: -15;
  pointer-events: none;
}

@keyframes moveGalaxy {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100px, -100px);
  }
}