/* ==========================================================================
   ROMANTIC BIRTHDAY SURPRISE FOR MRUDHULA (SIRI ❤️ / COW 🐄)
   Design: Cinematic, Emotional, Elegant, Deeply Romantic & Modern
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Caveat:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Noto+Sans+Devanagari:wght@400;600&family=Noto+Sans+Kannada:wght@400;600;700&family=Noto+Sans+Tamil:wght@400;600&family=Noto+Sans+Telugu:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Warm, Rose, Cosmic Gold, Midnight Violet */
  --bg-deep: #0a0612;
  --bg-dark: #12091e;
  --bg-card: rgba(26, 15, 40, 0.65);
  --bg-card-hover: rgba(38, 22, 60, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 120, 160, 0.3);

  --rose-primary: #ff4d79;
  --rose-light: #ff7597;
  --rose-glow: rgba(255, 77, 121, 0.45);
  
  --gold-accent: #f5c76c;
  --gold-glow: rgba(245, 199, 108, 0.45);
  
  --violet-accent: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.35);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-highlight: #ffe4e9;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;
  --font-handwriting: 'Caveat', cursive;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background: radial-gradient(circle at 50% 0%, #200d33 0%, #0c0617 45%, #05020a 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

/* Ambient Canvas Layers */
#star-canvas, #petal-canvas, #fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#petal-canvas {
  z-index: 2;
}

#fireworks-canvas {
  z-index: 9999;
  display: none;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-primary), var(--gold-accent), var(--violet-accent));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--rose-glow);
}

/* Floating Controls Removed on Top Right */
.floating-controls {
  display: none !important;
}

/* CBSE Marksheet Certificate Card */
.marksheet-card-container {
  max-width: 550px;
  width: 100%;
  margin: 20px auto 30px;
}

.marksheet-polaroid {
  background: #ffffff;
  padding: 14px 14px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
  transform: rotate(-1.5deg);
  transition: var(--transition-smooth);
  border: 2px solid rgba(245, 199, 108, 0.4);
}

.marksheet-polaroid:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 25px 70px var(--gold-glow);
}

.marksheet-polaroid img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.marksheet-caption {
  text-align: center;
  margin-top: 12px;
  color: #1e293b;
}

.marksheet-caption strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #831843;
  display: block;
  margin-bottom: 4px;
}

.marksheet-caption p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
  height: 14px;
}

.audio-waves span {
  width: 3px;
  height: 4px;
  background: var(--rose-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-playing .audio-waves span:nth-child(1) { animation: wave 0.8s ease infinite alternate; }
.audio-playing .audio-waves span:nth-child(2) { animation: wave 1.1s ease infinite alternate 0.2s; }
.audio-playing .audio-waves span:nth-child(3) { animation: wave 0.9s ease infinite alternate 0.4s; }
.audio-playing .audio-waves span:nth-child(4) { animation: wave 1.2s ease infinite alternate 0.1s; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

.hidden-file-input {
  display: none;
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* Section Common Styling */
.story-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 45px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 77, 121, 0.12);
  border: 1px solid rgba(255, 77, 121, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 120, 160, 0.3);
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 24px;
  font-weight: 300;
}

.cinema-video {
  width: 100%;
  max-height: 520px;
  background: #000;
  display: block;
  border-radius: 16px 16px 0 0;
  outline: none;
}

/* Glassmorphism Story Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 77, 121, 0.08), transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(255, 120, 160, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--rose-glow);
}

/* ==========================================================================
   HERO / OPENING SCREEN
   ========================================================================== */
#hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-birthday-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(245, 199, 108, 0.2), rgba(255, 77, 121, 0.2));
  border: 1px solid var(--gold-accent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--gold-glow);
  animation: pulseBadge 2.5s infinite;
}

/* Hero First Page Photo */
.hero-photo-container {
  margin: 15px auto 25px;
  max-width: 260px;
  width: 100%;
  animation: heroFadeIn 1.4s 0.5s forwards ease-out;
  opacity: 0;
  transform: translateY(20px);
}

.hero-polaroid-card {
  background: #ffffff;
  padding: 10px 10px 16px;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--rose-glow);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}

.hero-polaroid-card:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 20px 60px var(--rose-glow);
}

