@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@keyframes show-elements {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
    
}

@keyframes down-to-top {
    0% {
        opacity: 0;
        transform: translateY(70%);
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes top-to-down {
    0% {
        opacity: 0;
        transform: translateY(-70%);
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: r=translateY(0);
    }
}

@keyframes left-to-right {
    0% {
        transform: translate(-10%);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes background-gradient {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 300%;
    }
}

@keyframes waving-hand {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    color: #000000;
    font-style: normal;
    --container-color: #ffffff;
    --small-font-size: 12px;
    --h1-font-size: 3.5rem;
    --h2-font-size: 16px;
    --title-color: #000000;
    --first-color: #1494b4;
    --first-color-hover: #147087;
    --text-color: #000000;
    --light-text-color: #a1a1a1;
    
    
}
html {
    width: 100vw;
}
body {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    background-attachment: fixed;
    overflow-x: hidden;
}
header {
    display: flex;
    justify-content: center;
    width: 100vw;
    position: fixed;
    bottom: 20px;
    z-index: 99;

    menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 5px;

        a {
            background-color: #a1a1a1;
            font-size: 16px;
            width: 22vw;
            display: flex;
            padding: 4px 0;
            justify-content: center;
            align-items: center;
            border: 2px solid #3c3c3c;
            border-radius: 6px;
            box-shadow: 4px 4px 5px #000000;
            gap: 50px;
            }
        a:active {
            background-color: #a7a7a7;
            border: .5px solid #3c3c3c;
            box-shadow: none;
            font-size: 15px;
            width: 22.1vw;
        }

    }

}

h1 {
    font-size: var(--h1-font-size);
    text-align: center;
}

#home {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: radial-gradient(#ffffff, #a1a1a1);
    justify-content: center;
    align-items: center;

    .headline {
        animation-delay: .2s;
        animation-duration: 3s;

        h2 {
            position: relative;
            width: 210px;
            margin: 0 auto;
            animation-fill-mode: backwards;
            animation-delay: .7s;
            font-size: 18px;
            z-index: 2;

            img {
                width: 18px;
                animation: waving-hand 2.5s;
                animation-delay: 3s;
                transform-origin: 70% 70%;
            }
            img:hover {
                animation: waving-hand 2.5s infinite;
                transform-origin: 70% 70%;
                animation-delay: 0;
            }
        }

        h1 {
            font-size: 56px;
            color: #4c4c4c;
            display: block;
            font-weight: bold;
            line-height: 55px;

            a {
                margin: 10px;
                font-size: 32px;
                position: absolute;
                box-shadow: #00000080 0 2px 3px -5px, #00000080 0 2px 5px -5px;
                z-index: 1;
                transition: all .5s;
                animation-delay: 1.3s;
                animation-duration: 1s;

                img {
                    width: 32px;
                    height: 32px;
                    padding: 0;
                    transition: all .5s;
                }
            }
            a:nth-of-type(1) {
                transform: translate(-50px, -150px)
            }
            a:nth-of-type(2) {
                transform: translate(-320px, -150px)
            }
            a:nth-of-type(3) {
                transform: translate(-180px, -150px)
            }

            a:hover {
                box-shadow: #000c 0 2px 3px -3px, #000c 0 2px 3px -3px;
                img {
                    margin-bottom: 10px;
                    transform: scale(1.3);
                }
            }
        }
        .span-txt-developer {
            opacity: 1;
            display: flex;
            animation-duration: 1s;
        }

        p {
            font-size: var(--h2-font-size);
            position: relative;
            width: 320px;
            font-weight: 400;
            word-spacing: -1px;
            animation-delay: .5s;
            animation-fill-mode: backwards;
            text-align: center;

            a {
                color: var(--first-color);
            }

            a:hover {
                font-size: calc(var(--h2-font-size) + 1.53px);
                font-weight: 600;
                color: var(--first-color-hover);
            }
        }
    }
}

#projects {
    margin-top: 100px;
}

/*======== CARD ========*/
.container {
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;
}

.card_container {
    display: grid;
    row-gap: 3.5rem;
}

.card_article {
    position: relative;
    overflow: hidden;
}

.card_img {
    width: 328px;
    border-radius: 1.5rem;
}

