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

body{
    padding: 50px;
}

/* FONTS */

@font-face {
    font-family: "myCustomFont";
    src: url("Assets/Fonts/Inter-VariableFont_slnt\,wght.ttf") format("truetype");
}

@font-face {
    font-family: "myExtraBoldFont";
    src: url("Assets/Fonts/static/Inter-ExtraBold.ttf") format("truetype");
}

@font-face {
    font-family: "myBoldFont";
    src: url("Assets/Fonts/static/Inter-Bold.ttf") format("truetype");
}
/* HEAD */

.logo-and-links{
    display: flex;
    justify-content: space-between;
}

.head-links ul{
    display: flex;
    gap: 25px;
    list-style: none;
    color: grey;
    font-family: "myCustomFont";
    font-size: 15px;
}

.head-links ul li:hover{
    cursor: pointer;
    color: hsl(5, 85%, 63%);
}

/* MAIN */

.main{
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    grid-template-rows: 500px 200px 100px;
    margin-top: 70px;
}

/* First grid */

.first-grid {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-width: 0;
}

.desktop-img{
    width: 95%;
    height: 60%;
    object-fit: cover;
}

/* Second grid */

.second-grid {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    background-color: hsl(240, 100%, 5%);
    color: white;
    margin-left: -20px;
    padding: 20px;
    height: 77%;
    width: 340px;
}

.second-gird-h2{
    font-size: 40px;
    font-family: "myCustomFont", sans-serif;
    color:  hsl(35, 77%, 62%);
}

/* First Paragraph */

.second-grid-pt-one{
    margin-top: 30px;
    font-family: "myCustomFont", sans-serif;
}

.second-grid-pt-one-h2{
    font-size: 22px;
}

.second-grid-pt-one-h2:hover{
    color:  hsl(35, 77%, 62%);
    cursor: pointer;
}

.second-grid-pt-one-p{
    margin-top: 17px;
    color:hsl(233, 8%, 79%);
    font-size: 15px;
}

/* Border Break */

.border-break{
    border-top: 0.1px;
    margin-top: 35px;
    height: 0;
}

/* Second Paragraph */
.second-grid-pt-two{
    margin-top: 40px;
    font-family: "myCustomFont", sans-serif;

}

.second-grid-pt-two-h2{
    font-size: 22px;
}

.second-grid-pt-two-h2:hover{
    color:  hsl(35, 77%, 62%);
    cursor: pointer;
}

.second-grid-pt-two-p{
    margin-top: 17px;
    color:hsl(233, 8%, 79%);
    font-size: 15px;
    width: 90%;
}

/* Third Paragraph */
.second-grid-pt-three{
    margin-top: 40px;
    font-family: "myCustomFont", sans-serif;

}

.second-grid-pt-three-h2{
    font-size: 22px;
}

.second-grid-pt-three-h2:hover{
    color:  hsl(35, 77%, 62%);
    cursor: pointer;
}

.second-grid-pt-three-p{
    margin-top: 17px;
    color:hsl(233, 8%, 79%);
    font-size: 15px;
    width: 90%;
}

/* Third grid */
.third-grid{
    grid-column: 1 / 2;
    grid-row: 2 / 2;
    margin-top: -30%;
}

.third-grid-h2{
    font-size: 60px;
    width: 80%;
    font-family: "myExtraBoldFont", sans-serif;
    line-height: 1.0;
}

/* fourth grid */
.fourth-grid{
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin-top: -39%;
    margin-left: -20%;
}

.fourth-grid-h3{
    font-family: "myCustomFont", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color:hsl(236, 13%, 42%);
    width: 82%;
    line-height: 1.8;
    word-spacing: 1.2px;
}

.fourth-grid-p{
    margin-top: 9%;
    font-family: "myBoldFont", sans-serif;
    background-color: hsl(5, 85%, 63%);
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 16px;
    color: hsl(240, 100%, 5%);
}

.fourth-grid-p:hover{
    background-color: hsl(240, 100%, 5%);
    color: white;
    cursor: pointer;
}

/* fifth grid */
.fifth-grid{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    gap: 30px;
    margin-top: -18%;
}

.fifth-grid-pic{
    height: 80%;
}

.fifth-grid-words{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fifth-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.fifth-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 19px;
}

