/*===== GOOGLE FONTS =====*/

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

/*===== VARIABLES CSS =====*/

:root {
    --header-height: 6rem;
    --font-medium: 500;
}


/*===== Colores =====*/

:root {
    --bg-grad-a: #101010;
    --bg-grad-b: #060606;
    --white-color: #eeeeee;
    --text-color: #dddddd;
    --terminal-color: #00dd00;
    --bg-transparent: rgba(10, 10, 10, .50);
    --bg-color: #032303;
    --dark-color: #095609;
    --theme-color: #067606;
}


/*===== Fuente y tipografia =====*/

:root {
    --body-font: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    --big-font-size: 6.25rem;
    --h2-font-size: 1.25rem;
    --h2-font-size-modal: 1.2em;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --minimum-font-size: .213rem;
}

@media screen and (min-width: 768px) {
     :root {
        --big-font-size: 5.66rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1.3rem;
        --small-font-size: 1.1rem;
    }
}


/*===== 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 {
    /* overflow: hidden; */
    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;
    background-color: var(--bg-grad-a);
}

h1,
h2,
p {
    margin: 0;
}

ul {
    margin: 0;
    list-style: none;
    padding-left: 1em;
}

ul .item__list {
    list-style-type: square;
}

ul .subitem__list {
    font-size: .85em;
    list-style-type: square;
}

a {
    color: var(--text-color);
    text-decoration: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/*===== CLASS CSS ===== */

.section {
    padding: 3rem 0;
    height: 90% !important;
}

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--text-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(--dark-color);
}


/*===== LAYOUT =====*/

.bd-grid {
    max-width: 1024px;
    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(--bg-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);
        transition: .5s;
        backdrop-filter: blur(10px);
    }
}

.modal-dialog {
    max-width: 1280px;
}

.nav__link {
    position: relative;
    color: var(--dark-color);
}

.nav__link:hover {
    color: var(--bg-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::after {
    position: absolute;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 2rem;
    color: var(--white-color);
    background-color: var(--white-color);
}


/*===== HOME =====*/

.home {
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}

.home__container {
    height: calc(100vh - var(--header-height));
    row-gap: 5rem;
}

.home__title {
    align-self: flex-end;
    font-size: var(--big-font-size);
    color: var(--white-color);
    line-height: .8;
}

.home__title span {
    text-shadow: 0 20px 25px rgba(0, 0, 0, .5);
}

.home__text{
    margin: 0 0 0 .5em;
}

.home__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 295px;
}

.logo__img {
    height: var(--header-height);
    margin-top: .5rem;
}


/* ===== ABOUT =====*/

.about {
    background: linear-gradient(0deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
}

.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(--bg-color);
    border-radius: 50%;
    overflow: hidden;
}

.about__img img {
    width: 100px;
}

.about__box {
    height: 15vh !important;
}

.about__subtitle {
    font-size: var(--h2-font-size);
    color: var(--theme-color);
    margin-bottom: var(--mb-1);
}

.about__text {
    margin-bottom: var(--mb-4);
    text-align: justify;
}

.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(--bg-color);
}

.flags__img {
    content: "@";
    width: 10%;
    height: 10%;
    padding: 6px 3px 0px 6px;
}

/* ===== SKILLS =====*/

.skills {
    background: linear-gradient(0deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
}

.skills__container {
    row-gap: 2rem;
}

.skills_box {
    display: flex;
    justify-content: space-around;
}

.skills__subtitle {
    color: var(--white-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;
    color: var(--text-color);
    background-color: #323232;
    border-radius: none;
}

.skills__name:hover {
    background-color: var(--theme-color);
    border-radius: .25rem;
}

.skills__img img {
    border-radius: .5rem;
}


/* ===== KNOWLEDGE =====*/

.knowledge {
    background: linear-gradient(0deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
}

.knowledge__container {
    justify-items: center;
    row-gap: 2rem;
}

.knowledge__img {
    position: relative;
    overflow: hidden;
}

.knowledge__img img {
    border-radius: .5rem;
}

.knowledge__link {
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 1), rgba(0, 15, 0, 0.2) 1px, transparent 2px, transparent 2px) !important;
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(150, 0, 0, 0.5);
    border-radius: .5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .1s;
}

.knowledge__img:hover .knowledge__link {
    bottom: 0;
}

.knowledge__link-name {
    color: var(--text-color);
    font-size: 1.3em;
    /* var(--normal-font-size); */
}

.knowledge__tag {
    filter: blur(.7px);
    font-weight: 600;
    color: #2fbfff;
    font-size: 1.0em;
    font-family: sans-serif;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 5);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 0 0 0 5%;
    transform: translate(-50%, 220%);
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 1), rgba(0, 0, 20, 0.2) 1px, transparent 3px, transparent 2px) !important;
}


/* ==== EXPERIENCE ==== */

