:root {
    --bg-color: #fff;
    --second--bg-color: #f5f5f5;
    --text-color: #1d1d1f;
    --third-color: #1d1d1f;

    /* --main-color:#24c86e; */
    --main-color: #249cc8;
    --second-color: #039be5;
    /* --second-color:#54B3BE;  */
    --main-gradient-color: #0093E9;
    --second-gradient-color: #80D0C7;
    --main-color-pattern:#EDFAFF;

       /* #F7FAFF  - #EDFAFF */



}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Source Code Pro', monospace;
}

html {
    font-size: 60%;
    overflow-x: hidden;

}

body {
       /* background: url(../asset/bg-pattern.svg) ; */
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .2rem;

}

.logo img {
    max-width: 15rem;
}

.navbar 
{
    display: flex;
    gap: 1rem;

}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-right: 2rem;
    transition: .5s;
    font-weight: 500;

}

.navbar .toggle-switch
{
  display: flex;
  align-items: center;
  justify-content: right;
  margin-bottom: 1rem;
}

.navbar a:hover,
.navbar a.active {
    /* color: var(--main-color); */
    background: #B7DEED;
    background: linear-gradient(to right, #B7DEED 0%, #71CEEF 0%, #21B4E2 97%, #B7DEED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 1rem var(--main-color);

}

#menu-icon {
    font-size: 3.5rem;
    color: var(--text-color);
    display: none;
    /* #F7FAFF */
}

/*
*  Section home
*/

.home {
    background: url(../asset/bg-white/wave-home.svg)no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 500;
 
}

/* usa el segundo selector de tipo h3*/
.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content a {
    margin: 3rem 1.5rem 3rem 0;
}


span {
    color: var(--main-color);


}

.home-content h1 {
    font-size: 4.2rem;
  
    font-weight: 700;
    line-height: 1.3;
}



.home-img img {
    width: 35vw;
    background-color: #0093E9;
    background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
    border-radius: 56% 44% 79% 21% / 30% 54% 46% 70% ;
    box-shadow:  0 0 1rem var(--main-color);
}

.home-content p {
    font-size: 1.9rem;
    line-height: 1.8;
    
}

.home-content>button {
    margin: 3rem 1.5rem 3rem 0;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #0093E9;
    background-image: linear-gradient(160deg, var(--main-gradient-color) 0%, var(--second-gradient-color) 100%);
    /* background: var(--main-color); */
    border-radius: .5rem;
    font-size: 1.6rem;
    color: var(--second--bg-color);
    font-weight: 600;
    letter-spacing: .1rem;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 1rem var(--main-color);
    color: var(--text-color);
}

/****************
* About section *
*****************/

.about {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: url(../asset/bg-white/blob.svg)no-repeat;
   

}

.about-img img {
    width: 35vw;
    border-radius: 50%;
   
}

.heading {
    text-align: center;
    font-size: 5.5rem;

}

.heading span {
    background: #B7DEED;
    background: linear-gradient(to right, #B7DEED 0%, #71CEEF 0%, #21B4E2 97%, #B7DEED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
    
}

.about-content h3 {
    font-size: 2.5rem;
    margin-top: .5rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.9;
}


.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--text-color);
    /* border-radius: 50%; */
    border-radius: .5rem;
    font-size: 2rem;
    color: var(--text-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second--bg-color);
    border: .2rem solid var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);

}

/*
* services
*/

.services {
    margin-bottom: 5rem;
    background: url(../asset/bg-white/wave-skills.svg)no-repeat;
    background-size: cover;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}


.services-container .services-box {
    flex: 1 1  40rem ;
    height:45rem;
    /* background: var(--second--bg-color); */
    padding: 3rem 2rem 1rem;
    border-radius: .5rem;
    text-align: center;
    border: .2rem solid var(--third-color);
    transition: .5s ease;
    background: var(--bg-color);
    box-shadow: rgba(234, 234, 234, 0.1) 0px 0px 16px;

}



.services-container .services-box:hover {
    border-color: var(--text-color);
    transform: scale(1.02);
    box-shadow: 0 0 1rem var(--text-color);

}


.services-box i {
    font-size: 6rem;

    color: var(--main-color);
}



.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    line-height: 1.6;
    font-size: 1.5rem;
    margin: 1rem 0 3rem;
    text-align: left;
}

.services-box .skills {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    gap: 2rem;
}

.box-small {
    /* width:430px ;
    height: 310px; */
    width: 330px;
    height: 300px;
}

.skills div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

}

.skills img {
    width: 48px;
    height: 48px;
}

.skills div span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .2rem;
    color: var(--text-color);
}


/*
* Portfolio 
*/

.portfolio {
   
    background: url(../asset/bg-white/porfolio-blob.svg)no-repeat;
    background-size: cover;
    background-position: center;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}



/*
* https://uiverse.io/Yaya12085/little-puma-29
* https://uiverse.io/Sashank02/new-warthog-10
*/

