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

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at center, #1a0028 0%, #090014 100%);
  background-image: url('space.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Space container */
.space-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Planet system */
.planet {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform 0.4s;
}

.planet img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 15px rgba(255, 200, 255, 0.6));
  animation: floaty 4s ease-in-out infinite;
  transition: transform 0.4s, filter 0.4s;
}

.planet-label {
  margin-top: 8px;
  text-align: center;
  color: white;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255, 200, 255, 0.8);
  pointer-events: none;
}

.planet:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 30px rgba(255, 150, 255, 1));
}

.planet:hover .planet-label {
  color: #ff9df9;
  font-weight: 600;
}

/* Profile Card */
.profile-container {
  position: absolute;
  align-items: center;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: transform 0.5s;
}

.profile-card {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 25px;
  width: 260px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255,100,255,0.3);
  backdrop-filter: blur(10px);
}

.profile-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid white;
  box-shadow: 0 0 10px #ff9df9;
}

.profile-card h1 {
  margin-bottom: 5px;
  font-size: 1.6em;
}

.profile-card p {
  font-size: 0.9em;
  color: #ddd;
}

/* Social cards */
.social-card {
  background: rgba(255,255,255,0.06);
  border-radius: 15px;
  padding: 10px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Hover lift */
.planet:hover ~ .profile-container,
.planet:focus ~ .profile-container {
  transform: translateX(-50%) translateY(-80px);
}

/* FLOAT ANIMATION */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------- */
/* ---------------------------------
   WIDE SCREENS (Prevent Overlap)
   Gradually reposition planets
---------------------------------- */

/* ============================
   RESPONSIVE PLANET POSITION FIX
   (1450px → 768px range)
============================ */



/* Moderate shrink + reposition for 1200px screens */
@media (max-width: 1200px) {
  .planet img {
    width: 100px;
    height: 100px;
  }

  .planet {
    transform: scale(0.8);
  }

  .space-container {
    transform: translateX(-3%);
  }
}

/* Fix Send Gimmicks planet overlap with profile card */
@media (max-width: 1450px) and (min-width: 1025px) {
  .planet.send {
    top: 45% !important;   /* move it upward */
    left: 20% !important;  /* shift it further left */
    transform: scale(0.9); /* slightly smaller to fit orbit */
    z-index: 2;
  }
}

/* Tablet range – a little more shift */
@media (max-width: 1024px) and (min-width: 769px) {
  .planet.send {
    top: 40% !important;   /* move higher above profile card */
    left: 18% !important;  /* shift left so it doesn’t collide */
    transform: scale(0.8);
    z-index: 2;
  }
   .space-container {
    height: 205vh; /* slightly taller to prevent vertical crowding */
   }
}
@media (max-width: 768px) {
  /* Overall layout becomes vertical */
  .space-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 150vh;
    padding: 60px 0 80px;
    gap: 40px; /* space between planets and profile */
  }

  /* Center container (for planets or other central content) */
  .center-container {
    position: relative !important;
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px; /* spacing between planets */
    z-index: 1;
  }

  /* Make each planet naturally stack */
  .planet {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    animation: none !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .planet img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 8px rgba(255, 200, 255, 0.4));
  }

  .planet-label {
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
  }

  /* Profile container sits below all planets */
  .profile-container {
    position: relative !important;
    order: 2;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    display: flex;
    flex-direction: column; /* ensure vertical layout */
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    z-index: 2;
  }

  .profile-card {
    width: 90%;
    max-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

