/* ============================================
   MEHR BIRTHDAY SURPRISE - PREMIUM STYLE
   ============================================ */

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  /* Premium Dark Romance Palette */
  --bg-dark: #0f0710;
  --bg-mid: #2b1424;
  --rose-gold: #e8b4b8;
  --rose-gold-dark: #c48b8f;
  --rose-light: #f4d5d5;
  --text-main: #fdf8f9;
  --text-muted: #d0b8b8;
  
  /* Glassmorphism Variables */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.4);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at 50% 50%, var(--bg-mid) 0%, var(--bg-dark) 100%);
  color: var(--text-main);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---- PARTICLES ---- */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--rose-gold);
  opacity: 0;
  box-shadow: 0 0 10px var(--rose-light);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  20%  { opacity: 0.4; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ---- SCREENS ---- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   LOCK SCREEN
   ============================================ */
.lock-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 56px 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 60px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.lock-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
  animation: floatGentle 3s ease-in-out infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.lock-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--rose-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.lock-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  font-weight: 300;
}

.input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

#password-input {
  width: 100%;
  padding: 18px 56px 18px 24px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
  color: var(--text-main);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  outline: none;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}
#password-input::placeholder { 
  color: rgba(255,255,255,0.3); 
  letter-spacing: 0.5px; 
}
#password-input:focus {
  border-color: var(--rose-gold);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 20px rgba(232, 180, 184, 0.15);
}

.eye-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.eye-toggle:hover { opacity: 0.9; }

.error-msg {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 20px;
  font-weight: 400;
}
.error-msg.show { opacity: 1; }

#unlock-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-light), var(--rose-gold));
  color: var(--bg-dark);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(232, 180, 184, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}
#unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(232, 180, 184, 0.3);
  background: linear-gradient(135deg, #fff, var(--rose-light));
}
#unlock-btn:active { transform: translateY(1px); }

.hint-text {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

/* ============================================
   SLIDES SCREEN
   ============================================ */
#slides-screen {
  flex-direction: column;
  padding: 40px 20px 120px;
}

#slide-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ---- INDIVIDUAL SLIDE ---- */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}
.slide.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.slide.exit-left {
  opacity: 0;
  transform: translateY(-40px) scale(0.98);
}

.slide-content {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 36px 32px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 30px 60px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Hide scrollbar for cleaner look */
.slide-content::-webkit-scrollbar {
  width: 6px;
}
.slide-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

/* ---- SLIDE 1 (TITLE) ---- */
.cake-emoji {
  font-size: 56px;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.4));
  animation: floatGentle 4s ease-in-out infinite;
}
.big-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 4rem);
  color: var(--rose-light);
  margin: 16px 0 8px;
  font-weight: 500;
  letter-spacing: 1px;
}
.name-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--rose-gold);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.balloon-row, .stars-row, .moon-stars, .rose-row, .firework-row, .care-icons {
  font-size: 1.3rem;
  margin: 16px 0;
  letter-spacing: 8px;
  opacity: 0.9;
}
.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ---- SLIDE COMMON ---- */
.slide-emoji {
  font-size: 48px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}
.slide-heading, .final-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--rose-light);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.final-heading {
  color: var(--rose-gold);
}

.message-card, .quote-box, .wish-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.7;
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.quote-box {
  background: rgba(232, 180, 184, 0.05);
  border-left: 4px solid var(--rose-gold);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--rose-light);
}

.highlight {
  color: var(--rose-gold);
  font-weight: 500;
}

.floating-hearts span, .heart-pulse {
  font-size: 1.4rem;
  display: inline-block;
  margin: 0 8px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}
.heart-pulse { font-size: 48px; }

.final-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--rose-light);
  margin: 16px 0 8px;
}
.final-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* ---- NAV BAR ---- */
.nav-bar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 200;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--rose-light);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-btn:hover:not(:disabled) { 
  background: rgba(255,255,255,0.05);
  border-color: var(--rose-gold);
  color: var(--text-main);
}
.nav-btn:disabled { 
  opacity: 0.3; 
  cursor: not-allowed; 
}

.dot-row { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}
.dot {
  width: 8px; 
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: var(--rose-gold);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(232, 180, 184, 0.4);
}

/* ---- AUTOPLAY BTN ---- */
.autoplay-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(12px);
  z-index: 200;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.autoplay-btn:hover { 
  background: rgba(255,255,255,0.1); 
  color: var(--text-main);
}

/* ---- RESTART BTN ---- */
.restart-btn {
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-light);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 16px;
}
.restart-btn:hover {
  background: var(--rose-gold);
  color: var(--bg-dark);
  box-shadow: 0 10px 20px rgba(232, 180, 184, 0.2);
  transform: translateY(-2px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  #slides-screen {
    padding: 20px 16px 100px;
  }
  .slide-content, .lock-card { 
    padding: 32px 20px; 
    border-radius: 24px;
  }
  .message-card, .quote-box, .wish-card { 
    padding: 20px; 
    font-size: 1rem;
  }
  .nav-bar {
    width: 90%;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .nav-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .dot-row { gap: 8px; }
}
