
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    
:root{
    --primary-color: #121212;
    --secondary-color: #101010;
    --primary-dark: #141515; 
    --secondary-dark: #2b2d2f;
    --primary-light-color: rgb(250, 250, 250);
    --secondary-light-color: #eaeaea;
    --border-color: #404040;
}

body{
    background-color: var(--primary-color) /*#101922*/;
    font-family: 'System-ui';
    color: var(--primary-light-color);
    min-height: 100vh;
    }

header{
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: color-mix(in srgb, var(--secondary-color) 78%, transparent);
    backdrop-filter: blur(14px); 
    box-sizing: border-box;
    min-height: 5vw;
}

header nav{
    align-items: center;
    display: flex;
    gap: 1rem;   
}

header a{
        color: var(--primary-light-color);
        text-decoration: none;
        padding: 1.5rem;
        transition-duration: 0.2s;
        &:hover{
            scale: 1.1;
            text-shadow: 0 0 5px var(--primary-light-color);
        }
    }

hr{
    border: none;
    height: 1px;
    background-color: var(--border-color);
}

.profile{
    width: 150px;
    height: 150px;
    border-radius: 10%;
    object-fit: cover;
    transition-duration: 300ms;
    transition-timing-function: steps(60);

    /*border-radius: 50%;
    max-width: 100%;
    box-shadow: 0 0 10px rgb(58, 58, 139);*/
}

.about{
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 3fr 1fr;
    grid-template-rows: auto;
}

.about img{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    justify-self: center;
    align-self: center;
}

.about h1{
    grid-column: 3/4 ;
    align-content: center;
}

.about p{
    margin-top: 1rem;
    grid-column: 3/4;
    font-size: 1rem;
    color: var(--secondary-light-color);
}

@media (width < 1100px){
    .profile{
        width: 125px;
        height: 125px;
    }
}

@media (width < 940px){
    .profile{
        width: 110px;
        height: 110px;
    }
}

@media (width < 750px){
    .profile{
        width: 90px;
        height: 90px;
    }

    .about img{
        grid-column: 2/4;
        grid-row: 1/2;
        place-self: center;
    }

    .about h1{
        grid-column: 2/4;
        grid-row: 2/3;
        place-self: center;
        text-align: center;
    }
    
    .about p{
        grid-column: 2/4;
        grid-row: 3/4;
        text-align: center;
    }
}

.tech{
    display: grid;
    grid-template-columns: 1fr 1fr 3fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    margin-top: 5rem;
}

.tech h2{
    grid-row: 1/2;
    grid-column: 2/4 ;
    align-content: center;
    
}

.tech p{
    grid-row: 2/3;
    grid-column: 2/4 ; 
    color: var(--secondary-light-color);
}

.tech div{
    margin-top: .5rem;
    grid-row: 3/4;
    grid-column: 2/4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr));
    align-items: center;
    justify-items: center;

}

.tech img{
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 0 0;
    animation: increase 4s steps(64) infinite;
    
}

@media (width < 940px){
    .tech div{
        margin-top: 0rem;
    }
}

@media (width < 750px){
    .tech{
        margin-top: 2rem;
    }

    .tech h2{
        text-align: center;
    }

    .tech p{
        text-align: center;
    }

    .tech div{
        margin-top: 0rem;
        gap: .5rem .1rem;
    }
}

@keyframes increase{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}

.images-animation:first-child{
    animation-delay: 0s;
    
}

.images-animation:nth-child(2){
    animation-delay: .5s;
    
}

.images-animation:nth-child(3){
    animation-delay: 1s;
}

.images-animation:nth-child(4){
    animation-delay: 1.5s;
}

.images-animation:nth-child(5){
    animation-delay: 2s;
}

.images-animation:nth-child(6){
    animation-delay: 2.5s;
}

.images-animation:nth-child(7){
    animation-delay: 3s;
}

.images-animation:nth-child(8){
    animation-delay: 3.5s;
}

.images-animation:last-child{
    animation-delay: 4s;
}

.container-projects{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr repeat(2, minmax(440px, 2fr)) 1fr;
    grid-template-rows: auto;
    row-gap: 1rem;
    gap: 1rem;
}

@media (max-width: 940px){
    .container-projects{
        margin-top: 0rem;
        grid-template-columns: 1fr;
    }
}

.container-projects h2{
    grid-column: 1/-1;
    grid-row: 1/2;
    place-self: center;
}

.card {
    width: 420px;
    height: 380px;
    display: grid;
    place-self: center;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--primary-dark);
    
}

.card:first-child{
    grid-column: 2/3;
    grid-row: auto; 
}
/*
.card:nth-child(2){
    grid-column: 3/4;
    grid-row: auto;
}*/

.card:last-child{
    grid-column: 3/4;
    grid-row: auto;
}

@media (max-width: 940px){
    .card:first-child{
        grid-column: auto;
    }

    .card:nth-child(2){
        grid-column: auto;
    }

    .card:last-child{
        grid-column: auto;
    }
}

.card h3{
    margin-top: 0rem;
    text-align: center;
}

.card p{
    text-align: center;
    margin: 0rem .5rem .5rem .5rem;
    color: var(--secondary-light-color);
}

.card span{
    display: inline-block;
    padding: .1rem .5rem;
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: whitesmoke;
}

.card-image{
    width: 415.2px;
    height: 220px;
    overflow: hidden;
    place-self: start;
    border-radius: 6px 6px 0 0;
}

.card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    transition-duration: 300ms;
    &:hover{
        scale: 1.08;
    }
}

.card a{
    place-self: center;
    color: wheat;
    gap: rem;
    &:hover{
        color: whitesmoke;
    }
}

.container-contact{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    grid-template-rows: auto;
}

.container-contact h2{
    align-self: center;
    justify-self: end;
    margin-right: 1rem;
    grid-column: 2/3;
    grid-row: 1/4;
    font-size: 2.5rem;
}

.container-contact p{
    grid-column: 3/4;
    grid-row: 2/3;
    place-self: center;
}

.container-contact div{
    grid-column: 3/4;
    grid-row: 3/4;
    place-self: center;
}

.container-contact img{
    margin: 1rem 0.5rem 1rem 0.5rem;
    padding: .1rem;
    width: 3em;
    height: 3em;
}