.card {
    padding: 0rem 0rem 2rem 0rem ;
    /* width: 330px; */
    /* min-height: 600px; */
    border-radius: 5px;
    /* border: .2rem solid var(--bg-color); */
    background: var(--bg-color);
    box-shadow: rgba(234, 234, 234, 0.1) 0px 0px 16px;
    transition: 0.4s;
    box-shadow: 0 0 1rem var(--text-color);
}

.card-title {
    
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 2rem 0 2rem;
}

.card-title-img
{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 2rem 0 2rem;
}

.card-title-img span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.card-image img {
    object-fit: cover;
    width: 100%;
    height: 30vh;
    border-radius: 5px 5px 0 0;
  
}

.card-body {
    margin: 1rem 2rem 0 2rem;
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1.8;
    
}


.card-button {
    
    margin-top: .5rem;
    display: flex;
    gap: 2rem;
    justify-content:flex-end;
    align-items: center;
    margin-right: 2rem;
    margin-left: 2rem;

}

.card-button a:hover {
   filter: drop-shadow( 0 0  .4rem var(--main-color));
}


/*
*Contact 
*/

.contact
{
    background: url(../asset/bg-white/contact-wave.svg) no-repeat;
    background-size: cover;
    display: flex ;
    flex-direction: column;
    justify-content: center;
}

.contact button {
    width: 20rem;
    margin: 0 auto;
    cursor: pointer;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact .form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact .form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact .form .input-box input,
.input-box-subjet input,
.contact .form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact .form .input-box input {
    width: 48%;
}

.contact .form textarea {
    resize: none;
}

.contact .form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--main-color-pattern);

}


.footer-text p {
    font-size: 1.6rem;

}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second--bg-color);
}

/******************
* Responsive design 
*******************/

@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width:991px) {

    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;

    }


    .services {
        padding-bottom: 7rem;

    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: 90vh;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width:768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        display: block;   
        position: absolute;
        top: 100%;
        left: -300rem;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        text-align: right;
        transition: .5s ease;

    }

    .navbar .dark-mode 
    {
        display: block;
        text-align: right;
    }

    

    .navbar.active {
        left: 0;
        transition: .5s ease;


    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 60vw;
        margin-top: 3rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 60vw;
        margin-top: 3rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

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

}

@media (max-width:617px) {

    .portfolio-container {
        grid-template-columns: 1fr;
    }

}

@media (max-width:450px) {
    html {
        font-size: 50%;
    }

    section {
        min-height: 100vh;

    }

    .contact {
        min-height: 90vh;
    }

    .contact .form .input-box input {
        width: 100%;
    }
    
}

@media (max-width:375px) {
    .home-img img {
        width: 80vw;
    }

    section {
        min-height: auto;

    }

    .about-img img {
        width: 80vw;
    }


    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

/*------------------- Modal -----------------------*/

.modal {
    position: fixed;
    /* centre the modal*/
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: .1rem solid var(--main-color);
    border-radius: 1rem;
    z-index: 110;
    background-color: var(--bg-color);
    width: 50rem;
    max-width: 80%;
}

.modal.modal-active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: .2rem solid var(--main-color);
}

.modal-title {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
}

.modal-header .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: var(--main-color);
    font-size: 3rem;
    font-weight: bold;
}

.modal-body {

    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    /* top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
}

#overlay.modal-active {
    pointer-events: all;
    opacity: 1;
}

/*------------ thanks sections ------------*/

.thanks {
    display: flex;
    justify-content: start;
    align-items: flex-start;
}

.thanks-content {

    text-align: left;
    margin: 0rem 1.5rem 3rem 0;
    padding: 1rem;
}

.thanks-content h1 {
    font-size: 6rem;

}

.multiple-text {

    background: #1D1D1F;
background: linear-gradient(to right, #1D1D1F 0%, #71CEEF 25%, #21B4E2 75%, #1D1D1F 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;




}

.thanks-content p {
    font-size: 2rem;
    margin-top: 3rem;
    text-align: left;
    line-height: 2;
    width: 80vw;

}

.thanks-content i {

    font-size: 10rem;
    margin-bottom: 3rem;
}

.thanks-content a {
    margin-top: 3rem;
}

/*--------------- toggle ----------------*/
/* switch settings 👇 */
 /*
 * https://uiverse.io/Galahhad/heavy-dog-14
 */


.ui-switch {
    /* switch */
    --switch-bg:rgb(135, 150, 165);
    --switch-width: 48px;
    --switch-height: 20px;
    /* circle */
    --circle-diameter: 32px;
     --circle-bg:var(--main-color);
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
  }
  
  .ui-switch input {
    display: none;
  }
  
  .slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
  }
  
  .slider .circle {
   
    top: calc(var(--circle-inset) * -1);
    left: 0;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
    ;
  }
  
  .slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: inherit;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    opacity: 0;
  }
  
  /* actions */
  
  .ui-switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
  }
  
  .ui-switch input:active+.slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
  }