.card_data {
    width: 280px;
    background-color: var(--container-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

.card_description {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: .25rem;
}

.card_title {
    font-size: var(--h2-font-size);
    font-weight: 500;
    color: var(--title-color);
    margin-bottom: .75rem;
}

.card_button {
    font-size: var(--small-font-size);
    font-weight: 500;
    color: var(--first-color);
}

.card_button:hover {
    text-decoration: underline;
}

.card_article:hover .card_data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card_article:hover {
    animation: remove-overflow 2s forwards;
}

.card_article:not(:hover) {
    animation: show-overflow 2s forwards;
}

.card_article:not(:hover) .card_data {
    animation: remove-data 1s forwards;
}

#skills {
    background-color: #a1a1a1;
    text-align: center;
    h1 {
        color: #ffffff;
    }
}

.skills-container {
    display: inline-block;
    padding: 50px;
    max-width: 920px;

    img {
        margin: 10px;
        width: 50px;
        height: 50px;
        transition: all .2s;
    }

    img:hover {
        scale: 1.1;
    }
}


#contact {
    h1 {
        margin-top: 100px;
    }

    .contact {
        width: 100%;
        overflow: hidden;
    }

    .contact-container {
        height: 80vh;
        min-height: 700px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .contact-container > div {
        grid-column: 1/2;
        grid-row: 1/2;
    }
    .left {
        width: 100%;
        max-width: 80rem;
        margin: 0 auto;
        padding: 0 1.5rem 0;
        display: grid;
        align-items: center;
        position: relative;
        z-index: 3;
    }
    .contact-heading h1 {
        font-weight: 600;
        color: var(--title-color);
        line-height: 0.9;
        white-space: nowrap;
        margin-bottom: 1.2rem;
    }
    .contact-heading h1 span {
        color: var(--first-color);
    }
    .text {
        color: var(--light-text-color);
        line-height: 1.1;
        font-size: 1rem;

        
    }
    .text a {
            color: var(--first-color);
            transition: .3s;
        }
    .text a:hover {
        color: var(--first-color-hover);
    }

    .form-wrapper {
        max-width: 32rem;
    }

    .contact-form {
        display: grid;
        margin-top: 2.55rem;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 1rem;
    }

    .input-wrap {
        position: relative;
    }

    .input-wrap.w-100 {
        grid-column: span 2;
    }

    .contact-input {
        width: 100%;
        background-color: #f1f1f1;
        padding: 1.5rem 1.35rem calc(0.75rem - 2px) 1.35rem;
        border: none;
        outline: none;
        font-family: inherit;
        border-radius: 15px;
        color: var(--text-color);
        font-weight: 600;
        font-size: 0.95rem;
        border: 2px solid transparent;
        box-shadow: 0 0 0 0 #00000059;
        transition: .3s;
    }

    .contact-input:hover {
        background-color: #e3e3e3;
    }

    .input-wrap label {
        position: absolute;
        top: 50%;
        left: calc(1.35rem + 2px);
        transform: translateY(-50%);
        color: var(--light-text-color);
        pointer-events: none;
        transition: .25s;
    }
    .input-wrap .icon {
        position: absolute;
        right: calc(1.35rem + 2px);
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--light-text-color);
        font-size: 1,25rem;
        transition: .3s;
    }

    .text-area.contact-input {
        resize: none;
        width: 100%;
        min-height: 150px;
    }
    .text-area.contact-input ~ label {
        top: 1.2rem;
        transform: none;
    }
    .text-area.contact-input ~ .icon {
        top: 1.3rem;
        transform: none;
    }

    .input-wrap.focus .contact-input {
        background-color: var(--container-color);
        border: 2px solid var(--first-color);
        box-shadow: 0 0 0 5px #1494b42d;
    }
    .input-wrap.focus label {
        color: var(--first-color);
    }
    .input-wrap.focus .icon {
        color: var(--first-color);
    }

    .input-wrap.not-empty label {
        font-size: .66rem;
        top: .75rem;
        transform: translateY(0);
    }

    .contact-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        grid-column: span 2;
    }

    .btn {
        display: inline-block;
        padding: 1.1rem 2rem;
        background-color: var(--first-color);
        color: #ffffff;
        border-radius: 40px;
        border: none;
        font-family: inherit;
        font-weight: 500;
        font-size: 1rem;
        cursor: pointer;
        transition: .3s;
    }
    .btn:hover {
        background-color: var(--first-color-hover);
    }

    .btn.upload {
        position: relative;
        background-color: #f1f1f1;
    }

    .btn.upload span {
        color: var(--light-text-color);
    }

    .btn.upload:hover {
        background-color: #e3e3e3;
    }

    .btn.upload .icon {
        position: absolute;
        transform: translateX(-40px);
    }

    .btn.upload input {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        cursor: pointer;
        opacity: 0;

    }

    .right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: hidden;
        pointer-events: none;
    }

    .image-wrapper {
        position: relative;
        grid-column: 2;
        height: 100%;

    }

    .image-wrapper #visual2 {
        position: absolute;
        height: 50%;
        left: 60%;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .image-wrapper #visual {
        position: absolute;
        height: 55%;
        left: 60%;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .video-anim {
        position: absolute;
        height: 40%;
        left: 55%;
        top: 65%;
        transform: translate(-50%, -50%);
        mix-blend-mode: lighten;
    }

    .form-alert {

    }
}



/*====== CUSTOM DIVIDERS ======*/

