/* 
   style.css
   Personalized 18th Birthday Website — "Kavya's World"
   Luxury Black & Metallic Gold Theme Edition
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=Reenie+Beanie&display=swap');

/* --- Custom Variables & Theme System --- */
:root {
  /* Black & Luxury Gold Palette */
  --gold-primary: #D4AF37;
  --gold-bright: #FFD700;
  --gold-light: #FFF099;
  --gold-soft: #F3E5AB;
  --gold-dark: #AA771C;
  --gold-deep: #855912;
  
  /* Text Gradients & Shadows */
  --gold-text-gradient: linear-gradient(135deg, #FFF5C0 0%, #FFD700 30%, #D4AF37 60%, #AA771C 100%);
  --gold-shimmer-gradient: linear-gradient(90deg, #D4AF37, #FFF5C0, #FFD700, #AA771C, #D4AF37);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.4);
  --gold-glow-subtle: 0 0 15px rgba(212, 175, 55, 0.2);
  
  /* Surface Colors */
  --color-bg-dark: #050505;
  --color-bg-pure-black: #000000;
  --color-card-bg: rgba(18, 18, 18, 0.85);
  --color-card-border: rgba(212, 175, 55, 0.35);
  
  /* Font Stacks */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --font-handwritten: 'Reenie Beanie', cursive;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s ease;
}

/* --- Base & Scroll Settings --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-pure-black);
  color: var(--gold-soft);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--gold-soft);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--color-bg-pure-black);
  -webkit-font-smoothing: antialiased;
}

/* Custom Gold Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
  border-radius: 4px;
}

/* --- Reveal-on-Scroll Core Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Golden Text Utilities --- */
.gold-text, h1, h2, h3, .hero-title span, .garden-tag, .music-tag, .library-tag, .gallery-tag, .adult-tag, .voices-tag, .quiz-tag {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* --- Persistent Global Audio Toggle Player --- */
.audio-player-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.25);
  transition: var(--transition-smooth);
}

.audio-player-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
  background: rgba(22, 22, 22, 0.95);
}

/* --- Fixed Instagram Widget --- */
.instagram-widget {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.25);
  color: var(--gold-soft);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-widget svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-bright);
  transition: transform 0.3s ease;
}

.instagram-widget:hover {
  color: #000;
  background: var(--gold-text-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.instagram-widget:hover svg {
  color: #000;
  transform: scale(1.15) rotate(-5deg);
}

.audio-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: var(--transition-quick);
  outline: none;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.audio-btn svg {
  width: 16px;
  height: 16px;
  fill: #000;
}

.audio-info {
  display: flex;
  flex-direction: column;
  max-width: 140px;
}

.song-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 0.65rem;
  color: var(--gold-soft);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sound Wave Animation */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 4px;
}

.sound-waves span {
  width: 2px;
  background: var(--gold-bright);
  border-radius: 1px;
  height: 3px;
  transition: height 0.3s ease;
}

.audio-player-widget.playing .sound-waves span {
  animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.audio-player-widget.playing .sound-waves span:nth-child(1) { animation-delay: 0.1s; }
.audio-player-widget.playing .sound-waves span:nth-child(2) { animation-delay: 0.4s; }
.audio-player-widget.playing .sound-waves span:nth-child(3) { animation-delay: 0.2s; }
.audio-player-widget.playing .sound-waves span:nth-child(4) { animation-delay: 0.5s; }

@keyframes waveBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* --- Section Formatting System --- */
section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 90px 24px;
  overflow: hidden;
  background-color: var(--color-bg-pure-black);
}

.section-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  z-index: 10;
}

/* --- Golden Corner Floral Accents (Matching Image 2 Reference) --- */
.hero-corner-floral {
  position: absolute;
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.hero-corner-floral.top-left {
  top: 0;
  left: 0;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.25) 0%, transparent 70%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M10,10 Q60,10 90,40 T150,110 T190,190" stroke="%23D4AF37" stroke-width="1.5" opacity="0.6"/><circle cx="40" cy="40" r="15" stroke="%23FFD700" stroke-width="1" fill="none"/><circle cx="90" cy="80" r="22" stroke="%23D4AF37" stroke-width="1" fill="none"/><path d="M30,30 Q50,10 70,30" stroke="%23FFF099" stroke-width="1"/></svg>') no-repeat top left;
  background-size: cover;
}

