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

:root {
    --primary-color: #ff1493;
    --secondary-color: #ff69b4;
    --dark-bg: #0a0a0a;
    --accent-dark: #1a1a2e;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --gradient: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b4e 25%, #1f0f3d 50%, #2a1447 75%, #1a0a3e 100%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== PAGE WRAPPER & TRANSITIONS ===== */
.page-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding-bottom: 100px;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 10;
}

.page.prev {
    transform: translateX(-100%);
}

.page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 20, 147, 0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.6s ease;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

/* ===== PAGE COUNTER ===== */
.page-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #ff69b4;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    animation: fadeInUp 0.8s ease;
}

/* ===== NEXT/PREV BUTTONS ===== */
.next-button,
.prev-button,
.restart-button {
    position: fixed;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.magic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50px;
    opacity: 0;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

/* ===== BUTTON TEXT STYLING ===== */
.button-text {
    position: relative !important;
    z-index: 2;
    display: inline-block !important;
    white-space: nowrap;
    border-radius: 0 !important;
    background: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: inherit;
    color: inherit;
}

.button-spark {
    position: relative !important;
    z-index: 2;
    display: inline-block !important;
    border-radius: 0 !important;
    background: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.next-button {
    bottom: 50px;
    right: 50px;
    z-index: 100;
}

.prev-button {
    bottom: 50px;
    left: 50px;
    background: rgba(255, 20, 147, 0.2);
    border: 2px solid rgba(255, 20, 147, 0.4);
    color: var(--secondary-color);
    z-index: 100;
}

.restart-button {
    bottom: 50px;
    right: 50px;
    transform: none;
    z-index: 100;
}

.next-button:hover,
.restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 20, 147, 0.5);
}

.prev-button:hover {
    background: rgba(255, 20, 147, 0.3);
    border-color: rgba(255, 20, 147, 0.6);
    transform: translateY(-3px);
}

.next-button:active,
.prev-button:active,
.restart-button:active {
    transform: translateY(-1px);
}

.button-spark {
    display: inline-block;
    animation: sparkle 1s ease-in-out infinite;
}

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

/* ===== HERO SECTION ===== */
#page-1 {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b4e 50%, #1f0f3d 100%), radial-gradient(ellipse at center, rgba(255, 20, 147, 0.05) 0%, transparent 70%);
    background-blend-mode: overlay;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 100px white, 200px 50px rgba(255,255,255,0.8),
        300px 200px rgba(255,255,255,0.6), 400px 100px rgba(255,255,255,0.7),
        500px 300px white, 600px 50px rgba(255,255,255,0.8),
        700px 200px rgba(255,255,255,0.6), 800px 300px white,
        900px 100px rgba(255,255,255,0.7), 1000px 200px rgba(255,255,255,0.8),
        1100px 50px white, 1200px 300px rgba(255,255,255,0.6),
        150px 400px rgba(255,255,255,0.7), 250px 500px white,
        350px 450px rgba(255,255,255,0.8), 450px 550px rgba(255,255,255,0.6),
        550px 400px white, 650px 500px rgba(255,255,255,0.7),
        750px 450px rgba(255,255,255,0.8), 850px 300px white,
        950px 400px rgba(255,255,255,0.6), 1050px 500px rgba(255,255,255,0.7);
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

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

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

.flower {
    position: absolute;
    font-size: 2rem;
    animation: float 6s infinite ease-in-out;
    opacity: 0.3;
}

.flower:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.flower:nth-child(2) {
    right: 15%;
    top: 30%;
    animation-delay: 0.5s;
}

.flower:nth-child(3) {
    left: 20%;
    bottom: 20%;
    animation-delay: 1s;
}

.flower:nth-child(4) {
    right: 10%;
    bottom: 15%;
    animation-delay: 1.5s;
}

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

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffb6d9;
    animation: slideDown 0.8s ease;
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffb6d9;
    font-weight: 300;
    animation: slideDown 0.8s ease 0.2s both;
}

