/* ==================== CSS Variables ==================== */
:root {
    --pink-light: #ffc0d3;
    --pink-medium: #ff94b8;
    --pink-dark: #ff6b9d;
    --red-light: #ff758f;
    --red-dark: #c94b8b;
    --white: #ffffff;
    --cream: #fff5f7;
    --shadow-soft: 0 10px 40px rgba(255, 107, 157, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.4);
    --gradient-bg: linear-gradient(135deg, #ffc0d3 0%, #ff94b8 50%, #ff6b9d 100%);
    --gradient-romantic: linear-gradient(45deg, #ff758f, #ff6b9d, #c94b8b);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--cream);
    overflow-x: hidden;
    color: #333;
}

/* ==================== Loading Screen ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.heart-loader {
    display: flex;
    gap: 20px;
}

.heart-loader .heart {
    width: 40px;
    height: 40px;
    background: var(--white);
    transform: rotate(-45deg);
    position: relative;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.heart-loader .heart::before,
.heart-loader .heart::after {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
}

.heart-loader .heart::before {
    top: -20px;
    left: 0;
}

.heart-loader .heart::after {
    top: 0;
    left: 20px;
}

.heart-loader .heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart-loader .heart:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    margin-top: 40px;
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    color: var(--white);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

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

/* ==================== Music Toggle Button ==================== */
.music-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--pink-dark);
}

.music-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.music-toggle.playing .music-icon {
    animation: musicNote 0.5s ease infinite;
}

@keyframes musicNote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==================== Surprise Button ==================== */
.surprise-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--gradient-romantic);
    color: var(--white);
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.surprise-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '❤️';
    position: absolute;
    font-size: 30px;
    opacity: 0.6;
    animation: floatHeart 15s linear infinite;
}

.floating-hearts::before {
    left: 20%;
    animation-delay: 0s;
}

