/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.95);
    --pink-primary: #FF69B4;
    --pink-glow: rgba(255, 105, 180, 0.4);
    --pink-soft: rgba(255, 105, 180, 0.2);
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    
    /* Typography */
    --font-signature: 'Dancing Script', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: var(--text-light);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* ==========================================
   STAGE 1: ENVELOPE WITH PASSWORD BOX
   ========================================== */

/* Minimal Password Box (Apple-style) */
.password-box {
    position: relative;
    text-align: center;
    z-index: 10;
    opacity: 0;
    margin-bottom: 2rem;
}

.password-box-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.password-box-content:focus-within {
    border-color: var(--pink-primary);
    box-shadow: 0 0 15px var(--pink-glow);
}

.lock-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.password-box-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.5rem;
    min-width: 150px;
    text-align: center;
}

.password-box-input:focus {
    outline: none;
}

.password-box-input::placeholder {
    color: var(--text-muted);
}

.password-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid var(--pink-soft);
    color: var(--pink-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.password-arrow-btn:hover {
    background: var(--pink-primary);
    color: white;
    transform: scale(1.05);
}

.password-arrow-btn:active {
    transform: scale(0.95);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    user-select: none;
}

.password-error {
    margin-top: 0.5rem;
    color: var(--pink-primary);
    font-size: 0.85rem;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.envelope-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    min-height: 500px;
    position: relative;
}

/* Envelope wrapper - stays centered always */
.envelope-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.envelope {
    position: relative;
    width: 320px;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.8s ease;
}

.envelope.unlocked {
    opacity: 1;
    filter: grayscale(0);
}

.envelope:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Envelope Parts */
.envelope-back,
.envelope-front,
.envelope-flap {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 40, 0.8);
    border: 2px solid var(--pink-primary);
    box-shadow: 
        0 0 20px var(--pink-glow),
        inset 0 0 30px rgba(255, 105, 180, 0.1);
    backdrop-filter: blur(10px);
}

.envelope-back {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.envelope-front {
    clip-path: polygon(0 0, 100% 0, 50% 60%, 0 100%, 0 0);
    z-index: 3;
    background: rgba(40, 40, 50, 0.9);
}

.envelope-flap {
    clip-path: polygon(0 0, 100% 0, 50% 70%);
    transform-origin: top center;
    z-index: 4;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(35, 35, 45, 0.85);
}

.envelope-flap.open {
    transform: rotateX(-180deg);
}

/* Seal */
.seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--pink-primary) 0%, rgba(255, 105, 180, 0.6) 70%);
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px var(--pink-glow);
}

.seal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--pink-primary);
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.seal-heart {
    font-size: 1.5rem;
    z-index: 1;
    animation: heartbeat 1.5s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

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

/* Envelope Labels */
.envelope-label {
    position: relative;
    text-align: center;
    font-family: var(--font-signature);
    z-index: 6;
    opacity: 0;
    white-space: nowrap;
    margin-top: 2rem;
}

.envelope-label:not(.hidden) {
    opacity: 1;
}

.label-to,
.label-from {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.signature-name {
    font-size: 1.5rem;
    color: var(--pink-primary);
    font-weight: 600;
    font-style: italic;
}

/* Tap Hint */
.tap-hint {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: float 2s ease-in-out infinite;
    opacity: 0;
    margin-top: 1rem;
}

.tap-hint:not(.hidden) {
    opacity: 1;
}

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

.arrow {
    font-size: 1.5rem;
    color: var(--pink-primary);
}

/* ==========================================
   STAGE 2: SIGNATURE REVEAL
   ========================================== */
.signature-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    animation: fadeInUp 1s ease-out forwards;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.signature-container.at-top .signature-content {
    transform: translateY(-35vh);
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.signature-content {
    text-align: center;
    font-family: var(--font-signature);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.signature-to {
    font-size: 4rem;
    font-weight: 600;
    color: var(--pink-primary);
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--pink-glow);
    animation: fadeIn 1.2s ease-out 0.3s backwards;
}

.signature-to-pre {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem;
    animation: fadeIn 0s ease-out 0.3s backwards;
}

.hearts-line {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    animation: fadeIn 1.2s ease-out 0.6s backwards;
}

.hearts-line .heart {
    font-size: 1.5rem;
    animation: heartPop 0.6s ease-out backwards;
}

.hearts-line .heart:nth-child(1) { animation-delay: 0.9s; }
.hearts-line .heart:nth-child(2) { animation-delay: 1.1s; }
.hearts-line .heart:nth-child(3) { animation-delay: 1.3s; }

@keyframes heartPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.signature-with {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem;
    animation: fadeIn 1.2s ease-out 1.5s backwards;
}

.signature-from {
    font-size: 3rem;
    font-weight: 600;
    color: var(--pink-primary);
    font-style: italic;
    text-shadow: 0 0 20px var(--pink-glow);
    animation: fadeIn 1.2s ease-out 1.8s backwards;
}

/* ==========================================
   STAGE 3 & 4: MESSAGE AND MUSIC CARDS
   ========================================== */
.message-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    /* Cap height so the card never covers the music card or bleeds off-screen */
    max-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--pink-soft);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px var(--pink-glow);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow: hidden;
}

.message-card:not(.hidden) {
    animation: cardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.message-card.fade-out {
    animation: cardFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.message-image-container {
    margin-top: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-image-container:not(.hidden) {
    opacity: 1;
    max-height: 600px;
}

.message-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: block;
}

.music-card {
    position: fixed;
    top: 20px;
    right: 20px;
    /* Responsive width: never exceed 90vw and never be wider than 300px */
    width: clamp(220px, 40vw, 300px);
    background: var(--bg-card);
    border: 1px solid var(--pink-soft);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 20px var(--pink-glow);
    backdrop-filter: blur(20px);
    z-index: 500;
    transform: translateX(320px);
    opacity: 0;
    transition: none;
    animation: musicCardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes musicCardSlideIn {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 20px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.music-card.hidden {
    display: none;
    animation: none;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid var(--pink-soft);
    border-radius: 50%;
    color: var(--pink-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.close-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.close-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: rotate(90deg);
}

.next-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 105, 180, 0.1);
    border: 1.5px solid var(--pink-primary);
    border-radius: 50%;
    color: var(--pink-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    padding: 0;
}

.next-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.next-btn.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 10px var(--pink-glow);
    }
    50% { 
        box-shadow: 0 0 20px var(--pink-glow), 0 0 30px var(--pink-soft);
    }
}

.next-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: scale(1.1);
}

.next-btn:active {
    transform: scale(0.95);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.music-card .card-header {
    margin-bottom: 0.75rem;
}

.card-icon {
    font-size: 1.5rem;
}

.music-card .card-icon {
    font-size: 1.2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
}

.music-card .card-title {
    font-size: 1rem;
}

.card-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Let content scroll inside the card instead of pushing it taller */
    flex: 1;
    /* Thin custom scrollbar that matches the aesthetic */
    scrollbar-width: thin;
    scrollbar-color: var(--pink-soft) transparent;
}

.card-content::-webkit-scrollbar {
    width: 4px;
}

.card-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background: var(--pink-soft);
    border-radius: 2px;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.message-item {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.message-item.active {
    display: block;
    animation: messageSlideIn 0.5s ease-out forwards;
}

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

.typing-text {
    display: inline-block;
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.typing-text.typing::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--pink-primary);
    animation: blink 0.7s step-end infinite;
}

.typing-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Music Player Specific */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.music-card .music-player {
    gap: 0.75rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pink-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--pink-glow);
}

.music-card .play-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--pink-glow);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-icon {
    pointer-events: none;
    user-select: none;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 105, 180, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--pink-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--pink-glow);
}

