/* ============================================
   BIRTHDAY WEBSITE - STYLES
   Theme: Soft Pink & Rose Gold
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;

    --rose-gold: #b76e79;
    --rose-gold-light: #e8c4c8;
    --rose-gold-shimmer: #f0d4d8;
    --rose-gold-dark: #8c535b;

    --gold-light: #fde68a;
    --gold: #f59e0b;
    --gold-shimmer: #fef3c7;

    --cream: #fefcf9;
    --warm-white: #fdf8f5;
    --soft-bg: #fef7f0;

    --text-dark: #4a2030;
    --text-medium: #7c4a5e;
    --text-light: #b07a90;

    --shadow-pink: rgba(244, 114, 182, 0.25);
    --shadow-rose: rgba(183, 110, 121, 0.2);

    --font-display: 'Dancing Script', cursive;
    --font-body: 'Outfit', sans-serif;

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    background: var(--soft-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    /* Lock scrolling until gift is opened */
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent double-tap zoom on mobile */
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Floating Particles ---------- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) rotate(324deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateY(-5vh) rotate(360deg) scale(0);
    }
}

/* ============================================
   OPENING SCREEN
   ============================================ */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #fce7f3 25%,
        #fef7f0 50%,
        #fce7f3 75%,
        #fdf2f8 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: 100;
    transition: opacity 1s var(--transition-smooth),
                transform 1s var(--transition-smooth);
}

.opening-screen.opened {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

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

.opening-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ---------- Tap Hint ---------- */
.tap-hint {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: hintPulse 2s ease-in-out infinite;
    order: 2;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* ---------- Gift Box ---------- */
.gift-box-wrapper {
    position: relative;
    width: 220px;
    height: 260px;
    cursor: pointer;
    transition: transform 0.3s var(--transition-smooth);
    animation: giftFloat 3s ease-in-out infinite;
    /* Ensure good touch target */
    -webkit-tap-highlight-color: transparent;
    /* Push down slightly so bow doesn't get clipped */
    margin-top: 30px;
}

.gift-box-wrapper:hover {
    transform: scale(1.06);
}

.gift-box-wrapper:active {
    transform: scale(0.97);
}

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

.gift-box-wrapper.opening {
    animation: none;
}

/* -- Gift Lid -- */
.gift-lid {
    position: absolute;
    top: 50px;
    left: -10px;
    width: 240px;
    height: 55px;
    z-index: 10;
    transform-origin: center bottom;
    transition: transform 0.8s var(--transition-bounce),
                opacity 0.5s ease 0.6s;
}

.gift-lid::before {
    /* Lid front face */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(180deg, var(--pink-300) 0%, var(--pink-400) 100%);
    border-radius: 8px 8px 0 0;
    box-shadow:
        0 -2px 10px rgba(244, 114, 182, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(183, 110, 121, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.gift-lid::after {
    /* Lid top edge (gives depth) */
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: calc(100% - 8px);
    height: 12px;
    background: linear-gradient(180deg, var(--pink-200), var(--pink-300));
    border-radius: 6px 6px 0 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

/* Lid ribbon stripe */
.lid-ribbon {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 45px;
    background: linear-gradient(90deg,
        var(--rose-gold-dark),
        var(--rose-gold-light) 30%,
        var(--rose-gold) 50%,
        var(--rose-gold-light) 70%,
        var(--rose-gold-dark)
    );
    z-index: 2;
    border-radius: 0;
}

.gift-box-wrapper.opening .gift-lid {
    transform: translateY(-80px) rotateZ(-15deg) scale(0.8);
    opacity: 0;
}

/* -- Bow -- */
.bow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 100px;
    height: 50px;
}

/* Bow loops */
.bow-loop {
    position: absolute;
    width: 48px;
    height: 38px;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(160deg,
        var(--rose-gold-shimmer) 0%,
        var(--rose-gold-light) 30%,
        var(--rose-gold) 60%,
        var(--rose-gold-dark) 100%
    );
    box-shadow:
        0 3px 10px var(--shadow-rose),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    top: 6px;
}

.bow-left {
    left: 2px;
    transform: rotate(-25deg);
}

.bow-right {
    right: 2px;
    transform: rotate(25deg);
}

/* Bow tails (hanging ribbons) */
.bow-tail {
    position: absolute;
    width: 16px;
    height: 28px;
    background: linear-gradient(180deg, var(--rose-gold), var(--rose-gold-light));
    top: 30px;
    border-radius: 0 0 8px 8px;
    z-index: -1;
}

.bow-tail-left {
    left: 22px;
    transform: rotate(10deg);
}

.bow-tail-right {
    right: 22px;
    transform: rotate(-10deg);
}

/* Bow center knot */
.bow-knot {
    position: absolute;
    width: 24px;
    height: 22px;
    background: linear-gradient(145deg, var(--rose-gold), var(--rose-gold-dark));
    border-radius: 50%;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 2px 6px var(--shadow-rose),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* -- Gift Body (the main box) -- */
.gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 170px;
    background: linear-gradient(
        175deg,
        var(--pink-300) 0%,
        var(--pink-400) 60%,
        var(--pink-500) 100%
    );
    border-radius: 4px 4px 14px 14px;
    box-shadow:
        0 10px 30px rgba(183, 110, 121, 0.25),
        0 4px 10px rgba(244, 114, 182, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

/* Wrapping paper pattern */
.wrap-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.12) 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.08) 2.5px, transparent 2.5px),
        radial-gradient(circle at 70% 85%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 10% 55%, rgba(255,255,255,0.1) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 15%, rgba(255,255,255,0.08) 2px, transparent 2px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* -- Ribbons on the box body -- */
.ribbon {
    position: absolute;
    background: linear-gradient(90deg,
        var(--rose-gold-dark),
        var(--rose-gold-light) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        var(--rose-gold-light) 75%,
        var(--rose-gold-dark)
    );
    z-index: 3;
    overflow: hidden;
}

.ribbon-vertical {
    width: 28px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.ribbon-horizontal {
    width: 100%;
    height: 28px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Ribbon shine sweep */
.ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    animation: ribbonShine 3s ease-in-out infinite;
}

@keyframes ribbonShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* -- Inner glow (visible when opening) -- */
.inner-glow {
    position: absolute;
    top: -20px;
    left: 10%;
    width: 80%;
    height: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(253, 230, 138, 0.9) 0%,
        rgba(251, 191, 36, 0.5) 40%,
        transparent 70%
    );
    border-radius: 50%;
    transition: height 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
    opacity: 0;
    z-index: 0;
    filter: blur(12px);
}

.gift-box-wrapper.opening .inner-glow {
    height: 120%;
    opacity: 1;
}

/* ---------- Opening Subtitle ---------- */
.opening-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-medium);
    opacity: 0.8;
    order: 3;
    animation: subtitleFade 3s ease-in-out infinite alternate;
}

@keyframes subtitleFade {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================================
   REVEAL SCREEN
   ============================================ */
.reveal-screen {
    position: relative;
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 1;
    background: linear-gradient(
        180deg,
        var(--warm-white) 0%,
        var(--pink-50) 30%,
        var(--cream) 60%,
        var(--pink-100) 100%
    );
}

.reveal-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.reveal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

/* ---------- Sparkle Burst ---------- */
.sparkle-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
}

/* ---------- Birthday Message ---------- */
.message-section {
    text-align: center;
    padding: 3rem 0 4rem;
    position: relative;
}

.birthday-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--rose-gold) 0%,
        var(--pink-500) 30%,
        var(--rose-gold-light) 50%,
        var(--pink-400) 70%,
        var(--rose-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s var(--transition-bounce) 0.3s;
}

.reveal-screen.visible .birthday-title {
    opacity: 1;
    transform: translateY(0);
}

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

.birthday-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--pink-500);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s ease 0.6s, transform 0.8s var(--transition-bounce) 0.6s;
}

