/*=========================================================
        PURPLE MEMORIES - BIRTHDAY WEBSITE
        STYLE.CSS (PART 1)
=========================================================*/

/*==============================
        GOOGLE FONT
==============================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*==============================
        RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#12001f;

    color:#fff;

    overflow-x:hidden;

}

/*==============================
        VARIABLES
==============================*/

:root{

    --primary:#c77dff;

    --secondary:#9d4edd;

    --light:#f5e9ff;

    --glass:rgba(255,255,255,.08);

    --border:rgba(255,255,255,.15);

    --shadow:0 15px 40px rgba(0,0,0,.35);

}

/*==============================
        LOADER
==============================*/

#loader{

    position:fixed;

    inset:0;

    background:linear-gradient(135deg,#12001f,#240046,#5a189a);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:99999;

    transition:1s;

}

.loader-content{

    text-align:center;

}

.loader-heart{

    font-size:90px;

    animation:pulse 1.2s infinite;

}

.loader-content h1{

    margin-top:20px;

    font-size:34px;

}

.loading-bar{

    width:320px;

    height:10px;

    margin:30px auto;

    border-radius:30px;

    background:#ffffff22;

    overflow:hidden;

}

.loading-bar span{

    display:block;

    width:0%;

    height:100%;

    background:linear-gradient(90deg,#ffffff,#c77dff);

    animation:loading 3s linear forwards;

}

@keyframes loading{

    from{width:0;}

    to{width:100%;}

}

@keyframes pulse{

    50%{

        transform:scale(1.15);

    }

}

/*==============================
        BACKGROUND
==============================*/

.background{

    position:fixed;

    inset:0;

    z-index:-5;

    overflow:hidden;

    background:
    linear-gradient(135deg,#12001f,#240046,#5a189a,#7b2cbf);

}

#stars{

    position:absolute;

    width:100%;

    height:100%;

    background-image:
    radial-gradient(white 1px,transparent 1px);

    background-size:45px 45px;

    opacity:.35;

    animation:stars 90s linear infinite;

}

@keyframes stars{

    from{

        transform:translateY(0);

    }

    to{

        transform:translateY(-600px);

    }

}

#aurora{

    position:absolute;

    width:150%;

    height:150%;

    filter:blur(90px);

    background:

    radial-gradient(circle,#c77dff44 20%,transparent 70%),

    radial-gradient(circle,#ffffff11 15%,transparent 60%),

    radial-gradient(circle,#9d4edd44 10%,transparent 60%);

    animation:aurora 18s ease-in-out infinite alternate;

}

@keyframes aurora{

    from{

        transform:translate(-10%,-5%) rotate(0deg);

    }

    to{

        transform:translate(10%,5%) rotate(25deg);

    }

}

/*==============================
        NAVBAR
==============================*/

header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:999;

}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 60px;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(20px);

    border-bottom:1px solid var(--border);

}

.logo{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:28px;

    font-weight:700;

    color:#fff;

}

.logo i{

    color:var(--primary);

}

.nav-links{

    display:flex;

    list-style:none;

    gap:35px;

}

.nav-links a{

    color:#fff;

    text-decoration:none;

    font-size:17px;

    transition:.35s;

}

.nav-links a:hover{

    color:var(--primary);

}

.menu-btn{

    display:none;

    font-size:30px;

    cursor:pointer;

}

/*==============================
        HERO
==============================*/

.hero{

    min-height:100vh;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:60px;

    padding:140px 8% 80px;

}

.hero-content{

    flex:1;

}

.hero-content h4{

    color:#f8d7ff;

    font-size:24px;

    margin-bottom:20px;

}

.hero-content h1{

    font-size:80px;

    line-height:1.1;

}

.hero-content h2{

    color:var(--primary);

    margin:20px 0;

    font-size:40px;

}

.hero-content p{

    font-size:20px;

    color:#eeeeee;

    line-height:1.9;

    max-width:650px;

}

.hero-buttons{

    margin-top:40px;

    display:flex;

    gap:20px;

}

.btn{

    padding:16px 38px;

    border-radius:50px;

    text-decoration:none;

    font-size:18px;

    transition:.4s;

}

.primary{

    background:var(--primary);

    color:white;

}

.secondary{

    border:2px solid var(--primary);

    color:white;

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:0 10px 30px rgba(199,125,255,.5);

}

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.photo-frame{

    width:430px;

    height:430px;

    border-radius:50%;

    overflow:hidden;

    border:8px solid rgba(255,255,255,.15);

    box-shadow:
    0 0 60px rgba(199,125,255,.55);

    animation:float 5s ease-in-out infinite;

}

.photo-frame img{

    width:100%;

    height:100%;

    object-fit:cover;

}

@keyframes float{

    50%{

        transform:translateY(-18px);

    }

}

/*==============================
    SCROLL INDICATOR
==============================*/

.scroll-indicator{

    display:flex;

    justify-content:center;

    margin-bottom:50px;

}

.scroll-indicator span{

    width:28px;

    height:50px;

    border:2px solid white;

    border-radius:30px;

    position:relative;

}

.scroll-indicator span::before{

    content:"";

    position:absolute;

    width:8px;

    height:8px;

    background:white;

    left:50%;

    transform:translateX(-50%);

    border-radius:50%;

    top:8px;

    animation:scroll 1.5s infinite;

}

@keyframes scroll{

    to{

        top:28px;

        opacity:0;

    }

}


/*=========================================================
        STYLE.CSS (PART 2)
=========================================================*/

/*==============================
        SECTION HEADER
==============================*/

.section-header{

    text-align:center;

    margin-bottom:70px;

}

.section-header h2{

    font-size:50px;

    color:var(--primary);

    margin-bottom:20px;

}

.section-header p{

    max-width:700px;

    margin:auto;

    color:#ddd;

    font-size:19px;

    line-height:1.8;

}

/*==============================
        COUNTDOWN
==============================*/

.countdown{

    padding:120px 8%;

}

.countdown-container{

    display:flex;

    justify-content:center;

    gap:30px;

    flex-wrap:wrap;

}

.time-box{

    width:180px;

    padding:40px;

    text-align:center;

    border-radius:25px;

    background:var(--glass);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.4s;

}

.time-box:hover{

    transform:translateY(-12px);

    box-shadow:0 0 35px rgba(199,125,255,.6);

}

.time-box h1{

    font-size:60px;

    color:var(--primary);

}

.time-box p{

    margin-top:10px;

    font-size:18px;

    color:#fff;

}

/*==============================
        ABOUT SECTION
==============================*/

.about{

    padding:120px 8%;

}

.about-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about-image img{

    width:100%;

    border-radius:30px;

    box-shadow:0 20px 60px rgba(199,125,255,.4);

}

.about-content h3{

    font-size:42px;

    color:var(--primary);

    margin-bottom:25px;

}

.about-content p{

    line-height:2;

    color:#eee;

    margin-bottom:20px;

    font-size:18px;

}

.qualities{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-top:40px;

}

.quality-card{

    background:var(--glass);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    border-radius:20px;

    padding:30px;

    text-align:center;

    font-size:22px;

    transition:.4s;

}

.quality-card:hover{

    transform:translateY(-10px);

    background:rgba(255,255,255,.12);

}

/*==============================
        GALLERY
==============================*/

.gallery{

    padding:120px 8%;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:25px;

    cursor:pointer;

    box-shadow:var(--shadow);

}

.gallery-item img{

    width:100%;

    height:320px;

    object-fit:cover;

    transition:.6s;

}

.gallery-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(to top,
    rgba(18,0,31,.95),
    transparent);

    display:flex;

    justify-content:center;

    align-items:flex-end;

    padding:30px;

    opacity:0;

    transition:.5s;

}

