@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --bg-color:#000000;
    --second-bg-color:#161616;
    --text-color:#ffff;
    --main-color:#7b4bb7;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    font-family: "Poppins", sans-serif;
    color:var(--text-color);
}
html::-webkit-scrollbar{
    width: 0.8rem;
}
html::-webkit-scrollbar-track{
    background: var(--bg-color);
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0, 0, 0, 0.7);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo{
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.1);
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
@media(max-width:995px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background-color: var(--second-bg-color);
        border-top: 0.1rem solid rgb(0, 0, 0, 0.1);
        display: none;
    }
    .navbar.active{
        display: block;   
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .navbar a:hover,
    .navbar a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--main-color);
    }

}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem ;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-color);
}
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
span{
    color: var(--main-color);
    font-weight: bold;
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}
.home-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}
.home-content p{
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.social-icon a:hover{
    color: black;
    transform: scale(1.3)translateY(-5px);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.03);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span{
    position: relative;
}
.typing-text span::before{
    content: 'Software Developer';
    color: var(--main-color);
    animation: words 20s infinite; /* Usa 'steps' para cambiar instantáneamente */
    
}
.typing-text span::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% + 8px);
    height: 100%;
    background: var(--bg-color);
    border-left: 3px solid var(--main-color);
    right: -8;
    animation: typing 20s steps(14) infinite, cursor 0.6s infinite;
}
@keyframes cursor{
    to{
        border-left: 3px solid var(--bg-color);
    }
}
@keyframes words{
    0%, 20%{
        content: 'Mobile Developer';
    }
    21%, 40%{
        content: 'Web Developer';
    }
    41%, 60%{
        content: 'Programmer-Analyst';
    }
    61%, 80%{
        content: 'Mobile Designer';
    }
    81%, 100%{
        content: 'Full-Stack Developer';
    }
}
@keyframes typing{
    10%, 15%,
    30%, 35%,
    50%, 55%,
    70%, 75%,
    90%, 95%{
        width: 0;
    }
    5%, 20%,
    25%, 40%,
    45%, 60%,
    65%, 80%, 85%{
        width: calc(100% + 8px);
    }
}
@media(max-width:1000px){
    .home{
        gap: 4rem;
    }
}
@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3{
        font-size: 2.5rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}
@media (max-width: 395px) {
    .typing-text span{
        font-size: 20px;
        min-width: 200px;
    }
}



/*------------------------- Services Section -------------------------*/

.services{
    background: var(--second-bg-color);
    
}
.heading{
    font-size: 6rem ;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}
.services-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
    height: max-content;
    
}
.service-box{
    background-color: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}
.service-box:hover{
    background: transparent;
    color:var(--text-color);
    transform: scale(1.03);
    border: 1px solid var(--main-color);
}
.service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    height:fit-content
}
.service-info h4{
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.service-info p{
    font-size: 1.6rem;
    font-weight: 400;
    max-height: 100px;
    margin: auto;
    
    
}
@media screen and (max-width:1459px){

    .service-info{
        margin-bottom: 50px;
    }
    .service-box{
        height: 700px;
    }
}
@media screen and (max-width: 1400px) {
    .services-container {
       grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .service-box .service-info {
        padding: 4rem;
    }
    .service-box {
        height: 400px;
    }
}
@media screen and (max-width: 1306px) {
    .service-box {
        height: 440px;
    }
}
@media screen and (max-width: 1285px) {
    .services-container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }
    .service-box {
        height: 500px;
    }
    

}
@media screen and (max-width: 1176px) {
    .service-box {
        height: 550px;
    }
    
}
@media screen and (max-width: 1104px) {
    .service-box {
        height: 600px;
    }
    
}
@media screen and (max-width: 1061px) {
    .service-box {
        height: 660px;
    }
    
}
@media screen and (max-width:991px){
    section{
        padding: 10rem;
    }
}
@media(max-width:895px){
    .services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        grid-template-columns: repeat(2,1fr);
        gap: 1.5rem;
    }
    
}
@media screen and (max-width: 845px) {
    .services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        grid-template-columns: repeat(1,1fr);
    }
    .service-box{
        height: 350px;
    }
}
@media screen and (max-width: 741px) {
    .services h2{
        margin-bottom: 3rem;
    }
    
    .service-box{
        height: 450px;
    }
}
@media screen and (max-width: 594px) {
    .services h2{
        margin-bottom: 3rem;
    }
    
    .service-box{
        height: 550px;
    }
}
@media screen and (max-width: 525px) {
    .services h2{
        margin-bottom: 3rem;
    }
    
    .service-box{
        height: 700px;
    }
}