.hero-polaroid-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 6px;
}

.hero-polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-top: 8px;
}

/* Chapter 5 Big Screen Cinema Frame */
.cinema-big-screen-box {
  width: 100%;
  max-width: 820px;
  margin: 25px auto 35px;
  position: relative;
}

.cinema-frame {
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 117, 151, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px var(--rose-glow);
  transition: var(--transition-smooth);
}

.cinema-frame:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px var(--gold-glow);
  transform: scale(1.02);
}

.cinema-img {
  width: 100%;
  max-height: 480px;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cinema-frame:hover .cinema-img {
  transform: scale(1.04);
}

.cinema-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(10, 6, 18, 0.92) 0%, rgba(10, 6, 18, 0.6) 60%, transparent 100%);
  padding: 35px 25px 20px;
  text-align: center;
}

.cinema-tag {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 6px;
  text-shadow: 0 0 15px var(--gold-glow);
}

.cinema-sub {
  font-size: 1rem;
  color: #ffe4e9;
  font-style: italic;
  line-height: 1.5;
}

/* Playlist Menu Styling */
.playlist-modal {
  position: fixed;
  top: 70px;
  right: 20px;
  background: rgba(20, 10, 32, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 117, 151, 0.35);
  border-radius: 20px;
  padding: 22px 20px;
  width: 320px;
  z-index: 1500;
  display: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--rose-glow);
  animation: modalPop 0.3s ease;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.playlist-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.playlist-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.playlist-item:hover, .playlist-item.active {
  background: rgba(255, 77, 121, 0.2);
  border-color: var(--rose-light);
  transform: translateX(4px);
}

.playlist-item-info {
  text-align: left;
}

.playlist-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.playlist-item-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.playlist-play-icon {
  font-size: 1rem;
  color: var(--rose-light);
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--gold-glow); }
  50% { transform: scale(1.04); box-shadow: 0 0 30px var(--gold-glow); }
}

.hero-whisper {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-style: italic;
  color: var(--rose-light);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s 0.3s forwards ease-out;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #ffe4e9 40%, #ff7597 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  text-shadow: 0 10px 40px rgba(255, 77, 121, 0.4);
  opacity: 0;
  transform: translateY(25px);
  animation: heroFadeIn 1.4s 0.8s forwards ease-out;
}

.hero-nickname {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--gold-accent);
  margin-bottom: 35px;
  text-shadow: 0 0 20px var(--gold-glow);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s 1.3s forwards ease-out;
}

.hero-quote {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
  margin: 0 auto 45px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s 1.8s forwards ease-out;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #ff4d79, #d92662);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 77, 121, 0.45);
  transition: var(--transition-bounce);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s 2.3s forwards ease-out;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 77, 121, 0.65);
}

.btn-primary span.arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover span.arrow {
  transform: translateX(6px);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECTION 1: THE UNEXPECTED BEGINNING
   ========================================================================== */
.story-paragraph {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.9;
  color: #e2e8f0;
  text-align: left;
  margin-bottom: 24px;
}

.story-quote-highlight {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--gold-accent);
  text-align: center;
  margin: 35px 0 10px;
  padding: 20px 30px;
  border-left: 3px solid var(--rose-primary);
  border-right: 3px solid var(--rose-primary);
  background: rgba(255, 77, 121, 0.05);
  border-radius: 16px;
}

/* ==========================================================================
   SECTION 2: MY SIRI ❤️ (INTERACTIVE ORB)
   ========================================================================== */
.siri-orb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0 40px;
  position: relative;
}

.siri-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7597, #b83280 50%, #4c1d95 100%);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 50px rgba(255, 77, 121, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.6);
  animation: orbPulse 4s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.siri-orb:hover {
  transform: scale(1.1);
}

.siri-orb-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 117, 151, 0.4);
  animation: orbRotate 16s linear infinite;
}

.siri-orb-ring-2 {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.25);
  animation: orbRotateRev 22s linear infinite;
}

@keyframes orbPulse {
  0% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 77, 121, 0.5); }
  100% { transform: scale(1.08); box-shadow: 0 0 70px rgba(255, 77, 121, 0.8), 0 0 100px rgba(168, 85, 247, 0.4); }
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.siri-orb-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.siri-interactive-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  max-width: 700px;
}

