@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: linear-gradient(155deg, #e8608e 0%, #f472a0 30%, #f8a4b8 60%, #fce4ec 100%);
    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 FADE-IN CURTAIN
   ====================== */
.page-curtain {
    position: fixed;
    inset: 0;
    background: #f472a0;
    z-index: 9999;
    animation: curtainFade 0.8s 0.1s ease forwards;
    pointer-events: none;
}

@keyframes curtainFade {
    to {
        opacity: 0;
    }
}

/* ======================
   BACKGROUND EFFECTS
   ====================== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Bokeh */
.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;
    }
}

/* Floating hearts */
.fh {
    position: absolute;
    bottom: -30px;
    font-size: 1.1rem;
    opacity: 0;
    animation: heartRise 8s ease-in-out infinite;
}

@keyframes heartRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: .35;
    }

    85% {
        opacity: .25;
    }

    100% {
        transform: translateY(-110vh) rotate(22deg);
        opacity: 0;
    }
}

/* Sparkle particles */
.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);
    }
}

/* Container glow */
.container-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(244, 114, 160, .2) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ======================
   MAIN CARD
   ====================== */
.card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .5);
    padding: 42px 34px 38px;
    max-width: 460px;
    width: 100%;
    box-shadow:
        0 20px 70px rgba(0, 0, 0, .08),
        0 0 0 1px rgba(255, 255, 255, .6) inset,
        0 0 60px rgba(244, 114, 160, .06);
    animation: cardSlideIn .7s .3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cardSlideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ======================
   TITLE SECTION
   ====================== */
.title-section {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(244, 114, 160, .2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 5.5vw, 2.3rem);
    font-weight: 700;
    color: #d94f7a;
    line-height: 1.35;
    position: relative;
    animation: fadeInDown .6s .5s ease both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shimmer-word {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #d94f7a 0%, #f472a0 40%, #ffd1dc 50%, #f472a0 60%, #d94f7a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.title-hearts {
    display: inline-block;
    position: relative;
}

.th {
    display: inline-block;
    animation: titleHeartFloat 3s ease-in-out infinite;
}

.th1 {
    animation-delay: 0s;
}

.th2 {
    animation-delay: 1.5s;
    font-size: 0.8em;
}

@keyframes titleHeartFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(8deg);
    }
}

/* ======================
   REASONS LIST
   ====================== */
.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

/* ======================
   REASON CARD
   ====================== */
.reason-card {
    background: linear-gradient(135deg, rgba(252, 228, 236, .6) 0%, rgba(248, 164, 184, .2) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: reasonFadeIn .5s cubic-bezier(.22, 1, .36, 1) both;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

/* Staggered animation */
.reason-card:nth-child(1) {
    animation-delay: .4s;
}

.reason-card:nth-child(2) {
    animation-delay: .5s;
}

.reason-card:nth-child(3) {
    animation-delay: .6s;
}

.reason-card:nth-child(4) {
    animation-delay: .7s;
}

.reason-card:nth-child(5) {
    animation-delay: .8s;
}

.reason-card:nth-child(6) {
    animation-delay: .9s;
}

.reason-card:nth-child(7) {
    animation-delay: 1s;
}

.reason-card:nth-child(8) {
    animation-delay: 1.1s;
}

@keyframes reasonFadeIn {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reason-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(244, 114, 160, .18);
    border-color: rgba(244, 114, 160, .3);
}

.reason-card.expanded {
    background: linear-gradient(135deg, rgba(252, 228, 236, .85) 0%, rgba(248, 164, 184, .35) 100%);
    box-shadow: 0 8px 32px rgba(244, 114, 160, .2);
    border-color: rgba(244, 114, 160, .35);
}

.reason-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.reason-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.reason-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
    flex: 1;
}

.reason-arrow {
    font-size: 1.4rem;
    color: #d94f7a;
    transition: transform .3s ease;
    flex-shrink: 0;
    font-weight: 700;
}

.reason-card.expanded .reason-arrow {
    transform: rotate(90deg);
}

/* Hidden message */
.reason-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-in-out, padding .4s ease-in-out;
    padding: 0 30px;
}

.reason-card.expanded .reason-hidden {
    max-height: 250px;
    padding: 0 30px 20px;
}

.reason-hidden p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: .95rem;
    color: #c45c78;
    line-height: 1.7;
    padding-left: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .35s .15s ease, transform .35s .15s ease;
}

.reason-card.expanded .reason-hidden p {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   HUG NEXT BUTTON
   ====================== */
.hug-next-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, .2);
    border: 1.5px solid rgba(255, 255, 255, .6);
    border-radius: 50px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s ease;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
}

.hug-overlay.visible .hug-next-btn {
    animation: hugTextIn .6s 1.2s ease both;
    pointer-events: auto;
}

.hug-next-btn:hover {
    background: #fff;
    color: #ff6f91;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
    border-color: #fff;
}

/* ======================
   HUG BUTTON
   ====================== */
.hug-btn {
    display: block;
    margin: 0 auto;
    max-width: 260px;
    width: 100%;
    padding: 18px 40px;
    border: 2.5px solid rgba(244, 114, 160, .5);
    border-radius: 50px;
    background: rgba(252, 228, 236, .45);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn .7s 1.3s cubic-bezier(.22, 1, .36, 1) both;
    transition: all .3s ease;
}

