/* ============================================================
   LUCKY'S 19TH BIRTHDAY WEBSITE - style.css
   Clean, beautiful, responsive, perfectly ordered.
   ============================================================ */

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

:root {
  --pink-light:   #fdf2f8; 
  --pink-mid:     #fbcfe8; 
  --pink-bold:    #f472b6; 
  --pink-deep:    #be185d; 
  
  --purple-soft:  #f3e8ff; 
  --purple-mid:   #e9d5ff; 
  --purple-bold:  #c084fc; 
  
  --gold:         #fbbf24;
  --gold-light:   #fde68a;
  
  --white:        #ffffff;
  --cream:        #fcf8f5;
  --text-dark:    #4a3043; 
  --text-mid:     #704d65;
  --shadow-pink:  rgba(244, 114, 182, 0.3);

  --font-cursive: 'Dancing Script', cursive;
  --font-serif:   'Playfair Display', serif;
  --font-sans:    'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: url('birthday_bg.png') center/cover fixed no-repeat;
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20'%3E🌻%3C/text%3E%3C/svg%3E") 12 12, auto;
}

body.no-scroll { overflow: hidden; height: 100vh; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--pink-light); }
::-webkit-scrollbar-thumb { background: var(--pink-bold); border-radius: 99px; }

/* ============================================================
   INTRO / OPEN ME OVERLAY
   ============================================================ */
.intro-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: radial-gradient(circle at center, #ffffff 0%, var(--pink-light) 70%, #fce7f3 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.intro-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-content {
  text-align: center; z-index: 10; padding: 4rem 2rem; width: 90%; max-width: 420px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 24px; box-shadow: 0 16px 40px rgba(244, 114, 182, 0.15), inset 0 0 20px rgba(255,255,255,0.8); backdrop-filter: blur(24px);
  animation: floatOverlay 6s ease-in-out infinite alternate;
}
@keyframes floatOverlay { 
  from { transform: translateY(-10px); box-shadow: 0 16px 40px rgba(244, 114, 182, 0.15), inset 0 0 20px rgba(255,255,255,0.8); } 
  to { transform: translateY(10px); box-shadow: 0 30px 60px rgba(192, 132, 252, 0.25), inset 0 0 30px rgba(255,255,255,0.9); } 
}

.envelope-icon { font-size: 4.5rem; margin-bottom: 0.5rem; animation: pulseEnvelope 3s ease-in-out infinite alternate; }
@keyframes pulseEnvelope {
  from { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 4px 12px var(--shadow-pink)); }
  to { transform: scale(1.05) rotate(3deg); filter: drop-shadow(0 16px 32px rgba(168, 85, 247, 0.3)); }
}

.intro-name { font-family: var(--font-cursive); font-size: 5rem; background: linear-gradient(135deg, var(--pink-deep), #8b5cf6, var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; letter-spacing: 2px; }
.intro-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--text-mid); margin-bottom: 2.5rem; }

.intro-btn {
  background: linear-gradient(135deg, var(--pink-bold), var(--purple-bold)); color: white;
  font-family: var(--font-sans); font-weight: 500; font-size: 1.25rem; padding: 1rem 3rem;
  border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 8px 24px rgba(244,114,182,0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); letter-spacing: 1.5px; width: 100%;
}
.intro-btn:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5); }

.intro-bg-hearts { position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24"><text y="20" opacity="0.04" font-size="20">💖</text></svg>'); z-index: 1; pointer-events: none; }

/* ============================================================
   CANVAS & FLOATERS
   ============================================================ */
#confettiCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }
.floaters-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; overflow: hidden; }
.floater { position: absolute; bottom: -80px; font-size: 2rem; animation: floatUp linear infinite; opacity: 0; }
@keyframes floatUp { 0% { transform: translateX(0) rotate(0deg); opacity: 0.7; } 50% { transform: translateX(30px) rotate(15deg); } 100% { transform: translateX(-10px) translateY(-110vh) rotate(-10deg); opacity: 0; } }

/* SCROLL REVEALS */
.reveal, .reveal-up, .reveal-pop, .reveal-fade, .reveal-card { opacity: 0; transition: all 0.8s ease; }
.reveal        { transform: translateY(30px); }
.reveal-up     { transform: translateY(40px); }
.reveal-pop    { transform: scale(0.9); }
.reveal-fade   { transform: translateY(0); }
.reveal-card   { transform: translateY(40px); }

.reveal.visible, .reveal-up.visible, .reveal-fade.visible { opacity: 1; transform: translateY(0); }
.reveal-pop.visible { opacity: 1; transform: scale(1); }
.reveal-card.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* ============================================================
   COMMON SECTION STYLING
   ============================================================ */
.section-title { font-family: var(--font-serif); font-size: clamp(2.4rem, 8vw, 3.8rem); color: var(--pink-deep); text-align: center; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 2rem; }

/* ============================================================
   SECTION 1: FLOWERS + BANNER
   ============================================================ */
