@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
}
/* navbar styling */
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
.navbar{
    position: fixed;
    z-index: 99999;
    width: 100%;
    padding: 30px 0px;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky{
    padding: 15px 0px;
    background: crimson;
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}
.navbar .logo a span{
    color: crimson;
    transition: all 0.3s ease;
}
.navbar.sticky .logo a span{
    color: #fff;    
}
.navbar .menu li {
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    position: relative;
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;    
}
.navbar.sticky .menu li a:hover{
    color: #fff;    
}
.navbar li a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 23px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: block;
    width: 0px;
    height: 2.5px;
    background-color: currentColor;
    transition: .3s width ease;
}
.navbar li a:hover::after {
    width: 45px;
    color: #fff;
}
/* .main-navigation .menu > .menu-item > a::after {
    content: "";
    position: absolute;
    right: 50;
    left: 50%;
    top: 5px; 
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: block;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: 0.3s width ease;
}

.main-navigation .menu > .menu-item > a:hover::after,
.main-navigation .menu > .menu-item > a:focus::after,
.main-navigation .menu > .current-menu-item > a::after{
    width: 40px; 
    color: #ffffff;  
} */



/* menu btn styling */
.menu-btn {
    display: none;
}
.menu-btn i {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}
/* .scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background-color: crimson;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
} */

/* home section styling */
.home {
    display: flex;  
    background: url("imgs/header8.jpg") no-repeat left center; 
    height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
}
.home::before {
    content: "";
    background: linear-gradient(to right, rgb(0, 0, 0, .9), rgb(153, 0, 0, .7));
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;  
}
.home .max-width{
    margin: auto 0 auto 40px;
}
.home__content {
    position: relative;
}
.home .home__content .text-1{
    font-size: 27px;
}
.home .home__content .text-2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}
.home .home__content .text-3{
    font-size: 40px;
    margin: 5px 0;
}
.home .home__content .text-3 span{
    color: crimson;
    font-weight: 500;
}
.home .home__content a{
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 25px;
    padding: 17px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}
.home .home__content a:hover{
    color: crimson;
    background: none;
}

/* common styling in different sections */

section:not(.about) {
    padding: 100px 0;
}
.services, .projects {
    background: #111;
    color: #fff;
}
.services, .skills, .projects, .about, .contact {
    font-family: 'Poppins', sans-serif;
}
section .title{
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: "Ubuntu", sans-serif;
}
section .title::before{
    content:"";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}
