/* ============================================================
   BIRTHDAY WEBSITE — styles.css
   Color Palette:
     Primary:    #FF4D6D  (birthday pink)
     Secondary:  #FFD166  (warm yellow)
     Background: #0F172A  (dark navy)
     Accent:     #22C55E  (green)
   ============================================================ */

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

:root {
  --pink:        #FF4D6D;
  --pink-light:  #ff8fa3;
  --yellow:      #FFD166;
  --navy:        #0F172A;
  --navy2:       #1E293B;
  --green:       #22C55E;
  --purple:      #a78bfa;
  --white:       #F8FAFC;
  --glass:       rgba(255,255,255,0.06);
  --glass-border:rgba(255,255,255,0.12);
  --glow-pink:   0 0 40px rgba(255,77,109,0.35);
  --glow-yellow: 0 0 40px rgba(255,209,102,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }
.active { display: flex !important; }

/* Side floaters hidden until main site is revealed */
#side-floaters { display: none; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
#landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(167,139,250,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,77,109,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at center, #1a0a2e 0%, #0F172A 70%);
  flex-direction: column;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#landing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/backgrond.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(2px) saturate(1.4);
}

#landing > * {
  position: relative;
  z-index: 1;
}

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

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

/* Glowing ring behind the gift icon */
.gift-icon {
  font-size: 4.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,77,109,0.6));
  position: relative;
}

.gift-icon::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,109,0.2) 0%, transparent 70%);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%       { transform: scale(1.3); opacity: 0.3; }
}

.landing-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--pink-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.landing-sub {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(248,250,252,0.75);
  font-weight: 300;
}

.landing-hint {
  font-size: 0.95rem;
  color: rgba(248,250,252,0.45);
  margin-top: -0.4rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-main {
  margin-top: 1.5rem;
  padding: 1rem 2.8rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--pink), #c9184a, var(--pink));
  background-size: 200% auto;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255,77,109,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: shimmerBtn 3s linear infinite;
  position: relative;
  overflow: hidden;
}

.btn-main::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes shimmerBtn {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.btn-main:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 0 55px rgba(255,77,109,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--yellow), #f4a261, var(--yellow));
  background-size: 200% auto;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 0 25px rgba(255,209,102,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: shimmerBtn 3s linear infinite;
}

.btn-secondary:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 0 45px rgba(255,209,102,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,77,109,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.6s ease forwards;
}

/* Subtle pink glow line at the bottom of navbar */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,109,0.5), rgba(255,209,102,0.5), transparent);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: rgba(248,250,252,0.65);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.music-btn {
  background: var(--glass);
  border: 1px solid rgba(255,77,109,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(255,77,109,0.15);
}

.music-btn:hover {
  background: rgba(255,77,109,0.15);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,77,109,0.35);
}
.music-btn.playing { animation: spin 4s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  min-height: 100vh;
  padding: 7rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: rgba(248,250,252,0.6);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167,139,250,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255,77,109,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 30%, #2d0a3e 0%, var(--navy) 65%);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/backgrond.jpeg');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  filter: blur(2px) saturate(1.4);
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

#confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 1s ease forwards;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  background: rgba(255,77,109,0.12);
  border: 1px solid rgba(255,77,109,0.4);
  font-size: 0.85rem;
  color: var(--pink-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(255,77,109,0.15);
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 0 60px rgba(255,77,109,0.2);
}

.name-highlight {
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--pink-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255,77,109,0.4));
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(248,250,252,0.7);
  line-height: 1.8;
  max-width: 500px;
}

.hero-emojis {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
  margin-top: 0.5rem;
}

.hero-emojis span {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,209,102,0.4));
}
.hero-emojis span:nth-child(2) { animation-delay: 0.4s; }
.hero-emojis span:nth-child(3) { animation-delay: 0.8s; }
.hero-emojis span:nth-child(4) { animation-delay: 1.2s; }
.hero-emojis span:nth-child(5) { animation-delay: 1.6s; }

/* Floating background shapes */
.floating-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: floatShape 8s ease-in-out infinite;
  filter: blur(40px);
}

.s1 { width: 350px; height: 350px; background: var(--pink);   top: -80px;  left: -80px;  animation-delay: 0s; }
.s2 { width: 250px; height: 250px; background: var(--yellow); bottom: 10%; right: -60px; animation-delay: 2s; }
.s3 { width: 180px; height: 180px; background: var(--purple); top: 40%;    left: 5%;     animation-delay: 4s; }
.s4 { width: 300px; height: 300px; background: var(--pink);   bottom: -60px; left: 40%;  animation-delay: 1s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ============================================================
   WISHES SECTION
   ============================================================ */
.wishes-section {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255,77,109,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(167,139,250,0.08) 0%, transparent 50%),
    var(--navy2);
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
}