/*  home to projects */
.divider {
    position: relative;
    bottom: 0;
    left: 0;
}
.custom-shape-divider-top-1748397239 {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100vw;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-top-1748397239 svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
    transform: rotateY(180deg);
}

.custom-shape-divider-top-1748397239 svg.layer2 {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    transform: rotateY(180deg);
}

.custom-shape-divider-top-1748397239 .shape-fill {
    fill: var(--first-color);
}
.custom-shape-divider-top-1748397239 svg.layer2 .shape-fill {
    fill: var(--container-color);
}



/*  projects to skills */
.custom-shape-divider-top-waves-opacity {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-waves-opacity svg {
    position: relative;
    display: block;
    width: calc(110% + 1.3px);
    height: 100px;
}

.custom-shape-divider-top-waves-opacity .shape-fill {
    fill: #FFFFFF;
}



/*  skills to contact */

.custom-shape-divider-bottom-waves-opacity {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-waves-opacity svg {
    position: relative;
    display: block;
    width: calc(110% + 1.3px);
    height: 100px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-waves-opacity .shape-fill {
    fill: #FFFFFF;
}





@media screen and (min-width: 340px) {
    section{
        width: 100vw;
    }
    .container{
        margin-inline: 1rem;
    }

    .card_data {
        width: 250px;
        padding: 1rem;
    }
}

@media screen and (min-width: 768px) {
    
    .card_container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }
}

@media screen and (min-width: 1000px) {


    header {
        display: none;
    }



    #home {

    .headline {
        
        h2 {
            font-size: 30px;
            width: 100%;
            img {
                width: 28px;
            }
        }

        h1 {
            font-size: 110px;
            color: #4c4c4c;
            display: block;
            font-weight: bold;
            line-height: 85px;

            a {
                position: relative;
                
                img {
                    padding: 0;
                    width: 32px;
                }
            }
        }
        .span-txt-developer {
            opacity: 1;
            display: flex;
            padding-left: 180px;
            animation-duration: 1s;
        }
        p {
            font-size: 18px;
            position: relative;
            width: 610px;
            left: 23%;
            font-weight: 400;
            word-spacing: -1px;
            animation-delay: .5s;
            animation-fill-mode: backwards;
            text-align: right;
        }
    }
}

/* Animations Desktop */
.animation-show {
    opacity: 0;
    animation: show-elements 2s forwards;
}

.animation-show-down-to-top {
    animation: down-to-top 1s;
}

.animation-show-top-to-down {
    animation: top-to-down 1s;
}

.animation-left-to-right {
    animation: left-to-right 2s;
}

    .container {
        height: 100vh;
    }

    .card_container {
        grid-template-columns: repeat(3, 1fr);
    }

    .card_img {
        width: 348px;
    }

    .card_data {
        width: 316px;
        padding-inline: 2.5rem;
    }

    .left {
        grid-template-columns: repeat(2, 1fr);
    }

}



@media (max-width: 1000px) {


    .contact-heading h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        white-space: normal;
    }

    .text {
        font-size: .9rem;
    }

    .contact-form {
        display: grid;
        margin-top: 1.9rem;
        column-gap: .8rem;
        row-gap: .65rem;
    }

    .contact-input {
        border-radius: 17px;
        font-size: .87rem;
        padding: 1.5rem 1.2rem calc(.75rem - 2px) 1.2rem;
    }

    .input-wrap label {
        font-size: .91rem;
        left: calc(1.2rem + 2px);
    }

    .input-wrap .icon {
        font-size: 1.1rem;
        right: calc(1.2rem + 2px);
    }

    .text-area.contact-input ~ label {
        top: 1.2rem;
    }
    .text-area.contact-input ~ .icon {
        top: 1.33rem;
    }
    .input-wrap.focus .contact-input {
        box-shadow: 0 0 0 3.5px var(--first-color);
    }

    .input-wrap.not-empty label {
        font-size: .91rem;
    }

    .contact-buttons {
        column-gap: .8rem;
        margin-top: .45rem;
        margin-bottom: 5rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: .87rem;
    }

    .right {
        display: none;
    }

    .image-wrapper {
        display: none;
    }
    
    .form-wrapper {
        width: 100%;
        padding: 1rem 0;
    }
    .left {
        padding: 50px 1.5rem 0;
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 650px) {


}

@media (max-width: 440px) {
    .input-wrap {
        grid-column: span 2;
        row-gap: .5rem;
    }
    .contact-heading h1 {
        font-size: 1.9rem;
        line-height: 1;
    }
}


/*====== Animations======*/

.animation-show {
    opacity: 0;
    animation: show-elements 2s forwards;
}

.animation-text-gradient {
    background: linear-gradient(45deg, #000, #61DBFB, #61DBFB, #000);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: background-gradient 30s ease-in-out infinite alternate;
}
/* Card animation */
@keyframes show-data {
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-7rem);
    }
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }
    50% {
        overflow: hidden;
    }
}
