:root{
    --color1:#ececec;
    --color2: rgb(17, 18, 19);
    --color3: #ffffff;
    --color4:#31f5d4;
    --mainColor: rgb(39, 128, 163);
    --text:#565f63;
    --textLight:#9fc1cc;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    overflow-x: hidden !important;
    scroll-padding-top: 100px;
}
body{
    font-family: 'Inter', sans-serif;
    background-color: var(--color1);
    color: var(--color2);
    overflow-x: hidden;
}

.second-text{
    font-family: 'JetBrains Mono', monospace;
}

.container{
    background-color: transparent;
}
section{
    margin-bottom: 5em;
}
.card{
    margin-bottom: 1rem !important;
    position: relative;
    margin: 1em 0;
    border: none;
    border-radius: 0.5rem !important;
    overflow: hidden;
    background-color: var(--color3);
}
.section__title{
    font-weight: bold;
    font-size: 2rem;
    color: var(--mainColor);
}

/* NAVBAR */
header{
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
}
nav{
    background-color: var(--color3);
    box-shadow: 0 0 10px 0 #d3d3d3;
}
nav .container-fluid{
    padding: 0.2em 2em;
}
nav .container-fluid .navbar-brand{
    color: var(--mainColor);
    font-size: 1rem;
    font-weight: bold;
}
@media (max-width:576px){
    nav .container-fluid .navbar-brand{
        margin-left: -20px;
    }
    ul li{
        font-size: 0.8em;
    }
    #projects .card-body{
        display: flex;
        flex-direction: column;
    }

    p{
        font-size: 0.8em;
    }
    #education{
        margin-bottom: 0 !important;
    }
}
nav .container-fluid ul li a{
    color: var(--textLight);
}
nav .container-fluid ul li a:hover{
    color: var(--mainColor);
}
nav .container-fluid ul li a:focus{
    color: var(--mainColor);
}
#navbarNav ul{
    display: flex;
    gap: 1.5em;
}
.navbar-collapse{
    background-color: var(--color3);
}
.navbar-toggler{
    border: none;
    outline: none;
    padding: 0;
    margin-right: -15px;
}
.navbar-toggler-icon{
    filter: invert(100%);
}
#theme-button{
    font-size: 1.5rem;
    color: var(--mainColor);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mainColor);
    border-radius: 2rem;
    padding: 0.1rem 0.8rem;
}
#theme-button:hover{
    cursor: pointer;
}

main{
    display: flex;
    flex-direction: column;
}

/* HERO */
#hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    margin-bottom: 0 !important;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}
.nombre{
    margin: 0;
    font-size: 4rem;
    font-weight: bold;
    color: var(--color2);
}
#hero p{
    line-height: 1.3rem !important;
}

h1{
    font-size: 2rem;
    color: var(--text);
}
p{
    color: var(--text) !important;
    font-size: 0.9rem;
}
span{
    color: var(--mainColor);
}
#enlaces{
    display: flex;
    align-items: center;
    gap: 2rem;
}
#enlaces i{
    font-size: 3rem;
    margin: 0 0.5rem;
    color: var(--color2);
}
#enlaces i:hover{
    color: var(--mainColor);
}
#enlaces a{
    text-decoration: none;
}
#cv{
    background-color: transparent;
    color: var(--mainColor);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--mainColor);
    border-radius: 0.5rem !important;
    text-decoration: none;
    min-width: 10rem;
    width: 20vw;
    text-align: center;
    position: relative;
}
#cv:hover{
    background-color: rgba(39, 128, 163, 0.15);
}
.flecha-container{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: bounce 1s infinite alternate;
    margin-bottom: 5rem;
}
.flecha{
    background-color: var(--mainColor);
    height: 1.4rem;
    width: 0.7rem;
    border-radius: 2rem;
}

@media (max-width:576px){
    main{
        margin-top: 0;
    }
    #particles-js{
        height: 15rem;
    }
    h1{
        font-size: 1.5rem !important;
    }
    .nombre{
        font-size: 2.5rem;
        
    }
    #hero p{
        line-height: 1.7rem;
    }
    #enlaces{
        gap: 1rem;
    }
    #enlaces i{
        font-size: 2rem;
    }
    #cv{
        padding: 0.7rem !important;
    }
}

/* PROJECTS */

@media (min-width:768px){
    .card-list{
        display: grid;
        grid-auto-flow: dense;
        grid-auto-rows: auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
.card{
    color: white;
    margin: 0;
}
.card-body__card-header{
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-bottom: 1rem;
}
.project-links{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1rem;
}
.link{
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
    color: var(--color2) !important;
}
.link:hover{
    color: var(--mainColor) !important;
}
.folder{
    font-size: 2rem;
    color: var(--mainColor);
}
.card-body{
    padding: 1.5rem;
}
.card-body a{
    color: var(--mainColor);
}
.card-body button{
    background-color: transparent;
    color: var(--color2);
    text-decoration: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-body button:hover{
    color: var(--mainColor);
}
/* img{
    max-height: 10rem;
    width: auto;
    object-fit: cover;
} */

/* KNOWLEDGE */
@media (max-width:576px){
    #knowledge .card{
        padding: 0.2rem !important;
    }
}
#knowledge .card{
    padding: 2rem;
}
#knowledge .card ul li{
    line-height: 1.6rem;
    margin-bottom: 1rem;
}
#development h3{
    color: var(--mainColor);
}

/* TECHNOLOGIES */

.tech-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 2rem;
}
#other i{
    font-size: 1.5em;
}
.technology{
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--color2);
    gap: 1rem;
}
.technology:hover{
    color: var(--mainColor);
    cursor: pointer;
}
.technology .icon{
    font-size: 2.7rem;
    text-decoration: none;
    color: var(--color2);
}
.technology .icon:hover{
    color: var(--mainColor);
    cursor: pointer;
}
.technology a{
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}
.technology span{
    font-size: 1rem;
    font-family:'JetBrains Mono', monospace !important;
    color: var(--color2);
}

/* EDUCATION */
#education .cards{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.5em;
}
#education .card{
    padding: 0.5em;
}
#education .card .card-body{
    padding: 1rem;
}
h4{
    font-size: 1.3rem;
    color: var(--color2) !important;
}
.type{
    font-weight:100;
    color: var(--mainColor) !important;
}
#education h6{
    font-size: 1rem;
    padding: 0;
    color: var(--text) !important;
}
#education p{
    margin: 0;
}

/* FOOTER */
form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-label{
    margin-top: 1rem;
}
.form-control{
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color2);
    border-radius: 0;
    color: var(--mainColor) !important;
}
.form-control::placeholder{
    color: grey;
}
.form-control:focus{
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--mainColor);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--color1) inset !important;
  -webkit-text-fill-color: tu-color-de-texto !important;
}
textarea{
    background-color: transparent;
}
textarea::placeholder{
    color: grey !important;
}

#submit{
    background-color: var(--color3);
    color: var(--color2);
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 0.5em !important;
    text-decoration: none;
}
#submit:hover{
    color: var(--mainColor);
    background-color: var(--color3) !important;
}
#fs-frm [type="submit"]:hover{
    background-color: var(--hoverColor);
}

/* CONTACT */
#contact{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1em;
}
#contact a{
    text-decoration: none;
    color: var(--color2);
}
#contact a:hover{
    color: var(--mainColor);
}