/* =============================================
   BIRTHDAY WEBSITE — style.css
   Author: Generated for Vipender's 28th Birthday
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --pink:     #f9a8c9;
  --pink-deep:#e85d9f;
  --lavender: #d4b5f0;
  --lav-deep: #9b59b6;
  --sky:      #b3dcf9;
  --yellow:   #fff3b0;
  --cream:    #fff9f4;
  --white:    #ffffff;
  --text:     #2d1b3d;
  --text-soft:#6b5676;
  --shadow:   0 8px 40px rgba(180,100,160,0.15);
  --radius:   20px;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: var(--ff-body); }

/* ---- Section Base ---- */
.section {
  padding: 90px 6vw;
  position: relative;
}
.section-lavender { background: linear-gradient(135deg, #f3e8ff 0%, #fce4ec 100%); }
.section-yellow   { background: linear-gradient(135deg, #fffde7 0%, #fce4ec 80%); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1.25;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(155,89,182,0.55) 0%,
    rgba(232,93,159,0.45) 50%,
    rgba(30,10,50,0.65) 100%
  );
  z-index: 1;
}

/* Hearts canvas */
#hearts-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Hero text */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  animation: heroFadeIn 1.4s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 30px;
  padding: 7px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  font-weight: 700;
  margin-top: 219px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
  margin-bottom: 18px;
}
.hero-name {
  font-style: italic;
  background: linear-gradient(90deg, #ffcce0, #f9f7ff, #ffd6f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.88;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 38px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.scroll-btn {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.scroll-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =============================================
   MEMORY PHOTO SLIDER
   ============================================= */
.photo-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.photo-slider {
  display: flex;
  gap: 28px;
  overflow: hidden;
  flex: 1;
  scroll-snap-type: x mandatory;
}
.photo-card {
  min-width: calc(33.333% - 19px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.photo-card:hover { transform: translateY(-6px); }
.photo-card img {
     width: 63%;
    height: 463px;
   
  object-fit: cover;
}
.photo-caption {
  padding: 18px 20px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.5;
  text-align: center;
}

.slider-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--lav-deep));
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,100,170,0.35);
  transition: var(--transition);
  flex-shrink: 0;
}
.slider-btn:hover { transform: scale(1.1); }

/* =============================================
   MEMORY CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.mem-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
}
.mem-card.visible { opacity: 1; transform: translateY(0); }
.mem-card:hover { box-shadow: 0 20px 60px rgba(180,100,160,0.25); transform: translateY(-6px); }
.mem-card .card-emoji { font-size: 3rem; margin-bottom: 14px; }
.mem-card h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--pink-deep);
}
.mem-card p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.7; }

/* =============================================
   MEME SECTION
   ============================================= */
.meme-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}
.meme-scroll {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px 4px 20px;
}
.meme-card {
  width: 240px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(200,120,160,0.18);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.meme-card:hover { transform: rotate(-1deg) scale(1.04); }
.meme-card img { width: 100%; height: 334px; object-fit: cover; }
.meme-caption {
  padding: 14px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}

/* =============================================
   TIMELINE SECTION
   ============================================= */
#timeline { background: var(--cream); }
.timeline-years {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.year-btn {
  padding: 10px 26px;
  border-radius: 30px;
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}
.year-btn:hover,
.year-btn.active {
  background: linear-gradient(90deg, var(--pink-deep), var(--lav-deep));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200,100,160,0.35);
}
.timeline-display {
  display: flex;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-display.show { opacity: 1; transform: translateY(0); }
.timeline-img-wrap {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(180,100,160,0.2);
}
.timeline-img-wrap img { width: 100%; height: 141%; object-fit: cover; }
#tl-year-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--pink-deep);
  margin-bottom: 14px;
}
#tl-memory {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* =============================================
   SURPRISE SECTION
   ============================================= */
.surprise-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.surprise-closed .gift-icon { font-size: 5rem; margin-bottom: 20px; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.surprise-closed h2 {
  font-family: var(--ff-display);
  font-size: 2rem;
  margin-bottom: 12px;
}
.surprise-closed p { color: var(--text-soft); margin-bottom: 30px; }
.cta-btn {
  background: linear-gradient(135deg, var(--pink-deep), var(--lav-deep));
  color: #fff;
  padding: 16px 42px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(200,100,160,0.4);
  transition: var(--transition);
}
.cta-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 40px rgba(200,100,160,0.5); }

.surprise-open { display: none; }
.surprise-open.active { display: block; animation: revealFade 0.8s ease; }
@keyframes revealFade { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
.surprise-envelope {
  background: linear-gradient(135deg, #fff5fc, #f0e8ff);
  border: 2px solid rgba(232,93,159,0.25);
  border-radius: 24px;
  padding: 50px 44px;
  position: relative;
  box-shadow: 0 20px 60px rgba(180,100,160,0.2);
}
.envelope-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav-deep));
  border-radius: 24px 24px 0 0;
}
.surprise-message h2 {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--pink-deep);
  margin-bottom: 20px;
}
.surprise-message p {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 28px;
}
.sign {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lav-deep);
}