/* ==========================================
   BOTTOM HEARTBEAT LINE DECORATION
   ========================================== */
.heartbeat-line {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    height: 150px;
    pointer-events: none;
    z-index: 1500;
    opacity: 0;
    transition: opacity 1s ease;
}

.heartbeat-line.visible {
    opacity: 1;
}

#line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

/* ==========================================
   UTILITY ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .envelope-container {
        min-height: 450px;
    }
    
    .envelope {
        width: 280px;
        height: 180px;
    }
    
    .signature-container.at-top .signature-content {
        transform: translateY(-30vh);
    }
    
    .signature-to {
        font-size: 3rem;
    }
    
    .signature-from {
        font-size: 2.5rem;
    }
    
    .message-card {
        width: 90%;
        padding: 1.5rem;
        /* On tablets/mobile leave room at top for music card */
        max-height: calc(100dvh - 160px);
    }
    
    .music-card {
        top: 10px;
        right: 10px;
        width: clamp(200px, 55vw, 260px);
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .envelope-container {
        min-height: 400px;
    }
    
    .envelope {
        width: 240px;
        height: 150px;
    }
    
    .seal {
        width: 50px;
        height: 50px;
    }
    
    .signature-to {
        font-size: 2.5rem;
    }
    
    .signature-from {
        font-size: 2rem;
    }
    
    .signature-name {
        font-size: 1.2rem;
    }
    
    .message-card {
        /* Leave room at the bottom for the music card (~90px) plus some breathing room */
        max-height: calc(100dvh - 200px);
        top: 45%;
    }
    
    .music-card {
        /* On very small screens, anchor to the bottom so it never blocks the message card */
        top: auto;
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 1rem;
    }
    
    .envelope {
        width: 200px;
        height: 130px;
    }
    
    .signature-to,
    .signature-from {
        font-size: 2rem;
    }
    
    .hearts-line {
        margin: 0.5rem 0;
    }
    
    .message-card {
        /* Very short viewports: make card compact and scrollable */
        max-height: calc(100dvh - 80px);
        padding: 1rem 1.25rem;
    }
    
    .music-card {
        /* In landscape, keep music card small in top-right corner */
        width: clamp(180px, 30vw, 240px);
        padding: 0.5rem 0.75rem;
    }
}

/* ==========================================
   STAGE 6: FINAL VALENTINE'S REVEAL
   ========================================== */
.final-reveal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.final-reveal:not(.hidden) {
    pointer-events: auto;
}

.final-reveal.visible {
    opacity: 1;
}

.final-reveal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(28px);
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.final-reveal.visible .final-reveal-inner {
    transform: translateY(0);
}

/* Text lines */
.final-title-line,
.final-name-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-family: var(--font-signature);
    text-align: center;
}

.final-reveal.visible .final-title-line {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.final-reveal.visible .final-name-line {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.final-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: var(--text-light);
    font-style: italic;
}

.final-name {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    font-weight: 700;
    color: var(--pink-primary);
    font-style: italic;
    text-shadow: 0 0 24px var(--pink-glow);
}

.final-heart-icon {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    margin-top: 4px;
}

/* Photo */
.final-photo-frame {
    margin-top: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 2px var(--pink-soft),
        0 0 40px var(--pink-glow),
        0 20px 50px rgba(0, 0, 0, 0.7);
    width: min(88vw, 520px);
    aspect-ratio: 16 / 9;
    background: rgba(30, 30, 40, 0.8);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1s ease 1s, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

.final-reveal.visible .final-photo-frame {
    opacity: 1;
    transform: scale(1);
}

.final-photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 9s ease;
}

.final-reveal.visible .final-photo-img {
    transform: scale(1.05);
}
