

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#050816;
    color:#fff;
    overflow-x:hidden;
    min-height:100vh;
    position:relative;
}


.background{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    overflow:hidden;
    z-index:-100;
}

.gradient{
    position:absolute;
    width:100%;
    height:100%;
    background:linear-gradient(
        -45deg,
        #ff0080,
        #8b5cf6,
        #2563eb,
        #06b6d4,
        #ff0080
    );
    background-size:400% 400%;
    animation:bgMove 15s linear infinite;
}

@keyframes bgMove{

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

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

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

}

.stars{
    position:absolute;
    inset:0;

    background-image:
    radial-gradient(#fff 1px,transparent 1px);

    background-size:35px 35px;

    opacity:.25;

    animation:twinkle 4s infinite alternate;
}

@keyframes twinkle{

    from{
        opacity:.2;
    }

    to{
        opacity:.55;
    }

}

.particles{

    position:absolute;
    inset:0;
    overflow:hidden;

}

.particles::before,
.particles::after{

    content:"";

    position:absolute;

    width:320px;
    height:320px;

    border-radius:50%;

    filter:blur(80px);

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

    animation:moveParticle 12s infinite alternate;

}

.particles::after{

    right:0;
    bottom:0;

    animation-delay:4s;

}

@keyframes moveParticle{

    from{

        transform:translate(-50px,-20px);

    }

    to{

        transform:translate(80px,60px);

    }

}

#fireworks{

    position:fixed;

    inset:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:1;

}

.hero{

    width:100%;
    min-height:100vh;

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

    padding:30px 20px;

    position:relative;

    z-index:10;

}

.glass-card{

    width:100%;
    max-width:720px;

    padding:45px;

    text-align:center;

    border-radius:30px;

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

    backdrop-filter:blur(18px);

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

    box-shadow:
    0 15px 40px rgba(0,0,0,.45),
    0 0 40px rgba(255,0,140,.18);

    animation:floatCard 5s ease-in-out infinite;

}

@keyframes floatCard{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0);

    }

}



.welcome{

    color:#ffd54f;

    font-size:22px;

    letter-spacing:2px;

    margin-bottom:18px;

}

.title{

    font-size:60px;

    font-weight:800;

    line-height:1.2;

    text-shadow:
    0 0 20px #ff2d75,
    0 0 50px #ff2d75;

}

.name{

    display:block;

    margin-top:12px;

    color:#ffe082;

    animation:nameGlow 2s infinite alternate;

}

@keyframes nameGlow{

    from{

        text-shadow:0 0 10px gold;

    }

    to{

        text-shadow:
        0 0 20px gold,
        0 0 45px orange;

    }

}

#typing{

    margin-top:25px;

    line-height:1.8;

    font-size:19px;

    color:#f4f4f4;

}


.buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:35px;
    flex-wrap:wrap;
}

button{
    padding:15px 35px;
    border:none;
    border-radius:50px;
    cursor:pointer;
    font-size:17px;
    font-weight:600;
    transition:.35s;
}

#surpriseBtn{
    background:linear-gradient(135deg,#ff2d75,#ff6b6b);
    color:#fff;
    box-shadow:0 0 25px rgba(255,45,117,.5);
}

#surpriseBtn:hover{
    transform:translateY(-6px) scale(1.05);
    box-shadow:0 0 40px #ff2d75;
}

#surpriseBtn.active{
    animation:pulse 1s infinite;
}

#musicBtn{
    background:#fff;
    color:#111;
}

#musicBtn:hover{
    transform:translateY(-6px);
}

@keyframes pulse{

    0%{
        box-shadow:0 0 10px #ff2d75;
    }

    50%{
        box-shadow:
        0 0 25px #ff2d75,
        0 0 50px #ff2d75;
    }

    100%{
        box-shadow:0 0 10px #ff2d75;
    }

}

.balloons{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
    z-index:3;
}

.balloon{
    position:absolute;
    bottom:-160px;
    width:65px;
    height:82px;
    border-radius:50%;
    animation:balloonFloat linear infinite;
}

.balloon::before{
    content:"";
    position:absolute;
    width:2px;
    height:90px;
    background:#ffffff88;
    left:50%;
    top:82px;
}

.balloon::after{
    content:"";
    position:absolute;
    width:16px;
    height:16px;
    background:inherit;
    bottom:-7px;
    left:24px;
    transform:rotate(45deg);
}