.siri-prompt-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 117, 151, 0.3);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.siri-prompt-btn:hover {
  background: rgba(255, 77, 121, 0.25);
  border-color: var(--rose-light);
  transform: translateY(-2px);
}

.siri-response-bubble {
  margin-top: 25px;
  background: rgba(45, 18, 65, 0.8);
  border: 1px solid var(--violet-accent);
  padding: 18px 26px;
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffe4e9;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 650px;
}

/* ==========================================================================
   SECTION 3: AND YES... MY COW 😂❤️
   ========================================================================== */
.cow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 10px;
}

.cow-avatar-box {
  width: 180px;
  height: 180px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cow-avatar-box:hover {
  transform: scale(1.12) rotate(-3deg);
}

.cow-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.cow-heart-pop {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 1.8rem;
  animation: heartFloat 2s infinite ease-in-out;
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}

.cow-quote-card {
  background: rgba(30, 20, 50, 0.7);
  border: 1px dashed rgba(245, 199, 108, 0.4);
  border-radius: 20px;
  padding: 24px 30px;
  max-width: 600px;
}

.cow-btn-moo {
  background: linear-gradient(135deg, #f5c76c, #eab308);
  color: #1e1b4b;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: transform 0.2s ease;
}

.cow-btn-moo:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   SECTION 4: MY SIMHA RASHI QUEEN ♌
   ========================================================================== */
.leo-celestial-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 240px;
  margin: 20px auto 30px;
  background: radial-gradient(ellipse at center, rgba(245, 199, 108, 0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leo-constellation-svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold-accent);
  fill: none;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.leo-traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 30px;
  width: 100%;
}

.leo-trait-card {
  background: rgba(245, 199, 108, 0.08);
  border: 1px solid rgba(245, 199, 108, 0.25);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.leo-trait-card:hover {
  background: rgba(245, 199, 108, 0.18);
  border-color: var(--gold-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--gold-glow);
}

.leo-trait-icon {
  font-size: 1.6rem;
}

.leo-trait-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION 5: WHAT YOU BECAME (KINETIC STEP-BY-STEP REVEAL)
   ========================================================================== */
.kinetic-lines-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 750px;
  margin: 30px auto 0;
}

.kinetic-line {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #cbd5e1;
  text-align: left;
  position: relative;
  transition: var(--transition-smooth);
  opacity: 0.6;
  transform: translateX(-15px);
}

.kinetic-line::before {
  content: '✦';
  color: var(--rose-primary);
  margin-right: 14px;
  font-size: 1.1rem;
}

.kinetic-line.active, .kinetic-line:hover {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 77, 121, 0.12);
  border-color: var(--rose-light);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 77, 121, 0.2);
}

/* ==========================================================================
   SECTION 6: OUR MEMORIES & VIDEOS GALLERY
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.gallery-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-tab.active, .gallery-tab:hover {
  background: var(--rose-primary);
  color: #fff;
  border-color: var(--rose-light);
  box-shadow: 0 4px 15px var(--rose-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}

/* Story Chapter Photo Badge */
.chapter-photo-showcase {
  margin: 25px auto 10px;
  max-width: 320px;
  width: 100%;
}

.chapter-polaroid {
  background: #ffffff;
  padding: 12px 12px 18px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.5deg);
  transition: var(--transition-smooth);
}

.chapter-polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 20px 50px var(--rose-glow);
}

.chapter-polaroid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

.chapter-polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-top: 10px;
}

/* Polaroid Card with Video Play Overlay */
.polaroid-card {
  background: #ffffff;
  padding: 12px 12px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  color: #1e293b;
  transform: rotate(var(--rot, 0deg));
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.polaroid-card:nth-child(even) { --rot: -2deg; }
.polaroid-card:nth-child(odd) { --rot: 2deg; }
.polaroid-card:nth-child(3n) { --rot: 1.5deg; }
.polaroid-card:nth-child(4n) { --rot: -1.8deg; }

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg) translateY(-8px);
  box-shadow: 0 20px 45px rgba(255, 77, 121, 0.35);
  z-index: 10;
}

