/* ======================================
   LOVE WILDA
   Style v2
   Author : Kazu
====================================== */

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

:root{

    --bg:#020814;
    --bg2:#07182e;

    --primary:#4da6ff;
    --secondary:#8fd3ff;

    --white:#ffffff;

    --glass:rgba(255,255,255,.08);
    --border:rgba(255,255,255,.12);

    --shadow:0 0 35px rgba(77,166,255,.35);

    --radius:22px;

    --transition:.35s;

}

html{

    scroll-behavior:smooth;

}

html,
body{

    width:100%;
    height:100%;

    overflow:hidden;

    background:
    radial-gradient(circle at top,
    #153c6b,
    #020814);

    color:#fff;

    font-family:
    "Poppins",
    sans-serif;

}

body{

    user-select:none;
    -webkit-tap-highlight-color:transparent;

}

#app{

    width:100%;
    height:100%;

    position:relative;

    overflow:hidden;

}

#scene{

    position:fixed;

    inset:0;

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

    overflow:hidden;

    z-index:1;

}

#heart3d{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

}

#heart3d canvas{

    width:100%!important;
    height:100%!important;

    display:block;

}

/* ========================= */
/* GLASS */
/* ========================= */

.glass{

    background:var(--glass);

    border:1px solid var(--border);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

/* ========================= */
/* LOADING */
/* ========================= */

#loading{

    position:fixed;

    inset:0;

    background:#020814;

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

    z-index:99999;

}

.loading-card{

    width:min(92%,420px);

    padding:35px;

    text-align:center;

}

.loading-card h1{

    color:var(--secondary);

    margin-bottom:18px;

}

.loader{

    width:100%;

    height:8px;

    overflow:hidden;

    border-radius:999px;

    background:#17365f;

    margin:18px 0;

}

#loading-bar{

    width:0;

    height:100%;

    border-radius:999px;

    background:
    linear-gradient(
    90deg,
    #4da6ff,
    #8fd3ff);

    transition:.35s;

}

#loading-text{

    font-size:15px;

}

/* ========================= */
/* WELCOME */
/* ========================= */

#welcome{

    position:fixed;

    inset:0;

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

    z-index:900;

}

.welcome-card{

    width:min(92%,450px);

    padding:40px;

    text-align:center;

}

.welcome-card h1{

    font-size:34px;

    margin-bottom:15px;

}

.welcome-card p{

    opacity:.85;

    line-height:1.7;

}

.btn{

    margin-top:24px;

    border:none;

    outline:none;

    cursor:pointer;

    padding:14px 32px;

    border-radius:999px;

    color:#fff;

    font-weight:600;

    background:
    linear-gradient(
    135deg,
    #4da6ff,
    #8fd3ff);

    transition:.35s;

}

.btn:hover{

    transform:translateY(-4px);

    box-shadow:
    0 0 25px
    rgba(77,166,255,.55);

}
/* ========================= */
/* FLOATING MENU */
/* ========================= */

#menu{

    position:fixed;

    right:25px;

    bottom:25px;

    display:flex;

    flex-direction:column;

    gap:15px;

    z-index:100;

}

.menu-btn{
 
    
    width:58px;

    height:58px;

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:50%;

    color:#fff;

    font-size:22px;

    background:rgba(77,166,255,.18);

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

    backdrop-filter:blur(18px);

    transition:.35s;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.menu-btn:hover{

    transform:translateY(-4px) scale(1.08);

    background:rgba(77,166,255,.45);

}
  .menu-btn img{
    width:28px;
    height:28px;
    object-fit:contain;
    pointer-events:none;
    user-select:none;
}
    .menu-btn:hover img{
    transform:scale(1.1);
    transition:.3s;
}
/* ========================= */
/* MODAL */
/* ========================= */

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999;

}

.modal.show{

    display:flex;

    animation:fadeIn .4s ease;

}

.modal-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(8px);

}

/* ========================= */
/* CLOSE BUTTON */
/* ========================= */

.close-btn{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    color:#fff;

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

    transition:.3s;

}

.close-btn:hover{

    background:#4da6ff;

    transform:rotate(90deg);

}

/* ========================= */
/* LETTER */
/* ========================= */

.letter-card{

    position:relative;

    width:min(92%,650px);

    padding:45px;

    z-index:2;

}

.letter-card h2{

    margin-bottom:25px;

    color:#8fd3ff;

}

.typing-text{

    white-space:pre-wrap;

    line-height:2;

    font-size:17px;

}

.letter-footer{

    margin-top:30px;

    text-align:right;

    color:#8fd3ff;

}

/* ========================= */
/* GALLERY */
/* ========================= */

.gallery-card{

    position:relative;

    width:min(95%,960px);

    padding:35px;

    z-index:2;

}

.gallery-card h2{

    text-align:center;

    margin-bottom:12px;

}

.gallery-subtitle{

    text-align:center;

    opacity:.75;

    margin-bottom:28px;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:18px;

}

.gallery-grid img{

    width:100%;

    aspect-ratio:1;

    object-fit:cover;

    border-radius:18px;

    cursor:pointer;

    transition:.35s;

    border:2px solid transparent;

}

.gallery-grid img:hover{

    transform:scale(1.05);

    border-color:#4da6ff;

    box-shadow:0 0 25px rgba(77,166,255,.45);

}

