* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #e2eaff;
    color: #101632dd;
}

div,
ul,
nav,
header,
footer,
a,
li,
label {
    margin: 0;
    padding: 0;
}

/* --- HEADER SECTION */

.header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: header;
    position: relative;
    z-index: 4;
    text-align: center;
    font-size: 20px;
}

.header_open-nav-button {
    color: #48e;
    font-size: 3rem;
    font-weight: 600;
    position: absolute;
    right: 10px;
}

.header_checkbox {
    display: none;
}

.header_nav {
    display: none;
    background-color: #fff;
    position: absolute;
    height: 50vh;
    width: 100%;
    top: 0;
    z-index: -1;
    box-shadow: 0px 0px 9px #000200;
}

.header_nav-list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 40vh;
    margin: auto;
}

.header_checkbox:checked~.header_nav {
    display: flex;
}

.header_logo {
    max-width: 100%;
    width: 64px;
    margin: 10px 20px;
}

.header_nav-item {
    list-style-type: none;
}

.header_nav-item a {
    color: #48e;
    text-decoration: none;
}

.header_nav-item a:is(:hover, :active) {
    text-decoration: underline;
}

/* --- HEADER QUERIES */

@container header (min-width: 600px) {
    .header_nav {
        color: red;
        display: block;
        position: static;
        height: auto;
        width: auto;
        justify-content: space-between;
        z-index: 1;
        box-shadow: 0 0;
    }

    .header_nav-list {
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        
    }

    .header_open-nav-button {
        display: none;
    }
}

/* --- HEADER ENDS */

/* --- PROFILE SECTION */

.profile {
    container-name: profile;
    container-type: inline-size;
}

.profile_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    max-width: 1400px;
}

.profile_data-container {
    max-width: 600px;
    padding: 20px;
}

.profile_img-container {
    max-height: 500px;
    overflow: hidden;
}

.profile_img {
    max-width: 100%;
    width: 720px;
}

h1 {
    color: #26a;
}

.profile_skills h2 {
    color: #26a;
}

.profile_skill {
    list-style-type: none;
    display: flex;
    margin: 30px;
    max-width: 600px;
    margin-left: 0;
    align-items: center;
}

.profile_skill-name {
    color: #48e;
}

.load-bar {
    border: 2px solid #48e;
    border-radius: 8px;
    color: #fff;
    padding: 2px;
    margin: 4px;
    font-size: 12px;
    width: 80%;
    margin-left: 0;
}

.load-bar_bar {
    background-color: #48e;
    border-radius: 4px;
    padding: 4px 6px;
}

/* skills */

.bar--100 {
    width: 100%;
}

.bar--80 {
    width: 80%;
}

.bar--50{
    width: 50%;
}

/* --- PROFILE QUERIES */

@container profile (min-width: 720px) {
    .profile_wrapper {
        flex-direction: row;
        padding: 20px;
        background-color: transparent;
        height: 90vh;
        margin: auto;
    }

    .profile_data-container {
        background-color: #fff;
        display: flex;
        align-items: center;
        border-radius: 0 25px 25px 0;
        box-shadow: 0px 0px 9px #000200;
    }

    h1 {
        margin-top: 0;
        font-size: 4rem;
        text-wrap: balance;
    }

    .profile_data {
        max-width: 620px;
        background-color: #fff;
    }

    .profile_img-container {
        max-height: initial;
        border-radius: 25px 0 0 25px;
    }

    .profile_img {
        height: 100%;
        object-fit: cover;
        width: 620px;
    }
}

/* --- PROFILE ENDS */

/* --- PORTFOLIO SECTION */

.portfolio {
    background-color: #18233f;
    color: #fff;
    min-height: 100vh;
    font-display: flex;
    flex-direction: column;
    text-align: center;
    container-name: portfolio;
    container-type: inline-size;
    justify-content: space-evenly;
}

.portfolio_title {
    font-size: 3rem;
    margin-bottom: 0;
}

.portfolio_project-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: auto;
    gap: 12px;
    padding: 12px;
    min-height: 90vh;
}

.portfolio_project {
    background-image: linear-gradient(#0009, #0009), url("./assets/img/project.jpg");
    /* first gradient, then the image*/
    background-position: center;
    background-size: cover;
    display: grid;
    place-content: center;
    border-radius: 8px;
}

.portfolio_project:hover {
    opacity: 0.74;
    outline: 2px solid #fff6;
}

/* --- PORTFOLIO QUERIES */

@container portfolio (min-width: 600px) {
    .portfolio_project-container {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    }

    .portfolio_project:first-child {
        grid-column: span 2;
    }

    .portfolio_project:last-child {
        grid-column: span 2;
    }
}

/* --- PORTFOLIO ENDS */

/* --- FORM SECTION */

.form {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    container-name: form;
    container-type: inline-size;
}

.form_form {
    padding: 12px;
    max-width: 600px;
    width: 100%;
    display: grid;
    background-color: #18233f33;
    background-image: linear-gradient(#18233f06, #18233f33);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 40px #0006;
    margin-bottom: 20px;
}

.form_input-container :is(input, textarea) {
    width: 100%;
    padding: 9px 6px;
    font-size: 16px;
    border: none;
    box-shadow: 0 0 9px #0003;
}

.form_input-container textarea {
    resize: none;
    min-height: 120px;
    font-family: inherit;
}

.form_input-container input[type="submit"] {
    padding: 12px;
    background-color: #48e;
    color: #fff
}

.form_input-container input[type="submit"]:hover {
    padding: 12px;
    background-color: #48e;
    color: #fff;
    background-color: #275894;
}

.form_input-container input[type="submit"]:active {
    padding: 8px;
    background-color: #48e;
    color: #fff;
    background-color: #275894;
}

.form_title {
    font-size: 2.6rem;
}

/* --- FORM ENDS */

/* --- FOOTER SECTION */

footer {
    padding: 60px;
    text-align: center;
    background-color: #18233f;
    color: #fff;
    font-size: 26px;
}