@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

/* =========================
   PASSWORD SCREEN
========================= */

body {
  background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
}

#lockScreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  animation: fadeIn 0.6s ease;
}

.lockBox {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px 40px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lockBox h2 {
  margin: 0 0 8px 0;
  font-weight: 700;
  color: #fff;
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
}

.lockBox p {
  margin: 0 0 25px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.lockBox input {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.lockBox input:focus {
  background: #fff;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.lockBox button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.lockBox button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 117, 140, 0.4);
}

.lockBox button:active {
  transform: translateY(0);
}

#errorMsg {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #ffe5e5;
  animation: shake 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* =========================
   MAIN CONTENT
========================= */

#mainContent {
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 200, 215, 0.4), rgba(255, 150, 180, 0.3)), url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 2;
}

body.unlocked {
  background: linear-gradient(135deg, rgba(255, 200, 215, 0.4), rgba(255, 150, 180, 0.3)), url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.dark-mode #mainContent {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.7), rgba(50, 50, 100, 0.6)), url("../images/background.jpg");
}

/* =========================
   NAVIGATION
========================= */

#mainNav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

#mainNav ul {
  margin: 0;
  padding: 12px 20px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

#mainNav li {
  margin: 0;
  white-space: nowrap;
}

#mainNav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
}

#mainNav a:hover,
#mainNav a.active {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 12px;
  transition: all 0.3s ease;
  margin-right: 10px;
}

#themeToggle:hover {
  transform: scale(1.15) rotate(20deg);
}

/* =========================
   PAGE SECTIONS
========================= */

.page-section {
  padding: 100px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  animation: fadeIn 0.6s ease;
}

.page-section h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 35px;
  margin-top: 10px;
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-section h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.page-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* HOME/HERO */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Playfair Display', serif;
  animation: slideUp 0.8s ease;
}

.hero p {
  font-size: 1.3rem;
  margin: 0 0 45px 0;
  color: rgba(255, 255, 255, 0.95);
  animation: slideUp 0.8s ease 0.1s both;
}

/* CAROUSEL */

.carousel-container {
  position: relative;
  width: 95%;
  max-width: 900px;
  height: 45vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.8s ease 0.2s both;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 24px;
  z-index: 2;
}

.carousel-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}


.carousel-video {
  flex: 1;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.carousel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep controls but hide them until hover */
}

/* hide native controls by default, show when interacting */
.carousel-video video::-webkit-media-controls,
.carousel-video video::-webkit-media-controls-panel,
.carousel-video video::-webkit-media-controls-overlay-play-button,
.carousel-video video::-webkit-media-controls-play-button {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-video video:hover::-webkit-media-controls,
.carousel-video video:hover::-webkit-media-controls-panel,
.carousel-video video:hover::-webkit-media-controls-overlay-play-button,
.carousel-video video:hover::-webkit-media-controls-play-button {
  opacity: 1;
}

/* firefox controls */
.carousel-video video::-moz-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-video video:hover::-moz-media-controls {
  opacity: 1;
}

.carousel-video {
  flex: 1;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.carousel-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ff758c;
  font-size: 1.8rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

.carousel-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* =========================
   TIMELINE
========================= */

#timeline {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: slideUp 0.6s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-date {
  font-size: 0.95rem;
  color: #ffeb3b;
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content h3 {
  margin: 8px 0;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
}

.timeline-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.timeline-content img:hover {
  transform: scale(1.02);
}

/* =========================
   GALLERY
========================= */

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  max-width: 1000px;
}

.gallery-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#lightboxClose {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxClose:hover {
  background: rgba(255, 117, 140, 0.7);
  transform: scale(1.15);
}

/* =========================
   GAMES
========================= */

.game-btn {
  padding: 10px 20px;
  border: 2px solid #ffeb3b;
  border-radius: 20px;
  background: transparent;
  color: #ffeb3b;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 8px;
}

.game-btn:hover,
.game-btn.active-game {
  background: #ffeb3b;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 235, 59, 0.3);
}

.game-container {
  max-width: 700px;
  margin: 20px auto;
  width: 100%;
}

/* PLAY BUTTON */

.play-button {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(238, 156, 167, 0.3);
}

.play-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(238, 156, 167, 0.5);
}

.play-button:active {
  transform: translateY(-2px);
}

#gameStartScreen {
  margin-top: 20px;
}