.hero-corner-floral.bottom-right {
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.25) 0%, transparent 70%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M190,190 Q140,190 110,160 T50,90 T10,10" stroke="%23D4AF37" stroke-width="1.5" opacity="0.6"/><circle cx="160" cy="160" r="15" stroke="%23FFD700" stroke-width="1" fill="none"/><circle cx="110" cy="120" r="22" stroke="%23D4AF37" stroke-width="1" fill="none"/><path d="M170,170 Q150,190 130,170" stroke="%23FFF099" stroke-width="1"/></svg>') no-repeat bottom right;
  background-size: cover;
}

/* --- 1. HERO SECTION --- */
#hero {
  background: radial-gradient(circle at center, #111111 0%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  z-index: 5;
  max-width: 700px;
}

.hero-title-wrapper {
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(50px);
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.hero-title span {
  font-style: italic;
  font-weight: 700;
  background: var(--gold-shimmer-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gold-soft);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-quick);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.scroll-indicator-arrow {
  width: 24px;
  height: 24px;
  fill: currentColor;
  animation: bounce 2s infinite;
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}


/* --- 2. FLOWER GARDEN SECTION (Golden Rose) --- */
#flower-garden {
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.garden-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .garden-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

.garden-content {
  text-align: left;
}

.garden-tag {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 12px;
  display: block;
}

.garden-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 24px;
}

.garden-text {
  font-size: 1.08rem;
  color: var(--gold-soft);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.8;
}

.garden-text strong {
  font-weight: 600;
  color: var(--gold-bright);
}

/* Metallic Golden Rose Animation */
.garden-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 320px;
}

.rose-container {
  --rose-gold-light: #FFF5C0;
  --rose-gold: #FFD700;
  --rose-gold-mid: #D4AF37;
  --rose-gold-dark: #AA771C;
  --rose-gold-deep: #5A3D06;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 250px;
  width: 150px;
  animation: roseSway 5s ease-in-out infinite alternate;
}

