/* ===== Body & Background ===== */
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif; /* Modern, soothing font */
  background: linear-gradient(to bottom, #e0f7fa, #ffffff); /* Calming gradient */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  transition: background 2s ease;
}

/* ===== Container ===== */
.container {
  max-width: 700px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

/* ===== Card ===== */
.card {
  background: rgba(255, 255, 255, 0.65); /* Soft glass effect */
  backdrop-filter: blur(12px); /* Blur behind the card */
  border-radius: 28px;
  padding: 40px 50px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12); /* Gentle shadow */
  text-align: center;
  font-size: 1.9rem;
  font-weight: 400;
  color: #2c3e50;
  line-height: 2;
  letter-spacing: 0.5px;
  position: relative;
  animation: floatSoft 6s ease-in-out infinite alternate;
}

/* ===== Fade Animations ===== */
.fade-in {
  opacity: 0;
  animation: fadeInSoft 2s forwards; /* Updated to match JS fade-in timing */
}

.fade-out {
  opacity: 1;
  animation: fadeOutSoft 2s forwards; /* Matches JS fade-out timing */
}

@keyframes fadeInSoft {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutSoft {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===== Gentle Floating Animation ===== */
@keyframes floatSoft {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ===== Optional: Nav Button Styling ===== */
.nav-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.75);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