#gameOverScreen {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#gameOverScreen h3 {
  font-size: 2rem;
  color: #ff6b6b;
  margin-bottom: 10px;
}

#gameOverScore {
  color: #333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* FLAPPY BIRD */

#gameCanvas {
  display: block;
  margin: 20px auto;
  background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 100%);
  border: 3px solid #fff;
  border-radius: 12px;
  max-width: 100%;
  width: 100%;
  height: 400px;
  touch-action: none;
  cursor: pointer;
}

#gameFlappy {
  text-align: center;
}

#gameFlappy p {
  text-align: center;
  font-size: 1rem;
}

/* QUIZ BUTTONS */

.quiz-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quiz-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.3);
}

#quizContainer {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#quizContainer h3 {
  margin-top: 0;
}

/* MEMORY GAME */

#memoryBoard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 12px;
  max-width: 350px;
  margin: 20px auto;
}

.memory-card {
  aspect-ratio: 1;
  border: 2px solid #ffeb3b;
  border-radius: 8px;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-weight: bold;
}

.memory-card:hover {
  transform: scale(1.05);
}

#memoryScore {
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

/* =========================
   WISHES
========================= */

/* Special Message Box */
.your-wish-box {
  max-width: 700px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.15) 0%, rgba(238, 156, 167, 0.15) 100%);
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(238, 156, 167, 0.2);
  animation: slideUp 0.6s ease 0.1s both;
}

.your-wish-header {
  background: linear-gradient(135deg, #ff758c 0%, #ffdde1 100%);
  color: white;
  padding: 18px 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.your-wish-content {
  padding: 24px 20px;
  height: 380px;
  overflow-y: auto;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: rgba(255, 255, 255, 0.7);
}

.your-wish-content::-webkit-scrollbar {
  width: 8px;
}

.your-wish-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.your-wish-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
  border-radius: 10px;
}

.your-wish-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

/* Regular Wish Items */
.wish-item {
  background: linear-gradient(135deg, rgba(255, 221, 225, 0.2) 0%, rgba(238, 156, 167, 0.15) 100%);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 16px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid rgba(255, 107, 107, 0.2);
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease;
  box-shadow: 0 4px 15px rgba(238, 156, 167, 0.15);
}

.wish-name {
  font-weight: 700;
  color: #ff758c;
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.wish-text {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.wish-item:hover {
  background: linear-gradient(135deg, rgba(255, 221, 225, 0.3) 0%, rgba(238, 156, 167, 0.2) 100%);
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(238, 156, 167, 0.25);
}
#wishForm {
  text-align: center;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

#wishForm textarea {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 100px;
}

#wishForm textarea:focus {
  outline: none;
  border-color: #ff758c;
  background: #fff;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.2);
}

#wishForm button {
  margin-top: 12px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

#wishForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 117, 140, 0.4);
}

/* =========================
   SPECIAL EFFECTS
========================= */

#hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

/* =========================
   DARK MODE
========================= */

body.dark-mode {
  background: linear-gradient(135deg, #1a1a3e 0%, #29294e 100%) !important;
}

body.dark-mode #lockScreen {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .lockBox {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .your-wish-box {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(139, 69, 19, 0.1) 100%);
  border-color: rgba(255, 107, 107, 0.2);
}

body.dark-mode .your-wish-content {
  background: rgba(0, 0, 0, 0.4);
  color: #e0e0e0;
}

body.dark-mode .timeline-item,
body.dark-mode .wish-item {
  background: rgba(255, 182, 193, 0.05);
  border-color: rgba(255, 107, 107, 0.15);
}

body.dark-mode .wish-name {
  color: #ff9cb2;
}

body.dark-mode .wish-text {
  color: #d0d0d0;
}