.hero-text {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #e0e0e0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* ===== CURIOSITY TEXT ===== */
.curiosity-text {
    margin: 2rem 0;
}

.fade-in-1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.fade-in-2 {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.fade-in-3 {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.fade-in {
    animation: fadeInUp 0.8s ease backwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* ===== MESSAGE SECTION ===== */
#page-2 {
    background: linear-gradient(180deg, #1f0f3d 0%, #2a1447 50%, #1a0a3e 100%);
}

.message-container {
    max-width: 700px;
    width: 100%;
    padding: 2rem;
}

.message-card {
    background: rgba(255, 20, 147, 0.08);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    animation: slideInFromLeft 0.8s ease;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.2);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffb6d9;
}

/* ===== REVEAL BUTTON & HIDDEN MESSAGE ===== */
.reveal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeInUp 1s ease;
}

.reveal-button {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.reveal-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.6);
}

.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-revealed {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 20, 147, 0.8);
    }
}

.message-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.message-body p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: #ffb6d9;
    font-weight: 600;
}

.signature {
    margin-top: 2rem;
    font-style: italic;
    color: #ffb6d9;
    font-size: 1rem;
}

/* ===== REASON PAGES ===== */
#page-3,
#page-4,
#page-5 {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b4e 50%, #1f0f3d 100%), radial-gradient(ellipse at center, rgba(255, 20, 147, 0.05) 0%, transparent 70%);
    background-blend-mode: overlay;
}

.reason-page-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
}

.reason-page-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.reason-page-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffb6d9;
    font-weight: 600;
    animation: slideDown 0.8s ease;
}

.reason-page-text {
    font-size: 1.3rem;
    color: #ffb6d9;
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.reason-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== APPRECIATION SECTION (PAGE-6) ===== */
#page-6 {
    background: linear-gradient(135deg, #2a1447 0%, #1f0f3d 50%, #1a0a3e 100%);
    position: relative;
    overflow: hidden;
}

#page-6::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
}

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

/* ===== REASONS CONTAINER ===== */
.reasons-container {
    text-align: center;
    max-width: 1000px;
    animation: fadeInUp 1s ease;
}

.reasons-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #ffb6d9;
    font-weight: 600;
    animation: slideDown 0.8s ease;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.reason-card {
    background: rgba(255, 20, 147, 0.1);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.15);
    transition: all 0.3s ease;
    animation: slideInReason 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

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

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 20, 147, 0.3);
    border-color: rgba(255, 20, 147, 0.6);
    background: rgba(255, 20, 147, 0.15);
}

.reason-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

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

.reason-name {
    font-size: 1.3rem;
    color: #ffb6d9;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.reason-text {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.appreciation-container {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.big-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #ffb6d9;
    font-weight: 600;
    animation: slideDown 0.8s ease;
}

.appreciation-box {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 20, 147, 0.12);
    border: 2px solid rgba(255, 20, 147, 0.35);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.15);
}

.appreciation-box p {
    font-size: 1.4rem;
    color: #ffb6d9;
    margin: 0.8rem 0;
    font-weight: 500;
}

.appreciation-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 2rem 0;
    line-height: 1.8;
}

.happy-message {
    font-size: 1.5rem;
    color: #ff69b4;
    margin-top: 2rem;
    font-weight: 600;
}

/* ===== FINAL SECTION (PAGE-7) ===== */
#page-7 {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b4e 50%, #1f0f3d 100%);
}

.final-container {
    text-align: center;
    animation: fadeInUp 0.8s ease;
    padding: 2rem;
    max-width: 900px;
}

.final-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffb6d9;
    font-weight: 600;
    animation: slideDown 0.8s ease;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    margin: 1.5rem 0 2rem 0;
    animation: fadeInUp 0.8s ease 0.2s both;
    visibility: visible;
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(255, 20, 147, 0.5), 
        0 0 50px rgba(255, 20, 147, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.8), rgba(255, 105, 180, 0.8)) border-box;
    animation: scaleIn 0.8s ease 0.3s both, glowPulse 3s ease-in-out infinite alternate;
    visibility: visible;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    from {
        box-shadow: 
            0 25px 80px rgba(255, 20, 147, 0.6), 
            0 0 60px rgba(255, 20, 147, 0.4),
            inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 30px 100px rgba(255, 20, 147, 0.8), 
            0 0 80px rgba(255, 20, 147, 0.6),
            inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
}

