/* =========================================
   BIRTHDAY WEBSITE — style.css
   Romantic ✦ Glassmorphism ✦ Premium
   ========================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --pink-light: #ffd6e7;
  --pink-mid: #ffaad4;
  --pink-deep: #e9649b;
  --rose: #d63384;
  --purple-soft: #c084fc;
  --purple-mid: #a855f7;
  --purple-deep: #7c3aed;
  --cream: #fff5f9;
  --white10: rgba(255, 255, 255, 0.10);
  --white20: rgba(255, 255, 255, 0.20);
  --white35: rgba(255, 255, 255, 0.35);
  --text-main: #3a1a2e;
  --text-soft: #6b3a5a;
  --text-cream: #fdf2f8;
  --card-blur: blur(16px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-glow: 0 8px 40px rgba(214, 51, 132, 0.25);
  --shadow-soft: 0 4px 24px rgba(120, 30, 80, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET + BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  /* Deep rose-berry gradient — visibly pink, romantic */
  background: linear-gradient(135deg, #4a0a28 0%, #6e1848 40%, #3a0a50 100%);
  color: var(--text-cream);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- CONFETTI CANVAS ---------- */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- FLOATING HEARTS BG ---------- */
#floating-hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-heart {
  position: absolute;
  font-size: clamp(14px, 2vw, 28px);
  animation: floatUp linear infinite;
  opacity: 0;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-15vh) rotate(45deg);
    opacity: 0;
  }
}

/* ---------- GLASSMORPHISM UTILITY ---------- */
.glass {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
}

/* ---------- SECTION LABEL / HEADING STYLES ---------- */
.section-label {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-mid);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  text-align: center;
  color: var(--pink-light);
  margin-bottom: 3rem;
  line-height: 1.3;
}

.section-pad {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 3rem);
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.center-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================================
   LOCK SCREEN
   ============================================================ */
#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lock screen matches body — deep rose bg */
  background: linear-gradient(135deg, #2a041a 0%, #4a0d32 50%, #1e042c 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#lock-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  max-width: 430px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-glow), inset 0 0 60px rgba(232, 100, 155, 0.07);
  animation: cardIn 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 20px rgba(232, 100, 155, 0.7));
}

.lock-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 500;
  color: var(--pink-light);
  margin-bottom: 0.5rem;
}

.heart-red {
  color: #ff4d7a;
}

.lock-sub {
  font-size: 0.9rem;
  color: rgba(255, 210, 231, 0.7);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.lock-instructions {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 170, 212, 0.25);
  border-radius: var(--radius-md);
  text-align: left;
  counter-reset: instr;
}

.lock-instructions li {
  font-size: 0.88rem;
  color: rgba(255, 220, 238, 0.9);
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lock-instructions li+li {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.input-wrapper {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

#password-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  color: var(--pink-light);
  font-family: 'Inter', sans-serif;
}

#password-input::placeholder {
  color: rgba(255, 210, 231, 0.45);
}

#unlock-btn {
  display: block;
  margin: 1.2rem auto 0;
  background: linear-gradient(135deg, var(--pink-deep), var(--purple-mid));
  border: none;
  padding: 0.85rem 2.6rem;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(214, 51, 132, 0.4);
  letter-spacing: 0.03em;
}

#unlock-btn:hover {
  background: linear-gradient(135deg, var(--rose), var(--purple-deep));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214, 51, 132, 0.6);
}

.wrong-msg {
  margin-top: 1rem;
  color: #ff8fab;
  font-size: 0.87rem;
  min-height: 1.2rem;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

/* ============================================================
   MUSIC TOGGLE
   ============================================================ */
#music-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 500;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: none;
  /* shown after unlock */
}

#music-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
  /* layered radial glow */
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(214, 51, 132, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    transparent;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink-mid);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.3s forwards;
}

.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.55s forwards;
  text-shadow: 0 0 60px rgba(255, 180, 210, 0.4);
}

.name-glow {
  font-style: italic;
  color: var(--pink-mid);
  text-shadow: 0 0 40px rgba(255, 170, 212, 0.7), 0 0 80px rgba(214, 51, 132, 0.5);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 214, 231, 0.97);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CTA Button ===== */
.cta-btn {
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--purple-mid) 100%);
  color: #fff;
  border: none;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 30px rgba(214, 51, 132, 0.5);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.05s forwards;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(214, 51, 132, 0.65);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:active {
  transform: scale(0.98);
}

/* Hero hearts */
.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-heart {
  position: absolute;
  animation: floatHero linear infinite;
  opacity: 0;
  font-size: clamp(18px, 3vw, 36px);
}

@keyframes floatHero {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  15% {
    opacity: 0.8;
  }

  85% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-90vh) scale(0.6);
    opacity: 0;
  }
}