.floating-hearts::after {
    left: 80%;
    animation-delay: 7s;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.characters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ==================== Character Image Styles ==================== */
.character-image {
    position: relative;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.character-image.boy-character {
    animation-delay: 0.3s;
}

.character-image.girl-character {
    animation-delay: 0.5s;
}

.image-container {
    position: relative;
    width: 250px;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.image-container:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.image-placeholder {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
    color: var(--white);
}

.boy-placeholder {
    background: linear-gradient(135deg, #6eb5ff 0%, #5ba3f0 100%);
}

.girl-placeholder {
    background: linear-gradient(135deg, #ff94b8 0%, #ff6b9d 100%);
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.image-placeholder p {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: imageReveal 0.8s ease forwards;
}

@keyframes imageReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.sparkle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.sparkle-effect::before,
.sparkle-effect::after {
    content: '✨';
    position: absolute;
    font-size: 30px;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-effect::before {
    top: -10px;
    right: -10px;
}

.sparkle-effect::after {
    bottom: -10px;
    left: -10px;
    animation-delay: 1.5s;
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

/* ==================== Character Styles ==================== */
.character {
    position: relative;
    animation: fadeInUp 1s ease forwards;
}

.character.boy {
    animation-delay: 0.3s;
}

.character.girl {
    animation-delay: 0.5s;
}

.character .head {
    width: 80px;
    height: 80px;
    background: #ffd4a3;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character .eye {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 30px;
}

.character .eye.left {
    left: 20px;
}

.character .eye.right {
    right: 20px;
}

.character .eye.closed {
    height: 3px;
    border-radius: 2px;
    background: #333;
    top: 35px;
}

.character .blush {
    width: 18px;
    height: 12px;
    background: #ffb3c1;
    border-radius: 50%;
    position: absolute;
    top: 45px;
    opacity: 0.7;
}

.character .blush.left-blush {
    left: 8px;
}

.character .blush.right-blush {
    right: 8px;
}

.character .blush.intense {
    background: #ff6b9d;
    opacity: 0.9;
    animation: blushGrow 1s ease-in-out infinite;
}

@keyframes blushGrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.character .mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.character .mouth.smile {
    border-radius: 0 0 25px 25px;
    height: 12px;
}

.character .body {
    width: 60px;
    height: 80px;
    background: #6eb5ff;
    border-radius: 30px 30px 10px 10px;
    margin: 5px auto;
    position: relative;
}

.character.girl .body {
    background: var(--pink-medium);
}

.character .hair-bow {
    width: 25px;
    height: 25px;
    background: var(--pink-dark);
    position: absolute;
    top: -5px;
    right: 5px;
    border-radius: 50%;
}

.character .hair-bow::before {
    content: '';
    width: 25px;
    height: 25px;
    background: var(--pink-dark);
    border-radius: 50%;
    position: absolute;
    left: -15px;
}

.character .hair-bow::after {
    content: '';
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: -5px;
    top: 5px;
}

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

/* ==================== Hero Text ==================== */
.hero-text {
    text-align: center;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

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

.main-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(32px, 5vw, 64px);
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 4px 25px rgba(255, 255, 255, 0.6); }
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(20px, 3vw, 32px);
    color: var(--white);
    font-weight: 600;
}

.scroll-indicator {
    margin-top: 40px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 24px;
    color: var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== Valentine's Day Sections ==================== */
.valentine-day {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.valentine-day:nth-child(odd) {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4ec 100%);
}

.valentine-day:nth-child(even) {
    background: linear-gradient(135deg, #ffeef3 0%, #ffd4e5 100%);
}

.day-container {
    max-width: 1000px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.day-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.day-header {
    text-align: center;
    margin-bottom: 50px;
}

.day-date {
    display: block;
    font-size: 18px;
    color: var(--pink-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.day-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--red-dark);
    text-shadow: 0 2px 10px rgba(201, 75, 139, 0.2);
}

.day-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.animation-area {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.day-message {
    text-align: center;
}

.day-message p {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--red-dark);
    font-weight: 600;
    line-height: 1.6;
}

/* ==================== Rose Day ==================== */
.boy-giving-rose {
    display: flex;
    align-items: center;
    gap: 30px;
}

.rose-gift {
    animation: roseGive 2s ease-in-out infinite;
}

.rose {
    position: relative;
}

.rose-petals {
    width: 40px;
    height: 40px;
    background: #ff0040;
    border-radius: 50% 50% 0 50%;
    transform: rotate(-45deg);
    position: relative;
}

.rose-stem {
    width: 4px;
    height: 60px;
    background: #2d5016;
    margin: 0 auto;
    position: relative;
    top: -10px;
}

.rose-leaf {
    width: 20px;
    height: 12px;
    background: #4caf50;
    border-radius: 0 50% 50% 0;
    position: relative;
    top: -40px;
    left: 10px;
}

@keyframes roseGive {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

.floating-roses::before,
.floating-roses::after {
    content: '🌹';
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: floatSide 10s linear infinite;
}

.floating-roses::before {
    top: 20%;
    left: 10%;
}

.floating-roses::after {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

@keyframes floatSide {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(30px) rotate(180deg); }
}

/* ==================== Propose Day ==================== */
.proposal-scene {
    display: flex;
    align-items: flex-end;
    gap: 50px;
    position: relative;
}

.boy-kneeling .body.kneeling {
    height: 50px;
}

.ring-box {
    font-size: 40px;
    position: absolute;
    bottom: 20px;
    left: 50px;
    animation: ringShine 1.5s ease-in-out infinite;
}

@keyframes ringShine {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

.heart-popup {
    font-size: 60px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation: heartPop 1s ease-in-out infinite;
}

@keyframes heartPop {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) scale(0.8); opacity: 0.6; }
}

/* ==================== Chocolate Day ==================== */
.chocolate-scene {
    display: flex;
    align-items: center;
    gap: 40px;
}

.chocolate-box {
    font-size: 80px;
    animation: chocolateBounce 1.5s ease-in-out infinite;
}

@keyframes chocolateBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-chocolates::before,
.floating-chocolates::after {
    content: '🍫';
    position: absolute;
    font-size: 35px;
    opacity: 0.4;
    animation: rotate 8s linear infinite;
}

.floating-chocolates::before {
    top: 15%;
    right: 15%;
}

.floating-chocolates::after {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

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

/* ==================== Teddy Day ==================== */
.teddy-scene {
    display: flex;
    justify-content: center;
}

.girl-hugging .teddy-bear {
    font-size: 70px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: hug 2s ease-in-out infinite;
}

@keyframes hug {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* ==================== Promise Day ==================== */
.promise-scene {
    display: flex;
    justify-content: center;
}

.pinky-promise {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.hand {
    font-size: 60px;
    animation: handShake 2s ease-in-out infinite;
}

.hand.right-hand {
    transform: scaleX(-1);
}

@keyframes handShake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promise-glow {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.6) 0%, transparent 70%);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.3); }
}

/* ==================== Hug Day ==================== */
.hug-scene {
    display: flex;
    justify-content: center;
}

.couple-hugging {
    position: relative;
    display: flex;
    gap: 10px;
    animation: hugMotion 2s ease-in-out infinite;
}

@keyframes hugMotion {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-hearts-hug::before,
.floating-hearts-hug::after {
    content: '💕';
    position: absolute;
    font-size: 40px;
    opacity: 0.5;
    animation: heartFloat 4s ease-in-out infinite;
}

.floating-hearts-hug::before {
    top: 20%;
    left: 20%;
}

.floating-hearts-hug::after {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 0.8; }
}

/* ==================== Kiss Day ==================== */
.kiss-scene {
    display: flex;
    justify-content: center;
}

.couple-close {
    display: flex;
    gap: 20px;
    position: relative;
}

.kiss-hearts {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    animation: kissHeartRise 2s ease-in-out infinite;
}

.kiss-hearts::before {
    content: '💗';
}

@keyframes kissHeartRise {
    0% { transform: translateX(-50%) translateY(0) scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(-40px) scale(1); opacity: 0; }
}

.floating-kiss-hearts::before,
.floating-kiss-hearts::after {
    content: '💋';
    position: absolute;
    font-size: 35px;
    opacity: 0.4;
    animation: kissFloat 6s ease-in-out infinite;
}

.floating-kiss-hearts::before {
    top: 25%;
    left: 15%;
}

.floating-kiss-hearts::after {
    bottom: 25%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes kissFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

/* ==================== Valentine's Day ==================== */
.final-scene {
    position: relative;
}

.couple-together {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.big-heart {
    font-size: 80px;
    animation: finalHeartBeat 1.5s ease-in-out infinite;
}

@keyframes finalHeartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.fireworks-container {
    position: absolute;
    width: 100%;
    height: 200px;
    top: -100px;
    left: 0;
    pointer-events: none;
}

.heart-burst::before,
.heart-burst::after {
    content: '❤️';
    position: absolute;
    font-size: 50px;
    animation: burst 3s ease-out infinite;
}

.heart-burst::before {
    top: 10%;
    left: 20%;
}

.heart-burst::after {
    top: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes burst {
    0% { transform: scale(0) translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.5) translateY(-100px); opacity: 0; }
}

.final-message h3 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--red-dark);
    margin-bottom: 15px;
}

/* ==================== View More Section ==================== */
/* ===== FIXED MEMORY GALLERY (NO COLOR CHANGE) ===== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.media-item {
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.03);
}

/* Images */
.media-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* ===== VIDEO AUTO RATIO FIX ===== */

.video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 600px; /* prevents very tall reels */
    border-radius: 20px;
}




/* ==================== Footer ==================== */
.footer {
    position: relative;
    background: var(--gradient-romantic);
    padding: 60px 20px 30px;
    overflow: hidden;
}

.wave-shape {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
}

.wave-shape svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.footer-text {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    margin-bottom: 10px;
}

.heart-beat {
    display: inline-block;
    animation: heartBeatIcon 1.2s ease-in-out infinite;
}

@keyframes heartBeatIcon {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.footer-year {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== Surprise Overlay ==================== */
.surprise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.surprise-overlay.active {
    display: flex;
    opacity: 1;
}

.surprise-content {
    position: relative;
    z-index: 10000;
    max-width: 700px;
    width: 100%;
    animation: slideInFromBottom 0.6s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.close-surprise {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 10001;
    color: var(--pink-dark);
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.close-surprise:hover,
.close-surprise:active {
    transform: rotate(90deg) scale(1.1);
    background: var(--pink-light);
}

.love-letter {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.letter-title {
    font-family: 'Pacifico', cursive;
    font-size: 32px;
    color: var(--pink-dark);
    margin-bottom: 30px;
    text-align: center;
}

.letter-body p {
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.letter-signature {
    text-align: right;
    font-weight: 700;
    color: var(--red-dark);
    margin-top: 30px;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ==================== Small Characters ==================== */
.character.boy-small,
.character.girl-small {
    transform: scale(0.6);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .characters {
        flex-direction: column;
        gap: 20px;
    }

    .image-container {
        width: 200px;
        height: 280px;
    }

    .placeholder-icon {
        font-size: 60px;
    }

    .image-placeholder p {
        font-size: 16px;
    }

    .music-toggle,
    .surprise-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .surprise-btn {
        bottom: 20px;
        right: 20px;
    }

    .music-toggle {
        top: 20px;
        right: 20px;
    }

    .day-content {
        padding: 40px 25px;
    }

    .boy-giving-rose,
    .chocolate-scene,
    .couple-together,
    .proposal-scene {
        flex-direction: column;
        gap: 20px;
    }

    .character.boy-small,
    .character.girl-small {
        transform: scale(0.5);
    }

    .love-letter {
        padding: 35px 25px;
    }

    .letter-body p {
        font-size: 18px;
    }

    .letter-title {
        font-size: 26px;
    }

    .valentine-day {
        padding: 80px 15px;
    }

    .close-surprise {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .surprise-content {
        width: 95%;
        padding: 10px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .upload-instructions {
        padding: 30px 20px;
    }

    .upload-instructions h3 {
        font-size: 22px;
    }

    .upload-instructions ol {
        font-size: 14px;
        padding-left: 20px;
    }

    .view-more-section {
        padding: 80px 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .day-title {
        font-size: 32px;
    }

    .day-content {
        padding: 30px 20px;
    }

    .animation-area {
        min-height: 150px;
    }

    .image-container {
        width: 180px;
        height: 250px;
    }

    .placeholder-icon {
        font-size: 50px;
    }

    .image-placeholder p {
        font-size: 14px;
    }

    .love-letter {
        padding: 25px 20px;
    }

    .letter-body p {
        font-size: 16px;
    }

    .letter-title {
        font-size: 22px;
    }

    .close-surprise {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .upload-instructions {
        padding: 25px 15px;
    }

    .upload-instructions code {
        font-size: 12px;
        padding: 2px 6px;
    }
}

/* ==================== Utility Classes ==================== */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}


/* ===== DOOR INTRO ===== */

.door-intro {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: 50000;
    overflow: hidden;
}

.door {
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--gradient-romantic);
    top: 0;
    transition: transform 2s ease-in-out;
}

.door-left {
    left: 0;
}

.door-right {
    right: 0;
}

.door.open-left {
    transform: translateX(-100%);
}

.door.open-right {
    transform: translateX(100%);
}

.intro-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 40%;
    color: var(--white);
    z-index: 10;
}

.intro-text h1 {
    font-family: 'Pacifico', cursive;
    font-size: 48px;
    margin-bottom: 20px;
}

#openDoorBtn {
    background: var(--white);
    color: var(--pink-dark);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#openDoorBtn:hover {
    transform: scale(1.1);
}

/* Falling hearts & balloons */

.falling-item {
    position: absolute;
    top: -50px;
    font-size: 30px;
    animation: fallDown linear forwards;
}

@keyframes fallDown {
    0% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(110vh);
    }
}