.polaroid-media-box {
  width: 100%;
  height: 240px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.polaroid-media-box img, .polaroid-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-media-box img,
.polaroid-card:hover .polaroid-media-box video {
  transform: scale(1.08);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 77, 121, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.polaroid-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.18);
  background: #ff4d79;
}

.media-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-top: 14px;
  color: #334155;
  line-height: 1.3;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 6, 18, 0.95);
  backdrop-filter: blur(25px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 850px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-media {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffe4e9;
  margin-top: 18px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--rose-primary);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-nav-btn:hover { background: var(--rose-primary); transform: translateY(-50%) scale(1.1); }

/* ==========================================================================
   SECTION 7: A LETTER FOR YOU 💌 (WAX SEALED PARCHMENT)
   ========================================================================== */
.letter-envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 30px auto;
  perspective: 1000px;
}

.wax-envelope {
  background: linear-gradient(145deg, #2b1138, #180824);
  border: 2px solid rgba(255, 117, 151, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: var(--transition-smooth);
}

.wax-envelope:hover {
  border-color: var(--rose-light);
  box-shadow: 0 25px 60px var(--rose-glow);
}

.wax-seal {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 35% 35%, #e11d48, #9f1239 70%, #4c0519 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.4);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease;
}

.wax-envelope:hover .wax-seal {
  transform: scale(1.12) rotate(5deg);
}

.parchment-letter {
  background: #fdfbf7;
  color: #291b2c;
  padding: 50px 45px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(212, 175, 120, 0.25);
  border: 1px solid #e7dbc9;
  position: relative;
  text-align: left;
  display: none; /* revealed on seal click */
  animation: unfoldLetter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unfoldLetter {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-heading {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  color: #9f1239;
  margin-bottom: 20px;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.85;
  color: #2d1830;
  white-space: pre-line;
}

.letter-editable-box {
  outline: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.letter-editable-box[contenteditable="true"] {
  background: rgba(255, 77, 121, 0.08);
  border: 1px dashed var(--rose-primary);
}

.letter-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-letter-edit {
  background: transparent;
  border: 1px solid #9f1239;
  color: #9f1239;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-letter-edit:hover {
  background: #9f1239;
  color: #fff;
}

/* ==========================================================================
   SECTION 8: THINGS I LOVE ABOUT YOU (INTERACTIVE CARDS)
   ========================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 30px;
}

.reason-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.reason-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-primary), var(--gold-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.reason-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 117, 151, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(255, 77, 121, 0.25);
}

.reason-card:hover::after {
  transform: scaleX(1);
}

.reason-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.reason-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.reason-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.add-reason-card {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.add-reason-card:hover {
  border-color: var(--rose-light);
  background: rgba(255, 77, 121, 0.08);
}

/* ==========================================================================
   SECTION: THE THINGS I SECRETLY LOVE ABOUT YOU (2 YEARS)
   ========================================================================== */
.secret-loves-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: 950px;
  margin-top: 20px;
}

@media (max-width: 850px) {
  .secret-loves-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.two-years-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(245, 199, 108, 0.2), rgba(255, 77, 121, 0.2));
  border: 1px solid var(--gold-accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 16px;
  box-shadow: 0 0 15px var(--gold-glow);
}

.secret-confessions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.secret-confession-item {
  background: rgba(30, 15, 45, 0.7);
  border: 1px solid rgba(255, 117, 151, 0.2);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: left;
  transition: var(--transition-smooth);
}

.secret-confession-item:hover {
  background: rgba(45, 22, 65, 0.85);
  border-color: var(--rose-light);
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(255, 77, 121, 0.25);
}

.confession-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffe4e9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.confession-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.secret-photo-collage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.secret-photo-card-main {
  background: #ffffff;
  padding: 12px 12px 18px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}

.secret-photo-card-main:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 25px 60px var(--rose-glow);
}

.secret-photo-card-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.secret-photo-card-sub {
  background: #ffffff;
  padding: 10px 10px 14px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(3deg);
  width: 75%;
  align-self: flex-end;
  margin-top: -60px;
  z-index: 5;
  transition: var(--transition-smooth);
}

.secret-photo-card-sub:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 20px 50px var(--gold-glow);
  z-index: 10;
}

.secret-photo-card-sub img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* ==========================================================================
   SECTION 9: MULTILINGUAL PICKUP LINES & SWEET LOVE NOTES
   ========================================================================== */
.lang-selector-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.lang-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-tab.active, .lang-tab:hover {
  background: linear-gradient(135deg, var(--violet-accent), var(--rose-primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--violet-glow);
}

.lang-content-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 35px 30px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.pickup-line-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
  text-align: left;
  transition: var(--transition-smooth);
}

.pickup-line-card:last-child {
  margin-bottom: 0;
}

.pickup-line-card:hover {
  border-color: var(--rose-light);
  background: rgba(255, 77, 121, 0.08);
}

.pickup-native-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffe4e9;
  line-height: 1.6;
  margin-bottom: 8px;
}

.pickup-trans-text {
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 14px;
}

.pickup-actions {
  display: flex;
  gap: 12px;
}

.btn-pickup-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-pickup-action:hover {
  background: var(--rose-primary);
  border-color: var(--rose-light);
}

/* ==========================================================================
   FINAL SECTION: BIRTHDAY WISH & CAKE 🎂
   ========================================================================== */
.final-climax-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.cake-stage {
  margin: 40px auto;
  position: relative;
  width: 220px;
  height: 200px;
  cursor: pointer;
}

.cake-layer-top {
  position: absolute;
  bottom: 80px;
  left: 35px;
  width: 150px;
  height: 60px;
  background: linear-gradient(135deg, #ff7597, #f43f5e);
  border-radius: 20px 20px 10px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cake-layer-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 200px;
  height: 80px;
  background: linear-gradient(135deg, #ffe4e9, #fbcfe8);
  border-radius: 25px 25px 12px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.cake-candle {
  position: absolute;
  top: 25px;
  left: 102px;
  width: 16px;
  height: 40px;
  background: repeating-linear-gradient(45deg, #f5c76c, #f5c76c 6px, #ef4444 6px, #ef4444 12px);
  border-radius: 4px;
  z-index: 5;
}

.candle-flame {
  position: absolute;
  top: -24px;
  left: 1px;
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #ffedd5, #f59e0b 60%, #ef4444 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 20px #f59e0b, 0 0 40px #ef4444;
  animation: flameFlicker 1s infinite alternate ease-in-out;
  transform-origin: bottom center;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(3deg); }
}

.cake-instruction {
  font-size: 0.95rem;
  color: var(--gold-accent);
  margin-top: 15px;
  font-weight: 500;
}

.climax-quotes {
  margin: 35px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.climax-line-1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
}

.climax-line-2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--rose-light);
}

.climax-line-3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-accent);
  text-shadow: 0 0 25px var(--gold-glow);
}

