@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================
   PAGE BASE
   ====================== */
body {
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f8a4b8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* ======================
   PAGE CURTAIN
   ====================== */
.page-curtain {
    position: fixed;
    inset: 0;
    background: #f8a4b8;
    z-index: 9999;
    animation: curtainFade .8s .1s ease forwards;
    pointer-events: none;
}

@keyframes curtainFade {
    to {
        opacity: 0;
    }
}

/* ======================
   BACKGROUND
   ====================== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, transparent 70%);
    animation: bokehDrift 10s ease-in-out infinite alternate;
}

@keyframes bokehDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: .2;
    }

    50% {
        transform: translate(18px, -22px) scale(1.12);
        opacity: .4;
    }

    100% {
        transform: translate(-14px, 14px) scale(.88);
        opacity: .16;
    }
}

.fh {
    position: absolute;
    bottom: -30px;
    font-size: 1.1rem;
    opacity: 0;
    animation: heartRise 9s ease-in-out infinite;
}

@keyframes heartRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: .3;
    }

    85% {
        opacity: .22;
    }

    100% {
        transform: translateY(-110vh) rotate(22deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    animation: particlePulse 3s ease-in-out infinite;
}

@keyframes particlePulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: .8;
        transform: scale(1);
    }
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .12) 100%);
    pointer-events: none;
}

.center-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, .18) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ======================
   MAIN CARD
   ====================== */
.card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 30px;
    border: none;
    padding: 44px 38px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .08);
    animation: cardIn .7s .3s cubic-bezier(.22, 1, .36, 1) both, cardBreathe 7s 1.5s ease-in-out infinite;
    text-align: center;
}

@keyframes cardIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cardBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.005);
    }
}

/* ======================
   IMAGE SECTION
   ====================== */
.img-section {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 182, 193, .4) 0%, transparent 65%);
    border-radius: 30px;
    pointer-events: none;
    z-index: 0;
}

.promise-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
    position: relative;
    z-index: 1;
    animation: imgIn .7s .5s ease both, imgFloat 5s 1.3s ease-in-out infinite;
}

@keyframes imgIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes imgFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ======================
   TITLE
   ====================== */
.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #e8608e;
    line-height: 1.3;
    margin-bottom: 28px;
    text-shadow: none;
    animation: fadeIn .6s .6s ease both;
}

.shimmer {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #e8608e 0%, #f472a0 40%, #ffd1dc 50%, #f472a0 60%, #e8608e 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   PROMISE TEXT
   ====================== */
.promise-text {
    margin-bottom: 32px;
    animation: fadeIn .6s .8s ease both;
}

.promise-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 4px;
    letter-spacing: .3px;
}

.promise-text p:last-child {
    margin-bottom: 0;
}

.heart-pulse {
    display: inline-block;
    animation: heartGlow 3s ease-in-out infinite;
}

@keyframes heartGlow {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.18);
        filter: brightness(1.3);
    }
}

/* ======================
   SURPRISE BUTTON
   ====================== */
.surprise-btn {
    display: block;
    margin: 0 auto;
    max-width: 280px;
    width: 100%;
    padding: 18px 40px;
    border: 2.5px solid rgba(244, 114, 160, .3);
    border-radius: 50px;
    background: linear-gradient(135deg, #f47a8f, #ee5a6f);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    animation: fadeIn .7s 1s ease both, surprisePulse 4s 3s ease-in-out infinite;
}

.surprise-btn-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.surprise-btn-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, #fff, #ffd1dc, #ff9ab5, #fff);
    background-size: 300% 300%;
    opacity: 0;
    z-index: 0;
    animation: glowSpin 3s ease-in-out infinite;
    filter: blur(7px);
    transition: opacity .3s ease;
}

@keyframes glowSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.surprise-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #ee5a6f, #e04860);
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(238, 90, 111, .4);
}

.surprise-btn:hover .surprise-btn-glow {
    opacity: .5;
}

.surprise-btn:active {
    transform: scale(.97);
}

@keyframes surprisePulse {

    0%,
    85%,
    100% {
        transform: scale(1);
        box-shadow: none;
    }

    90% {
        transform: scale(1.04);
        box-shadow: 0 0 25px rgba(255, 255, 255, .15);
    }

    95% {
        transform: scale(.98);
    }
}

/* ======================
   HEART BURST
   ====================== */
.heart-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 200;
}

.burst-heart {
    position: absolute;
    opacity: 0;
    animation: burstFly 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes burstFly {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

/* ======================
   SURPRISE OVERLAY
   ====================== */
.surprise-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #c94070 0%, #e05080 40%, #f0789a 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    padding: 24px;
    overflow: hidden;
}

.surprise-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.surprise-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.s-fh {
    position: absolute;
    bottom: -30px;
    font-size: 1rem;
    opacity: 0;
    animation: heartRise 7s ease-in-out infinite;
}

.surprise-radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.surprise-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .14) 100%);
    pointer-events: none;
}

.surprise-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .1), 0 0 50px rgba(255, 150, 180, .1);
    max-width: 440px;
    width: 100%;
    z-index: 2;
    transform: scale(0);
    transition: transform .7s .2s cubic-bezier(.22, 1, .36, 1);
    animation: none;
}

.surprise-overlay.visible .surprise-card {
    transform: scale(1);
    animation: cardBreathe 7s 1s ease-in-out infinite;
}

/* Corner sparkles */
.s-sparkle {
    position: absolute;
    font-size: 1rem;
    color: rgba(255, 255, 255, .5);
    opacity: 0;
    pointer-events: none;
}

.surprise-overlay.visible .s-sparkle {
    animation: sSparkle 2.5s ease-in-out infinite alternate;
}

.ss1 {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.ss2 {
    top: -10px;
    right: -10px;
    animation-delay: .6s;
}

.ss3 {
    bottom: -10px;
    left: -10px;
    animation-delay: 1.2s;
}

.ss4 {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.8s;
}

@keyframes sSparkle {
    0% {
        opacity: 0;
        transform: scale(.4) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        opacity: .2;
        transform: scale(.6) rotate(360deg);
    }
}

.surprise-heading {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    text-shadow: 0 0 30px rgba(255, 255, 255, .2);
    opacity: 0;
    animation: none;
}

.surprise-overlay.visible .surprise-heading {
    animation: textIn .6s .5s ease both;
}

.surprise-sub {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    max-width: 360px;
    opacity: 0;
    animation: none;
}

.surprise-overlay.visible .surprise-sub {
    animation: textIn .6s .8s ease both;
}

.surprise-sig {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .7);
    opacity: 0;
    animation: none;
}

.surprise-overlay.visible .surprise-sig {
    animation: textIn .6s 1.1s ease both;
}

@keyframes textIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   MOBILE
   ====================== */
@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }

    .card {
        padding: 32px 24px 30px;
        border-radius: 24px;
    }

    .title {
        font-size: 1.5rem;
    }

    .promise-text p {
        font-size: 1rem;
    }

    .promise-img {
        max-width: 140px;
    }

    .img-glow {
        width: 160px;
        height: 160px;
    }

    .surprise-btn {
        padding: 15px 32px;
    }

    .surprise-btn-text {
        font-size: 1rem;
    }

    .center-glow {
        width: 320px;
        height: 400px;
    }

    .surprise-card {
        padding: 36px 24px;
    }

    .surprise-heading {
        font-size: 1.4rem;
    }

    .surprise-sub {
        font-size: 1rem;
    }
}

/* Final Page Link */
.final-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f47a8f, #ee5a6f);
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s 2s ease forwards;
}

.final-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
    background: linear-gradient(135deg, #ee5a6f, #e04860);
}