.hug-btn-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #d94f7a;
    position: relative;
    z-index: 1;
    transition: color .3s ease;
}

/* Glow ring */
.hug-btn-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f47a8f, #ee5a6f, #f472a0, #f47a8f);
    background-size: 300% 300%;
    opacity: 0;
    z-index: 0;
    transition: opacity .3s ease;
    animation: glowRotate 3s ease-in-out infinite;
    filter: blur(6px);
}

@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hug-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #f47a8f, #ee5a6f);
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(238, 90, 111, .4);
}

.hug-btn:hover .hug-btn-text {
    color: #fff;
}

.hug-btn:hover .hug-btn-glow {
    opacity: .5;
}

.hug-btn:active {
    transform: scale(.97);
}

/* Subtle bounce every 4s */
.hug-btn {
    animation: cardSlideIn .7s 1.3s cubic-bezier(.22, 1, .36, 1) both,
        hugBounce 4s 3s ease-in-out infinite;
}

@keyframes hugBounce {

    0%,
    85%,
    100% {
        transform: scale(1);
    }

    90% {
        transform: scale(1.05);
    }

    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.1s 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;
    }
}

/* ======================
   HUG OVERLAY
   ====================== */
.hug-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff9ab5 0%, #ff6f91 45%, #ffc3d6 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    padding: 24px;
    overflow: hidden;
}

.hug-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay floating hearts */
.hug-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hug-fh {
    position: absolute;
    bottom: -30px;
    font-size: 1rem;
    opacity: 0;
    animation: hugHeartRise 7s ease-in-out infinite;
}

@keyframes hugHeartRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: .25;
    }

    85% {
        opacity: .2;
    }

    100% {
        transform: translateY(-110vh) rotate(20deg);
        opacity: 0;
    }
}

/* Radial glow behind center */
.hug-radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 550px;
    height: 550px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Vignette */
.hug-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .12) 100%);
    pointer-events: none;
}

/* Glass card */
.hug-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 44px 40px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow:
        0 20px 70px rgba(0, 0, 0, .1),
        0 0 60px rgba(255, 150, 180, .15);
    max-width: 420px;
    width: 100%;
    z-index: 2;
    transform: scale(0);
    transition: transform .7s .2s cubic-bezier(.22, 1, .36, 1);
    animation: none;
}

.hug-overlay.visible .hug-card {
    transform: scale(1);
    animation: hugBreathe 6s 1s ease-in-out infinite;
}

@keyframes hugBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

/* Corner sparkles */
.hug-sparkle {
    position: absolute;
    font-size: 1rem;
    color: rgba(255, 255, 255, .5);
    opacity: 0;
    pointer-events: none;
}

.hug-overlay.visible .hug-sparkle {
    animation: hugSparkle 2.5s ease-in-out infinite alternate;
}

.hs1 {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.hs2 {
    top: -10px;
    right: -10px;
    animation-delay: .6s;
}

.hs3 {
    bottom: -10px;
    left: -10px;
    animation-delay: 1.2s;
}

.hs4 {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.8s;
}

@keyframes hugSparkle {
    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);
    }
}

/* Image glow behind */
.hug-img-glow {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 182, 193, .4) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Hug GIF */
.hug-gif {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: none;
}

.hug-overlay.visible .hug-gif {
    animation: hugImgIn .7s .4s ease both, hugImgFloat 4s 1.2s ease-in-out infinite;
}

@keyframes hugImgIn {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hugImgFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Heading */
.hug-heading {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    text-align: center;
    max-width: 380px;
    text-shadow: 0 0 30px rgba(255, 255, 255, .2);
    letter-spacing: .5px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: none;
}

.hug-overlay.visible .hug-heading {
    animation: hugTextIn .6s .7s ease both;
}

/* Pulsing heart emoji */
.hug-heart-pulse {
    display: inline-block;
    animation: hugHeartGlow 3s ease-in-out infinite;
}

@keyframes hugHeartGlow {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

/* Subtext */
.hug-sub {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: none;
}

.hug-overlay.visible .hug-sub {
    animation: hugTextIn .6s 1s ease both;
}

@keyframes hugTextIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   MOBILE
   ====================== */
@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }

    .card {
        padding: 32px 20px 30px;
        border-radius: 24px;
    }

    .title {
        font-size: 1.5rem;
    }

    .reason-main {
        padding: 14px 14px;
        gap: 10px;
    }

    .reason-icon {
        font-size: 1.2rem;
    }

    .reason-text {
        font-size: .92rem;
    }

    .reason-hidden p {
        font-size: .88rem;
        padding-left: 36px;
    }

    .hug-btn {
        padding: 15px 32px;
    }

    .hug-btn-text {
        font-size: 1.05rem;
    }

    .container-glow {
        width: 320px;
        height: 400px;
    }

    .hug-card {
        padding: 30px 24px;
    }

    .hug-gif {
        max-width: 200px;
    }

    .hug-radial-glow {
        width: 350px;
        height: 350px;
    }

    .hug-img-glow {
        width: 170px;
        height: 170px;
    }
}