/* --------GENERAL STYLES -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 4rem;
}

:root {
    --bg-color: #000;
    --font-color: #fff;
    --secondary-bg-color: #A6BB8D;
    --font: "Poppins";
}
body {
    background-color: var(--bg-color);
    font-family: var(--font);
    color: var(--font-color);
    height: 100vh;
    max-width: 100vw;
}

.container {
    padding: 0rem 12rem;
}

@media screen and (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
}

/* ------ CHANGE SCROLL BAR -------*/
body::-webkit-scrollbar {
    width: 0.6rem;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgb(165, 162, 162);
}
body::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:active {
    background-color: var(--secondary-bg-color);
}
body::-webkit-scrollbar-track {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(104, 103, 103, 0.3);
}

/* ------- HEADER -------- */
.navbar {
    padding: 0 12rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    background-color: var(--bg-color);
    z-index: 111;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    padding: 10px;
}

.logo p{
    margin: 0;
    padding: 0;
    color: var(--secondary-bg-color)  ;
}

#menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
#menu ul{
    list-style: none;
    width: max-content;
}
#menu ul li {
    padding: 2rem .7rem 0.5rem 1.2rem;
    cursor: pointer;
}

#menu ul li:hover {
    background-color: var(--secondary-bg-color);
}

.hireMe__button a {
    background-color: var(--secondary-bg-color);
    color: var(--font-color);
    font-family: var(--font);
    font-size: small;
    padding: 1rem 1.5rem;
    border-color: unset;
    border-width: 0;
}

.responsive{
    display: none;
}
.checkbox {
    display: none;
}

/**Responsive design navbar**/

@media screen and (max-width: 1200px) {

   
    .navbar {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    .navbar .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 2rem;
        right: 2rem;
        z-index: 2;
        opacity: 0;
        cursor: pointer;
    }

    .navbar .hamburger__lines {
        display: block;
        height: 26px;
        width: 32px;
        position: absolute;
        top: 2rem;
        right: 2rem;
        z-index: 111;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar .hamburger__lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
    }

    .navbar .hamburger__lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .navbar .hamburger__lines .line2 {
        transition: transform 0.2s ease-in-out;
    }
    .navbar .hamburger__lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    #menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        height: 95vh; 
        width: 100%;

    }
    
    #menu ul{
        display: flex;
        justify-content: space-between;
        text-align: center;
        width: 100%;
        z-index: 1000;
    } 

    #menu ul li {
        text-align: center;
        width: 100%;
    } 

    #menu ul li:hover {
        background: transparent;
    }

    #menu.responsive{
        display: none;
    }

    .proyect__gallery{
        justify-content: center;
    }

    .hireMe__button a{
        display: none;
        background: transparent;
        font-size: 10px;
    }

    .navbar input[type="checkbox"]:checked ~ .header__info {
        transform: translateX(0);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line1 {
        transform: rotate(45deg);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line2 {
        transform: scaleY(0);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line3 {
        transform: rotate(-45deg);
    } 

}


/* ------- HOME -------- */
#home{
    position: relative;
    background: linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,.7)),url("assets/freelancer2.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 100%;
}

.home__page {
    height: 100vh;
    width: 100%;
    padding: 0 12rem;
    position: relative;
}


.message__bubble {
    display: inline-block;
    position: relative;
    width: 180px;
    height: auto;
    background-color: var(--secondary-bg-color);
}
.triangle:after {
    content: "";
    position: absolute;
    left: 40%;
    border: 15px solid;
    border-color: var(--secondary-bg-color) transparent transparent transparent;
}

.message__text {
    padding: 1rem;
}

.home__buttons button {
    padding: 1rem 2rem;
    color: var(--font-color);
}

.home__buttons a {
    background-color: var(--secondary-bg-color);
    font-size: 0.9rem;
    color: #fff;
    padding: 1rem 1.5rem;
}

.home__buttons a:hover{
    transition: all .3s;
    background: #fff;
    color: #000;
}

.home__buttons button {
    background-color: transparent;
    border: 1px solid #fff;
    border-width: thin;
    font-family: var(--font);
    font-size: 0.9rem;
    color: #fff;
    padding: 1rem 1.5rem;
}

.home__buttons button:hover{
    transition: all .3s;
    color: var(--secondary-bg-color);
    border: 1px solid var(--secondary-bg-color);
}