/* ========================= */
/* VIEWER */
/* ========================= */

.viewer-content{

    position:relative;

    z-index:2;

    display:flex;

    flex-direction:column;

    align-items:center;

}

#viewerImage{

    max-width:90vw;

    max-height:75vh;

    border-radius:20px;

    object-fit:contain;

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

    box-shadow:0 20px 60px rgba(0,0,0,.5);

}

#viewerCaption{

    margin-top:20px;

    opacity:.85;

}

.viewer-btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:55px;

    height:55px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    color:#fff;

    font-size:24px;

    background:rgba(77,166,255,.18);

    backdrop-filter:blur(15px);

    transition:.3s;

}

.viewer-btn.left{

    left:35px;

}

.viewer-btn.right{

    right:35px;

}

.viewer-btn:hover{

    background:#4da6ff;

}

/* ========================= */
/* MUSIC */
/* ========================= */

#musicPlayer{

    position:fixed;

    left:25px;

    bottom:25px;

    z-index:120;

}

.music-card{

    display:flex;

    align-items:center;

    gap:15px;

    padding:18px 20px;

    min-width:340px;

}

.music-cover{

    width:52px;

    height:52px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#4da6ff,#8fd3ff);

    font-size:22px;

}

.music-detail{

    flex:1;

}

.music-detail h3{

    font-size:16px;

}

.music-detail p{

    font-size:13px;

    opacity:.7;

}

.music-btn{

    width:48px;

    height:48px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    background:#4da6ff;

    color:#fff;

}

.music-progress{

    flex:1;

}

.music-progress input,

.music-volume input{

    width:100%;

}
/* ========================= */
/* ENDING */
/* ========================= */

.ending-card{

    position:relative;

    width:min(92%,620px);

    padding:45px;

    text-align:center;

    z-index:2;

}

.ending-card h1{

    font-size:38px;

    color:#8fd3ff;

    margin-bottom:20px;

}

#endingMessage{

    line-height:2;

    opacity:.9;

    margin-bottom:30px;

}

/* ========================= */
/* OVERLAY */
/* ========================= */

#overlay{

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

    radial-gradient(

        circle,

        transparent 40%,

        rgba(2,8,20,.55) 100%

    );

}

/* ========================= */
/* ANIMATION */
/* ========================= */

.fade-in{

    animation:fadeIn .7s ease forwards;

}

.fade-out{

    animation:fadeOut .5s ease forwards;

}

.zoom-in{

    animation:zoomIn .6s ease;

}

.slide-up{

    animation:slideUp .7s ease;

}

.float{

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

}

.glow{

    animation:glow 3s infinite;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@keyframes fadeOut{

    from{

        opacity:1;

    }

    to{

        opacity:0;

    }

}

@keyframes slideUp{

    from{

        transform:translateY(40px);

        opacity:0;

    }

    to{

        transform:translateY(0);

        opacity:1;

    }

}

@keyframes zoomIn{

    from{

        transform:scale(.85);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-10px);

    }

    100%{

        transform:translateY(0);

    }

}

@keyframes glow{

    0%{

        box-shadow:

        0 0 12px rgba(77,166,255,.35);

    }

    50%{

        box-shadow:

        0 0 35px rgba(77,166,255,.8);

    }

    100%{

        box-shadow:

        0 0 12px rgba(77,166,255,.35);

    }

}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#061224;

}

::-webkit-scrollbar-thumb{

    background:#4da6ff;

    border-radius:999px;

}

/* ========================= */
/* UTILITY */
/* ========================= */

.hidden{

    display:none!important;

}

.center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.text-center{

    text-align:center;

}

.w-100{

    width:100%;

}

.h-100{

    height:100%;

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:992px){

    .gallery-grid{

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

    }

}

@media(max-width:768px){

    .welcome-card,

    .letter-card,

    .gallery-card,

    .ending-card{

        width:94%;

        padding:28px;

    }

    .gallery-grid{

        grid-template-columns:1fr;

    }

    #menu{

        right:16px;

        bottom:16px;

    }

    .menu-btn{

        width:50px;

        height:50px;

        font-size:18px;

    }

    .viewer-btn{

        width:46px;

        height:46px;

    }

    .music-card{

        width:calc(100vw - 30px);

        min-width:unset;

        flex-wrap:wrap;

    }

}

@media(max-width:480px){

    .loading-card,

    .welcome-card{

        padding:24px;

    }

    .btn{

        width:100%;

    }

    #viewerImage{

        max-width:95vw;

        max-height:60vh;

    }

}

/* ========================= */
/* FIX */
/* ========================= */

button{

    font-family:inherit;

}

img{

    display:block;

    user-select:none;

    -webkit-user-drag:none;

}

canvas{

    display:block;

}

input{

    accent-color:#4da6ff;

}

.music-btn:hover{

    transform:scale(1.08);

    box-shadow:

    0 0 20px rgba(77,166,255,.5);

}

.gallery-grid img:hover{

    filter:brightness(1.08);

}

#typing{

    min-height:220px;

}

.modal{

    visibility:hidden;

    opacity:0;

    transition:.35s;

}

.modal.show{

    visibility:visible;

    opacity:1;

}