.gallery-overlay h3{

    color:white;

    font-size:24px;

}

.gallery-item:hover img{

    transform:scale(1.12);

}

.gallery-item:hover .gallery-overlay{

    opacity:1;

}

/*==============================
        LIGHTBOX
==============================*/

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.lightbox img{

    max-width:90%;

    max-height:85%;

    border-radius:20px;

    box-shadow:0 0 40px rgba(199,125,255,.7);

}

.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:50px;

    cursor:pointer;

}

/*==============================
        QUOTE
==============================*/

.quote-section{

    padding:120px 8%;

}

.quote-card{

    max-width:900px;

    margin:auto;

    background:var(--glass);

    backdrop-filter:blur(20px);

    border-radius:30px;

    padding:70px;

    text-align:center;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.quote-card i{

    font-size:60px;

    color:var(--primary);

    margin-bottom:30px;

}

.quote-card h2{

    font-size:34px;

    line-height:1.6;

}

.quote-card p{

    margin-top:25px;

    color:#ddd;

    font-size:20px;

}


/*=========================================================
        STYLE.CSS (PART 3)
=========================================================*/

/*==============================
        TIMELINE
==============================*/

.timeline-section{

    padding:120px 8%;

}

.timeline{

    position:relative;

    max-width:1100px;

    margin:80px auto;

}

.timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:4px;

    height:100%;

    background:linear-gradient(var(--primary),#ffffff);

    transform:translateX(-50%);

}

.timeline-item{

    width:50%;

    padding:30px;

    position:relative;

}

.timeline-item.left{

    left:0;

}

.timeline-item.right{

    left:50%;

}

.timeline-card{

    background:var(--glass);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    padding:30px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.4s;

}

.timeline-card:hover{

    transform:translateY(-8px);

    box-shadow:0 0 30px rgba(199,125,255,.55);

}

.timeline-card h3{

    color:var(--primary);

    margin-bottom:15px;

    font-size:26px;

}

.timeline-card p{

    line-height:1.8;

    color:#ddd;

}

.timeline-item::after{

    content:"";

    position:absolute;

    width:18px;

    height:18px;

    background:var(--primary);

    border-radius:50%;

    top:50px;

    box-shadow:0 0 20px var(--primary);

}

.timeline-item.left::after{

    right:-9px;

}

.timeline-item.right::after{

    left:-9px;

}

/*==============================
        LETTER
==============================*/

.letter-section{

    padding:120px 8%;

}

.letter-card{

    max-width:900px;

    margin:auto;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    border:1px solid var(--border);

    border-radius:30px;

    padding:70px;

    box-shadow:var(--shadow);

}

.letter-card h2{

    text-align:center;

    color:var(--primary);

    margin-bottom:40px;

    font-size:42px;

}

#typingText{

    white-space:pre-line;

    line-height:2.1;

    font-size:20px;

    color:#f2f2f2;

}

