:root {
    --primary: #34353a;
    --secondary: #494b50;
    --white: #fff;
    --black: #000;
    --gradient: linear-gradient(to right, rgb(182, 244, 146), rgb(51, 139, 147));
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;

}

body {
    min-height: 100vh;
    background-color: var(--primary);
    color: var(--white);
    font-family: "Inter", arial, sans-serif;
    font-size: 1.25rem;
}

section {
    padding: 3rem 0;

    @media (width >=768px) {
        padding: 5rem 0;
    }
}

h1,
h2 {
    margin: 0.67em 0;
}

h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h3 {
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header  */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    background-color: var(--primary);
    z-index: 2;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: block;
    color: var(--white);
    font-size: 2.5rem;
    text-decoration: none;
    text-wrap-mode: nowrap;
}



.header-button {
    background-color: transparent;
    border: 0;
    filter: invert(1);
    z-index: 2;
    position: absolute;
    right: 1rem;
    top: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-button {
    @media (width>=768px) {
        display: none;
    }
}

.header-nav {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;


    @media (width>=768px) {
        position: static;
        height: 100%;
        transform: translateX(0);
    }
}

.open-menu {
    transform: translateX(0);
    background-color: var(--primary);
    display: block;
}

.header-nav-list {

    width: 100%;
    height: 100%;
    background-color: var(--primary);
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;

    justify-content: center;
    align-items: center;

    @media (width>=768px) {
        flex-direction: row;
        justify-content: flex-end;
    }


}

.header-nav-item {

    & a {
        color: var(--white);
        text-decoration: none;
        font-size: 3.5rem;
        transition: all 0.5s ease-in-out;

        &:hover,
        &.active {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;


        }

        @media (width>=768px) {
            font-size: 1.5rem;
        }
    }
}

/* hero */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;

}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);

    & span {
        display: block;

        &:nth-child(2) {
            font-weight: 400;
            font-style: italic;

        }
    }
}

.hero-description {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.8;

    @media (width>=768px) {
        max-width: 65%;
    }
}


.hero-scroll-down {
    position: absolute;
    left: 50%;
    top: 80%;

    transform: translate(-50%, -50%);
    max-width: 30px;

    @media (width>=768px) {
        top: 95%;

    }

    & #wheel {
        animation: wheel 1.5s infinite;
    }


}

@keyframes wheel {
    0% {
        transform: translateY(100px);
    }

    50% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(100px);
    }
}

/* Experience */

.experience-item {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    padding: 4%;
    border: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 2rem;
    border-radius: 1rem;
    transition: all 0.5s ease-in-out;


    & .experience-date {
        color: #D4F7E4;
    }

    &:hover {
        border: 1px solid rgba(255, 255, 255, .5);
    }

    @media (width >=768px) {
        transform: translateX(0px);

        & h3 {
            padding-left: 0;
            transition: padding-left 0.3s ease-in-out;
        }

        &:hover {
            border: 1px solid #D4F7E4;
            transform: translateX(30px);

            & h3 {
                padding-left: 15px;
            }
        }

    }


    & span {
        font-size: 1.5rem;
        opacity: 0.5;
    }
}

.tecnology-list {
    padding: 0;
    margin: 2rem 0 0 0;
    list-style-type: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tecnology-item {
    border: 1px solid #D4F7E4;
    padding: 0.5rem;
    border-radius: 1rem;
    background-color: #D4F7E4;
    color: #3F5D20;
    font-size: clamp(0.8rem, 4vw, 1rem);

}

/** Links **/

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;

    & a {
        color: var(--white);
        transition: all 0.3s ease-in-out;
        display: flex;
        gap: 0.5rem;

        &:hover {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;


        }
    }
}

/* LinkedIn */
.contact {
    & a {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: flex;
        gap: 0.5rem;
        align-items: first baseline;
    }

    & .contact-linkedin {
        position: relative;
        top: 0.6rem;
    }

    & .contact-wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;

        & .contact-img {
            max-width: 20rem;
            height: auto;
            border-radius: 50%;
            filter: grayscale(0.7);
        }
    }
}