body.dark-mode #quizContainer {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {
  .page-section {
    padding: 85px 15px 70px;
  }

  .page-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  #mainNav ul {
    gap: 4px;
    padding: 10px 15px;
  }

  #mainNav a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .carousel-container {
    height: 25vh;
    max-width: 100%;
  }

  .carousel-btn {
    padding: 8px 12px;
    font-size: 1.4rem;
  }

  .gallery-img {
    width: 200px;
    height: 200px;
  }

  #gameCanvas {
    height: 300px;
  }

  .timeline-item {
    padding: 18px;
    margin-bottom: 15px;
  }

  #memoryBoard {
    grid-template-columns: repeat(4, 1fr);
  }

  .memory-card {
    font-size: 20px;
  }

  #quizContainer {
    padding: 20px;
  }

  .quiz-btn {
    padding: 10px;
    font-size: 0.95rem;
  }

  .game-btn {
    padding: 8px 14px;
    margin: 0 4px;
    font-size: 0.85rem;
  }

  .your-wish-content {
    height: 380px;
  }

  .wish-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 14px;
  }

  .page-section {
    padding: 80px 12px 60px;
  }

  .page-section h2 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .carousel-container {
    height: 20vh;
    width: 100%;
    max-width: 100%;
  }

  .carousel-btn {
    padding: 6px 10px;
    font-size: 1.2rem;
  }

  #mainNav a {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  #gameCanvas {
    height: 250px;
  }

  .play-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  #gameStartScreen {
    height: 300px !important;
  }

  .gallery-img {
    width: 150px;
    height: 150px;
  }

  #memoryBoard {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .memory-card {
    font-size: 16px;
  }

  #wishForm textarea {
    font-size: 0.95rem;
    min-height: 80px;
  }

  #nameInput {
    font-size: 0.95rem !important;
  }

  .your-wish-content {
    height: 350px;
    font-size: 0.9rem;
  }

  .your-wish-header {
    font-size: 1rem;
  }
  }

  .timeline-item {
    padding: 14px;
  }

  .lockBox {
    padding: 35px 25px;
    width: 95%;
  }

  .lockBox button,
  .lockBox input {
    font-size: 0.95rem;
  }
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  transition: background 0.3s ease;
}

/* =========================
   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;
}

/* when unlocked, apply same background to body so all sections inherit it */
body.unlocked {
  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;
}
/* Hearts canvas */
#hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Navigation bar */
#mainNav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  z-index: 5;
}
#mainNav ul {
  margin: 0;
  padding: 10px 20px;
  list-style: none;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
#mainNav li {
  margin: 0 12px;
  white-space: nowrap;
}
#mainNav li {
  margin: 0 12px;
}
#mainNav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
#mainNav a:hover,
#mainNav a.active {
  color: #ffeb3b;
}

/* Section spacing */
.page-section {
  padding: 100px 20px;
  min-height: 100vh;
}
.page-section h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

/* game canvas styling */
#gameCanvas {
  display: block;
  margin: 20px auto;
  background: #70c5ce;
  border: 2px solid #fff;
  max-width: 100%;
  touch-action: none; /* prevent scrolling on mobile when tapping */
}

#gameUnlock button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#gameUnlock button:hover {
  transform: scale(1.05);
}

/* timeline styling */
#timeline {
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.timeline-date {
  font-size: 0.9rem;
  color: #ffeb3b;
  margin-bottom: 8px;
}
.timeline-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

/* wish wall */
.wish-item {
  background: rgba(255,255,255,0.15);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
#wishForm textarea {
  border-radius: 8px;
  border: none;
  padding: 8px;
  font-size: 1rem;
}
#wishForm button {
  margin-top: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#wishForm button:hover {
  transform: scale(1.05);
}

/* lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
#lightboxClose {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.gallery-img {
  cursor: pointer;
}

/* game buttons */
.game-btn {
  padding: 8px 16px;
  border: 2px solid #ffeb3b;
  border-radius: 8px;
  background: transparent;
  color: #ffeb3b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}
.game-btn:hover,
.game-btn.active-game {
  background: #ffeb3b;
  color: #000;
}

.game-container {
  max-width: 600px;
  margin: 20px auto;
}

/* confetti canvas */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

/* theme toggle */
#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* dark mode styles */
body.dark-mode {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

body.dark-mode #lockScreen {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .lockBox {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode #mainContent {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/background.jpg");
}

body.dark-mode .timeline-item,
body.dark-mode .wish-item {
  background: rgba(255,255,255,0.08);
}

/* quiz buttons */
.quiz-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,117,140,0.4);
}

/* animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* mobile responsive */
@media (max-width: 600px) {
  #mainNav ul {
    padding: 8px 10px;
  }
  #mainNav li {
    margin: 0 6px;
  }
  #mainNav a {
    font-size: 0.85rem;
  }
  .page-section {
    padding: 80px 10px;
  }
  .game-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* =========================
   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;
}

/* removed countdown - replaced by carousel */

/* video carousel */
.carousel-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 30vh;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-video {
  flex: 1;
  height: 100%;
}
.carousel-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.carousel-btn {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }


.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);
  }
}