.rose-stem {
  width: 5px;
  height: 160px;
  background: linear-gradient(to top, #3A2B05, #AA771C, #D4AF37);
  border-radius: 4px;
  position: absolute;
  bottom: 0;
  left: calc(50% - 2.5px);
  z-index: 1;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.rose-leaf {
  width: 44px;
  height: 24px;
  background: linear-gradient(to right, #4A3606, #D4AF37);
  border-radius: 44px 0;
  position: absolute;
  top: 50px;
  left: -41px;
  transform-origin: right bottom;
  transform: rotate(-20deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

.rose-leaf.right {
  border-radius: 0 44px;
  left: auto;
  right: -41px;
  transform: rotate(20deg);
  top: 80px;
  background: linear-gradient(to left, #4A3606, #D4AF37);
}

/* Thorns */
.rose-thorn {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 2;
}

.rose-thorn.left {
  left: -7px;
  top: 25px;
  border-width: 0 7px 9px 0;
  border-color: transparent #D4AF37 transparent transparent;
  transform: rotate(-15deg);
}

.rose-thorn.right {
  right: -7px;
  top: 65px;
  border-width: 0 0 9px 7px;
  border-color: transparent transparent transparent #D4AF37;
  transform: rotate(15deg);
}

.rose-head {
  position: absolute;
  top: 15px;
  left: calc(50% - 42px);
  width: 84px;
  height: 84px;
  z-index: 2;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.rose-petal {
  position: absolute;
  background: linear-gradient(135deg, var(--rose-gold-light) 0%, var(--rose-gold) 50%, var(--rose-gold-mid) 100%);
  border-radius: 50%;
  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.6), inset -2px -2px 6px rgba(0, 0, 0, 0.6), 0 3px 10px rgba(212, 175, 55, 0.3);
  transform-origin: center bottom;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Outer Petals */
.rose-petal.petal-1 {
  width: 80px; height: 80px; left: 2px; top: 2px;
  border-radius: 50% 50% 60% 60%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(0deg); z-index: 10;
}

.rose-petal.petal-2 {
  width: 76px; height: 76px; left: 4px; top: 4px;
  border-radius: 55% 45% 55% 45%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(72deg); z-index: 9;
}

.rose-petal.petal-3 {
  width: 76px; height: 76px; left: 4px; top: 4px;
  border-radius: 45% 55% 45% 55%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(144deg); z-index: 8;
}

.rose-petal.petal-4 {
  width: 76px; height: 76px; left: 4px; top: 4px;
  border-radius: 50% 50% 55% 45%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(216deg); z-index: 7;
}

.rose-petal.petal-5 {
  width: 76px; height: 76px; left: 4px; top: 4px;
  border-radius: 50% 50% 45% 55%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(288deg); z-index: 6;
}

/* Inner Petals */
.rose-petal.inner-1 {
  width: 58px; height: 58px; left: 13px; top: 13px;
  border-radius: 50% 50% 60% 60%;
  background: linear-gradient(135deg, var(--rose-gold-light) 0%, var(--rose-gold) 50%, var(--rose-gold-mid) 100%);
  transform: rotate(36deg); z-index: 15;
}

.rose-petal.inner-2 {
  width: 55px; height: 55px; left: 14px; top: 14px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(108deg); z-index: 14;
}

.rose-petal.inner-3 {
  width: 52px; height: 52px; left: 15px; top: 15px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(180deg); z-index: 13;
}

.rose-petal.inner-4 {
  width: 50px; height: 50px; left: 16px; top: 16px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-mid) 60%, var(--rose-gold-dark) 100%);
  transform: rotate(252deg); z-index: 12;
}

.rose-center {
  width: 30px; height: 30px;
  background: radial-gradient(circle at center, var(--rose-gold-deep) 0%, var(--rose-gold-dark) 70%, var(--rose-gold-mid) 100%);
  border-radius: 50%;
  position: absolute; left: 27px; top: 27px; z-index: 20;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.rose-container:hover .rose-head {
  transform: scale(1.08) translateY(-5px);
}

@keyframes roseSway {
  0% { transform: rotate(-4deg) translateY(0); }
  100% { transform: rotate(4deg) translateY(-4px); }
}


/* --- 3. MUSIC CORNER SECTION --- */
#music-corner {
  background: radial-gradient(circle at center, #0e0e0e 0%, #000000 100%);
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.music-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 768px) {
  .music-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
  }
}

.music-content {
  text-align: left;
}

.music-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.now-playing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.now-playing-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.now-playing-artist {
  font-size: 1rem;
  color: var(--gold-soft);
  opacity: 0.8;
  margin-bottom: 24px;
  font-weight: 300;
}

/* Vinyl Player CSS */
.vinyl-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 320px;
}

.vinyl-player {
  width: 250px;
  height: 250px;
  background: #0d0d0d;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-disc {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #222222,
    #111111 4px,
    #222222 5px
  );
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.playing .vinyl-disc {
  animation: spinVinyl 5s linear infinite;
}

.vinyl-label {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-text-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #000;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.vinyl-label-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
}

/* Tone Arm */
.tone-arm {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 120px;
  transform-origin: 50px 15px;
  transform: rotate(-30deg);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 4;
}

.playing .tone-arm {
  transform: rotate(0deg);
}

.tone-arm-base {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 15px;
  border: 2px solid var(--gold-bright);
}

.tone-arm-shaft {
  width: 6px;
  height: 100px;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold-primary));
  position: absolute;
  top: 15px;
  right: 27px;
  border-radius: 3px;
  transform-origin: center top;
}

.tone-arm-head {
  width: 12px;
  height: 24px;
  background: var(--gold-dark);
  position: absolute;
  bottom: -15px;
  right: 24px;
  border-radius: 2px;
  border: 1px solid var(--gold-bright);
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Stylized Music Waveform */
.music-waveform {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  width: 100%;
  max-width: 320px;
  margin-top: 20px;
}

.music-waveform-bar {
  width: 4px;
  background: rgba(212, 175, 55, 0.25);
  border-radius: 2px;
  height: 10%;
  transition: height 0.15s ease, background 0.3s ease;
}

.playing .music-waveform-bar {
  background: var(--gold-text-gradient);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  animation: audioPulse 1s ease-in-out infinite alternate;
}

.playing .music-waveform-bar:nth-child(even) { animation-duration: 0.7s; }
.playing .music-waveform-bar:nth-child(3n) { animation-duration: 1.2s; }

@keyframes audioPulse {
  0% { height: 10%; }
  100% { height: 100%; }
}


/* --- 4. LIBRARY SECTION --- */
#library {
  background: radial-gradient(ellipse at center, #0d0d0d 0%, #000000 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.library-book-wrapper {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  position: relative;
}

.quote-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 20px 0;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--gold-light);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}

.quote-author {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

.library-divider {
  width: 100px;
  height: 1px;
  background: var(--gold-text-gradient);
  margin: 40px auto;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.book-recommendation {
  text-align: center;
  font-size: 1rem;
  color: var(--gold-soft);
  opacity: 0.9;
  font-weight: 300;
}

.book-recommendation strong {
  font-family: var(--font-serif);
  color: var(--gold-bright);
  font-style: italic;
  font-size: 1.15rem;
}


/* --- 5. DREAM GALLERY SECTION (Golden Polaroid Scrapbook - Matching Image 1 Reference) --- */
#dream-gallery {
  background: radial-gradient(circle at center, #0c0c0c 0%, #000000 100%);
  padding-bottom: 120px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 60px;
}

/* Scrapbook moodboard layout */
.scrapbook-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  justify-items: center;
  padding: 20px 0;
}

@media (min-width: 640px) {
  .scrapbook-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
  }
}

@media (min-width: 992px) {
  .scrapbook-board {
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
  }
}

/* Golden Polaroid Card Style (Matching Image 1 Reference) */
.polaroid-card {
  background: #0d0d0d;
  padding: 16px 16px 28px 16px;
  width: 260px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.25);
  border: 2px solid var(--gold-primary);
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  cursor: pointer;
}