.wish-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer sweep on hover */
.wish-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s ease;
}

.wish-card:hover::before { left: 150%; }

.wish-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(255,77,109,0.25), 0 0 0 1px rgba(255,77,109,0.2);
  background: rgba(255,77,109,0.07);
  border-color: rgba(255,77,109,0.35);
}

.wish-avatar {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,209,102,0.3));
}

.wish-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.wish-preview {
  font-size: 0.8rem;
  color: rgba(248,250,252,0.45);
}

.wish-tap {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--pink-light);
  font-weight: 500;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: linear-gradient(145deg, #1e1040 0%, #1a1535 50%, #1E293B 100%);
  border: 1px solid rgba(255,77,109,0.25);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  box-shadow:
    0 30px 80px rgba(255,77,109,0.2),
    0 0 0 1px rgba(255,77,109,0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Glowing top edge */
.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,109,0.6), rgba(255,209,102,0.6), transparent);
  border-radius: 1px;
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: rgba(255,77,109,0.3);
  transform: rotate(90deg);
}

.modal-avatar {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(255,209,102,0.4));
}

.modal-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.modal-message {
  color: rgba(248,250,252,0.85);
  font-size: 1rem;
  line-height: 1.9;
  font-style: italic;
}

.modal-hearts {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  letter-spacing: 0.3rem;
  animation: float 2s ease-in-out infinite;
}

/* ============================================================
   MEMORIES SECTION
   ============================================================ */
.memories-section {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(167,139,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, #1a0a2e 0%, var(--navy) 70%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.polaroid {
  background: #fff;
  padding: 12px 12px 44px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  transform: rotate(var(--rot));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s;
  cursor: pointer;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.08) translateY(-6px);
  box-shadow: 0 25px 60px rgba(255,77,109,0.35), 0 0 0 2px rgba(255,77,109,0.2);
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  background: linear-gradient(135deg, #2d1b69, #1e3a5f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.polaroid-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #2d1b69, #1e3a5f);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.polaroid-caption {
  text-align: center;
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: #444;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   SURPRISE SECTION
   ============================================================ */
.surprise-section {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(255,77,109,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(167,139,250,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at center, #2d0a3e 0%, var(--navy) 70%);
  text-align: center;
}

.surprise-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
  padding: 3rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,77,109,0.15);
  border-radius: 32px;
  box-shadow:
    0 0 80px rgba(255,77,109,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

/* Glowing top edge on surprise card */
.surprise-content::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,109,0.5), rgba(255,209,102,0.5), transparent);
}

.surprise-icon {
  font-size: 4.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,209,102,0.5));
}

.surprise-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 0 40px rgba(255,77,109,0.2);
}

.surprise-text {
  font-size: 1.1rem;
  color: rgba(248,250,252,0.7);
  line-height: 1.8;
}

.surprise-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--yellow), transparent);
  border-radius: 2px;
}

.surprise-final {
  font-size: 1.2rem;
  color: rgba(248,250,252,0.8);
  line-height: 2;
}

.surprise-hbd {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--pink-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255,77,109,0.3));
}

.surprise-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--yellow);
  display: block;
  text-shadow: 0 0 20px rgba(255,209,102,0.4);
}

.balloon-row {
  display: flex;
  gap: 1rem;
  font-size: 2.5rem;
  margin-top: 1rem;
}

.balloon {
  animation: floatBalloon 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,77,109,0.4));
}
.balloon:nth-child(2) { animation-delay: 0.3s; }
.balloon:nth-child(3) { animation-delay: 0.6s; }
.balloon:nth-child(4) { animation-delay: 0.9s; }
.balloon:nth-child(5) { animation-delay: 1.2s; }

@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-18px) rotate(5deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0,0,0,0.4);
  color: rgba(248,250,252,0.4);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,77,109,0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,109,0.3), rgba(255,209,102,0.3), transparent);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ============================================================
   TYPEWRITER CURSOR
   ============================================================ */
.typewriter::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--pink);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   SIDE FLOATERS — balloons & hearts rising on both sides
   ============================================================ */

/* Container sits fixed over everything, pointer-events off so it never blocks clicks */
.side-floaters {
  position: fixed;
  inset: 0;
  z-index: 400;          /* below navbar (500) but above sections */
  pointer-events: none;
  overflow: hidden;
}

