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

body {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    background-color:rgb(83, 88, 100);
}

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

/* ------- HEADER SECTION ------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    text-align: center;
    font-size: 20px;
    background-color:rgb(83, 88, 100);
    color: white;
    padding: 20px 0px;
    animation: header-movement both;
    animation-timeline:inherit;
    position: sticky;
    top: 0;
    animation-range: 10px 100px;
    background-color:rgb(83, 88, 100);
}


.header__nav {
    display:block;
    position: static;
    height: auto;
    width: auto;
    justify-content: space-between;
    background-color: initial;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: space-evenly;
}

.header__logo {
    width: 100px;
    margin: 10px 20px;
    border-radius: 50% 50%;
}

.header__nav-item {
    list-style: none;
}

.header__nav-item a {
    color: inherit;
    text-decoration: none;
}

.header__Whatsapp {
    width: 150px;
    align-content: center;
}

.header__Whatsapp-img{
    width: 50px;
}

/* ------- HEADER QUERIES ------- */

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

    .header {
        padding: 20px 0px;
        animation: header-movement both;
        animation-timeline:inherit;
        position: sticky;
        top: 0;
        animation-range: 10px 100px;
        background-color:rgb(83, 88, 100);
    }

    
    .header__nav {
        display:block;
        position: static;
        height: auto;
        width: auto;
        justify-content: space-between;
        background-color: initial;
    }

    
    .header__nav-list {
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;
    } 

    .header__logo {
        width: 200px;
    }

    .header__Whatsapp {
        width: 100px;
        align-content: center;
    }
    
    .header__Whatsapp-img{
        width: 50px;
    }    

}



/* ------- HEADER ENDS ------- */


/* ------- presentation SECTION ------- */

.presentation {
    container-name: presentation;
    container-type: inline-size;
    animation: aparecer 2.4s -.6s both;
}

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

.presentation__data-container {
    max-width: 600px;
    padding: 12px;
}

.presentation__img-container {
    max-height: 500px;
    overflow: hidden;
    background-color: #3b8698;
}

.presentation__img {
    max-width: 100%;
    width: 720px;
    border-radius: 50% 120%;
}

h1 {
    color: #26a;
    font-size: 25px;
}

.presentation__skills-container h2 {
    color: #26a;
}

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

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

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


/* ------- presentation ENDS ------- */


/* ------- presentation QUERIES ------- */

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

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

    h1 {
        margin-top: 0;
        font-size: 25px;
        text-wrap: balance;
    }

    .presentation__data {
        max-width: 620px;
    }

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

    .presentation__img {
        height: 100%;
        object-fit: cover;
        width: 620px;
    }
}
/* ------- presentation ENDS ------- */


/* ------- profile SECTION ------- */

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

.profile__title {
    font-size: 2rem;
    margin-bottom: 0;
}

.profile__project-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1300px;
    margin: auto;
    width: 100%;
    gap: 12px;
    padding: 12px;
    min-height: 80vh;
}

.profile__project {
    background-color: #3b8698;
    background-position: center;
    background-size: cover;
    display: grid;
    place-content: center;
    border-radius: 12px;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 5% cover 40%;
    border-radius: 15%;
}

.profile__project:hover {
    opacity: 0.74;
    outline: 4px solid rgb(231, 230, 230);
}

.profile__img {
    width: 350px;
    margin: 10px 20px;
    border-radius: 50%;

}


/* ------- PROTFOLIO QUERIES ------- */

@container profile (min-width: 56.25rem) {
    .profile__project-container {
        grid-template-columns: repeat(auto-fill,minmax(420px,1fr));
    }

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

    .profile__project:nth-child(2) {
        grid-column: span 2; 
    }
}

@container profile (min-width: 81.25rem) {
    .profile__project-container {
        grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    }

}

/* ------- PROTFOLIO END ------- */


/* ------- CONTACT SECTION ------- */

.form {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
    container-name: form;
    container-type: inline-size;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 20% contain 40%;
    color: white;
}

.form__form {
    padding: 12px;
    max-width: 600px;
    width: 100%;
    display: grid;
    margin-bottom: 30px;
}

.form__input-container :is(input,textarea) {
    width: 100%;
    padding: 9px;
    font-size: 16px;
    margin: 4px;
    margin-top: 60x;
    border: none;
    box-shadow: 2px 2px 4px #0003;
    background-color: #fffd;

}

.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__title {
    font-size: 1.8rem;

}

.form__text {
    font-size: 1.2rem;
    justify-content: center;
    align-items: center;
}

.form__map {
    width: 100%;

}

/* ------- CONTACT QUERIES ------- */

@container form (min-width: 56.25rem) {

    .form__form {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        "name lastname"
        "email email"
        "message message"
        "button button";
        gap: 12px;
        background-image: radial-gradient(#18233f11,#18233f33);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0px 0px 40px #0006;
    }

    .form__input-container:first-child {
        grid-area: name;
    }

    .form__input-container:nth-child(2) {
        grid-area: lastname;
    }

    .form__input-container:nth-child(3) {
        grid-area: email;
    }

    .form__input-container:nth-child(4) {
        grid-area: message;
    }

    .form__input-container:nth-child(5) {
        grid-area: button;
    }

    .form__input-container :is(input,textarea) {
        box-shadow: none;
        border-radius: 4px;
    }

}

/* ------- CONTACT END ------- */


/* ------- FOOTER SECTION ------- */

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

/* ------- FOOTER END ------- */


/* ------- ANIMACIONES ------- */

@keyframes header-movement {
    from {
        padding: 20px 0px;
        background-color: #fff;
    }
    to {
        padding: 0px;
        background-color: #10163266;
        color: #fff;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