.climax-line-4 {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.climax-line-5 {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: var(--rose-primary);
  margin-top: 10px;
}

.btn-secret-surprise {
  background: linear-gradient(135deg, #f5c76c, #f43f5e);
  color: #fff;
  border: none;
  padding: 16px 42px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(244, 63, 94, 0.5);
  transition: var(--transition-bounce);
  margin-top: 25px;
}

.btn-secret-surprise:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 45px rgba(244, 63, 94, 0.8);
}

/* ==========================================================================
   SECRET MODAL / LOVE CAPSULE
   ========================================================================== */
.secret-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 4, 15, 0.95);
  backdrop-filter: blur(25px);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.secret-modal-card {
  background: radial-gradient(circle at center, #261138 0%, #12071f 100%);
  border: 1px solid rgba(255, 117, 151, 0.35);
  border-radius: 28px;
  padding: 45px 36px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px var(--rose-glow);
  position: relative;
  animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.secret-badge {
  font-size: 3rem;
  margin-bottom: 12px;
}

.secret-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-accent);
  margin-bottom: 16px;
}

.secret-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 25px;
  text-align: left;
}

/* Footer Note */
.site-footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .floating-controls {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
  
  .control-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .main-wrapper {
    padding: 0 16px 80px;
  }

  .story-section {
    padding: 60px 0;
    min-height: auto;
  }

  .glass-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .parchment-letter {
    padding: 30px 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }
}