@media screen and (max-width: 460px) {

    
    .service-box{
        height: 800px;

    }
}

@media screen and (max-width: 406px) {

    
    .service-box{
        height: 900px;

    }
}

@media screen and (max-width: 385px) {

    
    .service-box{
        height: 1000px;

    }
}

@media screen and (max-width: 372px) {

    
    .service-box{
        height: 1050px;

    }
}
@media screen and (max-width: 320px) {

    .services h4{
        margin-top: 3rem;
    }
    .service-box{
        height: 1400px;
        width: 220px;

    }
}




/*------------------------- Skills Section -------------------------*/

.skills{
    background: var(--bg-color);
}
.skills .container{
    background: #7c4bb76f;
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 70%;
    margin: auto;
    margin-top: 2rem;
}
.skills .container .row{
    display: grid;
    /*grid-template-columns: repeat(5, 1fr);*/
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /*flex-wrap: wrap;*/
    gap: 1.8rem;
}
.skills .container .bar{
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background:var(--bg-color);
    transition: 0.3s ease;
    cursor: pointer;
}
.skills .container .bar:hover{

    box-shadow: 0 4px 10px var(--main-color);
    transform: scale(1.03);
}
.skills .container .bar .info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.skills .container .bar .info span{
    font-size:  2rem; 
    font-weight: 500;
    margin-left: 0.5rem;
}
.skills .container .bar .info img{

    width: 100px; /* Puedes ajustar el ancho según tus necesidades */
    height: 100px; /* Puedes ajustar la altura según tus necesidades */
    object-fit: contain;
}
@media screen and (max-width:1024px){
    .skills .container{
        width: 85%;
        padding: 1.5rem;
    }
    .skills .container .row{
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }
    .skills .container .bar{
        padding: 8px;
    }
    .skills .container .bar .info span {
        font-size: 1.8rem;
    }

    .skills .container .bar .info img {
        width: 90px; /* Ajusta el ancho para pantallas pequeñas */
        height: 90px; /* Ajusta la altura para pantallas pequeñas */
    }

}
@media screen and (max-width: 600px) {
    .skills .container {
        width: 100%;
        padding: 1rem;
    }
    .skills .container .row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    .skills .container .bar {
        padding: 5px;
    }
    .skills .container .bar .info span {
        font-size: 1.5rem;
    }
    .info img {
        width: 80px; /* Ajusta el ancho para pantallas pequeñas */
        height: 80px; /* Ajusta la altura para pantallas pequeñas */
    }
}

/*------------------------- Education Section -------------------------*/

