/* ===================================================== */
/* FILE : assets/style.css */
/* ===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#121212;
    color:#FDFBF7;
    font-family:'Raleway', sans-serif;
    line-height:1.6;
    overflow-x:hidden;
}

/* LOADER */

#loader{
    position:fixed;
    inset:0;
    background:#121212;
    z-index:999999;
    display:flex;
    justify-content:center;
    align-items:center;
}

.loader-content{
    text-align:center;
}

.spinner{
    width:60px;
    height:60px;
    border:4px solid #333;
    border-top:4px solid #D4AF37;
    border-radius:50%;
    margin:auto;
    margin-top:20px;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ENVELOPE */

#envelopeWrapper{
    position:fixed;
    inset:0;
    background:#121212;
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
}

.envelope{
    width:350px;
    height:220px;
    background:#1A1A1A;
    border:2px solid #D4AF37;
    border-radius:20px;
    padding:40px;
    text-align:center;
    animation:float 3s ease-in-out infinite;
}

@keyframes float{
    0%,100%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-10px);
    }
}

.hero{
    min-height:100svh;

    padding:20px;

    background:url('bg.jpg') center center/cover no-repeat;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;
}

.overlay{
    background:rgba(0,0,0,0.65);

    padding:40px 25px;

    border-radius:20px;

    width:100%;

    max-width:800px;

    border:1px solid #333;
}

h1,h2,h3{
    font-family:'Great Vibes', serif;
    color:#D4AF37;
}

h1{
    font-size:clamp(32px,8vw,52px);

    line-height:1.3;
}

h1 span{
    display:block;
    margin:10px 0;
}

.section{
    padding:70px 20px;
}

button{
    background:#D4AF37;
    color:#121212;
    border:none;
    padding:14px 28px;
    border-radius:50px;
    cursor:pointer;
    font-weight:bold;
}

#musicToggle{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    z-index:9999;
}

.couple-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:30px;
}

.couple-card{
    width:100%;

    max-width:340px;

    padding:25px;
}

.couple-card img{

    width:100%;

    max-width:260px;

    aspect-ratio:1/1;

    object-fit:cover;

    object-position:center top;

    border-radius:50%;

    margin:auto;

    display:block;

}

.event-box{
    width:100%;

    max-width:700px;

    margin:auto;

    padding:30px 20px;
}

.btn-map{
    display:inline-block;
    margin-top:20px;
    background:#D4AF37;
    color:#121212;
    padding:12px 25px;
    border-radius:40px;
    text-decoration:none;
}

#countdown{
    font-size:clamp(24px,5vw,38px);

    text-align:center;

    line-height:1.5;
}

.gallery{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;
}

.gallery img{
    width:100%;

    height:350px;

    object-fit:cover;

    border-radius:20px;

    cursor:pointer;

    transition:0.4s;

}

.gallery img:hover{

    transform:scale(1.02);

}

form{
    max-width:600px;
    margin:auto;
}

input,
textarea,
select{
    width:100%;
    background:#1A1A1A;
    border:1px solid #333;
    color:#fff;
    padding:15px;
    margin-bottom:20px;
    border-radius:12px;
}

#wishList{
    max-width:700px;
    margin:auto;
    margin-top:40px;
}

.wish-item{
    background:#1A1A1A;
    border:1px solid #333;
    padding:20px;
    border-radius:15px;
    margin-bottom:15px;
}

/* LIGHTBOX */

#lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:20px;
}

/* FLOWER */

.petals{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:999;
}

.petal{
    position:absolute;
    top:-50px;
    width:30px;
    animation:fall linear infinite;
}

@keyframes fall{
    to{
        transform:translateY(110vh) rotate(360deg);
    }
}

/* SPARKLE */

.sparkles{
    position:fixed;
    inset:0;
    pointer-events:none;
}

.sparkle{
    position:absolute;
    width:4px;
    height:4px;
    background:#D4AF37;
    border-radius:50%;
    animation:sparkleAnim linear infinite;
}

@keyframes sparkleAnim{

    from{
        transform:translateY(0);
        opacity:1;
    }

    to{
        transform:translateY(-100px);
        opacity:0;
    }

}

@media(max-width:768px){

    body{

        font-size:15px;

    }

    .overlay{

        padding:30px 20px;

    }

    .couple-wrapper{

        flex-direction:column;

    }

    .heart{

        transform:rotate(90deg);

    }

    .gallery{

        grid-template-columns:1fr;

    }

    .gallery img{

        height:260px;

    }

    .event-box{

        padding:25px 18px;

    }

    button{

        width:100%;

    }

    #musicToggle{

        width:50px;
        height:50px;

        font-size:18px;

    }

}

@media(max-width:480px){

    .couple-card img{

        max-width:220px;

    }

}