*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    width:100%;
    height:100vh;
    overflow:hidden;
    position:relative;
    font-family: "Playwrite US Trad", cursive;
    background:#000;
    color:#f3e7d3;
    
}

/* BACKGROUND */

.bg{
    position: absolute;
    inset: 0;
    background: linear-gradient(rgb(0 0 0 / 12%), rgb(0 0 0 / 26%)), url(./img/back.png);
    background-size: cover;
    background-position: center;
    filter: sepia(10%) brightness(0.92);
    /* transform: scale(1.04); */
    background-position: -100px center;
}

.grain{
    position:absolute;
    inset:0;
    opacity:.08;
    background:url("https://www.transparenttextures.com/patterns/asfalt-light.png");
    pointer-events:none;
}

/* HEADER */

header{
    position:absolute;
    top:0;
    left:0;

    width:100%;

    z-index:100;

    display:flex;
    align-items:center;
    justify-content:space-between;
    
    padding:0px 65px;
}

.logo{
    font-size:55px;
    font-family: "Playwrite US Trad", cursive;
    position:relative;
    color:#f5ead9;
}



nav{
    display:flex;
    gap:20px;

    padding: 10px 22px;

    background: #f1cd95ab;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.2);

    align-items: center;
}

/* LINK */
nav a{
    font-family: "Cutive Mono", monospace;
    text-decoration:none;
    color: #2c2b2b;
    font-size: 15px;
    font-weight: 600;
    letter-spacing:1px;

    opacity:.75;
    position:relative;

    padding: 6px 12px;
    border-radius: 999px;

    transition: all .25s ease;
}

nav:hover{
    opacity: 1;
    font-weight: 600;
    transform: scale(1.08);

    background: rgba(255, 233, 182, 0.684);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}



/* HERO */

.hero{
    position:relative;
    z-index:4;

    width:100vw;
    height: 100%;
padding-top: 20%;

    display:flex;
    align-items:center;
    justify-content:center;
    overflow: hidden;
}

/* CENTER */

.center{
    text-align:center;
}
.center{
    position:relative;
}

/* CHO TEXT NỔI LÊN */

.center > *{
    position:relative;
    z-index:2;
}

/* ÁNH SÁNG */

.light-burst {
    position: absolute;
    left: 50%;
    top: -50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 850px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.851) 0%, rgb(255 255 255 / 15%) 25%, rgb(255 255 255 / 25%) 45%, #00000000 75%);
    /* filter: blur(20px); */
    opacity: .9;
    z-index: 0;
}
.big-title{
    position:relative;
    top:-260px;
}

.sub{
    font-size:60px;
    margin-top:-10px;
    letter-spacing:2px;
    color:#2e241b;
}

.line{
    width:240px;
    height:1.5px;
    background:#2e241b;
    margin:16px auto 28px;
}

.desc{
    font-size:34px;
    line-height:1.6;
    font-weight:300;
    color:#2f261d;
}

.write-btn{
     top:-230px;
    position:relative;

    background:none;
    border:none;
    padding:0;

    cursor:pointer;
}
.write-btn:hover{
    transform:scale(1.1);
    transition:all .25s ease;
}

/* ẢNH BUTTON */

.write-btn img{
    width:220px;
    display:block;
}

/* CHỮ */

.btn-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -42%);
    font-size: 100%;
    font-weight: 600;
    color: white;
    font-family: "Cutive Mono", monospace;
    letter-spacing: 2px;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);

}

/* LEFT POLAROID */

.polaroid{
    position: absolute;
    left: 70px;
    top: 28%;
    width: 280px;
    transform: rotate(-7deg);
    z-index: 5;
}

.polaroid-frame{
    position:relative;
}

.polaroid-frame img{
    width:100%;
    object-fit:cover;
    display:block;
}

.tape{
    position:absolute;
    width:120px;
    height:34px;

    background:rgba(255,245,220,.4);

    top:-12px;
    left:100px;

    transform:rotate(8deg);

    backdrop-filter:blur(3px);
}

/* NOTE IMAGE SLOT */