.section-flowers { 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  min-height: 100vh; position: relative; padding: 4rem 1rem; text-align: center; 
  background: radial-gradient(ellipse at 50% 50%, #fff0f7 0%, #fdf4ff 50%, var(--pink-light) 100%); 
}
.flowers-bg-overlay { position: absolute; inset: 0; background: url('birthday_bg.png') center/cover no-repeat; opacity: 0.08; mix-blend-mode: multiply; pointer-events: none;}
.stars-field { position: absolute; inset: 0; pointer-events: none; }
.star-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: twinkle var(--dur, 2s) infinite alternate; }
@keyframes twinkle { from { opacity:0.1; transform:scale(0.8); } to { opacity:1; transform:scale(1.4); } }

.flowers-hero-img { margin-bottom: 2rem; z-index: 5; position: relative; }
.bouquet-img { width: clamp(220px, 45vw, 420px); animation: bouquetSway 8s ease-in-out infinite alternate; }
@keyframes bouquetSway { 
  from { transform: rotate(-3deg) scale(1); filter: drop-shadow(0 12px 24px rgba(244,114,182,0.15)); } 
  to { transform: rotate(3deg) scale(1.02); filter: drop-shadow(0 24px 48px rgba(192,132,252,0.25)); } 
}

.banner-wrap { margin-bottom: 2rem; z-index: 5; position: relative; }
.balloons-banner-img { width: clamp(280px, 60vw, 600px); animation: flagWave 3s infinite alternate; }
@keyframes flagWave { from { transform: rotate(-2deg); } to { transform: rotate(2deg) translateY(-8px); } }

.flowers-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 3.5vw, 1.8rem); color: var(--text-mid); z-index: 5; position: relative; }
.scroll-hint { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 2px; color: var(--text-mid); margin-top: 3rem; text-transform: lowercase; animation: scrollBounce 2s infinite; opacity: 0.7; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }


/* ============================================================
   SECTION 2: CAKE
   ============================================================ */
.section-cake { 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 1rem; background: var(--white); text-align: center;
}

.section-cake .section-title { font-family: var(--font-cursive); font-size: clamp(3rem, 10vw, 5rem); background: linear-gradient(135deg, var(--pink-bold), var(--purple-bold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 8px rgba(244,114,182,0.2)); margin-bottom: 3rem; }

.cake-wrap { position: relative; display: inline-block; }
.cake-img { width: clamp(180px, 40vw, 320px); animation: cakeFloat 6s ease-in-out infinite alternate; }
@keyframes cakeFloat { 
  from { transform: translateY(0); filter: drop-shadow(0 12px 24px rgba(244,114,182,0.2)); } 
  to { transform: translateY(-16px); filter: drop-shadow(0 32px 56px rgba(244,114,182,0.4)); } 
}
.candles { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.candle { width: 6px; height: 26px; background: linear-gradient(to bottom, #fde68a, #ec4899); border-radius: 4px; position: relative; }
.flame { position: absolute; top: -16px; left:-3px; width: 12px; height: 20px; background: radial-gradient(ellipse at 50% 80%, #fffde7, #fbbf24, #f97316, transparent); border-radius: 50% 50% 30% 30%; animation: flicker 0.6s infinite alternate; box-shadow: 0 0 12px 6px #fde68a80; }
@keyframes flicker { from { transform: scale(1); } to { transform: scale(0.85); } }
.cake-glow { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80%; height: 20px; background: radial-gradient(ellipse, var(--shadow-pink), transparent); filter: blur(12px); }

.cake-sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--text-mid); margin-top: 3rem; }


/* ============================================================
   SECTION 3: POLAROID PHOTOBOOK
   ============================================================ */
.section-photos { position: relative; padding: 6rem 1rem; background: linear-gradient(135deg, #fdf4ff 0%, #fff0f7 50%, var(--pink-light) 100%); }

.polaroid-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; padding-top: 2rem; max-width: 1200px; margin: 0 auto; }
.polaroid { background: var(--white); padding: 12px 12px 42px; border-radius: 4px; box-shadow: 0 12px 32px rgba(190, 24, 93, 0.08); width: clamp(160px, 40vw, 240px); position: relative; cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.polaroid:hover, .polaroid.mobile-hover { transform: translateY(-8px) scale(1.03) !important; z-index: 10; box-shadow: 0 20px 48px rgba(190, 24, 93, 0.15); }

.p-rotate-left { transform: rotate(-3deg); } .p-rotate-right { transform: rotate(3deg); } .p-center { transform: rotate(0deg); }

.polaroid-img-area { position: relative; overflow: hidden; background: var(--pink-mid); aspect-ratio: 1; border-radius: 4px; }
.polaroid-photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(0.95); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.polaroid:hover .polaroid-photo, .polaroid.mobile-hover .polaroid-photo { filter: saturate(1.15) contrast(1.05); transform: scale(1.05); }

/* Glass Sheen overlay for polaroids on hover */
.polaroid-img-area::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); transition: 0.6s; z-index: 2; pointer-events: none;}
.polaroid:hover .polaroid-img-area::after, .polaroid.mobile-hover .polaroid-img-area::after { left: 150%; transition: 0.8s ease-in-out; }

.polaroid-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease; z-index: 3;}
.polaroid:hover .polaroid-overlay, .polaroid.mobile-hover .polaroid-overlay { opacity: 0; }
.polaroid-overlay span { color: var(--pink-deep); font-size: 0.85rem; font-weight: 600; text-shadow: 0 2px 8px rgba(255,255,255,0.9); }
.polaroid-caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--text-dark); letter-spacing: 0.5px; transition: color 0.4s; }
.polaroid:hover .polaroid-caption, .polaroid.mobile-hover .polaroid-caption { color: var(--pink-deep); }


/* ============================================================
   SECTION 4: PERSONAL MESSAGE
   ============================================================ */
.section-message { position: relative; padding: 7rem 1rem; background: linear-gradient(150deg, #180924 0%, #25122b 50%, #11061c 100%); text-align: center; overflow: hidden; }
.message-blob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, rgba(236,72,153,0.06) 40%, transparent 70%); filter: blur(50px); pointer-events: none; }

.message-card { position: relative; z-index: 5; max-width: 720px; margin: 0 auto; background: rgba(30, 15, 35, 0.4); border: 1px solid rgba(249, 168, 212, 0.15); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4rem); backdrop-filter: blur(32px); box-shadow: 0 40px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05); transition: transform 0.5s ease, box-shadow 0.5s ease; }
.message-card:hover { transform: translateY(-4px); box-shadow: 0 50px 120px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(249, 168, 212, 0.2); }