.final-video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background: rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Ensure minimum height for visibility */
    border-radius: 20px; /* Match container radius */
    object-fit: contain; /* Ensure video fits within bounds */
    visibility: visible !important;
    opacity: 1 !important;
}

/* overlay removed to keep video fully visible */
/* .video-overlay { ... } */

/* unified media play button */
.play-media-btn, .play-music-btn {
    position: static;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.play-music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px rgba(255, 20, 147, 0.6);
}

.play-music-btn:active {
    transform: translateY(-1px);
}

/* ===== FLOWER MEANINGS ===== */
.flower-meanings {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 20, 147, 0.1);
    border: 2px solid rgba(255, 20, 147, 0.25);
    border-radius: 15px;
    animation: fadeInUp 0.8s ease 0.5s both;
    backdrop-filter: blur(10px);
}

.flower-meanings p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    color: #f0f0f0;
    animation: fadeInUp 0.8s ease backwards;
}

.flower-meanings p:nth-child(1) { animation-delay: 0.5s; }
.flower-meanings p:nth-child(2) { animation-delay: 0.6s; }
.flower-meanings p:nth-child(3) { animation-delay: 0.7s; }
.flower-meanings p:nth-child(4) { animation-delay: 0.8s; }
.flower-meanings p:nth-child(5) { animation-delay: 0.9s; }

.meaning-text {
    color: #ffb6d9;
    font-weight: 600;
}

.flowers-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.large-flower {
    font-size: 4rem;
    animation: dancingFlower 2s ease-in-out infinite;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.large-flower:hover {
    transform: scale(1.2) rotate(10deg);
}

.flower-1 { animation-delay: 0s; }
.flower-2 { animation-delay: 0.2s; }
.flower-3 { animation-delay: 0.4s; }
.flower-4 { animation-delay: 0.6s; }
.flower-5 { animation-delay: 0.8s; }

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

.final-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 1rem 0;
    animation: fadeInUp 0.8s ease backwards;
}

.final-text:nth-of-type(1) { animation-delay: 0.3s; }
.final-text:nth-of-type(2) { animation-delay: 0.4s; }

.special-text {
    font-size: 1.2rem;
    color: #ffb6d9;
    font-weight: 500;
    margin: 1.2rem 0;
}

.final-message-box {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 20, 147, 0.12);
    border: 2px solid rgba(255, 20, 147, 0.35);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.15);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.final-message-box p {
    font-size: 1.2rem;
    color: #ffb6d9;
    margin: 0.8rem 0;
    font-weight: 500;
}

