@import url('https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Titillium+Web&display=swap');

:root {
    --main: #252525;
    --secondary: #FAD888;
    --tertiary: #9A5E6D;
    --action: #FCB667;
    --shadow: #877c7c;
}


* {
    margin: 0;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
}

body {
    background-color: var(--main);
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--tertiary);
    background: linear-gradient(90deg, var(--tertiary) 0%, var(--action) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

    header h2 {
        font-size: 2.5rem;
        background: var(--tertiary);
        background: linear-gradient(00deg, var(--tertiary) 0%, var(--action) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    header div {
        position: fixed;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 5;
    }

.arrowDown {
    height: 24px;
    width: 24px;
}

main {
    height: 250vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

section {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
}

.titleSection {
    padding-top: 20vh;
    padding-bottom: 40vh;
}

h1 {
    font-family: 'Merriweather', serif;
    font-size: 20rem;
}
    h1::after{
        content: ".";
        background: var(--tertiary);
        background: linear-gradient(90deg, var(--tertiary) 0%, var(--action) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

    }

h3 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    background: var(--tertiary);
    background: linear-gradient(90deg, var(--tertiary) 0%, var(--action) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wrapper {
    height: 200vh;
}

.projects {
    height: 100%;
    background-color: var(--secondary);
    flex-direction: unset;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 10rem;
    box-shadow: 0px 0px 10px var(--shadow);
}

    

    .card {
        width: 15rem;
        height: 20rem;
        position: relative;
        left: -40px;
        display: flex;
        flex-direction: column;
        background-color: var(--main);
        color: var(--biel);
        text-align: center;
        text-decoration: none;
        border-left: solid 1rem transparent;
        border-radius: 30px;
        background-image: linear-gradient(var(--main), var(--main)), linear-gradient(180deg, var(--tertiary) 10%, var(--action) 100%);
        background-origin: border-box;
        background-clip: content-box, border-box;
        transition: 0.4s ease-out;
        z-index: 4;
    }

        .card:not(:first-child) {
            margin-right: -50px;
        }

        .card:hover {
            transform: translateY(-50px);
            z-index: 5;
            background-color: var(--main);
            box-shadow: 0px 0px 5px var(--shadow);
        }

        .card:hover ~ .card {
            position: relative;
            left: -20px;
            transition: 0.4s ease-out;
          }

        .card:active{
            background-color: var(--main);
        }

        .card div{
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding-bottom: 1rem;
        }

        .card div .github_wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .card div p {
            font-size: 1rem;
            width: 99%;
        }

        .card div img {
            width: 84px;
            height: 84px;
            border-radius: 100%;
            margin-top: 1rem;
            margin-bottom: 1rem;
            scale: 1;
        }

            .card div img.arrowDown {
                height: 18px;
                width: 18px;
                margin: 0;
            }

            .card button {
                border-radius: 100%;
                height: 2.75rem;
                width: 2.75rem;
                padding: 0;
                margin: 0;
            }

                .card button img {
                    background-color: var(--secondary);
                    border-radius: 100%;
                    margin: 0;
                    height: 2.75rem;
                    width: 2.75rem;
                }

                .card button img:hover {
                    box-shadow: var(--main) 0px 0px 10px;
                }
                    
                
        .card h2 {
            margin-top: 5%;
            text-align: center;
            background: var(--tertiary);
            background: linear-gradient(90deg, var(--tertiary) 0%, var(--action) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .card:hover + .extWebPage {
            transform: translate(50px, -50px);
            transition: 0.4s ease-out;
            opacity: 1; 
        }
        
    .extWebPage {
        z-index: 9;
        position: relative;
        overflow: hidden;
        width: 15rem;
        height: 20rem;
        pointer-events: none;
        opacity: 0;
        margin-right: -250px;
        padding: 0;
        left: -40px;
        object-fit: contain;
        object-position: left center;
    }

    .invisible {
        position: relative;
        margin-right: -250px;
        left: -40px;
        opacity: 0;
        width: 16rem;
        height: 20rem;
        z-index: 4;
        background-color: red;
    }

        .invisible:hover {
            cursor: pointer;
        }

        .invisible:hover + .card {
            transform: translate(-20px,-50px);
            z-index: 5;
            background-color: var(--main);
            box-shadow: 0px 0px 5px var(--shadow);
        }

        .invisible:hover + .card + .extWebPage {
            transform: translate(50px, -50px);
            transition: 0.4s ease-out;
            opacity: 1; 
        }

        .invisible:hover ~ .card {
            position: relative;
            left: -20px;
            transition: 0.4s ease-out; 
        }

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 2rem;
    height: 100%;
}

    .text {
        width: 35%;
        text-align: justify;
    }

        .text span {
            color: var(--action)
        }

    #content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .button-img{
        height: 21px;
        width: 100px;
    }

button {
    background-color: var(--main);
    padding: 5px;
    padding-left: 10px;
    margin: 1rem;
    border-radius: 10px;
    text-decoration: none;
    appearance: unset;
    cursor: pointer;
    border: none;  
}
    button:hover {
        box-shadow: var(--action) 0px 0px 10px;
    }

    #content button:nth-of-type(2){
        margin-top: 0.5rem;
        height: 3.75rem;
        width: 3.75rem;
        padding: 0;
        border-radius: 100%;
    }

        #content button:nth-of-type(2) img {
            background-color: var(--secondary);
            border-radius: 100%;
            margin: 0;
            height: 3.75rem;
            width: 3.75rem;
        }

footer {
    color: var(--secondary);
    text-align: center;
    width: 100%;
    height: 2.5rem;
    margin-top: 2rem;
}
/* animation  */

.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1.5s ease;
  }
  
.active {
   transform: translateY(0);
   opacity: 1;
  }

.hidden {
    display: none;
}

@media only screen and (max-width: 1500px) {

    h1 {
        font-size: 15rem;
    }

    main {
       height: 250vh;
    }

    #projects {
        height: 100vh;
    }

    #about {
        margin-top: 4.5rem;
    }
}  

@media only screen and (max-width: 1200px) {

    .card {
        width: 12.5rem;
    }

}

@media only screen and (max-width: 750px) {

    header h2{
        font-size: 2rem;
    }

    h1 {
        font-size: 5rem;
    }

    h3{
        font-size: 1.5rem;
    }

    main {
        height: 250rem;
        width:100%;
    }

    .projects {
        height: auto; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        height: auto;
        margin-top: 1rem;
        position: unset;
    }

    .card p {
        font-size: 1rem;
    }

    .card:hover {
        box-shadow: 10px 10px 10px var(--shadow);
        transform: translateY(0);
    }

    .card:not(:first-child) {
        margin-left: 0;
        margin-right: 0;
    }

    .card:hover ~ .card {
        position: unset;
    }

    .card button img {
        height: 2.5rem;
        width: 2.5rem;
    }

    .invisible {
        display: none;
    }

    .extWebPage {
        display: none;
    }

    #about {
        margin-top: 10rem;
    }

    .text {
        width: 90%;
    }

    #content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    #content button:nth-of-type(2) {
        height: 3rem;
        width: 3rem;
    }

    #content button:nth-of-type(2) img {
        height: 3rem;
        width: 3rem;
    }
}