/* Google Fonts */
@font-face {
    font-family: "Poppins";
    src: url(../fonts/Poppins-Regular.ttf);
}

:root{
    --main_color: #171133;
    --secondary_color: #581e44;
    --card_color: rgba(88, 30, 68, 0.3);
    /* 
    .color3 { #c5485a };
    .color4 { #d4be99 };
    .color5 { #e0ffcc }; */
}

/* General */

*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
    scrollbar-base-color: var(--main_color);
    scrollbar-color: var(--main_color);
    /* scroll-padding-top: 5rem; */
    list-style: none;
    text-decoration: none;
}

*::selection{
    background-color: var(--secondary_color);
}

::-webkit-scrollbar {
    width: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #eee;
    cursor: pointer;
}

::-webkit-scrollbar-track{
    background-color: var(--main_color);
}

html.sr .load-hidden {
    visibility: hidden;
}

body{
    background-color: var(--main_color);
    max-width: 100vw;
}

img{
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.btn{
    padding: .2rem .6rem;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 10px;
    /* transition: all .3s ease; */
}

.btn:hover{
    background-color: var(--secondary_color);
    border: 1px solid var(--secondary_color);
}

.dis-none{
    display: none;
}

/* Animaciones */
@keyframes animatelightbar {
    0%, 5%{
        transform: scaleY(0) translateX(0);
    }

    10%{
        transform: scaleY(1) translateX(0);
    }

    90%{
        transform: scaleY(1) translateX(calc(400px - 5px));
    }

    95%, 100%{
        transform: scaleY(0) translateX(calc(400px - 5px));
    }
}

@keyframes animatetopLayer {
    0%, 5%{
        transform: translateX(0);
    }

    10%{
        transform: translateX(0);
    }

    90%{
        transform: translateX(100%);
    }

    95%, 100%{
        transform: translateX(calc(400px - 5px));
    }
}

/* Banner */

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main_color);
    color: white;
    overflow-x: hidden;
    height: 60vh;
    width: 100%;
}

.banner_content{
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1s ease .5s;
    opacity: 1;
}

.box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 170px;
    width: 400px;
}

.box h1,
.box p{
    /* padding: 0 2rem; */
    text-shadow: 0 0 10px #00b3ff,
                0 0 20px #00b3ff,
                0 0 30px #00b3ff,
                0 0 40px #00b3ff,
                0 0 60px #00b3ff;
}

.lightbar{
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 10px;
    background-color: white;
    z-index: 2;
    animation: animatelightbar 3s linear forwards;
    box-shadow: 0 0 10px #00b3ff,
                0 0 20px #00b3ff,
                0 0 40px #00b3ff,
                0 0 80px #00b3ff,
                0 0 120px #00b3ff;
}

.topLayer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main_color);
    box-shadow: 0 -20px 120px var(--main_color);
    animation: animatetopLayer 3s linear forwards;
}

.banner_content p{
    margin: .5rem 0 1rem;
    letter-spacing: 0.1rem;
}

.banner nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner nav a{
    margin: 0 .5rem;
}

.banner nav a img {
    width: 25px;
}

/* Projects */
.projects{
    background-color: #1d1150;
    color: white;
    padding: 2rem 0;
    max-width: 100%;
}

h3{
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.project{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.project:last-child{
    margin-bottom: 0;
}

.project .image_project{
    width: 70%;
    display: flex;
}

.project .description_project{
    width: 70%;
    margin: 1.5rem auto;
}

.project .description_project h2 {
    text-align: center;
}

.project .description_project p {
    margin-bottom: 1rem;
}

.project .description_project p span {
    background-color: var(--main_color);
    border-radius: 5px;
    padding: 0 .5rem;
    /* margin: 0 .5rem; */
}

.project .description_project a{
    color: white;
    text-decoration: underline;
}

/* Skills */
.skills{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main_color);
    color: white;
    padding: 2rem 0;
}

.skills h3{
    flex: 0 0 100%;
}

.skills .skill_card{
    background-color: var(--card_color);
    margin: 2rem;
    padding: 1rem;
    border-radius: 10px;
}

.skill_card .skill_card_head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: .5rem;
    object-fit: fill;
}

.skill_card .skill_card_head img{
    margin: 0;
}

.skill_card .skill_card_head hr{
    width: 50px;
    transform: rotateZ(90deg);
}

#pwa_image{
    max-width: 100px;
}

footer{
    background-color: var(--main_color);
}

@media (max-width: 320px){
    .box{
        width: 300px;
    }

    .box h1{
        font-size: 18px;
    }

    .box p{
        font-size: 14px;
    }

    @keyframes animatelightbar {
        0%, 5%{
            transform: scaleY(0) translateX(0);
        }
    
        10%{
            transform: scaleY(1) translateX(0);
        }
    
        90%{
            transform: scaleY(1) translateX(calc(300px - 5px));
        }
    
        95%, 100%{
            transform: scaleY(0) translateX(calc(300px - 5px));
        }
    }
    
    @keyframes animatetopLayer {
        0%, 5%{
            transform: translateX(0);
        }
    
        10%{
            transform: translateX(0);
        }
    
        90%{
            transform: translateX(100%);
        }
    
        95%, 100%{
            transform: translateX(calc(300px - 5px));
        }
    }
}

@media (min-width: 1024px){
    .banner nav a img {
        width: 30px;
    }

    .skills .skill_card{
        flex: 0 0 calc(50% - 4rem);
    }
}