
@font-face {
    font-family:'JosefinSans' ;
    src: url(./fonts/jesefin/JosefinSans-VariableFont_wght.ttf);
}
@font-face {
    font-family:'Alata' ;
    src: url(./fonts/atlas/Alata-Regular.ttf);
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


header {
    width: 100%;
    padding: 15% 10%;
    background-image: url(./images/desktop/image-hero.jpg);
    background-repeat: no-repeat;
}

.desktop-nav {
    display: flex;
    gap: 35rem;
    padding: 2% 10%;
    position: absolute;
    top: 0;
    z-index: 5;
}

.desktop-nav ul {
    display: flex;
    gap: 1rem;
    color: white;
}

.desktop-nav ul li {
    list-style: none;
}
li a{
    text-decoration: none;
    color: white;
}
.desktop-nav ul li a::before{
    transition: 0.3s ease-in-out; 
    content:' ' ;
    width: 0%;
    height: 3px;
    background-color:white ;
    position: absolute;
    top: 50px;
    transition: width 0.4s;
}
.desktop-nav li:hover ::before{
width: 3.2%;
}
.mobile-nav{
    color: black;
    background-color: black;
    display: none;
}
#menu{
    display: none;
}

.text {
    border: solid white;
    width: 50%;
    margin-top: 5rem;
    padding: 2% 2.7%;
}

.text h1 {
    font-size: 55px;
    font-weight: 300;
    color: white;
    width: 100%;
    font-family:'JosefinSans' ;
}

main {
    display: flex;
    flex-direction: column;
    padding: 7% 8%;
    width: 100dvw;
}

.top {
    display: flex;
    align-items: center;

}

.top-img {
    flex-basis: 50%;
}

.top-img img {
    width: 100%;
}

.top-text {
    
    width: 43%;
    padding: 3% 4%;
    align-self: flex-end;
    position: relative;
    right: 8rem;
    background-color: white;
    font-family:'Alata' ;
    color: hsl(0, 0%, 55%);
}

.top-text h1 {
    font-size: 45px;
    padding-bottom: 1.8rem;
    font-weight: normal;
    font-family:'JosefinSans' ;
    font-weight: 300;
    color:  black;
}

.desktop-bottom {
    display: flex;
    flex-direction: column;
    padding: 0% 0;
}

.bottom-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6% 0;
}

.bottom-head h2 {
    font-size: 40px;
    font-weight: normal;
    font-family:'JosefinSans' ;
    font-weight: 300;
}

.bottom-head button {
    width: 150px;
    height: 2.4rem;
    background-color: white;
    border: solid 1px;
    letter-spacing: 0.3rem;
    margin-right: 1rem;
    font-family:'JosefinSans' ;
    font-weight: 300;
    font-size: 16px;

}
.bottom-head button:hover{
    background-color: black;
    color: white;
    transition-duration: 1s;

}

.mobile-bottom{
    display: none;
}

.bottm-img {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(2, 1fr);
    place-items: center;
   
}
.bottm-img :hover{
    cursor: pointer;
    img{
        opacity: 0.5;
    }
    p{
        color: black;
    }
}
/* .bottm-img p:hover{
    color: black;
} */
.item-1{
    grid-column: 1/2;
    grid-row: 1/2;
    
}
.item-2{
    grid-column: 2/3;
    grid-row: 1/2;
}
.item-3{
    grid-column: 3/4;
    grid-row: 1/2;
}
.item-4{
    grid-column: 4/5;
    grid-row: 1/2;
}
.item-5{
    grid-column: 1/2;
    grid-row: 2/3;
}
.item-6{
    grid-column: 2/3;
    grid-row: 2/3;
}
.item-7{
    grid-column: 3/4;
    grid-row: 2/3;
}
.item-8{
    grid-column: 4/5;
    grid-row: 2/3;
}

.bottm-img p {
    color: white;
    font-weight: normal;
    font-size: 30px;
    width: 10rem;
    position: relative;
    bottom: 7rem;
    left: 1rem;
    font-family:'JosefinSans' ;
    font-weight: 300;
}

footer {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2% 7%;
}

.foot-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.foot-1 img {
    width: 200px;
}

.foot-1 ul {
    display: flex;
    gap: 3rem;
    color: white;
}

.foot-1 ul li {
    list-style: none;
}

  
  .foot-1 ul li:hover {
    cursor: pointer;
  }


.foot-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.foot-2 span {
    display: flex;
    gap: 0.8rem;
}
.foot-2 span:hover{
    cursor: pointer;
}

.foot-2 p {
    color: hsl(0, 0%, 55%);
}
@media screen and (max-width:768px) {

    .desktop-nav{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 7rem;
        padding: 4% 8%;
    }
    .desktop-nav ul{
        display: none;
    }
    .mobile-nav{
        color: black;
        background-color: black;
        display: flex;
        flex-direction: column;
        gap: 4rem;
        position: fixed;
        top: 0rem;
        width: 100vw;
        height: 500px;
        padding: 7% 6%;
        z-index: 10;
        

        figure{
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        display: none;
    }
    .mobile-nav ul{

        display: flex;
        flex-direction: column;
        gap: 1rem;
        font-family:'JosefinSans' ;
        font-weight: 300;
        font-size: 20px;
    }
    #menu{
        display: block;
    }
    header{
        padding: 30% 8%;
        background-image: none;
        background-image: url(./images/mobile/image-hero.jpg);
    }
    .text{
        width: 100%;
    }
    .text h1{
        font-size: 40px;
        width: 50%;
        padding: 3%;
    }
    .top{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 15% 0;
    }
    .top-text{
        align-self: center;
        position: relative;
        right: 0rem;
        width: 100%;
    }
    .top-text h1{
        font-size: 35px;
        text-align: center;
    }
    .top-text p{
        text-align: center;
    }
    .desktop-bottom{
        display: none;
    }
    .mobile-bottom{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 20% 0;
        h2{
            font-family:'JosefinSans' ;
            font-weight: 300;
            font-size: 30px;
        }
        button{
            width: 150px;
            height: 2.4rem;
            background-color: white;
            border: solid 1px;
            letter-spacing: 0.3rem;
        }
        button:hover{
                background-color: black;
                color: white;
                transition-duration: 1s;
            
            
        }
    }
    .mobile-bottom div{
        display: flex;
        flex-direction: column;
        gap: 0;
       

        img{
            width: 100%;
            padding: 0;
        }
        figure{
            width: 100%;
            height: fit-content;
            padding: 0;

        }
     
    }
    .mobile-bottom div :hover{
        cursor: pointer;
        img{
            opacity: 0.5;
        }
        p{
            color: black;
        }
    }
    .mobile-bottom div p {
        color:white ;
        font-weight: normal;
        font-size: 30px;
        width: 50%;
        position: relative;
        bottom: 5rem;
        left: 1rem;
        font-family:'JosefinSans' ;
        font-weight: 300;
    }
    footer{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8% 0;
        gap: 2rem;
    }
    .foot-1{
        display: flex;
        flex-direction: column;
        img{
            width: 150px;
        }
        ul{
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            font-size: 20px;
        }
    }
    .foot-2{
        display: flex;
        flex-direction: column;
        align-items: center;
        img{
            width: 15px;
        }
    }
    .overlay{
        display:none;
        position: fixed;
        left: 0;
        top: 0;
        background-color: rgba(2, 2, 2, 0.533);
        width: 100%;
        height: 100%;
        z-index: 5;
    }
}

    