:root {
    --primary: #090d1b;
    --primary-light: #10152e;
    --segundary-color: #3786fc;
    --tertiary-color: #b9d7fd;
    --white: #ffffff;
    --overlay-color: #1a2242;
    --gap: 2rem;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.5rem;
}

p {
    font-size: 1.8rem;
}

hr {
    margin-top: 2rem;
    border-color: var(--segundary-color);
    margin-left: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

span {
    color: var(--segundary-color);
}

.content-thanks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: #1a224236;
    border-radius: 15px;
    box-shadow: rgba(56, 136, 240, 0.199) 0px 0px 80px;
}

.content-thanks p {
    font-size: 2.2rem;
}

.content-thanks h1 {
    font-size: 3.5rem;
    margin: 1rem;
    color: var(--segundary-color);
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    padding: 0 2rem;
}

.menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li a {
    display: block;
    padding: 2rem;
    padding-right: 2rem;
    font-size: 1.8rem;
    transition: all 300ms ease-in-out;
    position: relative;
}

.menu h2 {
    font-size: 1.8rem;
    padding: 2rem;
    text-decoration: none;
    color: var(--segundary-color);
    transition: all 300ms ease-in-out;
}

.menu-bg {
    color: var(--white);
}

.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    width: 0;
    height: 0.2rem;
    background-color: var(--segundary-color);
    transition: all 300ms ease-in-out;
}

.menu ul li a:hover:after {
    width: 50%;
    left: 25%;
}

.name {
    text-transform: uppercase;
    color: var(--segundary-color);
    font-size: 6rem;
}

.main-bg {
    background: var(--primary);
    color: var(--white);
}

.main-bg-light {
    background: var(--primary-light);
    color: var(--white);
}

.white-bg {
    background-color: #f1f1f1;
}

.section {
    min-height: 100vh;
}

.space {
    padding: 7rem;
}

.main-content {
    max-width: 140rem;
    margin: 0 auto;
}

.grid-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--gap);
    min-height: 100vh;
    justify-items: center;
    text-align: center;
}

.home-button {
    display: flex;
    gap: var(--gap);
    margin-top: 2.5rem;
}

.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 2.5rem 2rem 0 2rem;
}

.main-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.icon-home-github,
.icon-home-linkedin {
    font-size: 4rem;
    color: var(--white);
    transition: all 300ms ease-in-out;
}

.icon-home-github:hover,
.icon-home-linkedin:hover {
    transform: translateY(-3px);
    color: var(--segundary-color);
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    padding: 1.5rem 2.5rem;
    border: 2px solid rgba(56, 136, 240, 0.459);
    transition: all 200ms ease-in-out;
    border-radius: 5px;
    background-color: transparent;
}

.link-button.primary {
    gap: 1rem;
    background-image: linear-gradient(to right, #141e3b, var(--segundary-color));
    color: var(--white);
    font-weight: 550;
    border: none;
    transition: all 0.3s ease-in-out;
}

.link-button.primary svg {
    transition: transform 0.3s ease-in-out;
    stroke: var(--white);
}

.link-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 15px rgba(55, 134, 252, 0.3);
    background-color: transparent;
}

.link-button.primary:hover svg {
    transform: translateX(7px);
}

.link-button:hover {
    border-color: var(--segundary-color);
    background-color: rgba(56, 136, 240, 0.1);
}

.icon-home-github {
    font-size: 4.5rem;
    transition: all 300ms ease-in-out;
}

.link-button-thanks {
    text-decoration: none;
    font-size: 2rem;
    color: var(--white);
    padding: 1.7rem;
    width: 50%;
    border: 3px solid rgba(56, 136, 240, 0.459);
    transition: all 200ms ease-in-out;
    border-radius: 5px;
    margin: 3rem auto 0 auto;
}

.home-content-img .home {
    max-width: 80%;
    width: 36rem;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(55, 134, 252, 0.2);
    transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
}

.p-about-me {
    font-size: 2.1rem;
}

.main-about-me {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    gap: 2rem;
}

.about-me-text {
    flex: 1.5;
    padding: 2rem;
    line-height: 1.7;
}

.about-me-text h1 {
    margin-bottom: 2.5rem;
}

.about-me-img {
    flex: 1;
    padding: 2rem;
}

.about-me-img img {
    width: 100%;
}

.hr-projects {
    border-color: rgba(73, 143, 235, 0.144);
}

.content-projects {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 2rem 0;
    line-height: 1.7;
    transition: all 150ms ease-in-out;
}

