* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0d0614;
    color: white;
    overflow-x: hidden;
}

/* BACKGROUND */

.background {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 79, 154, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(155, 92, 255, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0d0614,
            #210b27,
            #12051c
        );
}

/* STARS */

#stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* OPENING */

#opening {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #0d0614;

    transition: opacity 1s ease;
}

.opening-content {
    padding: 25px;
}

.opening-content .small {
    color: #ff9acb;
    letter-spacing: 4px;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.opening-content h1 {
    font-family: Georgia, serif;
    font-size: clamp(45px, 10vw, 90px);
}

.opening-content h1 span {
    color: #ff6fac;
}

.opening-content p {
    margin: 20px 0 30px;
    color: #ddd;
    line-height: 1.7;
}

.open-btn {
    border: none;
    padding: 16px 35px;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #ff4f9a,
        #a85cff
    );

    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    box-shadow:
        0 10px 35px
        rgba(255, 79, 154, 0.35);

    transition: 0.3s;
}

.open-btn:hover {
    transform: scale(1.08);
}

.hide-opening {
    opacity: 0;
    pointer-events: none;
}

/* SECTIONS */

section {
    max-width: 1100px;
    margin: auto;
    padding: 90px 20px;
}

/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.date {
    display: inline-block;

    padding: 9px 20px;

    border: 1px solid rgba(255, 117, 183, 0.2);

    background: rgba(255, 117, 183, 0.07);

    color: #ff9aca;

    border-radius: 50px;

    letter-spacing: 3px;

    font-size: 13px;

    margin-bottom: 25px;
}

.hero h1 {
    font-family: Georgia, serif;

    font-size: clamp(50px, 12vw, 110px);

    line-height: 1;

    margin-bottom: 20px;

    background:
        linear-gradient(
            90deg,
            #fff,
            #ff83bb,
            #d38aff,
            #fff
        );

    -webkit-background-clip: text;
    color: transparent;

    background-size: 300%;

    animation: gradientMove 5s infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0%;
    }

    50% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}

.hero h2 {
    font-size: clamp(22px, 5vw, 38px);
    color: #ffb4d6;
}

.hero p {
    margin: 25px auto;

    max-width: 650px;

    color: #ddd;

    line-height: 1.8;

    font-size: 17px;
}

/* TITLES */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: #ff73ae;

    font-size: 13px;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.section-title h2 {
    font-family: Georgia, serif;

    font-size: clamp(35px, 7vw, 60px);

    margin-top: 10px;
}

/* LETTER */

.letter {
    background: rgba(255,255,255,0.035);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 25px;

    padding: clamp(25px,6vw,60px);

    line-height: 2;

    color: #eee;

    font-size: 17px;
}

.letter .dear {
    font-family: Georgia, serif;

    color: #ff9acb;

    font-size: 28px;

    margin-bottom: 20px;
}

.letter p {
    margin-bottom: 18px;
}

.signature {
    margin-top: 30px;

    text-align: right;

    font-family: Georgia, serif;

    color: #ff9acb;

    font-size: 24px;
}

/* CARDS */

.memories {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}

.memory {
    min-height: 240px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,79,154,.08),
            rgba(168,92,255,.08)
        );

    border:
        1px solid
        rgba(255,255,255,.07);

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 25px;

    transition: .4s;
}

.memory:hover {
    transform: translateY(-10px);

    box-shadow:
        0 20px 50px
        rgba(255,79,154,.12);
}

.memory .emoji {
    font-size: 55px;
    margin-bottom: 15px;
}

.memory h3 {
    color: #ffafd0;
    margin-bottom: 8px;
}

.memory p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}

/* COUNTDOWN */

.countdown-box {
    text-align: center;

    padding: 45px 20px;

    background:
        rgba(255,255,255,.035);

    border-radius: 25px;

    border:
        1px solid
        rgba(255,255,255,.08);
}

.countdown {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.time {
    width: 110px;
    height: 110px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,79,154,.12),
            rgba(168,92,255,.12)
        );

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.time strong {
    font-size: 32px;
    color: #ff9acb;
}

.time small {
    color: #aaa;

    text-transform: uppercase;

    font-size: 10px;

    letter-spacing: 2px;
}