.note-slot{
    position:absolute;

    left:5px;
    bottom:-115px;

    width:260px;
    height:180px;

    background:#e7d8c4;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    transform:rotate(4deg);

    overflow:hidden;
}

.note-slot img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* FILM SLIDER */
.film-slider{
position: absolute;
    right: -70px;
    top: 30%;
    width: 40%;
    height: 170px;
    overflow: hidden;
    z-index: 5;
    transform: rotate(5deg);

}
/* TRACK */

.film-track{
    display:flex;
    gap:3px;

    margin-top: 15px;
    align-items:center;

    width:max-content;

    animation:slideFilm 18s linear infinite;
}

/* ẢNH */

.film-image{
    width:230px;
    height:170px;

    overflow:hidden;

    flex-shrink:0;
}

.film-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    display:block;
}

/* KHUNG FILM */

.film-frame-overlay{
    position:absolute;

    inset:0;
    height:100%;

    object-fit:contain;

    z-index:10;

    pointer-events:none;
}
/* WRAPPER */

.vertical-wrapper{
    width: 200px;
    position: absolute;
    height: 600px;
    z-index: 10;
    transform: rotate(10deg);
    overflow: hidden;
    /* margin-top: 170%; */
    /* margin-right: 5%; */
    bottom: -85px;
    right: 10px;
}

/* FILM */

.vertical-film{
    position: absolute;
    right: 2%;
    top: 25px;
    width: 95%;
    height: 100%;
    overflow: hidden;
}

/* TRACK */

.vertical-track{

    display:flex;
    flex-direction:column;

    gap:0px;

    animation:filmVertical 18s linear infinite;
}

/* FRAME */

.vertical-frame{

    width:100%;

    overflow:hidden;

    flex-shrink:0;
}

.vertical-frame img{

    width:100%;
    height:100%;

    object-fit:cover;
}

/* OVERLAY */

.vertical-overlay{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

   

    pointer-events:none;

    z-index:20;
}
/* ANIMATION */

@keyframes filmVertical{

    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-50%);
    }

}

/* ANIMATION */

@keyframes slideFilm{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}

/* ANIMATION */

@keyframes slideFilm{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}
/* QUOTE IMAGE */

.quote-photo {
    position: absolute;
    bottom: 0px;
    right: 15%;
    transform: translateX(-50%) rotate(-5deg);
    width: 300px;
    overflow: hidden;
    z-index: 5;
}

.quote-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* CAMERA */

.camera{
    position:absolute;

    right:-50px;
    bottom:-40px;

    width:350px;

    transform:rotate(10deg);

    z-index:4;
}


.camera img{
    width:90%;
}

/* SOCIAL */

.social{
    position:absolute;

    left:25px;
    bottom:30px;

    z-index:10;

    display:flex;
    flex-direction:column;
    gap:18px;
}

.social div{
    width:42px;
    height:42px;

    border-radius:50%;
    border:1px solid rgba(255,255,255,.4);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;

    backdrop-filter:blur(4px);
}

/* ANIMATION */

@keyframes slide{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }

}

/* MOBILE */

@media(max-width:1200px){


    .polaroid{
        width:240px;
        left:20px;
    }

    .film-slider{
        width:350px;
    }

    .quote-photo{
        width:280px;
        height:180px;
    }
    header{
        padding:10px 20px;
    }
}
/* =========================
   RESPONSIVE MOBILE
========================= */
@media(max-width:1078px){

    header{
        padding:10px 10px;
    }
    header img{
        width:300px;
    }
    nav{
        padding: 8px 10px;
        gap: 3px;
    }

}

