/* ===========================
   CSS RESET & ROOT VARIABLES
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink:       #ff6b9d;
  --deep-pink:  #e0185e;
  --rose:       #ff8fab;
  --purple:     #c77dff;
  --dark:       #0d0010;
  --dark2:      #1a0025;
  --card-bg:    rgba(255,255,255,0.05);
  --gold:       #ffd700;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ===========================
   LANDING PAGE
   =========================== */
#landing {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #2d0035 0%, #0d0010 80%);
  overflow: hidden;
  transition: opacity 1s ease, transform 1s ease;
}

#landing.fade-out {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.landing-content {
  text-align: center;
  position: relative; z-index: 2;
  animation: fadeInUp 1.2s ease forwards;
}

.landing-sub {
  font-size: 1rem; color: var(--rose); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 10px;
  opacity: 0; animation: fadeInUp 1s 0.3s forwards;
}

.landing-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 12vw, 9rem);
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; animation: fadeInUp 1s 0.6s forwards;
  filter: drop-shadow(0 0 30px rgba(255,107,157,0.5));
}

.landing-msg {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  margin: 10px 0 40px;
  opacity: 0; animation: fadeInUp 1s 0.9s forwards;
}

/* Heart Button */
.heart-wrapper {
  position: relative; display: inline-block;
  cursor: pointer; width: 100px; height: 100px;
  opacity: 0; animation: fadeInUp 1s 1.2s forwards;
}

.pulse-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  animation: pulseRing 1.8s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 0.9s; }

@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.heart-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.2s;
  animation: heartBeat 1.2s ease-in-out infinite;
}

.heart-wrapper:hover .heart-icon { transform: scale(1.3); }

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.click-hint {
  margin-top: 20px; font-size: 0.85rem;
  color: rgba(255,255,255,0.45); letter-spacing: 1.5px;
  opacity: 0; animation: fadeInUp 1s 1.5s forwards;
}

/* Floating Petals */
.floating-petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal {
  position: absolute;
  font-size: 1.4rem; opacity: 0;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(-60px) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Particles */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--pink); opacity: 0.4;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1);  opacity: 0; }
}

/* ===========================
   MAIN WEBSITE
   =========================== */
#main { min-height: 100vh; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 50%, #2d0035 0%, #0d0010 70%);
  position: relative; overflow: hidden; text-align: center;
}

.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute; border-radius: 50%;
  background: #fff; animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.4); }
}

.hero-content { position: relative; z-index: 1; padding: 20px; }

.hero-pre {
  font-size: 1rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--rose);
  animation: fadeInUp 1s 0.2s both;
}

.hero-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(5rem, 15vw, 11rem);
  background: linear-gradient(135deg, #ff6b9d, #c77dff, #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s 0.5s both;
  filter: drop-shadow(0 0 40px rgba(255,107,157,0.6));
}

.hero-quote {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.75); max-width: 600px; margin: 20px auto;
  font-style: italic; line-height: 1.7;
  animation: fadeInUp 1s 0.8s both;
}

.scroll-hint {
  margin-top: 40px; font-size: 0.9rem; color: var(--rose);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===========================
   MESSAGES SECTION
   =========================== */
.messages-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #0d0010 0%, #1a0025 100%);
}

.section-title {
  text-align: center; margin-bottom: 50px;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

.msg-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,107,157,0.2);
  border-radius: 20px; padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(30px);
}
.msg-card.visible {
  animation: cardIn 0.7s ease forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.msg-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--pink);
  box-shadow: 0 10px 40px rgba(255,107,157,0.25);
}

.msg-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }

.msg-card p {
  color: rgba(255,255,255,0.8); line-height: 1.75;
  font-size: 0.95rem; font-weight: 300;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #1a0025 0%, #0d0010 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; max-width: 1100px; margin: 0 auto;
}

.gallery-item {
  border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(255,107,157,0.15);
  cursor: pointer; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 1 / 1;
  opacity: 0; transform: scale(0.9);
}
.gallery-item.visible { animation: scaleIn 0.6s ease forwards; }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(255,107,157,0.35); }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(200,0,80,0.65) 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { font-size: 1.8rem; }

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 16px;
  border: 3px solid var(--pink);
  box-shadow: 0 0 60px rgba(255,107,157,0.4);
  animation: fadeInUp 0.4s ease;
}
#lightbox .close-lb {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.5rem; color: #fff; cursor: pointer;
  transition: color 0.2s;
}
#lightbox .close-lb:hover { color: var(--pink); }

/* ===========================
   FINAL SECTION
   =========================== */
.final-section {
  min-height: 60vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #2d0035 0%, #0d0010 100%);
  overflow: hidden; text-align: center; padding: 60px 20px;
}

.final-content { position: relative; z-index: 2; }

.big-heart {
  font-size: 6rem;
  display: block; margin-bottom: 20px;
  animation: bigPulse 1.5s ease-in-out infinite;
  cursor: pointer;
}
@keyframes bigPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px #ff6b9d); }
  50%       { transform: scale(1.15); filter: drop-shadow(0 0 30px #ff6b9d); }
}

.final-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-sub {
  margin-top: 16px; font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
}

.fireworks { position: absolute; inset: 0; pointer-events: none; }
.fw { position: absolute; font-size: 2rem; animation: fwAnim 1.2s ease-out forwards; }
@keyframes fwAnim {
  0%   { opacity: 1; transform: translate(0,0) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1); }
}

/* ===========================
   SHARED ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