/* GIFT */

.surprise {
    text-align: center;
}

.gift {
    font-size: 100px;

    cursor: pointer;

    display: inline-block;

    animation: giftFloat 2s infinite;

    transition: .3s;
}

.gift:hover {
    transform: scale(1.15);
}

@keyframes giftFloat {
    50% {
        transform:
            translateY(-15px)
            rotate(3deg);
    }
}

.surprise-content {
    max-width: 800px;

    margin: 35px auto 0;

    display: none;

    animation: surpriseIn 1s ease;
}

.surprise-content.show {
    display: block;
}

@keyframes surpriseIn {
    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

/* KAVITHA */

.kavitha {
    padding: 35px 25px;

    background:
        rgba(255,255,255,.05);

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 25px;
}

.kavitha-label {
    color: #ff82b9;

    letter-spacing: 3px;

    font-size: 12px;

    margin-bottom: 20px;
}

.kavitha h2 {
    font-family: Georgia, serif;

    font-size: clamp(28px,6vw,48px);

    color: #ffacd0;

    margin-bottom: 25px;
}

.kavitha-text {
    color: #eee;

    font-size: clamp(18px,3.5vw,23px);

    line-height: 2.2;
}

.kavitha-text span {
    color: #ff9acb;
}

/* BUTTON */

.surprise-btn {
    margin-top: 30px;

    border: none;

    padding: 14px 30px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #ff4f9a,
            #a85cff
        );

    color: white;

    cursor: pointer;

    font-size: 15px;

    transition: .3s;
}

.surprise-btn:hover {
    transform: scale(1.06);
}

/* SECRET */

.secret-section {
    display: none;

    margin-top: 35px;

    padding: 35px 25px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 25px;
}

.secret-section.show {
    display: block;
}

.lock {
    font-size: 65px;
    margin-bottom: 15px;
}

.secret-section h2 {
    font-family: Georgia, serif;

    font-size: clamp(30px,6vw,48px);

    color: #ff9dcc;

    margin-bottom: 15px;
}

.secret-section p {
    color: #bbb;

    line-height: 1.8;

    margin-bottom: 25px;
}

.password-box {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.password-box input {
    width: 240px;

    padding: 14px 20px;

    border-radius: 50px;

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.05);

    color: white;

    outline: none;

    text-align: center;
}

.password-btn {
    border: none;

    padding: 14px 25px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #ff4f9a,
            #a85cff
        );

    color: white;

    cursor: pointer;
}

.password-error {
    min-height: 25px;

    margin-top: 15px;

    color: #ff719f;
}

/* PHOTO */

.photo-section {
    display: none;

    margin-top: 40px;
}

.photo-section.show {
    display: block;
}

.photo-title {
    font-family: Georgia, serif;

    font-size: clamp(30px,7vw,55px);

    color: #ff8fc3;

    margin-bottom: 12px;
}

.photo-subtitle {
    color: #bbb;

    margin-bottom: 25px;

    line-height: 1.8;
}

.photo-frame {
    width: min(90vw,600px);

    margin: auto;

    padding: 8px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #ff4f9a,
            #985cff
        );
}

.photo-frame img {
    width: 100%;

    display: block;

    border-radius: 19px;

    max-height: 650px;

    object-fit: cover;
}

/* FINAL */

.final-message {
    display: none;

    margin-top: 40px;

    padding: 35px 25px;

    border-radius: 25px;

    background:
        rgba(255,255,255,.05);

    border:
        1px solid
        rgba(255,255,255,.1);
}

.final-message.show {
    display: block;
}

.final-message h2 {
    font-family: Georgia, serif;

    font-size: clamp(35px,8vw,65px);

    background:
        linear-gradient(
            90deg,
            #fff,
            #ff83bb,
            #d38aff
        );

    -webkit-background-clip: text;

    color: transparent;

    margin-bottom: 20px;
}

.final-message p {
    max-width: 650px;

    margin: auto;

    color: #ddd;

    line-height: 2;

    font-size: 17px;
}

/* FOOTER */

footer {
    text-align: center;

    padding: 50px 20px;

    color: #888;

    font-size: 13px;
}

/* MOBILE */

