/* Google Fonts - Alata & Josefina Sans */
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* Global styles */
* {
    box-sizing: border-box;
    width:100%;
}

.hero-h1,h2,h3{
    font-family: "Josefin Sans", serif;
    text-transform: uppercase;
}

p{
    font-family: "Alata", sans-serif;
}

/* Header */
header{
    min-height:100vh;
    background-image: url(../assets/mobile/image-hero.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.logo{
    width:50%;
}

.masthead-container{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width:1200px;
    padding: 2rem;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* HAMBURGER BTN */
.openMenu {
    display: block;
    color: #ffffff;
    text-align: end;
}

/* nav and links */
.nav-logo ul a, footer a, footer span{
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font: 300 1rem "Alata", serif;
}

nav .opennav{
    display:flex;
    flex-direction: column;
    list-style: none;
}

.nav-logo ul li a{
    display: inline-block;
}

.hero-text{
    margin-top: 10rem;
    border: 0.1rem solid white;
    padding: 1rem;
    width:100%;
}

.hero-h1{
    font-size: 2rem;
    color: white;
    font-weight: 200;
    line-height: 2.25rem;
}

/* Main section */
main{
    max-width:1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
}

.vr_txt{
    text-align: center;
    margin: 4rem 0;
}

.vr_txt h2{
    font-size: 2.25rem;
    font-weight: 200;
    line-height: 2.25rem;
    margin-bottom: 2rem;
}

.vr_txt p{
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.5rem;
    color: #8c8c8c;
}

.creations{
    height: fit-content;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* CREATIONS */
.creations .title-container{
    display: flex;
    flex-direction:column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.creation-title{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 0 1rem 1rem;
    font: 200 2rem 'Josefin Sans';
    width: fit-content;
    color: white;
    text-transform: uppercase;
}

/* Button component */
.see-btn{
    background-color: #ffffff;
    font: 300 1.25rem "Josefin Sans", serif;
    text-transform: uppercase;
    color: #000000;
    border: 0.05rem solid #000000;
    padding: 0.5rem 1rem;
    cursor: pointer;
    width: fit-content;
    position: absolute;
    bottom:-3rem;
}

.title-container h3{
    font-size: 2rem;
    font-weight: 200;
    line-height: 2.25rem;
    text-align: center;
}

/* Creations items */
.creations .items-container{
    display: grid;
    grid-template-columns: auto;
    gap: 1rem;
}

.creation-item{
    position:relative;
}

/* Add transparent overlay */
.creation-item picture::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.33);
    transition: background-color 0.25s ease;
}

/* Footer */
footer{
    background-color: #000000;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top:6rem;
}

.logo-footer{
    width:50%;
    margin: 0 auto;
    padding:2rem 0;
}

.nav-link li{
    line-height: 2rem;
}

/* Footer social icons */
.socials{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 2rem;
}

.socials li{
    width:fit-content;
    align-items: center;
    display:flex;
}

.socials li img{
    width:2rem;
}

@media screen and (max-width:768px){

    /* MOBILE MENU */
    nav .opennav{
        height:100vh;
        position: fixed;
        top: -200%;
        right: 0;
        left: 0;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        align-items: center;
        background-color: #000000;
        transition: top 1s ease 0s;
        z-index: 10;
    }

    .opennav li a{
        font-family: 'Josefin Sans', sans-serif;
        font-size:2.5rem;
        text-transform: uppercase;
        font-weight: 200;
        padding: 0 1rem;
    }

    .closeMenu{
        font-size:2rem;
        display: block;
        color: #ffffff;
        padding:1rem;
        position:absolute;
        top:1.5rem;
        right:1.5rem;;
        width: fit-content;
    }

    .logo.mobile{
        position: absolute;
        top: 3rem;
        left: 2rem;
        width: 40%;
    }

    footer .nav-link a{
        margin: 0;
    }

}


@media screen and (min-width:769px){

    header{
        background-image: url(../assets/desktop/image-hero.jpg);
    }

    .logo{
        width:20%;
    }

    .hero-text{
        width: fit-content;
        padding:2rem 9rem 2rem 2rem;;
    }

    .hero-h1{
        font-size: 4rem;
        line-height: 4.5rem;
    }

    /* Hide the hamburger button */
    .openMenu{
        display: none;
    }

    .closeMenu{
        display: none;
    }

    nav .opennav{
        flex-direction: row;
        justify-content: end;
    }

    nav .opennav li{
        width: fit-content
    }

    nav .opennav li a{
        text-align: center;
    }

    .logo.mobile{
        display: none;
    }

    /* Main section */
    main{
        display:flex;
        position: relative;
    }

    .vr_img{
        width:60%;
    }

    .vr_txt{
        width:50%;
        position: absolute;
        bottom:-3rem;;
        right: 3rem;
        background-color: #ffffff;
        text-align:left;
        padding: 3rem 0 2rem 3rem;
    }

    .vr_txt h2{
        font-size: 3.25rem;
        line-height: 3.25rem;
    }

    .vr_txt p{
        font-size: 1rem;
        line-height: 1.75rem;
    }

    .creations .title-container{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .creations .title-container h3{
        text-align: left;
        width: fit-content;
    }

    /* Creations item */
    .creations .items-container{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .creation-title{
       font-size: 2rem;
       width: 60%;
    }

    .see-btn{
       position:relative;
       bottom: 0;
       width:8rem;
    }

    /* LoVE HAte */

.see-btn:hover{
    background-color: #000000;
    color:#ffffff;
    transition: 0.25s;
}

.nav-link a::after,
.nav-logo li a::after,
.socials li a::after{
    content: "";
    display: block;
    padding-top:0.10rem;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s;
    margin: 0.25rem auto;
}

.nav-link a:hover::after,
.nav-logo li a:hover::after,
.socials li a:hover::after{
    width: 50%;
}

/* Hover state */
.creation-item:hover picture::after {
    background-color: rgba(188, 188, 188, 0.8);
    cursor: pointer;
}

.creation-item:hover .creation-title {
    color: black;
    transition: color 0.25s ease;
}

    /* Footer */
    .footer-container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    

    .footer-container .nav-link{
        display:flex;
        text-align: left;
    }

    .footer-container .nav-link li{
        display: flex;
        width: fit-content;
        align-items: baseline;
        text-align: center;
        padding: 1rem 0rem 0.5rem 0;
    }

    .logo-footer{
        width:13rem;
        margin: 0;
        padding:1rem;
    }

    .socials-copyright{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: end;
    }
    
    .socials{
        justify-content: end;
        padding: 0 0 1.35rem 0;
        margin-top: 0;

    }

    .socials li img{
        width:1.5rem;
    }

    .socials-copyright span{
        text-align: right;
        padding-top:0.30rem;
    }
}