.message-decor { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 2rem; font-size: 1.4rem; animation: floatDecor 4s infinite alternate;}
@keyframes floatDecor { from{transform:translateY(-2px);} to{transform:translateY(2px);} }
.message-decor:last-child { margin-top: 2.5rem; margin-bottom: 0; }
.msg-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(249,168,212,0.3), transparent); }

.message-title { font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 2.8rem); color: var(--pink-mid); margin-bottom: 2rem; font-weight: 500; letter-spacing: 0.5px; }

.message-body p { font-size: clamp(1rem, 3.5vw, 1.1rem); color: rgba(255,255,255,0.8); line-height: 1.9; margin-bottom: 1.5rem; text-align: left; font-weight: 300; }
.message-greeting { font-family: var(--font-cursive); font-size: clamp(1.8rem, 6vw, 2.2rem) !important; color: var(--gold-light) !important; text-align: center !important; margin-bottom: 2rem !important; }

.message-body .code-pill { color: var(--pink-bold); font-family: monospace; font-size: 0.95em; border: 1px solid rgba(244, 114, 182, 0.2); padding: 2px 8px; border-radius: 6px; background: rgba(244, 114, 182, 0.05); }
.message-body strong { color: var(--white); font-weight: 500; letter-spacing: 0.5px; }

.closing-line { text-align: center !important; margin-top: 2.5rem !important; font-size: 1.15rem !important; }
.chapter-line { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 6vw, 2.2rem) !important; color: var(--pink-mid) !important; text-align: center !important; margin: 1rem 0 0 0 !important; font-weight: 500; animation: pulseChapter 4s infinite alternate; }
@keyframes pulseChapter { from { filter: brightness(1); } to { filter: brightness(1.2) drop-shadow(0 0 12px rgba(249,168,212,0.3)); } }

/* ============================================================
   MINIMALIST FOOTER
   ============================================================ */
.footer { background: #0f0516; padding: 4rem 1rem; text-align: center; }
.footer-credit { font-family: var(--font-sans); font-size: 1.15rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; font-weight: 300; }
.heart-beat { display: inline-block; color: var(--pink-deep); margin: 0 4px; animation: heartBeat 1.4s infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1.05); } 45% { transform: scale(1.2); } }
.footer-date { font-size: 0.9rem; color: rgba(255,255,255,0.3); font-weight: 300; letter-spacing: 1.5px; text-transform: uppercase; }

/* ============================================================
   MOBILE SPECIFIC TWEAKS (IPHONE RESPONSIVE)
   ============================================================ */
@media (max-width: 500px) {
  body { width: 100%; overflow-x: hidden; }
  
  /* section specific scaling */
  .section-flowers { padding: 4rem 1rem; }
  .bouquet-img { max-width: 80vw; }
  
  .section-cake { padding: 4rem 1rem; }
  .section-cake .section-title { font-size: 2.8rem; }
  .cake-wrap { transform: scale(0.9); }
  
  .intro-content { width: 90%; padding: 2rem 1.5rem; }
  .intro-name { font-size: 4rem; }
  .intro-btn { font-size: 1.15rem; padding: 1rem 2rem; }

  /* Polaroids nicely stacked */
  .polaroid-grid { gap: 24px; padding: 0 1rem; }
  .polaroid { width: 100%; max-width: 280px; padding: 12px 12px 36px; }
  
  /* Message card */
  .message-card { padding: 2rem 1.2rem; border-radius: 16px; }
  .message-decor { gap: 8px; }
}

::selection { background: var(--pink-mid); color: var(--text-dark); }