@media (max-width:700px) {

    section {
        padding: 70px 18px;
    }

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

    .memory {
        min-height: 180px;
    }

    .time {
        width: 75px;
        height: 85px;
    }

    .time strong {
        font-size: 25px;
    }

    .gift {
        font-size: 85px;
    }

    .kavitha {
        padding: 30px 18px;
    }

    .password-box input {
        width: 100%;
        max-width: 280px;
    }
}

/* GIFT OPENED BEHAVIOR */

#surprise {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#surpriseContent {
    width: 100%;
}

#giftBox {
    transition: all 0.5s ease;
}

.surprise-content.show {
    display: block;
    animation: surpriseReveal 1s ease;
}

@keyframes surpriseReveal {

    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.hands-image {
    margin: 35px auto;
    text-align: center;
}

.hands-image img {
    width: 193px;
    max-width: 70vw;
    display: inline-block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 79, 154, 0.25);
    transition: 0.4s ease;
}

.hands-image img:hover {
    transform: scale(1.05) translateY(-5px);
}


/* =========================================
   OPENING SCREEN FALLING SPARKLES
========================================= */

.opening-sparkle {
    position: fixed;
    top: -30px;
    left: 0;
    color: #ffffff;
    font-size: 12px;
    pointer-events: none;
    z-index: 1001;
    text-shadow:
        0 0 6px #ffffff,
        0 0 14px #ff9acb,
        0 0 22px #a85cff;
    animation: sparkleFall linear forwards;
}

@keyframes sparkleFall {

    0% {
        transform: translate3d(0, -30px, 0) rotate(0deg) scale(0.6);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate3d(35px, 50vh, 0) rotate(180deg) scale(1);
    }

    100% {
        transform: translate3d(-30px, 110vh, 0) rotate(360deg) scale(0.4);
        opacity: 0;
    }
}

.opening-content {
    position: relative;
    z-index: 2;
    animation: openingContentIn 1.4s ease both;
}

@keyframes openingContentIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

}

.opening-content .small {
    text-shadow:
        0 0 10px rgba(255, 154, 203, 0.45);
}

.opening-content h1 {
    text-shadow:
        0 0 25px rgba(255, 255, 255, 0.08),
        0 0 45px rgba(168, 92, 255, 0.18);
}

.open-btn {
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2.5s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%, 100% {
        box-shadow:
            0 10px 35px rgba(255, 79, 154, 0.35);
    }

    50% {
        box-shadow:
            0 10px 45px rgba(255, 79, 154, 0.60),
            0 0 25px rgba(168, 92, 255, 0.30);
    }

}

.open-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );
    transform: skewX(-20deg);
    animation: buttonShine 3.5s ease-in-out infinite;
}

@keyframes buttonShine {

    0% {
        left: -120%;
    }

    45%, 100% {
        left: 140%;
    }

}


/* =========================================
   FIRST OPENING SCREEN - MAGIC SPARKLES
========================================= */

#opening {
    overflow: hidden;
}

.opening-sparkle {
    position: absolute;
    top: -25px;
    color: #fff;
    pointer-events: none;
    z-index: 5;

    text-shadow:
        0 0 6px rgba(255,255,255,0.9),
        0 0 14px rgba(255,154,203,0.8),
        0 0 25px rgba(168,92,255,0.7);

    animation: openingSparkleFall linear forwards;
}

@keyframes openingSparkleFall {

    0% {
        transform:
            translate3d(0, -30px, 0)
            rotate(0deg)
            scale(0.4);

        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        transform:
            translate3d(35px, 50vh, 0)
            rotate(180deg)
            scale(1);
    }

    100% {
        transform:
            translate3d(-25px, 110vh, 0)
            rotate(360deg)
            scale(0.5);

        opacity: 0;
    }
}


/* Opening text comes in softly */

#opening .opening-content {
    animation:
        openingTextReveal 1.5s ease-out both;
}

@keyframes openingTextReveal {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

}


/* Open button gentle breathing glow */

#opening .open-btn {
    animation:
        openingButtonGlow 2.5s ease-in-out infinite;
}