.services .title::before, .projects .title::before{
    background-color: #fff;
}
section .title::after{
    position: absolute;
    bottom: -12px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 5px;
    background: #fff;
    transform: translateX(-50%);
}
.services__content, .skills__content, .contact__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* services section styling */
    .services__container {
        max-width: 1500px;
        padding: 0 80px;
        margin: auto;
    }
    .services .title::after{
        content:"Lo que hago";
        background-color: #111;
    }
    .services__content .card{
        width: calc(33% - 20px);
        background-color: #222;
        text-align: center;
        border-radius: 6px;
        padding: 20px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .services__content .card i{
        font-size: 50px;
        color: crimson;
        transition: color 0.3s ease;
    }
    .services__content .card:hover i{
        color: #fff;
    }
    .services__content .card:hover{
        background-color: crimson;
    }
    .services__content .card .text{
        font-size: 25px;
        font-weight: 500;
        margin: 10px 0 7px 0;
    }
    .services__content .card .box{
        transition: all 0.3s ease;
    }
    .services__content .card:hover .box{
        transform: scale(1.05);
    }

/* skills section styling */

    .skills .title::after{
        content: "Lo que sé";      
    }
    .skills__content .column.left{
        width: calc(60% - 30px);
    }
    .skills__content .column.right{
        width: calc(40% - 30px);
    }
    .skills__content .text{
        font-size: 25px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    /* Styling the lists*/
    .skills ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }    
    .skills li{ 
        background: url('imgs/List\ icon.png') no-repeat left top;
        height: 25px;
        height: auto;
        padding-left: 38px;
        line-height: 40px;
    }

    .skills__content .left p{
        text-align: justify;
        margin-bottom: 15px;
    }
    .skills__content .left a, .modal button{
        display: inline-block;
        background-color: crimson;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        padding: 8px 16px;
        margin-top: 20px;
        border-radius: 6px;
        border: 2px solid crimson;
        transition: all 0.3s ease;
    }
    .skills__content .left a:hover, .modal button:hover{
        color: crimson !important;
        background-color: #fff !important;        
    }
    .skills__content .right .bars{
        margin-bottom: 12px;
    }
    .skills__content .right .info{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5px;
    }
    .skills__content .right span{
        font-weight: 500;
        font-size: 18px;
    }
    .skills__content .right .line{
        height: 5px;
        width: 100%;
        background-color: lightgrey;
        position: relative;
        border-radius: 2px;
    }
    .skills__content .right .line::before{
        content: "";
        position: absolute;
        height: 100%;
        left: 0;
        top: 0;
        background-color: crimson;
        border-radius: 2px;
    }
    .languages {
        margin-bottom: 60px;
    }
    .skills__content .right .primera::before{
        width: 100%;
    }
    .skills__content .right .segunda::before{
        width: 85%;           
    }
    .skills__content .right .tercera::before{
        width: 85%;
    }
    .skills__content .right .cuarta::before{
        width: 40%;
    }
    .skills__content .right .quinta::before{
        width: 40%;
    }
    .skills__content .right .sexta::before{
        width: 80%;
    }
    .skills__content .right .septima::before{
        width: 70%;
    }
    .skills__content .right .octava::before{
        width: 50%;
    }

/* projects section styling */
.projects .title::after{
    content: "projects";
    background-color: #111;
}
.projects .carousel .card{
    background-color: #222;
    border-radius: 6px;
    padding: 25px 35px;
    text-align: center;
    transition: all 0.3s ease;
}
.projects .carousel .card:hover{
    background-color: crimson;
 
}
.projects .carousel .card .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.projects .carousel .card:hover .box{
    transform: scale(1.05);
}
.projects .carousel .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}
.projects .carousel .card img{
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid crimson;
}
.projects .carousel .card:hover img{
    border-color: #222;
}
.owl-dots{
    text-align: center;
    margin-top: 20px;
}
.owl-dot{
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none!important;
    border-radius: 50%;
    border: 2px solid crimson!important;
    transition: all 0.3s ease;
}
.owl-dot.active{
    width: 35px;
    border-radius: 14px;
}
.owl-dot.active, .owl-dot:hover{
    background-color: crimson !important;
}
.showmodal {
    border: 3px solid crimson;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 20px;
    margin-top: 15px;
    color: crimson;
    font-weight: 600;
    background-color: transparent;
    transition: all .3s ease;
    cursor: pointer;
}
.projects .card:hover .showmodal {
    color: #fff;
    border-color: #fff;
}
.showmodal:hover {
    transform: scale(1.1);
}
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0, .9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}
.modal {
    width: 800px;
    border-radius: 5px;
    background-color: #fff;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 2px 2px 12px crimson;
}
.modal video {
    margin-bottom: 30px;
}
.modal p {
    margin-bottom: 10px;
}
.modal a {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .05em;
    font-family: sans-serif;
    color: crimson;
    text-decoration: underline;
    text-decoration-color: #111;
    
}
.modal button {
    cursor: pointer;
}
.open-modal {
    opacity: 1;
    z-index: 100000;
    pointer-events: auto;
}



/* contact section styling */
    .contact .title::after {
        content: "¿Hablamos?";
    }
    .contact__content .column {
        width: calc(50% -  30px)
    }
    .contact__content .text {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
    }
    .contact__content .left p {
        text-align: justify;
    }
    .contact__content .left .icons {
        margin: 10px 0;
    }
    .contact__content .row {
        display: flex;
        height: 65px;
        align-items: center;
    }
    .contact__content .row .info {
        margin-left: 30px;
    }
    .contact__content .row i {
        font-size: 25px;
        color: crimson;
    }
    .contact__content .info .head {
        font-weight: 400;
    }
    .contact__content .info a {
        color: #333 !important;
        font-weight: 600;
        transition: all .1s ease;
        letter-spacing: .03em;
    }
    .contact__content .info a:hover {
        color: crimson !important;
        font-size: 1.03em;
    }
    .contact__content form .fields {
        display: flex;
    }
    .contact__content form .field, .contact__content form .field {
        height: auto;
        width: 100%;
        margin-bottom: 15px;
    }
    .contact__content form .textarea {
        height: auto;
        width: 100%;
    }
    .contact__content form .name {
        margin-right: 10px;
    }
    .contact__content form .email {
        margin-left: 10px;
    }
    .contact__content form .field input {
        height: 45px;
    }
    .contact__content form .field input, .contact__content form .textarea textarea {
        width: 100%;
        border: 1px solid lightgrey;
        border-radius: 6px;
        outline: none;
        padding: 0 15px;
        font-size: 17px;
        font-family: 'Poppins', sans-serif;
    }
    .contact__content form .textarea textarea {
        height: 140px;
    }
    .contact__content form .textarea textarea {
        padding-top: 10px;
        resize: none;
    }
    .contact__content input[type="text"]:focus, .contact__content input[type="email"]:focus, .contact__content textarea:focus {
        border: 2px solid crimson !important;
    }
    .contact__content form button {
        height: 47px;
        width: 100%;
        border: 2px solid crimson;
        background-color: crimson;
        color: #fff;
        font-size: 20px;
        font-weight: 500;
        border-radius:  6px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .contact__content form input[type="submit"]:hover {
        color: crimson;
        background-color: transparent;
        display: none;
    }
    .error {
        color: crimson;
        padding-left: 10px;
        font-size: 16px;
        font-weight: 500;
    }
    #success {
        font-weight: 500;
        font-size: 19px;
    }