.fifth-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.fifth-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 65%;
    line-height: 1.7;
    font-size: 15px;
}

/* sixth grid */
.sixth-grid{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    gap: 30px;
    margin-top: -25%;
    margin-left: -20%;
}

.sixth-grid-pic{
    height: 80%;
}

.sixth-grid-words{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sixth-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.sixth-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 19px;
}

.sixth-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.sixth-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 65%;
    line-height: 1.7;
    font-size: 15px;
}

/* seventh grid */
.seventh-grid{
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    display: flex;
    gap: 25px;
    margin-top: -29%;
    margin-left: -23px;
}

.seventh-grid-pic{
    height: 80%;
}

.seventh-grid-words{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seventh-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.seventh-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 19px;
    width: 120%;
}

.seventh-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.seventh-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 120%;
    line-height: 1.7;
    font-size: 15px;
}

.open, .close{
    display: none;
}

.mobile-img{
    display: none;
}



/* MOBILE VIEW */

@media screen and (max-width:600px) {
    body{
        padding: 0;
        
    }

    body.no-scroll {
        overflow: hidden;
    }

   /*  HEAD */

    .logo{
        margin-left: 20px;
        margin-top: -30px;
        position: absolute;
    }

    .open{
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 1000;
        margin-top: 50px;
        margin-right: 10px;

        transition: display 0.4 ease ;
    }

    .open.show{
        display: none;
    }

    .close{
        display: none;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 2000;
        margin-top: -25px;
        position: relative;
        margin-right: 10px;

        transition: display 0.4 ease ;
    }

    .close.show{
        display: flex;
    }

    .head-links{
        position: fixed;
        top: 0;
        bottom: 0;
        display: none;
        right: 3px;
        flex-direction: column;
        align-self: flex-start;
        background-color: white;
        padding: 40px;
        box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
        height: 100%;
        width: 80%;
        z-index: 1000;
    }


    .head-links ul{
        display: flex;
        flex-direction: column;
        margin-top: 50%;
        position: relative;
    }

    .head-links ul li{
        color: black;
        font-size: 20px;
    }
   
    .desktop-img{
        display: none;
    }

    /* OVERLAY */

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vh;
        height: 100%;
        background: rgba(0,0,0,0);
        pointer-events: none;
        transition: background 0.3 ease;
        z-index: 500;
    }


    .overlay.active{
        background: rgba(0,0,0, 0.5);
        pointer-events: all;
    }

    /* MAIN */
    
    .main{
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .mobile-img{
        display: flex;
        width: 90%;
        align-self: center;
        justify-self: center;
        height: auto;
        order: 1;
    }

    /* THIRD GRID */

    .third-grid{
        display: flex;
        order: 2;
        justify-content: center;
        align-items: center;
        margin-top: 10%;
        margin-left: 15px;
        /* width: 95vw;
        font-size: 16px; */
    }

    .third-grid-h2{
        width: 95vw;
        font-size: 45px;
        line-height: 1.0;
    }


    /* FOURTH GRID */

    .fourth-grid{
        display: flex;
        flex-direction: column;
        order: 3;
        justify-content: center;
        align-items: center;
        margin-top: 35px;
        margin-left: -40px;
    }

    .fourth-grid-h3{
        width: 83vw;
        margin-left: 30px;
        font-size: 18px;
        line-height: 1.5;
    }

    .fourth-grid-p{
        margin-left: -20%;
        padding: 15px;
        width: 50%;
    }

    /* SECOND GRID */

    .second-grid{
        order: 4;
        display: flex;
        margin-top: 70px;
        margin-left: 20px;
    }

    /* FIFTH GRID */

    .fifth-grid{
        order: 5;
        margin-top: 70px;
        display: flex;
        gap: 0;
        margin-left: 20px;
    }

    .fifth-grid-pic{
        width: 35vw;
        height: auto;
        
    }

    .fifth-grid-words{
        margin-left: 10px;
        margin-top: 5px;
        gap: 20px;
    }

    .fifth-grid-h3{
        display: flex;
        font-size: 20px;
    }

    .fifth-grid-p{
        width: 100%;
        line-height: 1.5;
        font-size: 15px;
    }

    /* Sixth grid */

    .sixth-grid{
        order: 6;
        margin-top: 40px;
        display: flex;
        gap: 0;
        margin-left: 20px;
    }

    .sixth-grid-pic{
        width: 35vw;
        height: auto;
        
    }

    .sixth-grid-words{
        margin-left: 10px;
        margin-top: 2px;
        gap: 20px;
    }

    .sixth-grid-h3{
        display: flex;
        font-size: 18px;
    }

    .sixth-grid-p{
        width: 100%;
        line-height: 1.5;
        font-size: 15px;
    }

    /* Seventh grid */


    .seventh-grid{
        order: 7;
        margin-top: 40px;
        display: flex;
        gap: 0;
        margin-left: 20px;
    }

    .seventh-grid-pic{
        width: 35vw;
        height: auto;
        
    }

    .seventh-grid-words{
        margin-left: 10px;
        margin-top: 2px;
        gap: 20px;
    }

    .seventh-grid-h3{
        display: flex;
        font-size: 18px;
    }

    .seventh-grid-p{
        width: 100%;
        line-height: 1.5;
        font-size: 15px;
    }
 

}