@keyframes openingButtonGlow {

    0%,
    100% {
        box-shadow:
            0 10px 35px rgba(255,79,154,0.30);
    }

    50% {
        box-shadow:
            0 10px 50px rgba(255,79,154,0.65),
            0 0 25px rgba(168,92,255,0.35);
    }

}


/* ===== FIRST SCREEN FALLING STARS ===== */

#opening {
    overflow: hidden !important;
}

.opening-falling-star {
    position: absolute;
    top: -30px;
    z-index: 10;
    pointer-events: none;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    text-shadow:
        0 0 5px #ffffff,
        0 0 12px #ff9acb,
        0 0 22px #a85cff;
    animation: openingStarFall linear forwards;
}

@keyframes openingStarFall {

    0% {
        transform: translateY(-30px) rotate(0deg) scale(0.4);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        transform: translate(35px, 50vh) rotate(180deg) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-25px, 110vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

#opening .open-btn {
    animation: openingButtonPulse 2.5s ease-in-out infinite;
}

@keyframes openingButtonPulse {

    0%, 100% {
        box-shadow: 0 10px 35px rgba(255, 79, 154, 0.30);
    }

    50% {
        box-shadow:
            0 10px 50px rgba(255, 79, 154, 0.65),
            0 0 25px rgba(168, 92, 255, 0.35);
    }
}


/* =========================================
   OPEN YOUR SURPRISE - BUBBLE BLAST
========================================= */

.surprise-blast {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
}

.surprise-bubble {
    position: absolute;
    left: 50%;
    bottom: 5%;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.35) 10%,
            rgba(255,154,203,0.55) 35%,
            rgba(168,92,255,0.30) 65%,
            rgba(168,92,255,0.05) 100%
        );

    border: 1px solid rgba(255,255,255,0.55);

    box-shadow:
        inset 4px 4px 10px rgba(255,255,255,0.45),
        0 0 15px rgba(255,154,203,0.55),
        0 0 30px rgba(168,92,255,0.35);

    animation:
        bubbleRise var(--duration) ease-out forwards;

    opacity: 0;
}

@keyframes bubbleRise {

    0% {
        transform:
            translate(-50%, 0)
            scale(0.15);

        opacity: 0;
    }

    10% {
        opacity: 0.95;
    }

    55% {
        opacity: 0.85;
    }

    100% {
        transform:
            translate(
                calc(-50% + var(--x)),
                var(--y)
            )
            scale(1);

        opacity: 0;
    }
}


/* HEARTS */

.surprise-heart {
    position: absolute;
    left: 50%;
    bottom: 8%;

    font-size: var(--size);

    filter:
        drop-shadow(0 0 8px rgba(255,79,154,0.9))
        drop-shadow(0 0 18px rgba(168,92,255,0.6));

    animation:
        heartBurst var(--duration) ease-out forwards;

    opacity: 0;
}

@keyframes heartBurst {

    0% {
        transform:
            translate(-50%, 0)
            scale(0.2);

        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform:
            translate(
                var(--x),
                var(--y)
            )
            rotate(var(--rotate))
            scale(1.2);

        opacity: 0;
    }
}


/* SPARKLE EXPLOSION */

.surprise-spark {
    position: absolute;
    left: 50%;
    bottom: 15%;

    color: white;
    font-size: var(--size);

    text-shadow:
        0 0 6px white,
        0 0 15px #ff9acb,
        0 0 30px #a85cff;

    animation:
        sparkBurst var(--duration) ease-out forwards;

    opacity: 0;
}

@keyframes sparkBurst {

    0% {
        transform:
            translate(-50%, 0)
            scale(0.1);

        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform:
            translate(
                var(--x),
                var(--y)
            )
            rotate(var(--rotate))
            scale(1.5);

        opacity: 0;
    }
}


/* SMALL GLOW FLASH */

.surprise-glow {
    position: fixed;
    left: 50%;
    top: 55%;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.8),
            rgba(255,154,203,0.35),
            transparent 70%
        );

    transform: translate(-50%, -50%) scale(0.1);

    animation:
        surpriseGlow 0.9s ease-out forwards;

    pointer-events: none;
}

@keyframes surpriseGlow {

    0% {
        transform:
            translate(-50%, -50%)
            scale(0.1);

        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(7);

        opacity: 0;
    }
}