.skills {
    position: relative;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.h1-projects {
    margin: 5rem 0 2rem 0;
}

.title-project {
    font-size: 2.5rem;
    color: var(--segundary-color);
}

.home-content-img .home:hover {
    box-shadow: 0px 15px 45px rgba(55, 134, 252, 0.35);
    transform: translateY(-3px);
}

.home-content-img {
    justify-self: start;
}

.project-text {
    margin-bottom: 2rem;
}

.skills h2 {
    font-size: 4rem;
    margin-top: -1.5rem;
}

.card-skill {
    position: relative;
    display: flex;
    justify-content: center;
    width: 6rem;
    margin: 1rem 1.3rem;
}

.card-skill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 7.3rem;
    padding: 0.8rem;
    letter-spacing: 0.2rem;
    border-radius: 10px;
    background-color: var(--overlay-color);
    box-shadow: rgba(56, 136, 240, 0.24) 0px 0px 10px;
    transition: opacity 200ms ease-in-out;
    opacity: 0;
}

.card-skill:hover .overlay-text {
    opacity: 1;
    z-index: 1;
}

.overlay-skill {
    font-size: 1.5rem;
    color: var(--white);
}

.project-img {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.steck {
    width: 2.5rem;
    margin: 0 0.5rem;
    transition: all 300ms ease-in-out;
}

.img-git {
    width: 2.5rem;
    margin-right: 1.5rem;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: rgba(56, 136, 240, 0.548) 2px 2px 50px;
    transition: all 300ms ease-in-out;
}

.home-content-text,
.home-content-img {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}

#contact {
    display: flex;
    align-items: center;
    padding: 0;
}

.contact {
    width: 90%;
}

.title-contact h1 {
    margin: 2rem 0;
    font-size: 1.8em;
    color: var(--segundary-color);
}

.form input {
    width: 100%;
    margin: 0.8rem 0;
    height: 5rem;
    color: var(--white);
    padding-left: 1.3rem;
    background-color: transparent;
    font-size: 1.8rem;
    border: none;
    border-bottom: 1px solid rgba(73, 143, 235, 0.233);
    outline: none;
}

.form textarea {
    width: 100%;
    margin: 0.8rem 0;
    height: 20rem;
    color: var(--white);
    font-size: 1.8rem;
    padding-left: 1.3rem;
    background-color: transparent;
    font-family: Space Grotesk, sans-serif;
    border: none;
    border-bottom: 1px solid rgba(73, 143, 235, 0.233);
    outline: none;
}

.button-contact {
    font-size: 2rem;
    padding: 0.8rem;
    color: var(--white);
    border-radius: 5px;
    background-color: #1a224285;
    border: none;
    transition: all 200ms ease-in-out;
}

.form input::placeholder {
    color: #ffffff50;
}

.form textarea::placeholder {
    color: #ffffff50;
}

.form input:focus,
.form textarea:focus {
    box-shadow: rgba(0, 100, 180, 0.5) 1px 1px;
    text-decoration: none;
}

.button-contact:hover {
    background-color: #1a2242;
    cursor: pointer;
    transform: scale(1.05);
}

.menu h2:hover {
    color: var(--white);
}

.menu ul li a:hover {
    color: var(--segundary-color);
}

.content-projects:hover {
    transform: scale(1.01);
}

.img-git:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.steck:hover {
    transform: scale(1.3);
}

@media all and (min-width: 769px) and (max-width: 1000px) {
    html {
        font-size: 58%;
    }

    .main-about-me {
        flex-direction: column;
        text-align: center;
    }

    .about-me-text {
        line-height: 1.5;
    }

    .about-me-img img {
        width: 70%;
    }

}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    hr {
        margin-left: 0;
    }

    h3 {
        font-size: 3rem;
    }

    .space {
        padding: 4rem 2rem;
    }

    .name {
        font-size: 4.5rem;
    }

    .menu nav ul {
        display: none;
    }

    .menu {
        padding: 0;
    }

    .grid-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-content-img {
        max-width: 70%;
        align-items: center;
        justify-self: center;
    }

    .main-about-me {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about-me-text {
        line-height: 1.5;
        justify-content: center;
        margin-top: 10rem;
    }

    .project-img {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .aling-skill-mobile {
        justify-content: center;
    }


    .home-content-text {
        margin-top: 4rem;
        padding: 0 3rem;
    }

    .link-button {
        font-size: 1.7rem;
    }

    .home-button {
        justify-content: center;
    }

    .about-me-img {
        width: 80%;
    }

    .main-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .link-button {
        width: 100%;
        max-width: 35rem;
    }
}