/* TABLET VIEW */

@media (min-width: 600px) and (max-width: 1024px) {
    body{
        padding: 40px;
    }

    .desktop-img{
    width: 100%;
    height: 60%;
    object-fit: cover;
}

    /* HEAD */

.logo-and-links{
    display: flex;
    justify-content: space-between;
}

.head-links ul{
    display: flex;
    gap: 25px;
    list-style: none;
    color: grey;
    font-family: "myCustomFont";
    font-size: 15px;
}

.head-links ul li:hover{
    cursor: pointer;
    color: hsl(5, 85%, 63%);
}


/* Second grid */
.second-grid {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    background-color: hsl(240, 100%, 5%);
    color: white;
    margin-left: 25px;
    padding: 20px;
    height: 77%;
    width: 340px;
}

/* Third grid */
.third-grid{
    grid-column: 1 / 2;
    grid-row: 2 / 2;
    margin-top: -45%;
}

.third-grid-h2{
    font-size: 50px;
    width: 80%;
    font-family: "myExtraBoldFont", sans-serif;
    line-height: 1.0;
}

/* fourth grid */
.fourth-grid{
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin-top: -65%;
    margin-left: -10%;
}

.fourth-grid-h3{
    font-family: "myCustomFont", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color:hsl(236, 13%, 42%);
    width: 100%;
    line-height: 1.8;
    word-spacing: 1.2px;
}

.fourth-grid-p{
    margin-top: 9%;
    font-family: "myBoldFont", sans-serif;
    background-color: hsl(5, 85%, 63%);
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 16px;
    color: hsl(240, 100%, 5%);
}

.fourth-grid-p:hover{
    background-color: hsl(240, 100%, 5%);
    color: white;
    cursor: pointer;
}

/* fifth grid */
.fifth-grid{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    gap: 10px;
    margin-top: -25%;
}

.fifth-grid-pic{
    height: 100%;
}

.fifth-grid-words{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fifth-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.fifth-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 17px;
}

.fifth-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.fifth-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 85%;
    line-height: 1.7;
    font-size: 13px;
}

/* sixth grid */
.sixth-grid{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    gap: 10px;
    margin-top: -35%;
    margin-left: -15px;
}

.sixth-grid-pic{
    height: 100%;
}

.sixth-grid-words{
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: -15px;
}

.sixth-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.sixth-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 19px;
}

.sixth-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.sixth-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 120%;
    line-height: 1.7;
    font-size: 15px;
}

/* seventh grid */
.seventh-grid{
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    display: flex;
    gap: 25px;
    margin-top: -25%;
    margin-left: 30px;
}

.seventh-grid-pic{
    height: 100%;
}

.seventh-grid-words{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seventh-grid-h2{
    font-size: 40px;
    font-family: "myBoldFont", sans-serif;
    color: hsl(5, 85%, 63%);
}

.seventh-grid-h3{
    font-family: "myExtraBoldFont", sans-serif;
    font-size: 19px;
    width: 120%;
}

.seventh-grid-h3:hover{
    color: hsl(5, 85%, 63%);
    cursor: pointer;
}

.seventh-grid-p{
    font-family: "myCustomFont", sans-serif;
    color: hsl(236, 13%, 42%);
    width: 120%;
    line-height: 1.7;
    font-size: 15px;
}

}