b{
    color: #6385ff;
}

main{
    gap: 100px;
}

section{
    display: flex;
    align-items: center;
    justify-content: center;
}

#cover{
    width: 100%;
    height: calc(100svh - 80px);
    
    background: linear-gradient(var(--gray-700) 40%, var(--gray-500));
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    overflow: hidden;
}

#cover::before{
    display: none;
    content: url("../images/cover.png");
    position: absolute;
    z-index: 0;
    left: 0;
}

.letters{
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(13, 1fr);
    gap: 8px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 70px;
    
    -webkit-mask-image: radial-gradient(rgba(0, 0, 0, 0.5), transparent 70%);
    mask-image: radial-gradient(rgba(0, 0, 0, 0.5), transparent 70%);
}

.letters img{
    opacity: 0.13;
}

.letters img.a{
    animation: fade 10000ms ease-in-out infinite;
}
.letters img.b{
    animation: fade 15000ms ease-in-out infinite;
}
.letters img.c{
    animation: fade 20000ms ease-in-out infinite;
}
.letters img.d{
    animation: fade 25000ms ease-in-out infinite;
}
.letters img.blue{
    opacity: 1;
}

@keyframes fade {
    40%{
        opacity: 0;
    }
    50%{
        opacity: 0.13;
    }
    60%{
        opacity: 0;
    }
}

#cover-container-1{
    position: relative;
    z-index: 1;

    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    gap: 0px;
}

#cover-container-1 h1{
   font-size: 96px;
   font-weight: 700;
}

#cover-container-1 h2{
    font-size: 48px;
    font-weight: 300;
}

@media (max-width: 800px) {
    #cover-container-1 h1{
        font-size: 60px;
        font-weight: 700;
    }

    #cover-container-1 h2{
        font-size: 42px;
        font-weight: 300;
    }    
}

#about-section .card{
    width: 770px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
}

#about-container-1{
    display: flex;
    flex-direction: column;
}

#projects-list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    flex-direction: row;
    gap: 30px;
}

#portfolio-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 50px;
}

#portfolio-section .card{
    height: 100%;
    width: 100%;
    padding: 0;

    display: grid;
    grid-template-rows: 240px auto;

    transition: all 150ms ease-out;
}

#portfolio-section .card-tumb{
    width: 100%;
    height: 100%;

    position: relative;

    background-size: cover;
    background-repeat:no-repeat;
    background-position: center center;
}

#portfolio-section .card.button .card-cover::before{
    content: '';
    position: absolute;

    height: 100%;
    width: 100%;

    opacity: 0;
    background-color: white;
    transition: all 150ms ease-out;
}

#portfolio-section .card.button:hover .card-cover::before{
    opacity: 0.1;
}

.card-content{
    padding: 20px;

    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 15px;
}

.card-content-text{
    display: flex;
    justify-content: start;
    flex-direction: column;
    gap: 10px;
}

.card-title{
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.card-title h4{
    opacity: 0.6;
    font-weight: 500;
    text-transform: none;
}

.card-tags{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

#portfolio-section .card-tumb.wwc{
    background-image: url(../images/wwc/tumb.jpg);
}

#portfolio-section .card-tumb.rocknreels{
    background-image: url(../images/rocknreels/tumb.jpg);
}

#portfolio-section .card-tumb.paradisebingo{
    background-image: url(../images/paradisebingo/tumb.jpg);
}

#portfolio-section .card-tumb.evil-tower{
    background-image: url(../images/evil-tower/cover.webp);
}

#contact-section .card{
    width: 770px;
}

#contact-section form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-section input, #contact-section textarea{
    height: 60px;
    padding: 20px 15px;
    
    background-color: var(--gray-100);
    border: none;
    border-left: 8px solid var(--gray-200);

    font-size: 20px;
    font-family: "Istok Web", sans-serif;
    color: var(--gray-400);
}

#contact-section textarea{
    height: 200px;
}

#contact-section input::placeholder, #contact-section textarea::placeholder{
    color: var(--gray-200);
}

#contact-section input:valid, #contact-section textarea:valid{
    border-color: var(--primary);
}

#contact-section input:not(:placeholder-shown):invalid, #contact-section textarea:not(:placeholder-shown):invalid{
    border-color: var(--tertiary-dark);
    color: var(--tertiary-dark);
}

@media (max-width: 800px) {
    #cover-container-1 h1{
        font-size: 60px;
        font-weight: 700;
    }

    #cover-container-1 h2{
        font-size: 42px;
        font-weight: 300;
    }
    
    #about-section .card{
        gap: 24px;
    }

    #projects-list{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
    
    #contact-section input, #contact-section textarea{
        height: 50px;
        padding: 10px 10px;
           
        font-size: 18px;
        font-family: "Istok Web", sans-serif;
        color: var(--gray-400);
    }
    
    #contact-section textarea{
        height: 150px;
    }

    #contact-section .primary-button{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 24px;
        padding: 15px;
        filter: drop-shadow(5px 5px var(--primary-dark)) drop-shadow(0px 0px 0px var(--primary-light));
    }
}