/* ------- ABOUT ME -------- */
.about__me{
    height: max-content;
    flex-wrap: wrap;
    padding: 50px 0;
}

.about__me .image img {
    height: 100%;
    width: 100%;
    filter: grayscale(1);
    object-fit: cover;
}

#parrafo1{
  margin-bottom: 7px;
}
.progress__bar {
    width: 100%;
    height: 0.2rem;
    position: relative;
    background-color: #707070;
}

.progress__bar span {
    height: 100%;
    position: absolute;
}
.progress__javascript span {
    background-color:  #fff;
    width: 80%;
}
.progress__React span {
    background-color:  #fff ;
    width: 85%;
}
.progress__Redux span {
    background-color:  #fff;
    width: 80%;
}
.progress__Nodejs span {
    background-color:  #fff;
    width: 75%;
}

.progress__SQL span{
    background-color:  #fff;
    width: 70%;
}

/* ------- FREE LANCER -------- */

.freelancer {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)) ,url(./assets/freelancer2.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 100%;
}

/* ------- SERVICES -------- */
.services {
    padding-top: 81px;
}
.card {
    background-color: #111111;
    transition: all 0.2s ease-in;
}
.service__logo {
    height: 60px;
    width: 60px;
    background-color: #000;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.service__logo i {
    font-size: x-large;
    transition: all 0.2s ease-in;
}

.card:hover {
    background-color: var(--secondary-bg-color);
}
.card:hover .service__logo {
    background-color: #fff;
}
.card:hover .service__logo i {
    color: #000;
}


/* ------- PORTFOLIO -------- */


.portfolio{
     padding: 0 12rem;
}


.portfolio a {
    color: #fff;
}
.gallery__categories ul li {
    font-size: small;
    cursor: pointer;
}
.gallery__categories .filter-item.active {
    border-bottom: 1px solid var(--secondary-bg-color);
}

.project__card {
    width: 282.5px;
    height: 300px;
    display: block;
    position: relative;
}
.project__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project__card .overlay {
    background:  var(--secondary-bg-color);
    backdrop-filter: blur(2.7px);
    -webkit-backdrop-filter: blur(2.7px);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.project__card .project__info {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out 0s;
}

.project__card .project__info p {
    font-size: small;
    margin-top: 2rem;
}

.project__card .fa-arrow-right-long {
    margin-top: 1rem;
    cursor: pointer;
}


.project__card:hover .project__info {
    top: 50%;
    left: 50%;
    opacity: 1;
    pointer-events: unset;
}

.project__card:hover .overlay {
    opacity: 1;
}


.project__card.hide {
    display: none;
}
.project__card.show {
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ------- FOOTER -------- */

footer {
    border-top: 2px solid #fff;  
    text-align: center; 
}


.footer_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.footer_box p {
    color: #a3a3a3;
    width: 200px;
    margin: 0 auto;
}



.footer_box .fa-brands {
    font-size: 2rem;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

.footer_box .fa-brands:hover {
    color: var(--secondary-bg-color);
}

.link_social__media{ 
    background-color: unset;
    font-family: var(--font);
    font-size: 1.2rem;
    color: #a3a3a3;
}

.link_contact {
    padding: 0.5rem 1.8rem;
    background-color: unset;
    border: 1px solid var(--secondary-bg-color);
    font-family: var(--font);
    font-size: 0.9rem;
    color: #a3a3a3;
    border-radius: 5px;
}



@media screen and (max-width: 992px) {
    .home__page {
        height: max-content ;
        padding: 100px 32px;
        padding-top: 10rem;
    }

    .about__me {
        padding: 0;
    }

    .portfolio {
        padding: 0 32px;
    }

    .about__me .image img {
        height: 450px;
    }

    footer {
        padding: 0  32px;   
        flex-direction: column; 
        gap: 10px;
        
    }
    .footer_box {
       align-items: start;
       gap: 10px;
       margin-left: 30px;
    }
    .footer_box p{
        margin: 0;
        width: auto;
    }
}

@media screen and (max-width: 664px) {
    .project__card{
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .message__bubble {
        width: 160px;
    }
    .home__buttons a {
        padding: 1rem 1rem !important;
    }
    .about__me .image img {
        height: 300px;
    }
}