.experience {
    background: linear-gradient(0deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
    /* background: linear-gradient(0deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%); */
}


/* ===== CONTACT =====*/

.contact__container {
    row-gap: 2rem;
}

.contact__subtitle {
    font-size: var(--normal-font-size);
    color: var(--white-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: .6rem;
    outline: none;
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-transparent);
    margin-bottom: var(--mb-2);
    border-radius: .5rem;
}

.contact__input:focus {
    border: 1.5px solid var(--theme-color);
}

.contact__button {
    display: block;
    background-color: var(--theme-color);
    color: var(--white-color);
    padding: 10px 26px 10px 26px;
    margin-left: auto;
    border: 1px solid var(--theme-color);
    cursor: pointer;
}

.contact__button:hover {
    background-color: var(--bg-transparent);
}


/* ===== FOOTER=====*/

.footer {
    background: var(--bg-grad-b);
}

.footer__container {
    row-gap: 2rem;
}

.footer__title {
    font-size: var(--normal-font-size);
    color: var(--white-color);
    margin-bottom: var(--mb-2);
}

.footer__number{
    display: flex;
}

.footer__link {
    padding: .25rem 0;
}

.footer__link:hover {
    color: var(--theme-color);
}

.footer__social {
    font-size: 1.4rem;
    margin-right: var(--mb-1);
}

.footer__social:hover {
    color: var(--theme-color);
}


/* ===== 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: 4rem;
    }
    .section-title {
        margin-bottom: 3rem;
    }
    .section-title::after {
        width: 64px;
        top: 3rem;
    }
    .nav {
        height: calc(var(--header-height) + 1rem);
        padding: .5rem 0rem 1rem 0rem;
    }
    .nav__list {
        display: flex;
    }
    .nav__item {
        padding: .75rem;
        margin-left: var(--mb-2);
        margin-bottom: 0;
    }
    .nav__item:hover {
        padding: .75rem;
    }
    .nav__toggle {
        display: none;
    }
    .nav__link {
        color: var(--theme-color);
    }
    .nav__link:hover {
        color: var(--text-color);
    }
    .home__container {
        height: 100vh;
        grid-template-rows: 1.7fr 1fr;
        row-gap: 0;
    }
    .home__img {
        width: 524px;
        right: 10%;
    }
    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
        padding: 4rem 0;
    }
    .about__img {
        width: 300px;
        height: 300px;
    }
    .about__img img {
        width: 90%;
    }
    .skills__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    .knowledge__container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }
    .contact__container {
        justify-items: center;
    }
    .contact__form {
        width: 100%;
    }
    .footer__container {
        grid-template-columns: repeat(3, 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: 24%;
    }
}

.arrow {
    border: solid var(--theme-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.up {
    margin-top: .33em;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.right {
    margin-right: .33em;
    transform: rotate(-45deg)calc;
    -webkit-transform: rotate(-45deg);
}

.down {
    margin-bottom: .33em;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.left {
    margin-left: .33em;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#backTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: var(--z-fixed);
    font-size: .666rem;
    border: 1.5px solid var(--dark-color);
    /* background-color: #0000; */
    background-color: var(--bg-transparent);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
}

#backTop:hover {
    opacity: 1;
    background-color: var(--bg-grad-b);
    padding: 10px 10px 20px 10px;
}

#backtop:hover .arrow {
    border: solid var(--bg-grad-a);
}

 ::selection {
    background: var(--terminal-color);
    color: var(--bg-color);
}

.caret-underscore {
    font-family: monospace;
    font-size: var(--medium-font-size) !important;
}

.caret-underscore>.us {
    font-family: monospace;
    animation: blink 1s step-end infinite;
    border-bottom: 2px solid;
}

@keyframes blink {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: var(--terminal-color);
    }
}

.blinker {
    margin-bottom: -2px;
    height: 15px;
    margin-left: -5px;
    border-left: 7px solid #0f0;
    animation: blinker 1.2s steps(5, start) infinite;
}

@keyframes blinker {
    to {
        visibility: hidden;
    }
}

.bg {
    z-index: -10;
}


/* MODALS */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 5%;
    padding-bottom: 3%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.66);
}


/* Modal Content */

.modal-content {
    position: relative;
    background-color: rgba(20, 20, 20, .96);
    margin: auto;
    padding: 0;
    border: none;
    max-width: 75%;
    text-align: justify;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.modal-body {
    margin: .5em;
    padding: .5em 1.6em 0 1.6em;
    font-size: var(--normal-font-size);
}

.modal-body > h2{
    color: var(--theme-color);
    font-size: var(--h2-font-size-modal);
}

.modal .tl-bg {
    width: 25%;
    justify-content: center;
}

.modal .path {
    color: var(--theme-color);
}

.modal__close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    width: 15px;
}

.modal__close:hover,
.modal__close:focus {
    color: var(--theme-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: var(--dark-color);
    color: white;
}

.modal-footer {
    text-align: center;
    padding: 1em;
}

.modal__control {
    cursor: pointer;
    margin: 1em;
    padding: 0.8em;
    z-index: var(--z-fixed);
    font-size: .666rem;
    border: 1.5px solid var(--dark-color);
    background-color: var(--bg-transparent);
    color: var(--text-color);
    position: static;
}

.modal__control:hover {
    opacity: 1;
    background-color: var(--bg-grad-b);
}

.tooltip {
    position: relative;
    display: inline-block;
    color: var(--theme-color);
    border-bottom: 1px dotted var(--dark-color);
    font-size: 14pt;
    margin: 0 0 0 .5em;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 35em;
    background-color: rgba(06, 06, 06, .9); 
    border: 1px solid var(--dark-color);
    color: var(--theme-color);
    font-size: 14pt;
    text-align: left;
    padding: .5em;
    margin: -.5em 0 0 1em;
  
    /* Position the tooltip */
    position: absolute;
    z-index: var(--z-fixed);
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
  }


/* Add Animation */

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}fl