/* footer section styling */
footer{
    background-color: #111;
    padding: 20px 23px;
    color: #fff;
    text-align: center;
}
footer span .creator {
    color: crimson;
}

/* about section styling */
.about {
    background-color: #111;    
} 
.about__container {
    position: relative;
    top: -150px;
    margin: auto;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 2px 2px 12px crimson;
    padding: 35px 40px;
    margin-bottom: -150px;
}
.about .title {
    margin-bottom: 20px;
}
.about__imgcontainer {
    min-width: 150px;
    max-width: 150px;
    height: 150px;
}
.img-showmore {
    float: left;
    margin: 6px 22px 10px 17px !important;
}
.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: .8em;
}
.about p span {
    color: crimson;
    font-weight: 500;
}
#leer-mas {
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    position: relative;
    border-bottom: 2.5px solid crimson;
    line-height: 17px;
    width: fit-content; 
}
.about__text1, .about__text2 {
    display: none;
}
.about__more-text {
    display: block;
}
/* responsive media query start */
@media (max-width: 1270px){
    .services__content .card{
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
}
@media (min-width: 1105px){
    /* .about__container {
        display: flex;
        align-items: center;
        width: 80%;
        max-width: 1200px;
    } */
    .about__container {
        width: 80%;
        max-width: 1200px;
    }
    .about__container div {
        margin: 0 15px;
    }
    .img-flex {
        display: flex;
        align-items: center;
    }
}
@media (max-width: 1104px){
    .home .max-width{
        margin-left: 0px;
    }
    .about__container {
        width: calc(100% - 200px);
    }
    .about__imgcontainer {
        float: left;
        margin: 10px 20px;
    }
}
@media (max-width: 991px){
    .max-width{
        padding: 0 50px;
    }
}
@media (max-width: 950px){
    .menu-btn {
        display: block;
    }
    .menu-btn i {
        position: relative;
        z-index: 99999;
    }
    .menu-btn i.active::before{
        content: "\f00d";
    }  
    .navbar .menu{
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease; 
    }
    .navbar .menu.active{
        left: 0;
    }
    .navbar .menu li{
        display: block;
    }
    .navbar .menu li a{
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    .home .home__content .text-2{
        font-size: 70px;
    }
    .home .home__content .text-3{
        font-size: 35px;
    }
    .home .home__content a{
        font-size: 23px;
        padding: 10px 27px;
    }
    .skills__content .column, .contact__content .column {
        width: 100% !important;
        margin-bottom: 35px;
    }
    .img-flex {
        display: block !important;
    }
    .about__imgcontainer {
        float: left !important;
        margin: 10px 20px;
    }
}
@media (max-width: 850px){
        .services__content .card{
        width: 100%;
    }
}
@media (max-width: 690px){
    .max-width{
        padding: 0 23px;
    }
    .home .home__content .text-2{
        font-size: 60px;
    }
    .home .home__content .text-3{
        font-size: 32px;
    }
    .home .home__content a{
        font-size: 20px;
        padding: 9px 25px;
    }
    .about__container {
        display: flex !important;
        flex-direction: column; 
        align-items: center;
        width: calc(100% - 50px);
    }
} 
@media (max-width: 500px){
    h2.title {
        font-size: 30px;
    }
    .home .home__content .text-2{
        font-size: 50px;
    }
    .home .home__content .text-3{
        font-size: 27px;
    }
    .about__container {
        width: calc(100% - 20px);
        padding: 25px 20px;
    }
    section .title::before {
        bottom: -10px;
    }
    section .title::after {
        font-size: 17px;
        bottom: -22px;
    }
    .max-width {
        padding: 0 15px;
    }
    div.card {
        padding: 15px 18px !important;
    }
    .services__container {
        padding: 0 20px;
    }
}