@media(min-width:800px){

    .vertical-wrapper{
        display:none;
    }

}
@media(max-width: 800px){
    .hero{
        height:100vh;
    }
    .bg{
        background:
        linear-gradient(rgb(0 0 0 / 12%), rgb(0 0 0 / 26%)),
        url("./img/bgmobile.png");
        background-size: cover;
        background-position: center;
    }

    body{
        overflow-x:hidden;
        overflow-y:auto;
        height:auto;
        min-height:100vh;
    }
    header{
        padding:10px 10px;
        
    }
    header img{
        width:250px;
    }

    /* CENTER */

    .center{
        position: relative;
        transform: none;
        width: 100%;
        /* padding: 180px 20px 0; */
        z-index: 5;
        top: 0%;
        
    }
    .light-burst{
        top: -100%;
    }
    .big-title{
        top: -230px;
    }
    .big-title img{
        width: 45%;
        top:0;
    }

    .sub{
        font-size:32px;
    }

    .desc{
        font-size:20px;
        line-height:1.5;
    }

    .line{
        width:160px;
    }

    .write-btn img{
        width:170px;
    }

    /* POLAROID */

    .polaroid {
        left: 4%;
        top: 25%;
        width: 25%;
        transform: rotate(346deg);
    }

    .note-slot{
        width:170px;
        height:120px;

        bottom:-80px;
    }

    /* QUOTE PHOTO */

    .quote-photo {
        left: 23%;
        bottom: 12%;
        transform: rotate(358deg);
        width: 28%;
        height: auto;
    }
    .vertical-wrapper {
    width: 160px;
    height: 500px;
    bottom: -85px;
    right: 25px;
}


    /* CAMERA */

    .camera{
        bottom: -15px;
        width: 250px;
        /* margin: 40px auto; */
        transform: rotate(1deg);
        left: -13px;
    }

    /* FILM SLIDER XOAY DỌC */

    .film-slider{
        display:none;
    }

    .film-track{
        gap:8px;
    }

    .film-image{
        width:140px;
        height:100%;
    }
    .film-image img{
    transform:rotate(-90deg);
}

    .film-frame-overlay{
        width:100%;
        height:100%;

        object-fit:contain;
    }

    /* SOCIAL */

    .social{
        left:10px;
        bottom:10px;
    }

}



@media(max-width: 615px){
    .hero{
        height:100vh;
    }
    .bg{
        background:
        linear-gradient(rgb(0 0 0 / 12%), rgb(0 0 0 / 26%)),
        url("./img/bgmobile.png");
        background-size: cover;
        background-position: center 80%;
    }
    /* POLAROID */

    .polaroid {
        left: 4%;
        top: 30%;
        width: 30%;
        transform: rotate(346deg);
    }


    .camera{
        bottom: -15px;
        width: 220px;
    }
     nav{
        padding: 4px 6px;
        gap: 0px;
    }
    nav a{
        font-size: 10px;
    }
    header img{
        width:240px;
    }

}

@media(max-width: 530px){
.vertical-film {
    position: absolute;
    right: 2%;
    top: 20px;
    width: 95%;
    height: 100%;
    overflow: hidden;
}
    .vertical-wrapper {
        width: 135px;
        height: 430px;
        bottom: -85px;
        right: 25px;
    }

    .polaroid {
        left: 4%;
        top: 32%;
        width: 32%;
        transform: rotate(346deg);
    }


    .camera{
        bottom: -15px;
        width: 45%;
    }
    .quote-photo {
        left: 25%;
        bottom: 13%;
        transform: rotate(353deg);
        width: 34%;
        height: auto;
    }

}

@media(max-width: 425px){
.vertical-film {
    position: absolute;
    right: 2%;
    top: 20px;
    width: 95%;
    height: 100%;
    overflow: hidden;
}
    .quote-photo {
        left: 20%;
        bottom: 10%;
        transform: rotate(353deg);
        width: 36%;
        height: auto;
    }
    .vertical-wrapper {
        width: 115px;
        height: 425px;
        bottom: -110px;
        right: 25px;

    }

    .polaroid {
        left: 5%;
        top: 37%;
        width: 38%;
        transform: rotate(346deg);
    }


    .camera{
        bottom: -15px;
        width: 45%;
    }
        .big-title img {
        width: 60%;}

}
.music-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:#f6f0e4;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:9999;

    box-shadow:0 4px 15px rgba(0,0,0,0.2);
    transition:0.3s ease;
}

/* xoay khi đang phát */
.music-btn.playing{
    animation: spin 3s linear infinite;
}
@keyframes spin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}

/* hover nhẹ */
.music-btn:hover{
    transform:scale(1.1);
}