/* =============================================
   ENDING SECTION
   ============================================= */
#ending {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0a2e 0%, #3d1054 50%, #6b1a5e 100%);
  color: #fff;
  text-align: center;
  padding: 120px 6vw;
}
#confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ending-content { position: relative; z-index: 1; }
.ending-divider { font-size: 2rem; margin-bottom: 36px; }
.ending-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.35;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ending-quote em { color: var(--pink); font-style: italic; }
.ending-sub {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.ending-balloons {
  font-size: 3rem;
  animation: floatBalloons 3s ease-in-out infinite;
}
@keyframes floatBalloons {
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-14px) rotate(4deg)}
}

/* =============================================
   SCROLL ANIMATIONS — fade in cards on scroll
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   SCREENSHOT PROTECTION — JS-Driven Blur
   ============================================= */

/* Applied when Visibility API detects screenshot / screen share */
body.screen-captured * {
  filter: blur(18px) !important;
  transition: filter 0.15s ease !important;
}
body.screen-captured::after {
  content: "🔒 Screenshot Blocked — This is a private memory website.";
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--pink-deep);
  background: rgba(255,245,255,0.95);
  text-align: center;
  padding: 40px;
}

/* Right-click disabled visual cue */
body.no-context-menu { cursor: default; }

/* =============================================
   PHOTO MANAGER PANEL (Dev Tool)
   ============================================= */
#pm-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--lav-deep));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(200,100,160,0.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#pm-toggle:hover { transform: scale(1.12) rotate(8deg); }

.pm-panel {
  position: fixed;
  top: 0; right: -520px;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 10001;
  box-shadow: -8px 0 40px rgba(180,100,160,0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25,0.8,0.25,1);
  font-family: var(--ff-body);
}
.pm-panel.open { right: 0; }

.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.pm-header small { font-weight: 400; opacity: 0.75; font-size: 0.75rem; }
#pm-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
#pm-close:hover { background: rgba(255,255,255,0.4); }

.pm-hint {
  padding: 12px 22px;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: #fdf6ff;
  border-bottom: 1px solid #f0e0f5;
  flex-shrink: 0;
}

.pm-slots {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fdf6ff;
  border: 2px dashed #e8b8e0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.pm-slot:hover, .pm-slot.drag-over {
  border-color: var(--pink-deep);
  background: #fff0f8;
  transform: translateX(3px);
}
.pm-slot-preview {
  width: 64px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f9a8c9, #d4b5f0);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(180,100,160,0.2);
}
.pm-slot-info { flex: 1; min-width: 0; }
.pm-slot-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.pm-slot-section {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pm-slot-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}
.pm-slot-status.set   { background: #d4f4dd; color: #1a7a3a; }
.pm-slot-status.empty { background: #fce4ec; color: var(--pink-deep); }
.pm-slot input[type="file"] { display: none; }

.pm-actions {
  padding: 16px 22px;
  border-top: 1px solid #f0e0f5;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: #fdf6ff;
}
#pm-export-btn {
  background: linear-gradient(90deg, var(--pink-deep), var(--lav-deep));
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
#pm-export-btn:hover { transform: translateY(-2px); }
#pm-export-status { font-size: 0.8rem; color: #1a7a3a; font-weight: 700; }

/* Slot group separator */
.pm-group-title {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lav-deep);
  padding: 6px 0 2px;
  border-bottom: 1px solid #e8b8e0;
  margin-bottom: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .photo-card { min-width: calc(50% - 14px); }
  .timeline-display { flex-direction: column; padding: 28px; }
  .timeline-img-wrap { width: 100%; }
}
@media (max-width: 600px) {
  .photo-card { min-width: 80%; }
  .section { padding: 60px 5vw; }
  .surprise-envelope { padding: 36px 22px; }
}