.b1{left:4%;background:#ff4d6d;animation-duration:12s;}
.b2{left:16%;background:#ffd60a;animation-duration:14s;}
.b3{left:28%;background:#00c2ff;animation-duration:11s;}
.b4{left:42%;background:#00e676;animation-duration:16s;}
.b5{left:58%;background:#9c27b0;animation-duration:13s;}
.b6{left:72%;background:#ff9800;animation-duration:17s;}
.b7{left:84%;background:#03a9f4;animation-duration:15s;}
.b8{left:94%;background:#e91e63;animation-duration:18s;}

@keyframes balloonFloat{

    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-140vh);
    }

}

.hearts{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:4;
}

.hearts span{
    position:absolute;
    bottom:-40px;
    color:#ff4d88;
    animation:heartFloat linear forwards;
}

@keyframes heartFloat{

    0%{
        transform:translateY(0) scale(.5);
        opacity:0;
    }

    15%{
        opacity:1;
    }

    100%{
        transform:translateY(-120vh) scale(1.6) rotate(360deg);
        opacity:0;
    }

}

.hidden{
    display:none;
}

.gift-section{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
    position:relative;
    z-index:10;
}

.gift-box{
    width:180px;
    height:170px;
    position:relative;
    cursor:pointer;
    transition:.6s;
}

.gift-box:hover{
    transform:scale(1.08) rotate(-3deg);
}

.box{
    position:absolute;
    bottom:0;
    width:180px;
    height:125px;
    background:linear-gradient(135deg,#ff2d75,#ff5c8d);
    border-radius:12px;
    box-shadow:0 15px 30px rgba(0,0,0,.35);
}

.box::before{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:22px;
    height:125px;
    background:#ffd54f;
}

.box::after{
    content:"";
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:100%;
    height:20px;
    background:#ffd54f;
}

.lid{
    position:absolute;
    top:0;
    left:-5px;
    width:190px;
    height:40px;
    background:#ff82ac;
    border-radius:10px;
    transition:.7s;
}

.gift-box.open .lid{
    transform:rotate(-20deg) translate(-15px,-40px);
}

.cake-section{
    width:100%;
    display:flex;
    justify-content:center;
    padding:60px 20px;
    position:relative;
    z-index:10;
}

.cake{
    position:relative;
    width:240px;
    height:220px;
}

.layer{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    border-radius:15px;
}

.bottom{
    width:220px;
    height:70px;
    bottom:0;
    background:#ffb703;
}

.middle{
    width:180px;
    height:60px;
    bottom:70px;
    background:#ff8fab;
}

.top{
    width:140px;
    height:50px;
    bottom:130px;
    background:#ffffff;
}

.layer::before{
    content:"";
    position:absolute;
    width:100%;
    height:10px;
    background:#fff;
    border-radius:50%;
    top:-5px;
}

.candle{
    position:absolute;
    width:10px;
    height:40px;
    background:#00c2ff;
    border-radius:5px;
    top:10px;
}

.c1{left:75px;}
.c2{left:112px;}
.c3{left:148px;}

.candle::after{
    content:"";
    position:absolute;
    width:12px;
    height:18px;
    top:-16px;
    left:-1px;
    border-radius:50%;
    background:gold;
    box-shadow:0 0 18px yellow;
    animation:flicker .5s infinite alternate;
}

@keyframes flicker{

    from{
        transform:scale(1);
    }

    to{
        transform:scale(.75);
    }

}

.message{
    width:100%;
    max-width:900px;
    margin:40px auto;
    padding:40px 25px;
    text-align:center;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border-radius:25px;
}

.message h2{
    font-size:34px;
    margin-bottom:20px;
    color:#ffd54f;
}

.message p{
    font-size:18px;
    line-height:1.9;
    color:#f5f5f5;
}

.photo{
    display:flex;
    justify-content:center;
    padding:40px 20px;
}

.photo-card{
    width:300px;
    padding:10px;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    box-shadow:0 0 35px rgba(255,255,255,.15);
    transition:.5s;
}

.photo-card:hover{
    transform:scale(1.05);
}

.photo-card img{
    width:100%;
    display:block;
    border-radius:15px;
}

.final{
    text-align:center;
    padding:80px 20px;
}

.final h1{
    font-size:54px;
    color:#fff;
    text-shadow:
    0 0 15px #ff2d75,
    0 0 35px #ff2d75,
    0 0 70px #ff2d75;
}

.final p{
    margin-top:20px;
    font-size:24px;
    color:#ffd54f;
}


section{
    width:100%;
    position:relative;
    z-index:10;
}

img{
    max-width:100%;
    display:block;
}

canvas{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
}

/* ==========================
   CARD HOVER
========================== */

.glass-card{
    transition:.4s;
}

.glass-card:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:
    0 20px 50px rgba(0,0,0,.45),
    0 0 50px rgba(255,45,117,.35);
}

.message,
.photo,
.final,
.cake-section,
.gift-section{

    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(60px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111827;
}

::-webkit-scrollbar-thumb{
    background:#ff2d75;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff5f96;
}

@media (max-width:992px){

.glass-card{
    max-width:90%;
    padding:35px;
}

.title{
    font-size:48px;
}

.message{
    width:90%;
}

.photo-card{
    width:260px;
}

}

@media (max-width:768px){

.hero{
    padding:25px 15px;
}

.glass-card{
    width:100%;
    padding:28px 20px;
    border-radius:20px;
}

.welcome{
    font-size:18px;
}

.title{
    font-size:34px;
}

.name{
    font-size:32px;
}

#typing{
    font-size:16px;
    line-height:1.7;
}

.buttons{
    flex-direction:column;
}

.buttons button{
    width:100%;
    max-width:300px;
}

.balloon{
    width:50px;
    height:65px;
}

.balloon::before{
    height:65px;
    top:65px;
}

.balloon::after{
    left:17px;
}

.gift-box{
    transform:scale(.85);
}

.cake{
    transform:scale(.8);
}

.message{
    width:92%;
    padding:25px 18px;
}

.message h2{
    font-size:26px;
}

.message p{
    font-size:16px;
}

.photo-card{
    width:220px;
}

.final h1{
    font-size:34px;
}

.final p{
    font-size:18px;
}

}

@media (max-width:480px){

.hero{
    padding:15px;
}

.glass-card{
    padding:20px 15px;
}

.title{
    font-size:28px;
}

.name{
    font-size:26px;
}

#typing{
    font-size:14px;
}

.message h2{
    font-size:22px;
}

.message p{
    font-size:15px;
}

.photo-card{
    width:180px;
}

.final h1{
    font-size:26px;
}

.final p{
    font-size:16px;
}

.gift-box{
    transform:scale(.72);
}

.cake{
    transform:scale(.7);
}

}

button,
.photo-card,
.gift-box,
.glass-card{

    transition:all .35s ease;

}


@keyframes float {

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-12px);
    }

    100%{
        transform:translateY(0px);
    }

}

.photo-card{
    animation:float 4s ease-in-out infinite;
}

.glass-card::before{

    content:"";

    position:absolute;

    inset:-2px;

    border-radius:32px;

    background:linear-gradient(
        45deg,
        #ff2d75,
        #ffd54f,
        #00c2ff,
        #ff2d75
    );

    background-size:300%;

    animation:borderMove 8s linear infinite;

    z-index:-1;

    filter:blur(12px);

    opacity:.5;

}

@keyframes borderMove{

    0%{
        background-position:0%;
    }

    100%{
        background-position:300%;
    }

}

#surpriseBtn{

    position:relative;

    overflow:hidden;

}

#surpriseBtn::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60px;

    height:100%;

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

    transform:skewX(-20deg);

    transition:.7s;

}

#surpriseBtn:hover::before{

    left:130%;

}


.photo-card img{

    box-shadow:

    0 0 25px rgba(255,255,255,.25);

}


.cake{

    filter:drop-shadow(0 0 25px gold);

}


.gift-box{

    filter:drop-shadow(0 0 20px hotpink);

}

.final h1{

    animation:zoomGlow 2s infinite alternate;

}

@keyframes zoomGlow{

    from{

        transform:scale(1);

    }

    to{

        transform:scale(1.05);

    }

}
.gift-box{
    position:relative;
}

.gift-letter{
    position:absolute;
    left:50%;
    top:-170px;
    transform:translateX(-50%);
    width:280px;
    padding:20px;
    background:#fff;
    color:#222;
    border-radius:15px;
    text-align:center;
    box-shadow:0 15px 30px rgba(0,0,0,.3);
    animation:popup .8s ease forwards;
}

@keyframes popup{
    from{
        opacity:0;
        transform:translate(-50%,40px) scale(.5);
    }

    to{
        opacity:1;
        transform:translate(-50%,0) scale(1);
    }
}