/* ==========================================================================
   Milaa's Birthday Website - Premium Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --bg-primary-grad: linear-gradient(135deg, #18050e 0%, #2f0b1a 50%, #15020a 100%);
    --bg-secondary: #250915;
    
    --color-gold: #e2b755;
    --color-gold-hover: #f1cf82;
    --color-rose: #ff6584;
    --color-rose-light: #fbc3bc;
    --color-text-light: #fbeee6;
    --color-text-muted: #d0abbb;
    --color-accent: #e85d75;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --glass-bg: rgba(47, 11, 26, 0.4);
    --glass-border: rgba(226, 183, 85, 0.2);
    --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-mid: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
}

/* --- Base Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #12030b;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #18050e;
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* --- Full Screen Background Canvases --- */
#particles-canvas, #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

#confetti-canvas {
    z-index: 9999; /* Always on top during explosion */
}

main {
    position: relative;
    z-index: 2;
    background: var(--bg-primary-grad);
}

/* --- Layout Components --- */
.section-padding {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-script);
    color: var(--color-rose);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- 1. Envelope Intro Screen --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #2f0b1a 0%, #12030b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.intro-active {
    opacity: 1;
    transform: scale(1);
}

.intro-fadeout {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.envelope-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.envelope {
    position: relative;
    width: 320px;
    height: 220px;
    background: #a62b47;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    cursor: pointer;
    margin-bottom: 30px;
}

/* Front flap of envelope */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 110px solid #c03554;
    transform-origin: top;
    z-index: 4;
    transition: transform 0.5s ease;
}

/* Sides of envelope body */
.envelope-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid #8e223a;
    border-right: 160px solid #8e223a;
    border-bottom: 110px solid #9e2741;
    border-top: 110px solid transparent;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 3;
}

/* Paper letter tucked inside */
.envelope-paper {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 290px;
    height: 190px;
    background: #fbeee6;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.paper-content {
    text-align: center;
}

.letter-teaser {
    font-family: var(--font-heading);
    font-style: italic;
    color: #4a1525;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.letter-teaser-sub {
    font-size: 0.8rem;
    color: #8c7355;
    font-weight: 500;
}

/* Wax Seal Button */
.wax-seal {
    position: absolute;
    top: 90px;
    left: 135px;
    width: 50px;
    height: 50px;
    background: #e2b755;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    animation: pulseGlow 2s infinite;
}

.wax-seal:hover {
    transform: scale(1.15) rotate(5deg);
    background: #f1cf82;
}

.seal-heart {
    font-size: 1.6rem;
    color: #801d33;
    user-select: none;
}

.seal-text {
    position: absolute;
    width: max-content;
    top: 55px;
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.intro-hint {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: pulseHint 2s infinite ease-in-out;
}

/* Hover/Open States of Envelope */
.envelope:hover .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope:hover .envelope-paper {
    transform: translateY(-90px) scale(1.02);
    z-index: 2;
}

/* Envelope opening trigger class */
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}
.envelope.open .envelope-paper {
    transform: translateY(-160px) scale(1.05);
    z-index: 10;
}

/* Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(226, 183, 85, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(226, 183, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 183, 85, 0); }
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(-5px); }
}

/* --- Main Content Visibility --- */
.content-hidden {
    display: none;
}

.content-fadein {
    animation: mainFadeIn 1.5s forwards ease-out;
}

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

/* --- Floating Music Player --- */
.music-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#music-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-glow);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    transition: transform var(--transition-fast), background var(--transition-fast);
    position: relative;
}

#music-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(74, 18, 41, 0.6);
}

#music-toggle-btn .beat-icon {
    font-size: 1.4rem;
    color: var(--color-rose);
    position: absolute;
}

/* Pulsing heart beat */
.music-playing #music-toggle-btn .beat-icon {
    animation: heartBeat 1.2s infinite ease-in-out;
}

/* Animated Music Waves */
.music-wave {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 24px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.music-playing .music-wave {
    opacity: 0.5;
}

.music-playing #music-toggle-btn .beat-icon {
    opacity: 0.9;
}

.music-wave span {
    width: 3px;
    height: 100%;
    background-color: var(--color-gold);
    border-radius: 2px;
    transform-origin: bottom;
    animation: waveMotion 1.2s ease-in-out infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.2s; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; }
