@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box !important;
    scroll-behavior: smooth;
    text-decoration: none;
    font-family: 'Varela Round', sans-serif;
}

:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 200; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

body{
    background-color: var(--body-color);
    overflow-x: hidden;
}

nav{
    width: 100%;
    /* border: 2px solid red; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 3em;
    border-radius: 0 0 0 40px;
    position: sticky    ;
    top: 0;
    background-color: var(--first-color);
    z-index: var(--z-fixed);
    box-shadow: 1px -1px 31px -3px rgba(0,0,0,0.24);
    -webkit-box-shadow: 1px -1px 31px -3px rgba(0,0,0,0.24);
    -moz-box-shadow: 1px -1px 31px -3px rgba(0,0,0,0.24);
}

#hambars{
    display: none;
}

nav > section{
    /* border: 1px solid black; */
    padding: 0.5em;
}

nav > * > *{
    /* width: 50%; */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
    color: var(--body-color);
    font-size: 1rem;
}

nav .nav2 > a{
    padding: 0 1.5em;
}

.main-cnt{
    /* border: 2px solid black; */
    display: flex;
}

.main-cnt .part{
    display: flex;
    justify-content: center;
    /* align-items: center; */
    flex-direction: column;
}

.part{
    width: 50%;
    /* border: 2px solid red; */
    padding: 2.5em;
}

.home__blob{
  width: 100%;
  fill: var(--first-color);
}

.home__blob-img{
  width: 75%;
}

.part p{
    font-size: 1.7rem;
}

.part h1{
    font-size: 5rem;
    text-shadow: 0px 0px 9px rgba(0,0,0,0.26);
}

.part div{
    font-size: 2rem;
}

.vrbl-txt{
    width: fit-content;
    position: relative;
    /* border: 2px solid black; */
    color: var(--first-color);
    padding-right: 2px;
}

.vrbl-txt:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--body-color);
    border-left: 2px solid var(--first-color);
    animation: animate 4s steps(12) infinite;
}

@keyframes animate{
    40%, 60%{
        left: 100%;
    }
    100%{
        left: 0%;
    }
}

article{
    /* border: 2px solid yellowgreen; */
    text-align: justify;
    padding: 2.5em;
}

article h1, #portfolio-sec h1, #contact-sec h1{
    /* padding: var(--mb-1-5); */
    text-align: center;
    padding-bottom: 2.5em;
    font-size: 2rem;
}

article p{
    width: 85%;
    max-width: 39rem;
    margin: auto;
    /* border: 2px solid red; */
    background: var(--first-color-lighter);
    padding: 2.5em;
    border-radius: 0 3em;
    font-size: 1.05rem;
    box-shadow: 23px 13px 0px 6px rgba(67,158,203,1);
    -webkit-box-shadow: 23px 13px 0px 6px rgba(67,158,203,1);
    -moz-box-shadow: 23px 13px 0px 6px rgba(67,158,203,1);
}

.mark{
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
      opacity: 0;
    }  
}

#portfolio-sec{
    padding: 2.5em;
    /* border: 2px solid red; */
}

.gallery{
    /* border: 2px solid blue; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 3em;
    padding: 5em;
    box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    -webkit-box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    -moz-box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    background-color: var(--first-color-lighter);
    max-width: 1200px;
    margin: auto;
}

.imgs img{
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.imgs{
    border: 1px solid black;
    border-radius: 5px;
}

#contact-sec{
    /* border: 2px solid black; */
    /* text-align: center; */
    padding: 2.5em;
    max-width: 1300px;
    margin: auto;
}

.wrapper{
    /* border: 2px solid orange; */
    display: grid;
    grid-template-areas: 
    'name message'
    'email message'
    'button-send button-send';
    grid-gap: 1em;
    padding: 2em;
    box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    -webkit-box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    -moz-box-shadow: 1px 6px 31px -3px rgba(0,0,0,0.24);
    background-color: var(--first-color-lighter);
}

.wrapper #button-send{
    /* border: 1px solid green; */
    text-align: center;
    border-radius: 2rem;
    grid-area: button-send;
    background-color: var(--body-color);
}

#button-send a{
    padding: .5em;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    color: var(--first-color);
}

#name{
    grid-area: name;
}

#email{
    grid-area: email;
}

#message{
    grid-area: message;
}

.wrapper textarea{
    resize: none;
}

.wrapper input, .wrapper textarea{
    width: 100%;
    height: calc(100% - 3em);
    padding: .5em 1em;
    box-sizing: border-box;
}

.wrapper .span-txt{
    /* padding: 2em 0 2em 0 !important; */
    display: block;
    /* border: 1px solid red; */
    padding-bottom: 12px;
}

a:hover{
    color: var(--title-color);
}

#button-send a:hover{
    background-color: var(--first-color-second);
    color: var(--body-color);
}

footer{
    text-align: center;
    padding: 1.5em;
}

.colored{
    color: var(--first-color);
}

@media screen and (max-width: 1178px) {
    *{
        font-size: 97%;
    }

    .main-cnt .part:nth-child(2) {
        padding: 0;
    }
}

@media screen and (max-width: 1088px) {
    *{
        font-size: 94%;
    }
}

@media screen and (max-width: 917px) {
    .vrbl-txt::before{
        content: none;
        animation: none;
    }
}

@media screen and (max-width: 860px){
    nav .nav2 > a {
        padding: 0 1em;
    }
}

@media screen and (max-width: 790px) {
    .nav2{
        display: none;
    }

    #hambars{
        display: block;
        color: #fff;
        font-size: x-large;
    }

    .main-cnt{
        flex-direction: column;
    }

    .main-cnt .part:nth-child(2) {
        padding: 2em;
    }

    .main-cnt .part{
        /* padding: 2em; */
        width: 100%;
        /* font-size: 80%; */
    }
    .home__blob{
        max-width: 400px;
        margin: auto;
    }
    .wrapper{
        /* border: 2px solid orange; */
        display: grid;
        grid-template-areas: 
        'name'
        'email'
        'message'
        'button-send';
        grid-gap: 1em;
        padding: 2em;
    }
    
    .wrapper input, .wrapper textarea{
        width: 100%;
        height: 100%;
        padding: .5em 1em;
        box-sizing: border-box;
    }

    .wrapper .span-txt{
        display: none;
    }
    .gallery{
        /* border: 2px solid blue; */
        /* display: grid; */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 450px) {
    article p{
        width: 99%;
        box-shadow: 17px 18px 0px -11px rgba(67,158,203,0.99);
        -webkit-box-shadow: 17px 18px 0px -11px rgba(67,158,203,0.99);
        -moz-box-shadow: 17px 18px 0px -11px rgba(67,158,203,0.99);
    }

    .gallery{
        padding: 2.5em;
        /* width: 90%; */
    }
}

.dsply{
    flex-direction: column;
    justify-content: center;
}

.dsply2{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* align-items: center; */
    height: 30vh;
}