/*==============================
        CAKE
==============================*/

.cake-section{

    padding:120px 8%;

    text-align:center;

}

#cake3D{

    width:280px;

    margin:80px auto;

    cursor:pointer;

    animation:floatCake 4s ease-in-out infinite;

}

.cake-layer{

    height:70px;

    border-radius:18px;

    margin-bottom:8px;

    background:linear-gradient(135deg,#d291ff,#8f3fff);

    box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.layer1{

    width:280px;

}

.layer2{

    width:220px;

    margin:auto;

}

.layer3{

    width:160px;

    margin:auto;

}

.candles{

    display:flex;

    justify-content:center;

    gap:18px;

    margin-top:-15px;

}

.candle{

    width:10px;

    height:45px;

    background:white;

    position:relative;

    border-radius:5px;

}

.candle::before{

    content:"";

    position:absolute;

    width:14px;

    height:14px;

    background:gold;

    border-radius:50%;

    top:-12px;

    left:-2px;

    animation:flicker .5s infinite alternate;

}

@keyframes flicker{

    from{

        opacity:.4;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1.15);

    }

}

@keyframes floatCake{

    50%{

        transform:translateY(-12px);

    }

}

/*==============================
        MUSIC PLAYER
==============================*/

.music-section{

    padding:120px 8%;

}

.music-card{

    max-width:700px;

    margin:auto;

    text-align:center;

    background:var(--glass);

    border:1px solid var(--border);

    border-radius:25px;

    padding:50px;

    backdrop-filter:blur(20px);

}

.music-card h2{

    color:var(--primary);

    margin-bottom:35px;

    font-size:36px;

}

.music-card audio{

    width:100%;

}

/*==============================
        GIFT BOX
==============================*/

.gift-section{

    padding:120px 8%;

    text-align:center;

}

#giftBox{

    width:220px;

    height:220px;

    margin:70px auto;

    position:relative;

    cursor:pointer;

    transition:.5s;

}

.gift-body{

    width:220px;

    height:170px;

    background:#9d4edd;

    border-radius:12px;

    position:absolute;

    bottom:0;

}

.gift-lid{

    width:240px;

    height:45px;

    background:#c77dff;

    position:absolute;

    left:-10px;

    top:0;

    border-radius:10px;

    transition:.6s;

}

.gift-ribbon-v{

    width:22px;

    height:220px;

    background:white;

    position:absolute;

    left:99px;

}

.gift-ribbon-h{

    width:220px;

    height:22px;

    background:white;

    position:absolute;

    top:78px;

}

#giftBox:hover{

    transform:scale(1.08);

}

#giftBox.open .gift-lid{

    transform:rotate(-25deg) translateY(-45px);

}

#giftMessage{

    display:none;

    max-width:750px;

    margin:50px auto;

    background:var(--glass);

    backdrop-filter:blur(20px);

    border-radius:25px;

    padding:40px;

    border:1px solid var(--border);

}