@media (min-width: 640px) {
  .polaroid-card:nth-child(1) { transform: rotate(-3deg) translateY(0); }
  .polaroid-card:nth-child(2) { transform: rotate(4deg) translateY(15px); }
  .polaroid-card:nth-child(3) { transform: rotate(-2deg) translateY(-10px); }
  .polaroid-card:nth-child(4) { transform: rotate(3deg) translateY(5px); }
  .polaroid-card:nth-child(5) { transform: rotate(-4deg) translateY(20px); }
  .polaroid-card:nth-child(6) { transform: rotate(2deg) translateY(-5px); }
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-10px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 1), 0 0 30px rgba(255, 215, 0, 0.5);
  border-color: var(--gold-bright);
  z-index: 20;
}

.polaroid-image-wrapper {
  width: 100%;
  height: 210px;
  background: #111;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

.polaroid-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.polaroid-card:hover .polaroid-image-wrapper img {
  transform: scale(1.08);
}

/* Gold Tape Decoration */
.polaroid-tape {
  position: absolute;
  top: -15px;
  left: calc(50% - 40px);
  width: 80px;
  height: 24px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(212, 175, 55, 0.6));
  backdrop-filter: blur(4px);
  border: 1px dashed var(--gold-bright);
  transform: rotate(-2deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.polaroid-card:nth-child(even) .polaroid-tape {
  transform: rotate(3deg);
}

.polaroid-caption {
  font-family: var(--font-handwritten);
  font-size: 1.7rem;
  color: var(--gold-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}


/* --- 6. WELCOME TO ADULTHOOD --- */
#adulthood {
  background: radial-gradient(ellipse at center, #0e0e0e 0%, #000000 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.adult-title-container {
  text-align: center;
  margin-bottom: 50px;
}

.adult-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
}

.adult-list {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adult-item {
  background: rgba(18, 18, 18, 0.9);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adult-item:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 8px 30px rgba(0,0,0,0.9), 0 0 20px rgba(212, 175, 55, 0.3);
}

.adult-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.adult-checkbox {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-quick);
}

.adult-item.revealed .adult-checkbox {
  background: var(--gold-text-gradient);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.adult-checkbox-tick {
  width: 8px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 2px;
}

.adult-item.revealed .adult-checkbox-tick {
  opacity: 1;
}

.adult-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adult-item-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold-light);
}

.adult-item-desc {
  font-size: 0.95rem;
  color: var(--gold-soft);
  opacity: 0.85;
  font-weight: 300;
}


/* --- 7. VOICES SECTION (Golden Sticky Notes) --- */
#voices {
  background: radial-gradient(circle at center, #090909 0%, #000000 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.voices-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 60px;
}

#voices .section-container {
  max-width: 1100px;
}