.music-wave span:nth-child(4) { animation-delay: 0.6s; }

.music-tooltip {
    position: absolute;
    right: 75px;
    top: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.music-floating:hover .music-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waveMotion {
    0% { transform: scaleY(0.15); }
    100% { transform: scaleY(1); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    40% { transform: scale(1.05); }
    55% { transform: scale(1.2); }
}

/* --- 2. Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-container {
    max-width: 800px;
    animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sub-greeting {
    font-family: var(--font-script);
    color: var(--color-gold);
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to right, #ffd700, #ff6584, #fbc3bc, #d4af37);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 8s ease infinite, scalePulse 6s infinite alternate;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-tagline {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-weight: 300;
}

.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-down-indicator i {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--color-gold);
}

.animate-bounce {
    animation: bounceIndicator 2s infinite;
}

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

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scalePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

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

/* --- 3. Polaroid Scrapbook Grid --- */
#scrapbook {
    background: radial-gradient(ellipse at center, rgba(47, 11, 26, 0.5) 0%, transparent 80%);
}

.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px 30px;
    padding: 20px 0;
    justify-content: center;
}

/* The Polaroid Frame Card */
.polaroid-card {
    background: #ffffff;
    padding: 16px 16px 28px 16px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0,0,0,0.1);
    transform: rotate(var(--rotation)) scale(0.98);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(226, 183, 85, 0.2);
    z-index: 10;
}

.polaroid-image-wrapper {
    width: 100%;
    aspect-ratio: 1; /* Make it a square crop area, matching Polaroid */
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e5e5;
    background: #eef2f3;
}

/* Keep the vertical ratio on the vertical photo */
.polaroid-card:nth-child(3) .polaroid-image-wrapper {
    aspect-ratio: 0.75; /* Perfect vertical layout for pic1 (Kotatua) */
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Polaroid Text Styles */
.polaroid-caption {
    padding-top: 15px;
    text-align: center;
    color: #2c3e50;
}

.caption-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.caption-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.caption-note {
    font-family: var(--font-script);
    font-size: 1.6rem;
    line-height: 1.2;
    color: #4a1525;
    margin-top: 5px;
    opacity: 0.95;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 10px;
}

/* --- 4. Interactive Flip Cards (Why I Love You) --- */
.love-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1200px;
    padding-top: 20px;
}

.love-flip-card {
    height: 220px;
    cursor: pointer;
    perspective: 1000px;
}

.love-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Hover flips the card */
.love-flip-card:hover .love-card-inner,
.love-flip-card.flipped .love-card-inner {
    transform: rotateY(180deg);
}

.love-card-front, .love-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glass-glow);
    backdrop-filter: var(--glass-blur);
}

.love-card-front {
    background: var(--glass-bg);
}

.love-card-back {
    background: rgba(142, 34, 58, 0.3);
    transform: rotateY(180deg);
    border-color: rgba(226, 183, 85, 0.4);
}

.love-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.love-icon {
    font-size: 2.5rem;
    color: var(--color-rose);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.love-flip-card:hover .love-icon {
    transform: scale(1.15);
}

.love-card-front h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.click-hint {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.click-hint i {
    margin-left: 4px;
    animation: rotateIcon 2s infinite ease-in-out;
}

.love-card-back h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(226, 183, 85, 0.2);
    padding-bottom: 5px;
    width: 100%;
}

.love-card-back p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* --- 5. Love Letter Section --- */
#letter-section {
    position: relative;
    overflow: hidden;
}

