* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family:Georgia, 'Times New Roman', Times, serif;
    background-color: rgb(202, 218, 224);
    color: #101632dd;
}

body, div, ul, nav, header, footer, a, li, label {
    margin: 0;
    padding: 0;
}


/* --------HEADER SECTION------------- */

.header {
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: header;
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 20px;
}


.header__open-nav-button {
    color: #434a5a;
    font-size: 3rem;
    font-weight: 600;
    position: absolute;
    right: 10px;
}

.header__checkbox {
    display: none;
}

.header__nav {
    display: none;
    background-color: #fff;
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    z-index: -1;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    height: 40vh;
    margin: auto;
    justify-content: space-evenly;
}

.header__checkbox:checked ~ .header__nav {
    display: flex;
}


.header__logo {
    max-width: 100%;
    width: 170px;
    margin: 10px 25px;
}

.header__nav-item {
    list-style: none;
}

.header__nav-item a {
    color: #303d5f;
    text-decoration: none;
}

.header__nav-item a:hover {
    text-decoration: none;
    color: #f84206;
}
/*-------------HEADER QUERIES--------------*/

@container header (min-width: 600px) {
    .header__nav {
        display: block;
        position: static;
        height: auto;
        width: auto;
        justify-content: space-between;
        z-index: 1;
        background-color: transparent;
    }

    .header__nav-list {
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;
    }

    .header__open-nav-button {
        display: none;
    }
}

/*-------------HEADER ENDS--------------*/


/*----------------PORTFOLIO --------*/

.portfolio {
    background-color: rgb(202, 218, 224);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    container-name: portfolio;
    container-type: inline-size;
    justify-content: space-evenly;
}

.portfolio__project-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1300px;
    margin: auto;
    width: 100%;
    gap:18px;
    min-height: 80vh;
    margin-bottom: 20px;
}

.portfolio__title {
    background-color: #303d5f;
    width: 48%;
    height: 50px;
    padding-top: 8px;
    border-radius: 50px 0px 50px 0px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.portfolio__project {
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    place-content: center;
    border-radius: 8px;
    position: relative;
    max-width: 1400px;
}
.portfolio__project:first-child{
    background-color: rgb(243, 245, 247);
    color: #303d5f;
    width: auto;
    height: auto;
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 10px;
    text-align: justify;
    padding: 20px;
    position: initial;

}

.portfolio__project:nth-child(2){
    height: 450px;
    background-color: black;
}
.portfolio__video1 {
    position: absolute;
    width: 100%;
    height: 100%;
}
.portfolio__project:nth-child(3){
    height: 450px;
    background-color: black;
}
.portfolio__video2 {
    position: absolute;
    width: 100%;
    height: 100%;
}
.portfolio__project:nth-child(4){
    height: 450px;
    background-color: black;
}
.portfolio__video3 {
    position: absolute;
    width: 100%;
    height: 100%;
}
.portfolio__project:nth-child(5){
    height: 450px;
    background-color: black;
}
.portfolio__video4 {
    position: absolute;
    width: 100%;
    height: 100%;
}
.portfolio__project:nth-child(6){
    height: 450px;
    background-color: black;
}
iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}
.portfolio__project:nth-child(7){
    height: 450px;
    background-color: black;
}

h3 {
    display: flex;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    background-color: #303d5f;
    color: #fff;
    padding-top: 7px;
    border-radius: 10px;
}



/*----------------PORTFOLIO QUERIES--------*/

@container portfolio (min-width: 81.25rem) {
    .portfolio__project-container {
        grid-template-columns: repeat(auto-fill,minmax(450px,1fr));
    }
    .portfolio__title{
        display: flex;
        justify-content: center;
        margin-left: 114px;
        grid-column: span 2;
        width: 50%;
        height: 70px;
        border-radius: 70px 0px 70px 0px;

    }
    .portfolio__project:first-child{
        grid-column: span 2;
        width: 100%;
        height: 130px;
        margin-bottom: 50px;
        background-color: rgb(243, 245, 247);
        border-radius: 0px 70px 0px 70px;
        font-size: 10px;
        text-align: justify;
    }

    .portfolio__project:last-child{
        grid-column: span 2;
    }
}




/*----------------PORTFOLIO ENDS-----------*/


/*--------------------FOOTER SECTION-------------*/

footer {
    padding: 20px;
    text-align: center;
    color: #fffd;
    font-size: 28px;
    background-color: #303d5f;
}