/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    /*========== Colors ==========*/
    /* Blue: hsl(207, 90%, 61%)
      Dark Blue: hsl(215,89%,14%)
      gold: hsl(36,26%,40%) */

    --hue: 215;
    --sat: 89%;
    --lig: 14%;

    --sec-hue: 36;
    --sec-sat: 26%;
    --sec-lig: 40%;

    --txt-hue: 215;
    --txt-sat: 89%;
    --txt-lig: 14%;

    --first-color: hsl(var(--hue), var(--sat), var(--lig));
    --first-color-alt: hsl(var(--hue), var(--sat), 57%); /* -4% */

    --secondary-color: hsl(var(--sec-hue), var(--sec-sat), var(--sec-lig));
    --sec-color: #85714d;
    --wcag-sec-color: #756643;

    --title-color: hsl(var(--txt-hue), 12%, 15%);
    --text-color: hsl(var(--txt-hue), 12%, 45%);
    --text-color-light: hsl(var(--txt-hue), 8%, 75%);
    --text-color-lighten: hsl(var(--txt-hue), 8%, 92%);

    --body-color: hsl(var(--hue), 100%, 99%);
    --container-color: #fff;
    --container-color-dark: hsl(var(#fff), 24%, 35%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Poppins", sans-serif;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
}

@media screen and (min-width: 968px) {
    :root {
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: 0.3s;
}

h1,
h2,
h3 {
    color: var(--first-color);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    /* max-width: 100%; */

    height: auto;
}

/*=============== THEME ===============*/
.change-theme {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: 0.3s;
}

.change-theme:hover {
    color: var(--secondary-color);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
    --title-color: hsl(var(--hue), 12%, 95%);
    --text-color: hsl(var(--hue), 12%, 75%);
    --body-color: hsl(var(--hue), 40%, 8%);
    --container-color: hsl(var(--hue), 24%, 35%);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3 {
    color: #fff;
}

.dark-theme .profile__border {
    border: 3.5px solid var(--secondary-color);
}
.dark-theme .button__gray {
    background-color: var(--container-color);
}

.dark-theme .button__gray:hover {
    background-color: hsl(var(--hue), 24%, 16%);
}

.dark-theme .about__info {
    color: #fff;
}

.dark-theme .filters__content {
    background-color: var(--container-color);
}

.dark-theme .filters__button:hover {
    background-color: var(--sec-color);
}

.dark-theme .projects__card-outer {
    background-color: var(--container-color);
}
.dark-theme .projects__window {
    background-color: #fff;
}

.dark-theme .projects__description {
    color: #fff;
}

.dark-theme .projects__description a {
    color: #fff;
}

.dark-theme .github__button {
    background-color: var(--body-color);
}

.dark-theme .skills__data i,
.dark-theme .skills__data ion-icon {
    color: var(--secondary-color);
}

.dark-theme::-webkit-scrollbar {
    background-color: hsl(var(--hue), 8%, 16%);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: hsl(var(--hue), 8%, 24%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--hue), 8%, 32%);
}

.dark-theme .contact__card-icon {
    color: #fff;
}

.dark-theme .contact__card-title {
    color: #fff;
}

.dark-theme .contact__card-data {
    color: #fff;
}

.dark-theme .contact__button {
    color: #fff;
}

.dark-theme .footer {
    background-color: var(--body-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 968px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}
.flex {
    display: flex;
}

.nav {
    height: 4rem;
}
.nav__logo {
    height: 4rem;
    width: auto;
    margin: 0.5rem 0 0 1rem;
}

/*=============== PROFILE ===============*/
.profile {
    position: relative;
    padding-top: 3.5rem;
}

.profile__container {
    row-gap: 2rem;
}

.profile__data {
    display: grid;
    text-align: center;
}

.profile__profile {
    width: 100px;
    height: 100px;
    background: linear-gradient(
        180deg,
        hsla(var(--hue), var(--sat), var(--lig), 1) 0%,
        hsla(var(--hue), var(--sat), var(--lig), 0.2) 100%
    );
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.profile__profile img {
    width: 100px;
}

.profile__border {
    border: 3.5px solid var(--first-color);
    justify-self: center;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}

.profile__name {
    font-size: var(--h2-font-size);
}

.profile__profession {
    font-size: var(--smaller-font-size);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile__social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    column-gap: 2.5rem;
}

.profile__social-link {
    font-size: 1.5rem;
    color: var(--title-color);
    transition: 0.3s;
}

.profile__social-link:hover {
    color: var(--secondary-color);
}

.profile__info {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    column-gap: 2.5rem;
}

.profile__info-group {
    text-align: center;
}

.profile__info-number {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.profile__info-description {
    font-size: var(--smaller-font-size);
    font-weight: 500;
}

.profile__buttons,
.profile__buttons-small {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile__buttons {
    column-gap: 1rem;
    flex-direction: row;
}

.profile__buttons-small {
    column-gap: 0.25rem;
}

/*=============== BUTTONS ===============*/
.button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 1.15rem;
    border-radius: 0.5rem;
    transition: 0.3s;
    box-shadow: 0 8px 24px hsla(var(--hue), var(--sat), var(--lig), 0.25);
}

.button i {
    font-size: 1.25rem;
}

.button:hover {
    background-color: var(--first-color);
}

.button__small {
    padding: 0.75rem;
    box-shadow: none;
}

.button__gray {
    background-color: var(--text-color-lighten);
    color: var(--title-color);
    margin: 0 0.5rem;
}

.button__gray:hover {
    background-color: var(--first-color);
    color: #fff;
}
.github__button {
    background-color: var(--first-color);
}
.github__button:hover {
    background-color: var(--sec-color);
}

.button-void {
    cursor: default;
}
.button-void:hover {
    background-color: var(--sec-color);
}

/*=============== ABOUT ===============*/
.about {
    margin: 0 auto;
    padding: 4rem 0 0 0;
    /* background-color: var(--body-color); */
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about__info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 1.5rem 0 1.5rem;
    max-width: 1200px;
    line-height: 2rem;
    text-align: start;
}

/*=============== FILTERS TABS===============*/
.filters__content {
    margin: 2rem 0 2.5rem;
    background-color: var(--text-color-lighten);
    padding: 0.375rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    column-gap: 0.5rem;
}

.filters__content li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.filters__button {
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem;
    color: var(--title-color);
    font-size: var(--small-font-size);
    font-family: var(--body-font);
    font-weight: 500;
    border-radius: 0.75rem;
    cursor: pointer;
    background-color: transparent;
    background-color: --var(--first-color);
    transition: 0.3s;
}

.filters__button:hover {
    background-color: var(--first-color);
    color: #fff;
}

/*=============== PROJECTS ===============*/
.projects__card-outer {
    background-color: var(--text-color-lighten);
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects__window {
    background-color: #fff;
    border-radius: 1rem;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projects__card {
    position: relative;
    max-width: 491px;
    max-height: 273px;
    margin: 10px;
    border-radius: 1rem;
    overflow: hidden;
}

.projects__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hsmission .projects__img {
    object-position: top;
}

.touch__arrow,
.touch__text {
    position: absolute;
    color: #fff;
}

.touch__arrow {
    top: 0.4rem;
    right: 5rem;
    font-size: 1.8rem;
}

.touch__text {
    top: 0.35rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.projects__modal {
    position: absolute;
    width: 100%;
    height: 120%;
    bottom: -100%;
    //bottom: 0rem;
    left: 0;
    background: linear-gradient(
        180deg,
        hsla(var(--hue), 24%, 40%, 0.3) 0%,
        hsla(var(--hue), 24%, 4%, 1) 95%
    );
    display: grid;
    align-items: flex-end;
    padding: 1rem 1rem;
    transition: 0.3s;
}

.projects__modal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.projects__subtitle,
.projects__title {
    color: #fff;
}

.projects__subtitle {
    font-size: var(--smaller-font-size);
}

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0;
}

.projects__button {
    padding: 0.5rem;
}

.projects__tech-icons {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.projects__tech-icons i {
    font-size: 36px;
    color: #fff;
}

.projects__card:hover .projects__modal {
    bottom: 0;
}

.projects__description {
    font-size: 0.9rem;
    margin: 0.5rem;
    color: var(--first-color);
    text-align: left;
    line-height: 1.7rem;
}

.projects__description a {
    text-decoration: underline;
    color: var(--wcag-sec-color);
}

/*=============== SKILLS ===============*/
.skills__content {
    row-gap: 3.5rem;
}

.skills__title {
    font-size: var(--h3-font-size);
    text-align: center;
    margin-bottom: 1.5rem;
}

.skills__box {
    display: flex;
    justify-content: center;

    column-gap: 3rem;
}

.skills__group {
    display: grid;
    align-content: flex-start;
    row-gap: 3rem;
}

.skills__data {
    display: flex;
    flex-direction: column;
    column-gap: 0.5rem;
}

.skills__data i,
.skills__data ion-icon {
    margin: 5px auto;
    font-size: 1.7rem;
    color: var(--first-color);
}

.skills__name {
    margin: 0 auto;
    font-size: var(--normal-font-size);
    font-weight: 500;
    line-height: 25px;
}

.skills__badge {
    height: 150px;
    width: 150px;
}

.skills__level {
    font-size: var(--smaller-font-size);
}

/* Hide and show projects & skills */
.filters [data-content] {
    display: none;
}

.filters__active[data-content] {
    display: grid;
}

/* Activate button filter */
.filter-tab-active {
    background-color: var(--body-color);
}

/*=============== CONTACT ===============*/
.contact {
    padding-top: 1.5rem;
}

.contact__container {
    margin: 0 auto 4rem;
    row-gap: 1rem;

    width: 80%;
    max-width: 1150px;
}

.contact__title {
    text-align: center;
    font-size: --var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.contact__info {
    display: grid;
    gap: 1rem;
}
.contact__card {
    padding: 1rem;
    margin: 0 0 2rem 0;
    background-color: var(--body-color);
    border-radius: 0.75rem;
    text-align: center;
}

.contact__card-icon {
    display: block;
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
}
.contact__card-title,
.contact__card-data {
    font-size: var(--small-font-size);
}

.contact__card-data {
    display: block;
    font-size: --var(--font-medium);
    margin-bottom: 0.75rem;
    color: var(--first-color);
}

.contact__button {
    color: var(--sec-color);

    font-size: var(--font-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.25rem;
}
.contact__button:hover .contact__button-icon {
    transform: translatex(0.25rem);
}

.contact__button-icon {
    font-size: 1rem;
    transition: 0.4s;
}

.contact__form-div {
    position: relative;
    margin-bottom: 2rem;
    height: 4rem;
}

.contact__form-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    border: 2px solid var(--sec-color);
    border-radius: 0.75rem;
    background: none;
    color: var(--text-color);
    outline: none;
    z-index: 1;
}

.contact__form-tag {
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: 0.25rem;
    background-color: var(--body-color);
    z-index: 10;
}
.contact__form-area {
    height: 11rem;
}
.contact__form-area textarea {
    resize: none;
}

.form__button {
    padding: 1.15rem 1.5rem;
    border-radius: 0.5rem;
    transition: 0.3s;

    background-color: var(--sec-color);
    color: #fff;

    border: none;
    text-transform: uppercase;

    font-weight: var(--font-medium);
    transition: 0.5s;
}

.form__button:hover {
    background-color: var(--first-color);
    cursor: pointer;
}

.form__button:before {
    content: "";
    position: absolute;
    inset: 2px;
    background: -;
}

/*============ FOOTER ============*/

.footer {
    background-color: var(--first-color);
}

.footer__copy {
    display: block;

    padding: 2.5rem;
    border-radius: 0;
    text-align: center;
    font-size: var(--normal-font-size);
    color: var(--first-color);
    color: #fff;
}

/*============ SCROLL BAR ============*/
::-webkit-scrollbar {
    width: 0.7rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--hue), 8%, 66%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--hue), 8%, 54%);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--hue), 8%, 44%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 320px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .profile__info {
        column-gap: 1.5rem;
    }
    .profile__buttons {
        flex-direction: column;
        row-gap: 1rem;
    }
    .profile__buttons-small {
        margin-top: 2rem;
    }

    .skills__box {
        column-gap: 1rem;
    }
}

@media screen and (max-width: 410px) {
    .about__info {
        font-size: var(--small-font-size);
    }

    .projects__description {
        font-size: var(--small-font-size);
    }

    .touch__arrow {
        font-size: 1.25rem;
        top: 0.2rem;
    }
    .touch__text {
        font-size: 0.95rem;
        top: 0.15rem;
        right: 2.8rem;
    }

    #firstProject .projects__modal-content {
        position: relative;
    }

    #firstProject .projects__title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    #firstProject .projects__tech-icons {
        position: absolute;

        right: 0rem;
        bottom: 2rem;
    }

    .projects__tech-icons i {
        font-size: 24px;
    }
}

@media screen and (min-width: 411px) {
    .profile__buttons {
        flex-direction: row;
    }

    .profile__buttons-small {
        margin-top: 0;
    }

    .touch__arrow {
        top: 0.5rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .projects__content {
        grid-template-columns: 332px;
        grid-template-columns: 500px;
        justify-content: center;
    }

    .filters__content {
        width: 332px;
        margin: 3rem auto;
    }

    .contact__container {
        max-width: 500px;
    }
}

@media screen and (min-width: 776px) {
    .about__info {
        margin: 2rem 4rem 0 4rem;
    }
    .skills__content {
        justify-content: center;
        column-gap: 1rem;
    }
}

/* For large devices */
@media screen and (min-width: 992px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        background-color: --var(--body-color);
        height: 7rem;
    }

    .nav__logo {
        margin: 2rem 0 0 2rem;
    }

    .change-theme {
        top: 3rem;
        right: 5rem;
    }

    .profile {
        padding-top: 4rem;
    }
    .profile__border {
        width: 135px;
        height: 135px;
        margin-bottom: 1rem;
    }
    .profile__perfil {
        width: 120px;
        height: 120px;
    }
    .profile__perfil img {
        width: 90px;
    }
    .profile__profession {
        margin-bottom: 1.5rem;
    }
    .profile__info {
        column-gap: 3rem;
    }
    .profile__info-description {
        font-size: var(--small-font-size);
    }
    .profile__buttons {
        column-gap: 2rem;
    }

    .filters {
        max-width: 1224px;
    }

    .projects__content,
    .skills__content {
        grid-template-columns: 1fr 1fr;
        margin: 0 auto;
    }

    .projects__content {
        width: 95%;
        gap: 2rem 4rem;
    }

    .projects__card-outer:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    .projects__modal {
        padding: 1.5rem;
    }

    .skills__title,
    .contact__title {
        font-size: var(--h2-font-size);
        margin-bottom: 4rem;
    }

    .skills__title.fe-title {
        margin-bottom: 6rem;
    }

    .skills__box {
        column-gap: 5rem;
    }

    .skills__data i,
    .skills__data ion-icon {
        font-size: 3rem;
    }

    .skills__badge {
        height: 300px;
        width: 300px;
    }

    .contact__container {
        display: flex;
        flex-direction: row;
        width: 95%;
        max-width: 1100px;
    }

    .contact__content {
        width: 100%;
    }

    .contact__info {
        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 5rem;
    }

    .contact__title {
        margin-top: 3rem;
    }

    .form__title {
        display: none;
    }
}