.letter-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(232, 93, 117, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.letter-container {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.letter-paper {
    background: #fbeee6;
    border-radius: 12px;
    padding: 60px 50px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), inset 0 0 40px rgba(74, 21, 37, 0.05);
    color: #3b222a;
    border: 1px solid #efe4dc;
    position: relative;
}

/* Corner decorative borders */
.letter-paper::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border: 1px solid rgba(142, 34, 58, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

.letter-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.letter-date {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: #8c7355;
    letter-spacing: 1px;
}

.letter-salutation {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: #4a1525;
    margin-bottom: 25px;
}

.letter-body-text {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.letter-body-text p {
    margin-bottom: 20px;
    opacity: 0.95;
    text-indent: 30px;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
}

.sig-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #8c7355;
    margin-bottom: 5px;
}

.sig-name {
    font-family: var(--font-script);
    font-size: 3.2rem;
    line-height: 1;
    color: #4a1525;
    margin-bottom: 3px;
}

.sig-relation {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #8c7355;
}

/* Typewriter animation styling helper */
.typed-cursor {
    font-weight: 100;
    animation: blink 0.7s infinite;
    color: var(--color-accent);
}

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

/* --- 6. Birthday Cake Section --- */
.cake-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.cake-wrapper {
    width: 320px;
    height: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.birthday-cake-svg {
    width: 100%;
    height: 100%;
}

/* SVG Flame Styling & Flickering */
.flame-group {
    cursor: pointer;
    transform-origin: center bottom;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.active-flame {
    animation: flameFlicker 1.5s infinite alternate ease-in-out;
}

.active-flame .flame-outer {
    animation: flamePulse 1s infinite alternate ease-in-out;
}

/* Flickering animations */
@keyframes flameFlicker {
    0% { transform: skewX(-2deg) scale(1); }
    25% { transform: skewX(1deg) scale(0.98); }
    50% { transform: skewX(-1.5deg) scale(1.02); }
    75% { transform: skewX(2deg) scale(0.95); }
    100% { transform: skewX(-1deg) scale(1.01); }
}

@keyframes flamePulse {
    0% { fill: #ff5000; }
    100% { fill: #ff8500; }
}

/* Blown-out candle smoke puff effect class */
.flame-group.extinguished {
    opacity: 0;
    transform: scale(0) translateY(-10px);
    pointer-events: none;
}

/* Birthday Wish Celebration Banner */
#wish-banner {
    position: absolute;
    top: -20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-glow);
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    z-index: 100;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#wish-banner.wish-banner-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#wish-banner h2 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

#wish-banner p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

#reset-candles-btn {
    background: linear-gradient(135deg, var(--color-accent) 0%, #a62b47 100%);
    border: none;
    outline: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#reset-candles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 117, 0.5);
}

#reset-candles-btn:active {
    transform: translateY(0);
}

/* --- Footer Section --- */
footer {
    border-top: 1px solid rgba(226, 183, 85, 0.1);
    background: #0d0208;
    padding: 60px 24px;
    text-align: center;
}

.footer-tagline {
    font-family: var(--font-script);
    color: var(--color-rose);
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 15px;
}

.heart-pulse-large {
    font-size: 2rem;
    color: var(--color-accent);
    display: inline-block;
    animation: heartBeat 1.5s infinite ease-in-out;
    margin-bottom: 20px;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive Adaptations & Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .main-title {
        font-size: 5rem;
    }
    .sub-greeting {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 2.2rem;
    }
    
    .main-title {
        font-size: 4rem;
        margin-bottom: 15px;
    }
    
    .sub-greeting {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Scrapbook layouts */
    .polaroid-grid {
        gap: 30px 15px;
    }
    
    .polaroid-card {
        padding: 12px 12px 20px 12px;
    }
    
    .caption-title {
        font-size: 1.1rem;
    }
    
    .caption-note {
        font-size: 1.4rem;
        padding-top: 8px;
    }
    
    /* Letter Section */
    .letter-paper {
        padding: 40px 25px;
    }
    
    .letter-salutation {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .letter-body-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .sig-name {
        font-size: 2.6rem;
    }
    
    /* Love Cards */
    .love-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .love-flip-card {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3rem;
    }
    
    .sub-greeting {
        font-size: 1.8rem;
    }
    
    .envelope {
        width: 280px;
        height: 190px;
    }
    
    .envelope-flap {
        border-left-width: 140px;
        border-right-width: 140px;
        border-top-width: 95px;
    }
    
    .envelope-body {
        border-left-width: 140px;
        border-right-width: 140px;
        border-bottom-width: 95px;
        border-top-width: 95px;
    }
    
    .envelope-paper {
        width: 250px;
        height: 160px;
        left: 15px;
    }
    
    .wax-seal {
        top: 75px;
        left: 115px;
    }
    
    .letter-teaser {
        font-size: 1.15rem;
    }
    
    .music-floating {
        bottom: 20px;
        right: 20px;
    }
    
    #music-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    #music-toggle-btn .beat-icon {
        font-size: 1.1rem;
    }
}