.reveal-screen.visible .birthday-name {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.birthday-message {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
    position: relative;
}

.reveal-screen.visible .birthday-message {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative quotes */
.birthday-message::before,
.birthday-message::after {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--pink-200);
    position: absolute;
    line-height: 1;
}

.birthday-message::before {
    content: '"';
    top: -20px;
    left: -15px;
}

.birthday-message::after {
    content: '"';
    bottom: -35px;
    right: -10px;
}

/* ---------- Memories Section ---------- */
.memories-section {
    padding: 3rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--rose-gold);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rose-gold-light), var(--rose-gold), var(--rose-gold-light), transparent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ---------- Memories Grid ---------- */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.memory-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(183, 110, 121, 0.08),
        0 1px 4px rgba(183, 110, 121, 0.04);
    transition: transform 0.4s var(--transition-smooth),
                box-shadow 0.4s var(--transition-smooth);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease calc(var(--delay, 0s)),
                transform 0.6s var(--transition-bounce) calc(var(--delay, 0s)),
                box-shadow 0.3s ease;
}

.memory-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.memory-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(183, 110, 121, 0.15),
        0 4px 12px rgba(244, 114, 182, 0.1);
}

.memory-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--pink-200), var(--rose-gold-shimmer));
}

.memory-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

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

/* Placeholder styling */
.memory-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(
        135deg,
        var(--pink-100) 0%,
        var(--pink-200) 50%,
        var(--rose-gold-shimmer) 100%
    );
}

.placeholder-icon {
    font-size: 2.5rem;
    animation: placeholderBounce 2s ease-in-out infinite;
}

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

.placeholder-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.memory-caption {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    text-align: center;
    font-family: var(--font-body);
}

