@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

/* =========================
   PASSWORD SCREEN
========================= */

body {
  background: linear-gradient(135deg, #ffdde1, #ee9ca7);
}

/* Lock screen */
#lockScreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

/* Lock box */
.lockBox {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  padding: 36px 32px;
  width: 320px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  animation: fadeIn 1s ease;
}

.lockBox h2 {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.lockBox p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.lockBox input {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.lockBox button {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lockBox button:hover {
  transform: scale(1.03);
}

#errorMsg {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffb3b3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MAIN CONTENT (AFTER UNLOCK)
========================= */

#mainContent {
  display: none;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url("images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 2;
}

/* Hearts canvas */
#hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* =========================
   SECTIONS
========================= */

.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: center;
}

.countdown {
  text-align: center;
  padding: 60px 20px;
}

.countdown h2 {
  margin: 0;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

#timer {
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.gallery img {
  width: 250px;
  margin: 10px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.message {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.2rem;
}

.message p {
  max-width: 700px;
  margin: auto;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

/* =========================
   TEXT ANIMATIONS
========================= */

.hero h1,
.hero p,
.countdown h2,
.message p {
  opacity: 0;
  animation: textReveal 1.2s ease forwards;
}

.hero h1 { animation-delay: 0.3s; }
.hero p { animation-delay: 0.6s; }
.countdown h2 { animation-delay: 0.9s; }
.message p { animation-delay: 1.2s; }

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