/* ============================================================
   TYPEWRITER MESSAGE
   ============================================================ */
.message-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  line-height: 1.85;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  /* Near-white text on rose bg */
  color: #fff5fa;
  position: relative;
  box-shadow: var(--shadow-glow);
  border-left: 3px solid rgba(232, 100, 155, 0.5);
}

.cursor {
  display: inline-block;
  color: var(--pink-deep);
  font-weight: 300;
  font-size: 1.2em;
}

.blink {
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ============================================================
   MEMORY CARDS – Things We Shared
   ============================================================ */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.memory-card {
  padding: 2rem 1.6rem;
  transition: var(--transition);
  text-align: center;
  border-top: 2px solid rgba(255, 170, 212, 0.3);
}

.memory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(214, 51, 132, 0.2);
  border-top-color: rgba(255, 170, 212, 0.7);
}

.memory-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 100, 180, 0.4));
}

.memory-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--pink-light);
  margin-bottom: 0.6rem;
}

.memory-card p {
  font-size: 0.9rem;
  color: rgba(255, 220, 238, 0.95);
  line-height: 1.7;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(232, 100, 155, 0) 0%, rgba(232, 100, 155, 0.5) 20%, rgba(168, 85, 247, 0.5) 80%, rgba(168, 85, 247, 0) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--purple-mid));
  box-shadow: 0 0 16px rgba(232, 100, 155, 0.7);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.in-view .timeline-dot {
  transform: scale(1);
}

.timeline-content {
  padding: 1.4rem 1.8rem;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateX(4px);
  border-color: rgba(255, 170, 212, 0.35);
}

.timeline-date {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink-mid);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #fff0f8;
  line-height: 1.7;
}

/* ============================================================
   HIDDEN BUTTON
   ============================================================ */
#hidden-btn-section {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.hidden-reveal-btn {
  background: transparent;
  border: 2px solid rgba(232, 100, 155, 0.5);
  color: var(--pink-mid);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-style: italic;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.hidden-reveal-btn:hover {
  background: rgba(232, 100, 155, 0.12);
  border-color: rgba(232, 100, 155, 0.9);
  color: var(--pink-light);
  box-shadow: 0 0 30px rgba(232, 100, 155, 0.3);
  transform: scale(1.03);
}

.pulse-btn {
  animation: pulseBtn 2.5s ease-in-out infinite;
}

@keyframes pulseBtn {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 100, 155, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(232, 100, 155, 0);
  }
}

/* ============================================================
   GIFTS GALLERY
   ============================================================ */
.hidden-gifts {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.8s ease, max-height 1.4s ease, transform 0.8s ease;
}

.hidden-gifts.revealed {
  opacity: 1;
  max-height: 3000px;
  pointer-events: auto;
  transform: translateY(0);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.gift-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.gift-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 50px rgba(214, 51, 132, 0.28);
  border-color: rgba(255, 170, 212, 0.35);
}

.gift-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gift-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gift-card:hover .gift-img-wrap img {
  transform: scale(1.08);
}

.gift-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 5, 20, 0.9) 0%, rgba(30, 5, 20, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gift-card:hover .gift-overlay {
  opacity: 1;
}

.gift-overlay p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--pink-light);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gift-label {
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 210, 231, 0.75);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Fallback for missing images */
.gift-img-wrap img[src=""],
.gift-img-wrap img:not([src]) {
  display: none;
}

/* ============================================================
   FINAL MESSAGE
   ============================================================ */
.final-msg-card {
  max-width: 700px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.final-msg-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(255, 100, 160, 0.6));
}

.final-msg-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--pink-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.final-msg-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 235, 248, 0.97);
}

/* ============================================================
   FINAL SURPRISE
   ============================================================ */
#final-surprise-section {
  gap: 2rem;
}

.glowing-final-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--pink-light);
  text-align: center;
  max-width: 680px;
  line-height: 1.4;
  animation: glowPulse 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 170, 210, 0.7), 0 0 60px rgba(214, 51, 132, 0.5);
}

@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 170, 210, 0.7), 0 0 60px rgba(214, 51, 132, 0.5);
  }

  50% {
    text-shadow: 0 0 40px rgba(255, 170, 210, 1), 0 0 100px rgba(214, 51, 132, 0.8), 0 0 140px rgba(168, 85, 247, 0.4);
  }
}

.final-burst-btn {
  opacity: 1 !important;
  animation: none !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 200, 230, 0.5);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .gifts-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.4rem;
  }

  .message-card {
    padding: 1.5rem;
  }

  #music-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    top: 0.8rem;
    right: 0.8rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .gifts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1a0a14;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink-deep), var(--purple-mid));
  border-radius: 3px;
}