/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root{
    --header-height: 3rem;
    --font-medium: 500;
}

/*===== Colores =====*/
:root{
    /* --first-color: #5361FF; */
    --first-color:#407BFF;
    --white-color: #FAFAFF;
    --dark-color: #2A3B47;
    --text-color: #697477;
}

/*===== Fuente y tipografia =====*/
:root{
    --body-font: 'Montserrat', sans-serif;
    --big-font-size: 6.25rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
}
@media screen and (min-width: 768px){
    :root{
        --big-font-size: 5rem;
        /* https://stackoverflow.com/questions/15649244/responsive-font-size-in-css */
        /* --big-font-size: 6vw; */
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/*===== Margenes =====*/
:root{
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
}

/*===== z index =====*/
:root{
    --z-fixed: 100;
}

/*===== BASE =====*/
*,::before,::after{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
    /* https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp */
}
h1,h2,p{
    margin: 0;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    color: var(--text-color);
}
img{
    max-width: 100%;
    display: block;
    /* height: 250px; */

    /* height: 250px;
    width: 360px;
    object-fit: cover; */
}

/* ===== MEDIA QUERIES =====*/
/* For small devices */
@media screen and (max-width: 600px) {
    .portfolio__img img{
        
        height: 234px !important;
        width: 234px;

    }
  }
/* 
  @media screen and (min-width: 600px) {
    .portfolio__img img{
        
        height: 234px !important;
        width: 234px;

    }
  } */




/*===== CLASS CSS ===== */
.section{
    padding: 3rem 0;
}
.section-title{
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: var(--mb-4) 0;
    text-align: center;
}
.section-title::after{
    position: absolute;
    content: "";
    width: 32px;
    height: .18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}

/*===== LAYOUT =====*/
.bd-grid{
    /* max-width: 1024px; */
    max-width: 1100px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--first-color);
}

/*===== NAV =====*/
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media screen and (max-width: 768px){
    .nav__menu{
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        /* background-color: rgba(255,255,255,.3); */
        background-color: white;
        transition: .5s;
        /* backdrop-filter: blur(10px); */
        box-shadow: -1px 0 4px rgb(14 55 63 / 15%);
    }
}
.nav__item{
    margin-bottom: var(--mb-4);
}
.nav__link{
    position: relative;
    color: var(--dark-color);
}
.nav__link:hover{
    color: var(--first-color);
}
.nav__logo{
    color: var(--white-color);
}
.nav__toggle{
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/*=== Show menu ===*/
.show{
    right: 0;
}

/*Active menu*/
.active__menu::after{
    position: absolute;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 1.3rem;
    background-color: var(--first-color);
}




/*===== HOME =====*/
.home{
    position: relative;
    background-color: var(--first-color);
    overflow: hidden;
}
.home__container{
    height: calc(100vh - var(--header-height));
    /* row-gap: 5rem; */
}

.flex-container {
    /* We first create a flex layout context */
    display: flex;
    
    /* Then we define the flow direction 
       and if we allow the items to wrap 
     * Remember this is the same as:
     * flex-direction: row;
     * flex-wrap: wrap;
     */
    /* flex-flow: row wrap; */

      /* Then we define how is distributed the remaining space */
  /* justify-content: center; */
}

.left{
    /* padding: 0 40px 40px; */
    width: 50%;  
    /* https://stackoverflow.com/questions/5703552/how-can-i-center-text-horizontally-and-vertically-inside-a-div-block   */
    transform: translateX(25%) translateY(30%);
}

.right{
    width:50%;
    /* margin-top: 20px; */
    visibility: hidden;
}
.home__title__mobile{
    display: none;

}
.home__title__mobile span{
    display: none;
}


@media only screen and (max-width: 600px) {
    .right {
        display: none;
    }
    .left{
        display:none;
    }

    .home__title__mobile{
        /* align-self: flex-end; */
        /* font-size: var(--big-font-size); */
        color: var(--white-color);
        line-height: .8;
        visibility: hidden;
        /* padding: 15px; */
        display: block;
        text-align: center;

    }

    .home__title__mobile span{
        display: block;
    }

 
}




.bg-mobile {
    display: none;
}

.home__scroll__mobile {
    display: none;
}


@media only screen and (max-width: 1075px){
    /* .left{
        width: 50%;    
        transform: translateX(5%) translateY(35%);
    } */
    .left{
        width: 50%;    
        transform: translateX(5%) translateY(20%);
    }
}

    @media only screen and (max-width: 705px) {
        .left{
            transform: translateX(0%) translateY(35%);
        }
    }

@media only screen and (max-width: 600px){
    .bg-mobile {
        display: block;
        /* margin-left: -40px; */
        margin-right: -40px;
        width: calc(100% + 80px);
        visibility: hidden;
    }

    
    .home__scroll__mobile{
        align-self: flex-end;
        padding-bottom: var(--mb-4);
        visibility: hidden;
        text-align: center;
        display: block;
    }
    .home__scroll-link__mobile{
        /* writing-mode: vertical-lr; */
        transform: rotate(-180deg);
        color: var(--white-color);
    }
}





.bg-image {
    /* https://fervent-mayer-36e64f.netlify.app/base-apparel-coming-soon-master/index.html */
    /* use this with .right and the margin-top property to push the image down
     background-image: url("https://i.ibb.co/LgvkdcX/QR-Code-pana-2.png");
    background-position: center;
    background-size: cover; */


    /* background-size: contain;
    background-position: center center;
    background-repeat: no-repeat; */
    /* background-position: center center; */
    /* https://stackoverflow.com/questions/51120278/place-a-background-image-just-below-the-navbar-bootstrap-4-beta */
    /* background-position: center 5px; */
    /* height: 745px; */
    /* height: 100vh; */
    
    /* The image gets smaller as you gradually reduce the screen size */
    background-image: url("../img/QR Code.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat; 
   

}






.home__title{
    align-self: flex-end;
    font-size: var(--big-font-size);
    color: var(--white-color);
    line-height: .8;
    visibility: hidden;
    padding: 15px;
}
.home__title span{
    text-shadow: 0 20px 25px rgba(0,0,0,.5);
}
.home__scroll{
    /* align-self: flex-end;
    padding-bottom: var(--mb-4); */
    visibility: hidden;
    padding-top: 15%;
    padding-left: 15px;
}
.home__scroll-link{
    /* writing-mode: vertical-lr; */
    transform: rotate(-180deg);
    color: var(--white-color);
}
.home__img{
    /* position: absolute;
    right: 0; */
    /* bottom: 0; */
    /* bottom:30px; */
    /* bottom:75px; */
    /* width: 295px; */
    visibility: hidden;
}

/* ===== ABOUT =====*/
.about__container{
    justify-items: center;
    row-gap: 2rem;
    text-align: center;
}
.about__img{
    /* display: flex;
    justify-content: center; */
    /* padding-top: 1rem; */
    /* width: 120px;
    height: 120px;
    background-color: var(--first-color);
    border-radius: 50%;
    overflow: hidden; */

        /* display: flex; */
    /* justify-content: center; */
    /* padding-top: 1rem; */
    width: 120px;
    /* object-fit: cover; */
    object-position: unset;
    height: 120px;
    /* background-color: var(--first-color); */
    border-radius: 50%;
    overflow: hidden;
    visibility: hidden;

}
.about__img img{
    /* width: 100px; */
    position: absolute;
    top: -30%;
}
.about__subtitle{
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}
.about__text{
    margin-bottom: var(--mb-4);
}
.about__profession{
    display: block;
    margin-bottom: var(--mb-4);
}
.about__social-icon{
    font-size: 1.4rem;
    margin: 0 var(--mb-1);
}
.about__social-icon:hover{
    color: var(--first-color);
}

/* ===== SKILLS =====*/
.skills__container{
    row-gap: 2rem;
}
.skills__subtitle{
    color: var(--first-color);
    margin-bottom: var(--mb-3);
}
.skills__name{
    display: inline-block;
    font-size: var(--small-font-size);
    margin-right: var(--mb-2);
    margin-bottom: var(--mb-3);
    padding: .25rem .5rem;
    background-color: var(--white-color);
    border-radius: .25rem;
}
.skills__name:hover{
    background-color: var(--first-color);
    color: var(--white-color);
}
.skills__img img{
    border-radius: .5rem;
}
/* If the browser window is 600px or smaller, the background color will be lightblue: */

.skills__change__position__of__img__with__skills__box2{
    display: none;
}


@media only screen and (max-width: 600px) {
    .skills__change__position__of__img__with__skills__box{
        display:none;
    }
    .skills__change__position__of__img__with__skills__box2{
        display: block;
    }

    .skills__box{
        text-align: center;
    }
}


/* ===== PORTFOLIO =====*/
.portfolio{
    background-color: var(--white-color);
}
.portfolio__container{
    justify-items: center;
    row-gap: 2rem;
}
.portfolio__img{
    position: relative;
    overflow: hidden;
}
.portfolio__img img{
    border-radius: .5rem;
}
.portfolio__link{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,.3);
    border-radius: .5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}
.portfolio__img:hover .portfolio__link{
    bottom: 0;
}
.portfolio__link-name{
    color: var(--dark-color);
}

/* ===== CONTACT =====*/
/* .contact__container{
    row-gap: 2rem;
}
.contact__subtitle{
    font-size: var(--normal-font-size);
    color: var(--first-color);
}
.contact__text{
    display: inline-block;
    margin-bottom: var(--mb-2);
}
.contact__inputs{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
}
.contact__input{
    width: 100%;
    padding: .8rem;
    outline: none;
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-4);
    border-radius: .5rem;
}
.contact__button{
    display: block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: .75rem 2.5rem;
    margin-left: auto;
    border-radius: .5rem;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
} */

/* ===== FOOTER=====*/
.footer{
    /* background-color: #5361FF; */
    background-color: #FAFAFF;
    /* padding-top:7.1rem !important; */

}
.footer__container{
    row-gap: 2rem;
}
.footer__title{
    font-size: var(--normal-font-size);
    /* color: var(--white-color); */
    color:#5361FF;
    margin-bottom: var(--mb-2);
}
.footer__link{
    padding: .25rem 0;
    /* color:white; */
    color:black;
}
.footer__link:hover{
    color: #5361FF;
}
.footer__social{
    font-size: 1.4rem;
    margin-right: var(--mb-1);
    /* color:white; */
    color:black;
}
.footer__social:hover{
    color: #5361FF;
}

.footer__text{
    /* color:white; */
    color:black;
}

/* ===== MEDIA QUERIES =====*/
/* For small devices */
@media screen and (max-width: 320px) {
  .home__img {
    width: 230px;
  }
}

@media screen and (min-width: 768px){
    body{
        margin: 0;
    }
    .section{
        /* padding-top: 4em; */
        padding-top: 5rem;
    }
    .section-title{
        margin-bottom: 3rem;
    }
    .section-title::after{
        width: 64px;
        top: 3rem;
    }

    /* .nav{
        height: calc(var(--header-height) + 1rem);
    } */
    .nav__list{
        display: flex;
    }
    .nav__item{
        margin-left: var(--mb-4);
        margin-bottom: 0;
    }
    .nav__toggle{
        display: none;
    }
    .nav__link{
        color: var(--white-color);
    }
    .nav__link:hover{
        color: var(--white-color);
    }
    .active__menu::after{
        background-color: var(--white-color);
    }

    .home__container{
        height: 100vh;
        /* grid-template-rows: 1.7fr 1fr; */
        /* grid-template-rows: 290px 100px 100px; */
        /* row-gap: 0; */
    }
    .home__img{
        /* width: 524px;
        right: 10%;
        padding-bottom: 60px; */
    }

    .about__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
        padding: 4rem 0;
    }
    .about__img{
        /* width: 200px;
        height: 200px; */
        width: 300px;
        height: 300px;
        visibility: hidden;
    }
    .about__img img{
        /* width: 165px; */
        width: -webkit-fill-available;
        position: absolute;
        top: -30%;
    }

    .skills__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .portfolio__container{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }

    .contact__container{
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
    .contact__form{
        width: 380px;
    }

    .footer__container{
        /* grid-template-columns: repeat(3, 1fr); */
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}



@media screen and (min-width: 1024px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
    .home__container {
        /* height: 640px; */
    }
    .home__img {
        /* width: 500px;
        right: 15%;
        padding-bottom: 100px; */
    }
}

/* If the browser window is 1075px or smaller, the background color will be lightblue: */

@media only screen and (max-width: 1075px) {
    .home__img {
        /* width: 400px; 965 */ 
        right:1%;
    }
}

@media only screen and (max-width: 931px) {
    .home__img {
        width: 400px; 
        padding-bottom: 135px;
    }

    .home__container{
        /* grid-template-rows: 325px 100px 100px; */
    }
}

@media only screen and (max-width: 835px) {
    .home__img {
        width: 350px; 
        padding-bottom: 135px;
    }

    .home__container{
        /* grid-template-rows: 325px 100px 100px; */
        /* grid-template-rows: 290px 100px 100px; */
        /* row-gap: 0; */
        /* height: 100vh; */
    }

    .home__title {
        font-size:4rem;
    }
}


@media only screen and (max-width: 768px) {
    .home__img {
        width: 350px; 
        padding-bottom: 135px;
    }

    .home__container{
        /* grid-template-rows: 275px 100px 100px; */
             /* grid-template-rows: 270px 100px 100px;
             row-gap: 0; */
    }
/* 
    .home__title {
        font-size:4rem;
    } */
}

/* https://stackoverflow.com/questions/38062124/mobile-media-queries-in-landscape-mode */
/* To attach the screen max and min width you can do something like this: */


@media screen and (orientation:landscape)
and (min-device-width: 900x) 
and (max-device-width: 1000px) {
   /* Your CSS Here*/
   .left {
        transform: translateX(5%) translateY(5%);
    }
}


@media screen and (orientation:landscape)
and (min-device-width: 700px) 
and (max-device-width: 900px) {
   /* Your CSS Here*/
   .left {
        /* transform: translateX(5%) translateY(20%); */
        transform: translateX(5%) translateY(10%);
    }
    .home__scroll {
        padding-top: 5%;
    }

    .right {
        margin-top: 25px;
    }
}


@media screen and (orientation:landscape)
and (min-device-width: 600px) 
and (max-device-width: 700px) {
   /* Your CSS Here*/
   .left {
        transform: translateX(10%) translateY(10%); 
    }

    .home__title {
        font-size: 3rem;
    }

    .right {
        margin-top: 0px;
    }

}

@media screen and (orientation:landscape)
and (min-device-width: 400px) 
and (max-device-width: 600px) {
   /* Your CSS Here*/
   .bg-mobile{
       display:none;
   }

   .mobile__container{
    display:none;
    }

    .left {
        width: 50%;
        /* margin-top: 20px; */
        visibility: hidden;
        display:block;
        transform: translateX(10%) translateY(15%);
    }

    .right {
        width: 50%;
        /* margin-top: 20px; */
        visibility: hidden;
        display:block;
    }

    .bg-image {
        /* background-position: center center; */
        /* background-position: center 5px; */
        /* height: 745px; */
        /* height: 100vh; */
        background-image: url(https://i.ibb.co/LgvkdcX/QR-Code-pana-2.png);
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .home__title {
        font-size: 2rem;
    }

    .home__scroll {
        padding-top: 10%;
    }
   /* .left {
        transform: translateX(10%) translateY(10%); 
    }

    .home__title {
        font-size: 3rem;
    }

    .right {
        margin-top: 0px;
    } */

}


.mobile__container{
    max-width:450px;
    margin:auto;
}

/*===== POPUP/MODAL =====*/

/* For some reason, the filter property causes the popup/modal to be pushed to the bottom right of the page. this doesn't happen in the Phynix application. I'm not sure as to what exactly is causing this. */
/* #blur.active{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
} */

#portfolio.active{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}

#portfolio.active2{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}

#portfolio.active3{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}
#portfolio.active4{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}
#portfolio.active5{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}
#portfolio.active6{
    filter:blur(20px);
    pointer-events:none;
    user-select:none;
}


#popup{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup.active{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}

#popup2{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup2.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}




#popup3{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup3.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}



#popup4{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup4.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}



#popup5{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup5.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}



#popup6{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup6.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}

#popup7{
    position:fixed;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    padding:50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .30);
    background: #fff;
    visibility: hidden;
    opacity:0;
    transition:0.5s;

}

#popup7.active2{
    top:50%;
    visibility: visible;
    opacity:1;
    transition:0.5s;
}


@media only screen and (max-width: 600px){
    #popup {
        width: 300px;
    }
    #popup2 {
        width: 300px;
    }
    #popup3 {
        width: 300px;
    }
    #popup4 {
        width: 300px;
    }
    #popup5 {
        width: 300px;
    }
    #popup6 {
        width: 300px;
        padding: 20px;
    }
    #popup7 {
        width: 300px;
        padding: 20px;
    }
}






.popup_header{
    color:#5361FF;
    text-align: center;
}

.popup__body{
    text-align: center;
}

.closepopup {
    position: relative;
    padding: 5px 20px;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #fff;
    background: #5361FF;
    text-align: center;
    cursor: pointer;
}
/*===== POPUP/MODAL =====*/


  /* https://stackoverflow.com/questions/1144805/scroll-to-the-top-of-the-page-using-javascript?noredirect=1&lq=1   */
  #top-page {
    width: 50px;
    position: fixed;
    right: 5px;
    bottom: 40px;
    cursor: pointer;
    color: white;
    display: none;
  }

  /* .contact__header{
    margin-bottom:6rem !important;
  } */

/* If the browser window is 600px or smaller */
@media only screen and (max-width: 599px) {
    .contact__header{
        margin-bottom:.5rem !important;

    }

}
/* If the browser window is 600px or larger */
@media only screen and (min-width: 600px) {
    .contact__header{
        margin-bottom:1rem !important;

    }

}

#preloader {
    background: white url("../img/dribbble-final.gif") no-repeat center center;
    background-size: 50%;
    height: 120vh;
    width: 100%;
    position: fixed;
    z-index: 101;
    background-color: white;
    top: -20%;  

}


#container__prime{
    display:none;
}