.voices-board {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
  justify-items: center;
  padding: 20px 0;
}

@media (min-width: 600px) {
  .voices-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .voices-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Luxury Black & Gold Sticky Card Style */
.sticky-note {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 26px 22px 32px 22px;
  width: 100%;
  min-height: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sticky-note:hover {
  transform: scale(1.03) translateY(-5px) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 25px rgba(255, 215, 0, 0.4);
  border-color: var(--gold-bright);
  z-index: 10;
}

.sticky-pin {
  width: 60px;
  height: 18px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  position: absolute;
  top: -9px;
  left: calc(50% - 30px);
  transform: rotate(-3deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.sticky-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--gold-soft);
  font-style: italic;
  margin-bottom: 20px;
}

.sticky-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: right;
  color: var(--gold-bright);
}


/* --- 8. QUIZ ROOM --- */
#quiz-room {
  background: radial-gradient(circle at center, #0e0e0e 0%, #000000 100%);
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.quiz-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 10px;
}

.quiz-subtitle {
  text-align: center;
  color: var(--gold-soft);
  opacity: 0.8;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 48px;
}

/* Quiz Card Container */
.quiz-card {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 40px 44px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

/* Progress Bar */
.quiz-progress-wrapper {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--gold-text-gradient);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.quiz-counter {
  font-size: 0.75rem;
  color: var(--gold-soft);
  opacity: 0.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  margin-bottom: 28px;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Options Grid */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gold-soft);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.quiz-option:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Correct answer */
.quiz-option.correct {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.7);
  color: #86efac;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

/* Wrong answer */
.quiz-option.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  animation: quizShake 0.45s ease;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-result {
  text-align: center;
  padding: 20px 0;
  animation: quizFadeIn 0.5s ease forwards;
}

.quiz-result-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: floatingSparkle 2.5s ease-in-out infinite alternate;
}

.quiz-result-score {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.quiz-result-message {
  font-size: 1.05rem;
  color: var(--gold-soft);
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 32px;
}

.quiz-play-again {
  background: var(--gold-text-gradient);
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
}

.quiz-play-again:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}


/* --- 9. FINALE SECTION --- */
#finale {
  background: radial-gradient(circle at center, #111111 0%, #000000 100%);
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#finale-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.finale-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.finale-sparkle {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: floatingSparkle 3s ease-in-out infinite alternate;
}

.finale-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

.closing-message-box {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 35px 30px;
  margin-bottom: 50px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.25);
}

.closing-message {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--gold-light);
  font-weight: 300;
  text-align: left;
}

.closing-line {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  opacity: 0.8;
}

@keyframes floatingSparkle {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.15); }
}


/* --- FOOTER --- */
footer {
  width: 100%;
  background: #000000;
  padding: 30px 24px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 5;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--gold-soft);
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--gold-primary);
  transition: all 0.3s ease;
  margin-top: 4px;
}

.instagram-link:hover {
  color: #000;
  background: var(--gold-text-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.instagram-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.1) rotate(-5deg);
}

.instagram-handle {
  font-size: 0.82rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  font-weight: 500;
}


/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.6rem;
    padding: 0 10px;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }

  .garden-title, .music-title, .voices-title, .adult-title, .gallery-title, .quiz-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  
  .quote-text {
    font-size: 1.5rem;
    line-height: 1.5;
  }
  
  .finale-title {
    font-size: 2.3rem;
  }
  
  section {
    padding: 60px 16px;
  }

  .audio-player-widget {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    gap: 8px;
  }

  .instagram-widget {
    top: 65px;
    right: 15px;
    padding: 6px 12px;
  }
  .instagram-widget span {
    display: none;
  }

  .polaroid-card {
    width: 240px;
  }
  
  .quiz-card {
    padding: 28px 20px;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
  }
}