#giftMessage h1{

    color:var(--primary);

    margin-bottom:20px;

}

#giftMessage p{

    line-height:2;

    color:#eee;

}

/*=========================================================
        STYLE.CSS (PART 4 - FINAL)
=========================================================*/

/*==============================
        CELEBRATION SECTION
==============================*/

.celebration-section{

    padding:120px 8%;

    text-align:center;

}

.celebration-buttons{

    margin-top:50px;

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;

}

.celebrate-btn{

    padding:18px 45px;

    border:none;

    border-radius:50px;

    background:linear-gradient(135deg,#c77dff,#7b2cbf);

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:.4s;

    box-shadow:0 12px 35px rgba(199,125,255,.4);

}

.celebrate-btn:hover{

    transform:translateY(-6px) scale(1.05);

    box-shadow:0 18px 45px rgba(199,125,255,.7);

}

/*==============================
        FIREWORK CANVAS
==============================*/

#fireworksCanvas{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:999;

}

/*==============================
        CONFETTI
==============================*/

#confetti-container{

    position:fixed;

    inset:0;

    pointer-events:none;

    overflow:hidden;

    z-index:998;

}

.confetti{

    position:absolute;

    width:12px;

    height:12px;

    animation:confettiFall linear forwards;

}

@keyframes confettiFall{

    from{

        transform:translateY(-100px) rotate(0deg);

        opacity:1;

    }

    to{

        transform:translateY(120vh) rotate(720deg);

        opacity:0;

    }

}

/*==============================
        FLOATING HEARTS
==============================*/

#floatingHearts{

    position:fixed;

    inset:0;

    pointer-events:none;

    overflow:hidden;

    z-index:10;

}

.floating-heart{

    position:absolute;

    font-size:24px;

    animation:heartFloat linear forwards;

}

@keyframes heartFloat{

    from{

        transform:translateY(100vh);

        opacity:0;

    }

    20%{

        opacity:1;

    }

    to{

        transform:translateY(-120vh);

        opacity:0;

    }

}

/*==============================
        SCROLL TO TOP
==============================*/

#scrollTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:#c77dff;

    color:white;

    font-size:22px;

    cursor:pointer;

    display:none;

    z-index:999;

    transition:.3s;

}

#scrollTop:hover{

    transform:scale(1.1);

}

/*==============================
        FOOTER
==============================*/

footer{

    padding:80px 8%;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(20px);

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

}

.footer-content h2{

    color:#c77dff;

    font-size:40px;

    margin-bottom:20px;

}

.footer-content p{

    color:#ddd;

    margin:15px 0;

    line-height:1.8;

}

.social-icons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:35px 0;

}

.social-icons a{

    width:55px;

    height:55px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    text-decoration:none;

    font-size:22px;

    transition:.3s;

}

.social-icons a:hover{

    background:#c77dff;

    transform:translateY(-8px);

}

.copyright{

    margin-top:25px;

    color:#aaa;

}

/*==============================
        RESPONSIVE
==============================*/

@media(max-width:992px){

.hero{

    flex-direction:column-reverse;

    text-align:center;

}

.hero-buttons{

    justify-content:center;

}

.about-container{

    grid-template-columns:1fr;

}

.timeline::before{

    left:20px;

}

.timeline-item{

    width:100%;

    left:0!important;

    padding-left:60px;

    padding-right:20px;

}

.timeline-item::after{

    left:11px!important;

}

}

@media(max-width:768px){

.nav-links{

    display:none;

}

.menu-btn{

    display:block;

}

.hero-content h1{

    font-size:55px;

}

.hero-content h2{

    font-size:32px;

}

.hero-content p{

    font-size:18px;

}

.photo-frame{

    width:300px;

    height:300px;

}

.section-header h2{

    font-size:36px;

}

.letter-card{

    padding:35px;

}

.quote-card{

    padding:35px;

}

.time-box{

    width:140px;

}

}

@media(max-width:500px){

.hero{

    padding-top:120px;

}

.hero-content h1{

    font-size:42px;

}

.hero-content h2{

    font-size:26px;

}

.btn{

    width:100%;

    text-align:center;

}

.hero-buttons{

    flex-direction:column;

}

.photo-frame{

    width:250px;

    height:250px;

}

.gallery-grid{

    grid-template-columns:1fr;

}

.qualities{

    grid-template-columns:1fr;

}

}

/*==============================
        CUSTOM SCROLLBAR
==============================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#180028;

}

::-webkit-scrollbar-thumb{

    background:#9d4edd;

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:#c77dff;

}