/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8d5f2 0%, #d4b8e0 30%, #c9a8d9 60%, #e0c4ed 100%);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Background Container with Floating Icons ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.icon-1 {
    width: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    width: 100px;
    top: 60%;
    right: 8%;
    animation-delay: 1s;
}

.icon-3 {
    width: 90px;
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.icon-4 {
    width: 85px;
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.icon-5 {
    width: 70px;
    top: 45%;
    left: 3%;
    animation-delay: 1.5s;
}

.icon-6 {
    width: 75px;
    bottom: 25%;
    right: 5%;
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

/* ===== Message Container ===== */
.message-container {
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.message.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.message.exit {
    opacity: 0;
    transform: scale(1.2);
}

.message h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #6b3a7a;
    text-shadow: 2px 2px 8px rgba(107, 58, 122, 0.2);
    line-height: 1.3;
    max-width: 90vw;
}

.sub-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #8b5a9e;
    margin-top: -10px;
    opacity: 0.8;
}

/* ===== Inline Icons ===== */
.inline-icon {
    width: 80px;
    height: auto;
    margin-top: 15px;
}

.hero-icon {
    width: 120px;
    height: auto;
    margin: 20px 0;
    animation: bounce 2s ease-in-out infinite;
}

/* Icon Animations */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.shake {
    animation: shake 0.5s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

.float {
    animation: iconFloat 3s ease-in-out infinite;
}

.swing {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

/* ===== Buttons ===== */
.buttons-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.yes-btn {
    background: linear-gradient(135deg, #e8849c 0%, #d4658a 100%);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 101, 138, 0.4);
}

.no-btn {
    background: #f5e6f0;
    color: #8b5a9e;
    border: 2px solid #d4b8e0;
    font-size: 1rem;
    padding: 12px 30px;
}

.no-btn:hover {
    transform: scale(0.9);
    opacity: 0.7;
}

/* ===== Screen Base ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Video Screen ===== */
.video-screen {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #e8d5f2 100%);
    padding: 20px;
}

.video-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: #d4658a;
    text-shadow: 2px 2px 10px rgba(212, 101, 138, 0.3);
    margin-bottom: 5px;
    animation: celebrateBounce 2s ease-in-out infinite;
}

.video-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #8b5a9e;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-container {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.tap-continue {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #8b5a9e;
    margin-top: 25px;
    opacity: 0.7;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* ===== Letter Screen ===== */
.letter-screen {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #e8d5f2 100%);
    padding: 20px;
    overflow: hidden;
}

.letter-container {
    width: 100%;
    max-width: 380px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    scroll-behavior: smooth;
}

.letter-container::-webkit-scrollbar {
    display: none;
}

.letter-paper {
    background: linear-gradient(to bottom,
            #fff9c4 0px,
            #fff9c4 30px,
            transparent 30px);
    background-color: #fffde7;
    background-size: 100% 32px;
    background-image: repeating-linear-gradient(#fffde7 0px,
            #fffde7 31px,
            #e0d4b8 31px,
            #e0d4b8 32px);
    padding: 20px 25px 40px;
    min-height: 100%;
    position: relative;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.xoxo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #e85a71;
    transform: rotate(-5deg);
}

.letter-icon {
    width: 60px;
    animation: bounce 2s ease-in-out infinite;
}

.letter-content {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 32px;
    color: #4a4a4a;
}

.letter-content p {
    margin: 0;
    padding: 0;
}

.letter-greeting {
    font-weight: 600;
    color: #6b3a7a;
    font-size: 1.1rem;
    margin-bottom: 5px !important;
}

.letter-highlight {
    font-weight: 700;
    font-size: 1.3rem;
    color: #d4658a;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.letter-signature {
    margin-top: 20px !important;
    text-align: right;
    font-style: italic;
    color: #6b3a7a;
}

.signature-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4658a;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 101, 138, 0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(212, 101, 138, 0.4);
    animation: bounce 1.5s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Final Screen - The Plan ===== */
.final-screen {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #e8d5f2 100%);
    padding: 30px;
}

.plan-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.plan-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #6b3a7a;
    text-align: center;
    margin-bottom: 30px;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-bullet {
    font-size: 1.5rem;
    color: #d4658a;
    font-weight: bold;
    line-height: 1.4;
}

.plan-step p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0;
}

.redacted {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: -30px;
    right: -30px;
    height: 100px;
    background: linear-gradient(to bottom,
            rgba(248, 187, 217, 0) 0%,
            rgba(243, 195, 220, 0.8) 50%,
            rgba(232, 213, 242, 1) 100%);
    pointer-events: none;
}

.mystery-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.mystery-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #6b3a7a;
    text-align: center;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes celebrateBounce {

    0%,
    100% {
        transform: scale(1) rotate(-2deg);
    }

    25% {
        transform: scale(1.05) rotate(2deg);
    }

    50% {
        transform: scale(1) rotate(-2deg);
    }

    75% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes successFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===== Hearts Explosion Animation ===== */
.hearts-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: heartRise 4s ease-out forwards;
    opacity: 0;
}

@keyframes heartRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Click/Tap Indicator ===== */
.tap-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #8b5a9e;
    opacity: 0.6;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .floating-icon {
        width: 50px !important;
    }

    .inline-icon {
        width: 60px;
    }

    .hero-icon {
        width: 90px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }

    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }

    .final-icons {
        gap: 15px;
    }

    .final-icon {
        width: 55px;
    }

    .letter-container {
        max-height: 65vh;
    }

    .letter-icon {
        width: 50px;
    }
}