@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a192f, #112240);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;
}

/* --- Glassmorphism Card --- */
.container {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.glass-card {
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 40px 60px;
  max-width: 450px;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader {
  border: 5px solid rgba(255, 255, 255, 0.15);
  border-top: 5px solid #64ffda;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: 15px auto 25px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Text Styles --- */
.logo h1 {
  font-size: 2.4rem;
  color: #64ffda;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.logo span {
  color: #fff;
  font-weight: 400;
}

h2 {
  margin-top: 15px;
  font-weight: 600;
  color: #e6f1ff;
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  color: #ccd6f6;
  line-height: 1.5;
  margin: 15px 0 25px;
}

.countdown p {
  font-size: 0.9rem;
  color: #a8b2d1;
}

#timer {
  font-size: 1.6rem;
  margin-top: 8px;
  color: #64ffda;
  letter-spacing: 2px;
}

/* --- Footer --- */
footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #8892b0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: 12px 0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  body {
    background: linear-gradient(135deg, #0a192f, #1a2f4a);
  }
  .glass-card {
    padding: 35px 45px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }
  .glass-card {
    padding: 30px 25px;
    max-width: 90%;
  }
  .logo h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  p {
    font-size: 0.95rem;
  }
  #timer {
    font-size: 1.3rem;
  }
}

/* --- Mobile Footer Fix + Small Screens --- */
@media (max-width: 600px) {
  footer {
    font-size: 14px;
    padding: 15px 10px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
    height: auto;
  }

  .glass-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .logo h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .loader {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 360px) {
  .glass-card {
    padding: 20px 15px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.85rem;
  }
}