.signature-final {
    font-size: 0.95rem;
    color: #ffb6d9;
    margin-top: 1.5rem;
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page {
        padding-bottom: 150px;
    }

    .next-button,
    .restart-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        bottom: 30px;
        right: 20px;
    }

    .prev-button {
        bottom: 30px;
        left: 20px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .restart-button {
        right: 20px;
        transform: none;
    }

    .page-counter {
        bottom: 120px;
        right: 20px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.7rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .reason-page-title {
        font-size: 1.8rem;
    }

    .reason-page-icon {
        font-size: 3rem;
    }

    .reason-page-text {
        font-size: 1.1rem;
    }

    .reason-description {
        font-size: 0.95rem;
    }

    .message-card {
        padding: 1.5rem;
    }

    .message-body {
        font-size: 0.95rem;
    }

    .big-title {
        font-size: 1.8rem;
    }

    .appreciation-text {
        font-size: 0.95rem;
    }

    .final-title {
        font-size: 1.8rem;
    }

    .large-flower {
        font-size: 2.5rem;
    }

    .final-text {
        font-size: 0.95rem;
    }

    .flowers-display {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding-bottom: 180px;
    }

    .next-button,
    .prev-button,
    .restart-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        bottom: 20px;
    }

    .next-button {
        right: 10px;
    }

    .prev-button {
        left: 10px;
    }

    .restart-button {
        bottom: 20px;
        right: 10px;
    }

    .page-counter {
        bottom: 150px;
        right: 10px;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .reason-page-title {
        font-size: 1.5rem;
    }

    .reason-page-icon {
        font-size: 2.5rem;
    }

    .reason-page-text {
        font-size: 1rem;
    }

    .reason-description {
        font-size: 0.85rem;
    }

    .message-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .message-header {
        font-size: 1.2rem;
    }

    .message-body {
        font-size: 0.85rem;
    }

    .big-title {
        font-size: 1.5rem;
    }

    .appreciation-box p {
        font-size: 1rem;
    }

    .appreciation-text {
        font-size: 0.85rem;
    }

    .final-title {
        font-size: 1.5rem;
    }

    .large-flower {
        font-size: 1.8rem;
    }

    .final-text {
        font-size: 0.85rem;
    }

    .final-message-box p {
        font-size: 1rem;
    }

    .flowers-display {
        gap: 0.5rem;
    }

    .video-wrapper {
        max-width: 100%;
        border-width: 2px;
    }

    .play-music-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .flower-meanings {
        padding: 1rem;
    }

    .flower-meanings p {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999;
}

/* ===== SPARKLE CONTAINER ===== */
.sparkle-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 998;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkleAnimation 3s ease-out forwards;
    box-shadow: 0 0 6px #ffd700;
}

@keyframes sparkleAnimation {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg) translateY(-100px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.7rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .reasons-header h2 {
        font-size: 1.8rem;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reason-card {
        padding: 1.5rem;
    }

    .reason-icon {
        font-size: 2rem;
    }

    .reason-name {
        font-size: 1.1rem;
    }

    .reason-text {
        font-size: 0.9rem;
    }

    .reasons-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .message-card {
        padding: 1.5rem;
    }

    .message-body {
        font-size: 0.95rem;
    }

    .appreciation-container h2 {
        font-size: 1.8rem;
    }

    .appreciation-container p {
        font-size: 1rem;
    }

    .journey-timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
    }

    .timeline-content {
        margin-left: 0;
    }

    .bouquet h2 {
        font-size: 1.8rem;
    }

    .large-flower {
        font-size: 2.5rem;
    }

    .cta-button, .surprise-button {
        padding: 0.8rem 2rem;
    }

    .video-wrapper {
        max-width: 90vw; /* Adjust video frame for tablets */
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .reasons-header h2 {
        font-size: 1.5rem;
    }

    .subtitle-text {
        font-size: 0.95rem;
    }

    .reason-card {
        padding: 1.5rem;
    }

    .reason-icon {
        font-size: 2rem;
    }

    .reason-card {
        padding: 1.2rem;
        gap: 0.5rem;
    }

    .reason-icon {
        font-size: 1.8rem;
    }

    .reason-name {
        font-size: 1rem;
    }

    .reason-text {
        font-size: 0.85rem;
    }

    .reasons-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .reasons-grid {
        gap: 1.5rem;
    }

    .message-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .message-body {
        font-size: 0.85rem;
    }

    .appreciation-container h2 {
        font-size: 1.5rem;
    }

    .appreciation-container p {
        font-size: 0.9rem;
    }

    .timeline-item {
        gap: 0.3rem;
    }

    .large-flower {
        font-size: 1.8rem;
    }

    .bouquet h2 {
        font-size: 1.5rem;
    }

    .bouquet p {
        font-size: 0.9rem;
    }

    .qualities {
        gap: 0.5rem;
    }

    .quality {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .video-wrapper {
        max-width: 95vw; /* Further adjust video frame for mobile */
        margin: 0 auto 0.5rem;
    }

    .play-media-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