.education{
    background: var(--second-bg-color);
}
.education .timeline{
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.education .timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    background: rgb(80, 64, 90);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -2px;
}
.education .container{
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.education .container::after{
    content: '\f501';
    position: absolute;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: rgb(252, 252, 252);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;
    z-index: 99;
    font-size: 1.89rem;
    text-align: center;
    font-weight: 600;
    font-family:'Font Awesome\ 5 Free';
    color: rgb(80, 64, 90);
}
.education .left{
    left:0;
}
.education .right{
    left:50%;
}
.education .left::before{
   content: '';
   height: 0;
   position: absolute;
   top: 22px;
   width: 0; 
   z-index: 1;
   right: 31px;
   border: medium solid var(--main-color);
   border-width: 10px 0 10px 10px;
   border-color: transparent transparent transparent var(--main-color);
}
.education .right::before{
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0; 
    z-index: 1;
    left: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0px;
    border-color: transparent var(--main-color) transparent transparent ;
}
.education .right::after{
    left: -16px;
}
.education .content{
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
}
.education .content .tag{
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
}
.education .content .decs{
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}
.education .content .tag h2{
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    
}
.education .content .institution h2{
    margin-left: 1.5rem;
    color:var(--bg-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.education .content .city h2{
    margin-left: 1.5rem;
    padding-bottom: 0.5rem;
    color:#2c124c;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.education .content .dates h2{
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}
.education .content .decs p{
    font-size: 1.6rem;
    font-weight: 500;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
@media screen and (max-width:966px) {
    .education .timeline{
        margin-top: 2rem;
    }
    .education .timeline::after{
        left: 31px;
    }
    .education .container{
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .education .container::after{
        font-size: 2.2rem;
    }
    .education .container::before{
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color)transparent transparent;
    }
    .education .left::after{
        left: 15px;
    }
    .education .right::after{
        left: 15px;
    }
    .education .right{
        left: 0%;
    }
}
@media screen and (max-width:600px){
    .education .timeline{
        margin-top: 2rem;
    }
    .education .timeline::after{
        left: 31px;
    }
    .education .container{
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .education .container::after{
        font-size: 2.2rem;
    }
    .education .container::before{
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color)transparent transparent;
    }
    .education .left::after{
        left: 15px;
    }
    .education .right::after{
        left: 15px;
    }
    .education .right{
        left: 0%;
    }
}

/*------------------------- Projects Section -------------------------*/

.projects .container{
    background: #7c4bb76f;
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 102%;
    margin: auto;
    margin-top: 2rem;
}

.projects .container .row{

    display: grid;
    /*grid-template-columns: repeat(5, 1fr);*/
    grid-template-columns: repeat(3, 1fr);
    /*flex-wrap: wrap;*/
    gap: 1.8rem;
}

.projects .container .bar{

    position: relative;
    margin-bottom: 15px;
    padding: 20px;
    padding-bottom: 70px;
    border-radius: 1rem;
    background:var(--bg-color);
    transition: 0.3s ease;
    cursor: pointer;
    height: auto; /* Ajusta la altura según el tamaño de las imágenes */
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    align-items: center;
}

.projects .container .bar:hover{

    box-shadow: 0 4px 10px var(--main-color);
    transform: scale(1.03);
}

.projects .container .bar .info{

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.projects .container .bar .info .title{

    font-size:  2rem; 
    font-weight: 500;
    margin-left: 0.5rem;
}

.projects .container .bar .info img{

    width: 100%;
    height: 200px; 
    object-fit: contain;
    border-radius: 1rem;
}

.projects .container .bar .info p{

    font-size: 1.6rem;
    font-weight: 500;
    margin-right: 1.5rem;
    margin: 0 auto;
    /*margin-bottom: 1.5rem;*/
    color: var(--text-color);
}

.projects .container .bar .btn{

    position:absolute;
    bottom: 6px;
}

.projects .container .bar .info .sub-title{

    font-size:  1rem; 
    font-weight: 500;
    margin-left: 0.5rem;
}

@media screen and (max-width:1459px){
    .projects .container {
        width: 100%;
        padding: 1rem;
    }
    .projects .container .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects .container .bar {
        width: 100%;
        padding: 8px;
        padding-bottom: 70px

    }
    .projects .container .bar .info span {
        font-size: 1.5rem;
    }
    .info img {
        width: 80px; /* Ajusta el ancho para pantallas pequeñas */
        height: 80px; /* Ajusta la altura para pantallas pequeñas */
    }
}

@media screen and (max-width:1024px){
    .projects .container{
        width: 85%;
        padding: 1.5rem;
    }
    .projects .container .row{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects .container .bar{
        padding: 8px;
        padding-bottom: 70px
    }
    .projects .container .bar .info span {
        font-size: 1.8rem;
    }

    .info img {
        width: 90px; /* Ajusta el ancho para pantallas pequeñas */
        height: 90px; /* Ajusta la altura para pantallas pequeñas */
    }

}
@media screen and (max-width: 800px) {

    .projects .container {
        width: 100%;
        padding: 1rem;
    }
    .projects .container .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .projects .container .bar {
        width: 100%;
        padding: 8px;
        padding-bottom: 70px

    }
    .projects .container .bar .info span {
        font-size: 1.5rem;
    }
    .info img {
        width: 80px; /* Ajusta el ancho para pantallas pequeñas */
        height: 80px; /* Ajusta la altura para pantallas pequeñas */
    }

}
@media screen and (max-width: 600px) {
    .projects .container {
        width: 100%;
        padding: 1rem;
    }
    .projects .container .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .projects .container .bar {
        width: 100%;
        padding: 8px;
        padding-bottom: 70px
    }
    .projects .container .bar .info span {
        font-size: 1.5rem;
    }
    .info img {
        width: 80px; /* Ajusta el ancho para pantallas pequeñas */
        height: 80px; /* Ajusta la altura para pantallas pequeñas */
    }
}


/*------------------------- Contact Section -------------------------*/
.contact{
    background: var(--second-bg-color);
}

.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    margin-bottom: 3rem;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
}
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
    height: 25rem;
}
.contact form .btn{
    margin-top: 2rem;
}

/*------------------------- Footer -------------------------*/
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--main-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: black;
}
.footer .social a{
    font-size: 25px;
    color: black;
    border: 2px solid black;
    width: 42px;
    height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3 ease;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-5px);
    background: black;
    color: var(--main-color);
}

@media(max-width:991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    
    .footer{
        padding: 2rem 3%;
    }
}