/* Each floater rises from the bottom, fades in/out, sways gently */
.floater {
  position: absolute;
  bottom: -10%;
  left: var(--x);
  font-size: var(--size, 1.2rem);
  opacity: 0;
  animation: riseFloat var(--dur, 7s) ease-in var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 6px rgba(255,77,109,0.5));
  will-change: transform, opacity;
}

/* Hearts get a slightly different tint glow */
.heart-floater {
  filter: drop-shadow(0 0 5px rgba(255,100,150,0.6));
}

@keyframes riseFloat {
  0%   { transform: translateY(0)    translateX(0)      rotate(0deg);   opacity: 0;   }
  8%   { opacity: 0.9; }
  40%  { transform: translateY(-40vh) translateX(12px)  rotate(8deg);   opacity: 0.8; }
  70%  { transform: translateY(-75vh) translateX(-10px) rotate(-6deg);  opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-110vh) translateX(5px)  rotate(4deg);   opacity: 0;   }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--pink-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255,77,109,0.6);
}

/* ============================================================
   FIREWORKS CANVAS
   ============================================================ */
#fireworks-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #c9184a);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,77,109,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 600;
  overflow: hidden;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 6px 30px rgba(255,77,109,0.6);
  transform: translateY(-3px);
}

/* ============================================================
   RIPPLE EFFECT
   ============================================================ */
.btn-main, .btn-secondary, .back-to-top { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.4);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}

/* ============================================================
   ENVELOPE WISH CARDS
   ============================================================ */
.envelope-wrap {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.envelope {
  width: 90px; height: 64px;
  position: relative;
  transition: transform 0.4s ease;
}

.envelope-body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ff8fa3, #FFD166);
  border-radius: 2px 2px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 12px rgba(255,77,109,0.3);
}

.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, #FF4D6D, #ff8fa3);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.4s ease;
  z-index: 2;
  border-radius: 2px 2px 0 0;
}

/* Flap opens on card hover/opening */
.wish-card:hover .envelope-flap,
.wish-card.opening .envelope-flap {
  transform: rotateX(180deg);
}
.wish-card:hover .envelope,
.wish-card.opening .envelope {
  transform: translateY(-4px);
}

/* ============================================================
   HEART BURST (modal open)
   ============================================================ */
.heart-burst {
  position: absolute;
  top: 50%; left: 50%;
  pointer-events: none;
  animation: heartBurstAnim 0.9s ease-out forwards;
  z-index: 10;
}
@keyframes heartBurstAnim {
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}

/* ============================================================
   AGE COUNTER
   ============================================================ */
.age-reveal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.age-label {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(248,250,252,0.75);
  font-weight: 400;
}

.age-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  filter: drop-shadow(0 0 30px rgba(255,77,109,0.5));
  transition: transform 0.3s;
}

.age-number.age-pop {
  animation: agePop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes agePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ============================================================
   HANDWRITTEN BIRTHDAY TEXT
   ============================================================ */
.surprise-hbd-cursive {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--pink-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,77,109,0.4));
  line-height: 1.2;
}

/* ============================================================
   SHOOTING STARS CANVAS (surprise section)
   ============================================================ */
#shooting-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.surprise-content { position: relative; z-index: 1; }

/* ============================================================
   SECTION ENTRANCE ANIMATIONS
   ============================================================ */
.section-header {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-header.in-view {
  opacity: 1;
  transform: translateY(0);
}



/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }


.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--glass);
  border: 1px solid rgba(255,77,109,0.25);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger:hover {
  background: rgba(255,77,109,0.15);
  box-shadow: 0 0 20px rgba(255,77,109,0.3);
}

/* Animate to X when active */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
}

.mobile-nav-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.mobile-nav-drawer {
  width: min(280px, 80vw);
  height: 100%;
  background: linear-gradient(160deg, #1e1040 0%, #1E293B 100%);
  border-left: 1px solid rgba(255,77,109,0.2);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  animation: slideInRight 0.3s cubic-bezier(0.34,1.2,0.64,1) forwards;
  position: relative;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.mobile-nav-close:hover {
  background: rgba(255,77,109,0.3);
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: rgba(248,250,252,0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(255,77,109,0.1);
  border-color: rgba(255,77,109,0.25);
  color: var(--white);
  transform: translateX(4px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-img-wrap {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(255,77,109,0.25);
  transition: opacity 0.2s ease;
}

.lightbox-img--loading {
  opacity: 0.3;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,77,109,0.4);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover { background: rgba(255,77,109,0.3); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { background: rgba(255,77,109,0.3); transform: translateY(-50%) scale(1.1); }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.7);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-link   { font-size: 0.85rem; }
  .wishes-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .navbar { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .section    { padding: 6rem 1rem 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}