/* ---------- Secret Scroll ---------- */
.scroll-section {
    padding: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* -- Scroll Rolls (top & bottom wooden rods) -- */
.scroll-roll {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    height: 22px;
    filter: drop-shadow(0 3px 6px rgba(140, 83, 91, 0.25));
}

.roll-body {
    flex: 1;
    height: 18px;
    background: linear-gradient(180deg,
        var(--rose-gold-shimmer) 0%,
        var(--rose-gold) 35%,
        var(--rose-gold-dark) 65%,
        var(--rose-gold) 100%
    );
    border-radius: 2px;
}

.roll-end {
    width: 28px;
    height: 22px;
    background: linear-gradient(180deg,
        var(--rose-gold-light) 0%,
        var(--rose-gold-dark) 50%,
        var(--rose-gold) 100%
    );
    border-radius: 50%;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(140, 83, 91, 0.3);
    flex-shrink: 0;
}

/* -- Scroll Parchment (the unrolling paper) -- */
.scroll-parchment {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s ease;
    background: linear-gradient(
        180deg,
        #fef9f0 0%,
        #fdf3e3 15%,
        #fef6eb 50%,
        #fdf3e3 85%,
        #fef9f0 100%
    );
    /* Subtle parchment texture via noise */
    background-image:
        linear-gradient(180deg, #fef9f0 0%, #fdf3e3 15%, #fef6eb 50%, #fdf3e3 85%, #fef9f0 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(200, 170, 130, 0.04) 3px,
            rgba(200, 170, 130, 0.04) 4px
        );
    margin: 0 14px;
    border-left: 2px solid rgba(200, 170, 130, 0.25);
    border-right: 2px solid rgba(200, 170, 130, 0.25);
    position: relative;
    padding: 0 1.5rem;
}

.scroll-wrapper.unrolled .scroll-parchment {
    max-height: 1000px;
    padding: 2rem 1.5rem;
}

/* Parchment edge shadow */
.scroll-parchment::before,
.scroll-parchment::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 1;
    pointer-events: none;
}

.scroll-parchment::before {
    top: 0;
    background: linear-gradient(180deg, rgba(220, 190, 150, 0.2), transparent);
}

.scroll-parchment::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(220, 190, 150, 0.2), transparent);
}

.parchment-content {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.scroll-wrapper.unrolled .parchment-content {
    opacity: 1;
    transform: translateY(0);
}

.parchment-ornament {
    font-size: 0.9rem;
    color: var(--rose-gold);
    letter-spacing: 0.5em;
    margin: 0.5rem 0;
    opacity: 0.7;
}

.scroll-message {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 1rem 0;
    font-weight: 400;
}

.scroll-signature {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--rose-gold);
    margin-top: 0.75rem;
    font-weight: 700;
    font-style: italic;
}

/* -- Tap Prompt -- */
.scroll-tap-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-wrapper.unrolled .scroll-tap-prompt {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.scroll-tap-icon {
    font-size: 2rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-6px) rotate(5deg); }
}

.scroll-tap-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(183, 110, 121, 0.1);
}

/* ---------- Footer ---------- */
.footer-section {
    text-align: center;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--rose-gold);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hearts-float {
    position: relative;
    height: 80px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: 0;
    font-size: 1.2rem;
    opacity: 0;
    animation: heartRise 4s ease-in-out infinite;
}

@keyframes heartRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translateY(-15px) scale(1) rotate(-5deg);
    }
    80% {
        opacity: 0.6;
        transform: translateY(-55px) scale(0.8) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.3) rotate(-5deg);
    }
}

/* ============================================
   CONFETTI (created via JS)
   ============================================ */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 200;
    opacity: 0;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg) rotateX(0deg);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotateZ(720deg) rotateX(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .gift-box-wrapper {
        width: 180px;
        height: 220px;
    }

    .gift-lid {
        width: 200px;
        left: -10px;
        top: 40px;
        height: 50px;
    }

    .gift-lid::before {
        height: 40px;
    }

    .lid-ribbon {
        height: 40px;
        width: 24px;
    }

    .gift-body {
        width: 180px;
        height: 145px;
    }

    .bow {
        width: 80px;
        top: -35px;
    }

    .bow-loop {
        width: 38px;
        height: 30px;
    }

    .ribbon-vertical {
        width: 24px;
    }

    .ribbon-horizontal {
        height: 24px;
    }

    .opening-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .reveal-content {
        padding: 3rem 1rem 2rem;
    }

    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .birthday-message::before,
    .birthday-message::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .gift-box-wrapper {
        width: 150px;
        height: 190px;
    }

    .gift-lid {
        width: 170px;
        left: -10px;
        top: 35px;
        height: 45px;
    }

    .gift-lid::before {
        height: 35px;
    }

    .lid-ribbon {
        height: 35px;
        width: 20px;
    }

    .gift-body {
        width: 150px;
        height: 125px;
    }

    .bow {
        width: 70px;
        top: -30px;
    }

    .bow-loop {
        width: 32px;
        height: 25px;
    }

    .bow-knot {
        width: 20px;
        height: 18px;
    }

    .ribbon-vertical {
        width: 20px;
    }

    .ribbon-horizontal {
        height: 20px;
    }

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

/* ---------- Selection Styling ---------- */
::selection {
    background: var(--pink-200);
    color: var(--text-dark);
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pink-50);
}

::-webkit-scrollbar-thumb {
    background: var(--rose-gold-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rose-gold);
}
