/*==================== GOOGLE FONTS ====================*/
@font-face {
    font-family: "futura_l";
    src: url(../font/Futura-Light.eot) format("eot"), url(../font/Futura-Light.woff) format("woff")
}

@font-face {
    font-family: "futura_m";
    src: url(../font/Futura-Med.eot) format("eot"), url(../font/Futura-Med.woff) format("woff")
}

@font-face {
    font-family: "futura_r";
    src: url(../font/Futura-Boo.eot) format("eot"), url(../font/Futura-Boo.woff) format("woff")
}

@font-face {
    font-family: "futura_b";
    src: url(../font/Futura-Bol.eot) format("eot"), url(../font/Futura-Bol.woff) format("woff")
}


/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 5rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 599; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: #2D84B3;
    --first-color-second: hsl(var(--hue-color), 69%, 40%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: #000;
    --second-color: #ff4d5a;
    --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: #fff; /* rgb(12,29,62);*/
    --body-color-transparent: rgba(251, 254, 252, 0.8);
    --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: 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    --form-font: 'futura_l', 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 8rem;
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.8rem;
    --normal-font-size: 1.2rem;
    --small-font-size: 1.1rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 400;
    --font-semi-bold: 500;
    --font-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: 10000;
    --z-modal-content: 10001;

    /*========== transition ==========*/
    --header-transition-duration: 0.5s;

    --filter-invert: invert(1);

    /*========== Loader ==========*/
    --loader-width: 120px;
    --bar-width: 30px;
    --curtain-z-index: 10000;

    /*========== Send Email ==========*/
    --button-width: 150px;
    --spinner-button-width: calc(var(--button-width) / 6);
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 12rem;
        --h1-font-size: 5rem;
        --h2-font-size: 3rem;
        --h3-font-size: 2.4rem;
        --normal-font-size: 2rem;
        --small-font-size: 1.5rem;
        --smaller-font-size: 1rem;
    }
}

/* Font size for small devices */
@media screen and (max-width: 350px) {
    :root {
        --big-font-size: 3rem;
    }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
    --first-color-second: hsl(var(--hue-color), 30%, 8%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --body-color-transparent: hsl(var(--hue-color), 28%, 12%, 0.7);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
    --filter-invert: invert(0);
}


/*========== Button Dark/Light ==========*/
.nav__btns {
    display: flex;
    align-items: center;
}

.change-theme {
    font-size: 20px;
    color: var(--title-color);
    margin-right: var(--mb-1);
    cursor: pointer;
}

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

/*==================== BASE ====================*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

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

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

.link {
    color: var(--title-color);
    font-weight: 400;
}

.underline__link:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.underline__link::before {
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
}

.underline__link::before {
    content: '';
}

.underline__link::before, .underline__link::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/*==================== REUSABLE CSS CLASSES ====================*/

.section__title {
    font-size: var(--h1-font-size);
    margin-bottom: 3rem;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.section__subtitle, .section__title {
    text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
    max-width: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.header {
    width: 100%;
    position: fixed;
    display: inline-block;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}

.header, .curtain-header {
    bottom: 0;
}


/*==================== NAV ====================*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height var(--header-transition-duration) ease-in-out;
    padding: 0 20px;
}

.nav__logo {
    text-align: center;
    line-height: 1rem;
    display: flex;
}

.nav__logo, .nav__toggle {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav__toggle {
    font-size: 18px;
    cursor: pointer;
}

.nav__toggle:hover {
    color: var(--first-color)
}

.nav__logo-image {
    height: var(--header-height);
    width: auto;
    color: var(--title-color);
    padding: 0.3rem;
    filter: var(--filter-invert);
}

.nav__logo-image path {
    fill: var(--title-color);
}

.nav__logo span {
    display: table;
    margin: auto;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 0px 8px 0 rgb(0 0 0 / 40%);
        background-color: var(--body-color-transparent);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 1.5rem 1.5rem 0 0;
        transition: .3s;
        z-index: 1000000000000;
    }
}

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

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--h3-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    position: relative;
}

.nav__icon {
    font-size: 2rem;
}

.nav__close {
    position: absolute;
    right: 1.3rem;
    bottom: .5rem;
    font-size: 25px;
    cursor: pointer;
    color: var(--first-color)
}

.nav__close:hover {
    color: var(--first-color-alt);
}

/* show menu */
.show-menu {
    bottom: 0;
    z-index: 10000;
}

/* Active link */
.nav__item.active .nav__link {
    color: var(--first-color);
    border-bottom: 1px solid var(--first-color);
}

/* Change background header */


/*==================== HOME ====================*/
#home {
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    padding: 0;
    display: flex;
    align-items: center;
}

.home__container {
    gap: 1rem;
}

.home__content {
    grid-template-columns: .5fr 3fr;
    padding-top: 1.5rem;
    align-items: center;
}

.home__social {
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home__social-icon {
    font-size: 1.75rem;
    color: var(--first-color);
}

.home__social-icon:hover {
    color: var(--text-color);
}

.home__img {
    width: 100%;
    max-width: 250px;
}

.home__blob {
    width: 100%;
    fill: var(--first-color);
}

.home__blob-img {
    width: 90%;
}

.home__data {
    grid-column: 1/3;
}

.home__title {
    font-size: var(--big-font-size);
    /*
 line-height: 1;
 letter-spacing: 0.1em;
 margin-bottom: 1.6rem;
 font-family: "futura_m";
 font-weight: normal;*/
    /*text-shadow: 0 10px 30px rgb(2 11 22 / 50%);*/
}

.home__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);

}

.home__description {
    margin-bottom: var(--mb-2);
}

.home__scroll-button {
    color: var(--first-color);
    transition: .3s;
}

.home__scroll-button:hover {
    transform: translateY(.25rem);
}

.home__scroll-mouse {
    font-size: 2rem;
}

.home__scroll-name {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
    font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/
.button {
    display: inline-block;
    background-color: var(--second-color);
    color: #fff;
    font-weight: var(--font-medium);

    font-size: 1.8rem;
    line-height: 1;

    padding: 18px 32px;
    border-radius: 50px;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    letter-spacing: 0.1em;
}

.button:hover {
    -webkit-transform: translate3d(0, -5%, 0);
    transform: translate3d(0, -5%, 0);
    opacity: 1;
}

.button__icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}

.button--white {
    background-color: white;
    color: var(--first-color);
}

.button--white:hover {
    background-color: #fff;
}

.button--flex {
    display: inline-flex;
    align-items: center;
}

.button--small {
    padding: .75rem 1rem;
}

.button--link {
    padding: 0;
    background-color: transparent;
    color: var(--first-color);
    cursor: pointer;
}


/*==================== ABOUT ====================*/
.about__img__container {
    justify-self: center;
    align-self: center;
}

.about__img {
    min-width: 100%;
    border-radius: .5rem;
    overflow: hidden; /* in order to hide vanilla-tilt glare with borders-radius */
    display: grid;
    margin-bottom: var(--mb-2-5);
    max-width: 800px;
}


.about__description {
    text-align: center;
}

.about__buttons {
    display: flex;
    justify-content: center;
}

/*==================== SKILLS ====================*/
.skills__container {
    row-gap: 0;
}

.skills__header {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-1-5);
    cursor: pointer;
}

.skills__icon,
.skills__arrow {
    font-size: 2rem;
    color: var(--first-color);
}

.skills__icon {
    margin-right: var(--mb-0-75);
}

.skills__title {
    font-size: var(--h3-font-size);
}

.skills__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.skills__arrow {
    margin-left: auto;
    transition: .4s;
}

.skills__list {
    row-gap: 1.5rem;
    padding-left: 2.7rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mb-0-5);
}

.skills__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
    height: 5px;
    border-radius: .25rem;
}

.skills__bar {
    background-color: var(--first-color-lighter);
}

.skills__percentage {
    display: block;
    background-color: var(--first-color);
}

.skills__html {
    width: 80%;
}

.skills__css {
    width: 85%;
}

.skills__js {
    width: 70%;
}

.skills__java {
    width: 90%;
}

.skills__springboot {
    width: 85%;
}

.skills__mysql {
    width: 85%;
}

.skills__mongodb {
    width: 70%;
}

.skills__typescript {
    width: 55%;
}

.skills__react {
    width: 60%;
}

.skills__node {
    width: 60%;
}

.skills__dynamodb {
    width: 75%;
}

.skills__redis {
    width: 50%;
}

.skills__close .skills__list {
    height: 0;
    overflow: hidden;
}

.skills__open .skills__list {
    height: max-content;
    margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
    transform: rotate(-180deg)
}

/*==================== QUALIFICATION ====================*/
.qualification__tabs {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2);
}

.qualification__button {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
}

.qualification__button:hover {
    color: var(--first-color);
}

.qualification__icon {
    font-size: 1.8rem;
    margin-right: var(--mb-0-25);
}

.qualification__sections {
    overflow-y: hidden;
}

.qualification__data {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
    text-align: left;
}

.qualification__data.left {
    text-align: right;
}

.qualification__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.qualification__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.qualification__calendar {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light)
}

.qualification__rounder {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--first-color);
    border-radius: 50%;
}

.qualification__line {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--first-color);
    transform: translate(6px, -7px);
}

.qualification [data-content] {
    display: none;
}

.qualification__active[data-content] {
    display: block;
}

.qualification__button.qualification__active {
    color: var(--first-color);
}


/*==================== PORTFOLIO ====================*/
.portfolio__container {
    position: relative;
}

.slide__content {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 1rem;
}

.portfolio__img {
    border-radius: 4rem;
    justify-self: center;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
}

.portfolio__description {
    margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
    transform: translateX(.25rem);
}


.portfolio__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    transition: .3s;
    display: none;
}

.portfolio__modal-content {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
    z-index: var(--z-modal-content);
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.portfolio__modal-content img {
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    max-width: 400px;
}

.portfolio__modal-services {
    row-gap: 1rem;
}

.portfolio__modal-service {
    display: flex;
}

.portfolio__modal-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
}

.portfolio__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.portfolio__modal-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-25);
}

.portfolio__modal i {
    line-height: 2;
}

/* Active Modal */
.active-modal {
    display: flex;
}

/*==================== CONTACT ME ====================*/
.contact__container {
    row-gap: 3rem;
}

.contact__information__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__information {
    display: flex;
}

.contact__information a:first-child, .contact__information div:first-child {
    display: flex;
    position: relative;
    flex-direction: column;

    margin-bottom: var(--mb-2);
}

.contact__icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
}

.contact__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.contact__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    display: block;
}

.contact__content {
    background-color: var(--input-color);
    border-radius: .5rem;
}

.contact__label {
    font-size: var(--small-font-size);
    color: var(--title-color);
}


.contact__form .text-help {
    color: var(--second-color);
}

.contact__content, .contact__form .text-help {
    padding: .75rem 1rem .25rem;
}

.contact__input {
    width: 100%;
    background-color: var(--input-color);
    color: var(--text-color);
    font-family: var(--form-font);
    font-size: var(--small-font-size);
    border: none;
    outline: none;
    padding: .25rem .5rem .5rem 0;
}

#send__email {
    position: relative;
    display: block;

    appearance: none;
    -webkit-appearance: none;

    width: 225px;

    transition: all .5s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
}

#send__email.animate {
    width: 75px;
    height: 75px;
    min-width: 0;
    border-radius: 50%;
    color: white;
}

#send__email.animate:after {
    position: absolute;
    content: '';
    width: var(--spinner-button-width);
    height: var(--spinner-button-width);
    border: 4px solid coral;
    border-radius: 50%;
    border-left-color: white;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    animation: spin ease-in 2.5s forwards;
    animation-name: spin;
    -webkit-animation-name: spin;
    transition-timing-function: ease-in-out;
    -webkit-transition-timing-function: ease-in-out;
    animation-duration: 2.5s;
    -webkit-animation-duration: 2.5s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

#send__email.success:before {
    position: absolute;
    content: '';
    width: var(--spinner-button-width);
    height: calc(var(--spinner-button-width) / 2);
    border: 4px solid white;
    border-right: 0;
    border-top: 0;
    left: 50%;
    top: 45%;
    -webkit-transform: translate(-50%, -50%) rotate(0deg) scale(0);
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
    -webkit-animation: success ease-in 0.15s forwards;
    animation: success ease-in 0.15s forwards;
    animation-delay: 2.5s;
}

#send__email.error {
    position: relative;
    -webkit-animation: vibrate ease-in 0.5s forwards;
    animation: vibrate ease-in 0.5s forwards;
    -webkit-animation-delay: 2.5s;
    animation-delay: 2.5s;
}

#send__email.error:before {
    color: #fff;
    position: absolute;
    content: '!';
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    left: 50%;
    top: 54%;
    -webkit-transform: translate(-50%, -50%) scale(0);
    transform: translate(-50%, -50%) scale(0);
    -webkit-animation: error ease-in 0.5s forwards;
    animation: error ease-in 0.5s forwards;
    animation-delay: 2.5s;
}


@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    90% {
        transform: translate(-50%, -50%) rotate(1080deg) scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    98% {
        -webkit-transform: translate(-50%, -50%) rotate(1080deg) scale(1);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotate(1080deg) scale(0);
    }
}

@keyframes success {
    from {
        transform: translate(-50%, -50%) rotate(0) scale(0);
    }
    to {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
}

@-webkit-keyframes success {
    from {
        -webkit-transform: translate(-50%, -50%) rotate(0) scale(0);
    }
    to {
        -webkit-transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
}

@keyframes error {
    from {
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        background-color: #f44336;
    }
}

@-webkit-keyframes error {
    from {
        -webkit-transform: translate(-50%, -50%) scale(0);
    }
    to {
        -webkit-transform: translate(-50%, -50%) scale(1);
        background-color: #f44336;
    }
}


@keyframes vibrate {
    0%, 30%, 60%, 85%, 100% {
        left: 0;
        background-color: #f44336;
    }
    10%, 40%, 90%, 70% {
        left: -2px;
        background-color: #f44336;
    }
    20%, 50%, 80%, 95% {
        left: 2px;
        background-color: #f44336;
    }
}

/*==================== FOOTER ====================*/
.footer {
    padding-top: 2rem;
}

.footer__container {
    row-gap: 3.5rem;
}

.footer__bg {
    background-color: var(--container-color);
    padding: 2rem 0 3rem;
}

.footer__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
    font-size: var(--small-font-size)
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

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

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

.footer {
    font-size: var(--smaller-font-size);
    text-align: center;
    color: var(--text-color-light);
    margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
    color: var(--title-color);
}

.footer__link {
    position: relative;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .nav__menu {
        padding: 2rem .25rem 4rem;
    }

    .nav__list {
        column-gap: 0;
    }

    .home__content {
        grid-template-columns: .25fr 3fr;
    }

    .home__blob {
        width: 100%;
    }

    .skills__title {
        font-size: var(--normal-font-size);
    }

    .qualification__data {
        gap: .5rem;
    }

    .portfolio__modal {
        padding: 0 .5rem;
    }

}

/* For medium devices */
@media screen and (min-width: 568px) {
    .home__content {
        grid-template-columns: max-content 1fr 1fr;
    }

    .home__data {
        grid-column: initial;
    }

    .home__img {
        order: 1;
        justify-self: center;
    }


    .skills__container,
    .contact__container,
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        grid-template-columns: 1fr 3fr;
    }

    .qualification__sections {
        display: grid;
        grid-template-columns: .6fr;
        justify-content: center;
    }
}


@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    body {
        margin: 0;
    }

    .sction__subtitle {
        margin-bottom: 4rem;
    }

    .header, .curtain-header {
        top: 0;
        bottom: initial;
    }

    .header {
        background-color: rgba(0, 0, 0, 0);
    }

    .nav {
        height: calc(var(--header-height) + 3rem);
        column-gap: 1rem;
    }

    .nav__icon,
    .nav__close,
    .nav__toggle {
        display: none;
    }

    .nav__list {
        display: flex;
        column-gap: 2rem;
    }

    .nav__menu {
        margin-left: auto;
    }

    .change-theme {
        margin: 0;
    }

    .home__container {
        row-gap: 5rem;
    }

    .home__blob {
        width: 100%;
    }

    .home__scroll {
        display: block;
    }

    .about__container {
        column-gap: 5rem;
    }

    .about_img {
        width: 350px;
    }

    .about__description {
        text-align: initial;
    }

    .about__buttons {
        justify-content: flex-end;
    }

    .qualification__tabs {
        justify-content: center;
    }

    .qualification__button {
        margin: 0 var(--mb-1);
    }

    .qualification__sections {
        grid-template-columns: .5fr;
    }

    .card {
        width: 25rem;
        height: 25rem;

        display: grid;
        grid-template-rows: 1fr 0;
        transition: grid-template-rows 400ms;

        overflow: hidden;
    }

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .portfolio__img {
    }

    .portfolio__modal-content {
        width: 750px;
    }

    .slide__content {
        align-items: center;
    }

    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__bg {
        padding: 3rem 0 3.5rem;
    }

    .footer__links {
        flex-direction: row;
        column-gap: 2rem;
    }

    .footer__socials {
        justify-self: flex-end;
    }

    .footer__copy {
        margin-top: 4.5rem;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {

    .home__blob {
        width: 100%;
    }

    .slide__content {
        column-gap: 5rem;
    }

    .contact__form {
        width: 460px;
    }

    .contact__inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

html { /* body won't work ¯\_(ツ)_/¯ */
}

section {
    height: 100vh;
    width: 100vw;
}

.title .border span:last-child {
    margin-left: 54px;
}

.title .border span {
    display: block;
    width: 88px;
    height: 4px;
    border-radius: 5px;
    background: var(--second-color);
}

.title .border {
    display: inline-block;
    margin-bottom: 3.2rem;
}

.title .border span:first-child {
    margin-bottom: 1.4rem;
}

.nav__logo {
    z-index: 10000;
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.nav__logo-text {
    padding-left: 2px; /*the J of the choosen font spans before the begin of its container */
}

html {
    font-size: 62.5%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    font-size: 1.6rem;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: #828c96;
    overflow-x: hidden
}

textarea {
    font-family: 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2
}

p {
    line-height: 2;
    word-wrap: break-word;
    white-space: normal
}

dd, dt, li, pre, td, th {
    line-height: 1.5
}

li {
    list-style-type: none
}

#fp-nav ul li a span {
    background-color: var(--title-color);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

.fullpage__slide {
    width: 100%;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    color: #fff;
}

@media screen and (max-width: 768px) {

    .home__scroll {
        display: none !important;
    }

    #wrapper #fp-nav {
        width: auto;
        left: 50%;
        top: 32px;
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }

    .portfolio__modal-content {
        width: 450px;
    }

    #fp-nav ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
    }
}

@media screen and (max-width: 420px) {
    #fp-nav {
        top: 20px;
        margin-top: -20px;
    }

    body {
        font-size: 1.2rem
    }
}

.scrollDown {
    position: fixed;
    font-size: 1.4rem;
    bottom: 80px;
    left: 40px;
    line-height: 1;
    letter-spacing: 0.3em;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    color: var(--title-color);
}

.scrollDown:after {
    content: "";
    width: 1px;
    height: 64px;
    background: var(--title-color);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -80px;
}

.js-hidden {
    display: none;
    opacity: 0;
}

.curtain {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    z-index: var(--curtain-z-index);
    vertical-align: middle;
}

.curtain-content {
    width: var(--loader-width);
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.loader-container {
    display: flex;
    align-items: center;
    vertical-align: middle;
    flex-direction: column;
    row-gap: 15px;
    color: white;
    width: 100%;
}

.loader {
    height: 2px;
    background-color: #5583b0;
    position: relative;
    width: 100%;
    border-radius: 2px;
    color: white;
}

.loader-bar {
    height: 100%;
    width: var(--bar-width);
    background-color: white;
    position: absolute;
    border-radius: 1px;
    animation: move-horizontally 2s ease-in-out infinite alternate;
}

.loader-text {
    animation: change-opacity 1s ease-in-out infinite alternate;
}

@keyframes move-horizontally {
    0% {
        left: 0;
    }
    100% {
        left: calc(var(--loader-width) - var(--bar-width));
    }
}

.welcome-message {
    color: white;
    position: relative;
    animation: white-out 5s infinite;

    height: 4.125rem;
    line-height: 4rem;
    position: relative;
    overflow: hidden;
}

@keyframes type {
    from {
        width: 0;
    }
}

.roller {
    height: 4.125rem;
    line-height: 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1D3557;
    text-align: center;
}

.rolltext {
    position: absolute;
    top: 0;
    animation: change-text 3s infinite;
    animation-delay: 250ms;
}

@keyframes change-text {
    0% {
        top: 0;
    }
    25% {
        transform: translatey(-4rem);
    }
    50% {
        transform: translatey(-8rem);
    }
    75% {
        transform: translatey(-12rem);
    }
}

@keyframes change-opacity {
    0% {
        opacity: 0.1;
    }
    100% {
        opacity: 1;
    }
}

.curtain-header {
    position: absolute;
    left: 0;
    width: 100%;
}

.curtaint-header-title {
    animation: change-opacity 1s ease-in-out;
    color: #fff;
}

/* skills */
.skills__grid {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 760px;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.skills__item {
    position: absolute;
    width: 6rem;
    height: 6rem;
    z-index: 1;
}

.skills__item.muuri-item-dragging {
    z-index: 3;
}

.skills__item.muuri-item-releasing {
    z-index: 2;
}

.skills__item.muuri-item-hidden {
    z-index: 0;
}

.skills__item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.skills__item.h2 {
    height: 12rem;
}

.skills__item.w2 {
    width: 12rem;
}

.skills__grid-card {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    align-content: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    border-radius: 15px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    /*box-shadow: 1px 1px 5px 0 black;*/
    margin: 5px;
    border: 1px solid black;
    border-left: 4px solid black;
    box-shadow: 1px 1px 1px black;
    color: black;
    font-weight: 100;
    padding: 0;
}

.skills__item.frontEnd .skills__grid-card {
    /*  background-color: #28BBC9;
    border-left-color: var(--title-color);*/
    border-left-color: #28BBC9;
    background-color: #28BBC911;
}

.skills__item.backEnd .skills__grid-card {
    border-left-color: #2D84B3;
    background-color: #2D84B311;
}

.skills__item.db .skills__grid-card {
    /*  background-color: #26BFA2;
      border-left-color: var(--text-color);*/
    border-left-color: #26BFA2;
    background-color: #26BFA211;
}

.skills__item.soft .skills__grid-card {
    border-left-color: #ff4d5a;
    background-color: #ff4d5a11;
}

.skills__item.hard .skills__grid-card {
    border-left-color: #2639BF;
    background-color: #2639BF11;
}

.skills__item.other .skills__grid-card {
    border-left-color: #2867C9;
    background-color: #2867C911;
}

.dark-theme .skills__item.frontEnd .skills__grid-card {
    background-color: #28BBC944;
}

.dark-theme .skills__item.backEnd .skills__grid-card {
    background-color: #2D84B344;
}

.dark-theme .skills__item.db .skills__grid-card {
    background-color: #26BFA244;
}

.dark-theme .skills__item.soft .skills__grid-card {
    background-color: #ff4d5a44;
}

.dark-theme .skills__item.hard .skills__grid-card {
    background-color: #2639BF44;
}

.dark-theme .skills__item.other .skills__grid-card {
    background-color: #2867C944;
}

.skills__grid-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 8px;
}

.skills__grid-control.filter {
    max-width: 350px;
}

.skills__grid-control-field {
    display: block;
    position: relative;
    width: 100%;
    height: 4rem;
    padding: 0 1.5rem 0 5rem;
    font-size: 1.5rem;
    line-height: 4rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    z-index: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.skills__grid-control-icon, .skills__grid-select-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 5rem;
    height: 4rem;
    padding: 0 1.5rem;
    z-index: 2;
    pointer-events: none;
}

select.skills__grid-control-field {
    padding-right: 5rem;
    cursor: pointer;
}

.skills__grid-control {
    display: flex;
    position: relative;
    width: 50%;
    border: 1px solid black;
    border-radius: 5px;
}

.skills__grid-select-arrow {
    right: 0;
    padding: 1.7rem;
}

.skills__grid-control-field:focus {
    outline: 0;
}

.dark-theme .skills__item .skills__grid-card, .dark-theme .skills__grid-control, .dark-theme .skills__grid-control-field {
    color: white;
}

.dark-theme .skills__item .skills__grid-card {
    border-top-color: #828c96;
    border-bottom-color: #828c96;
    border-right-color: #828c96;
}

.dark-theme .skills__grid-control {
    border-color: #828c96;
}

.dark-theme .skills__grid-control-icon img, .dark-theme .skills__grid-control img {
    filter: invert(1);
}

.break-word {
    overflow-wrap: break-word;
    word-wrap: break-word;

    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;

    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.portfolio.fp-table {
    row-gap: 2.5rem;
}

.portfolio .fp-slidesNav {
    display: flex;
    position: initial;
}

.portfolio .fp-slidesNav ul {
    margin: auto;
}

.fp-slidesNav ul li a span {
    background: var(--first-color);
}

.fp-arrow-next, .fp-arrow-prev {
    color: var(--first-color);
    font-size: 35px;
    line-height: 35px;
}

.fp-arrow-prev {
}

.fp-arrow-next {
}

.fp-arrow {
    width: 35px;
    height: 35px;
    border-radius: 35px;
}

.fp-arrow.fp-prev, .fp-arrow.fp-next {
    border: none;
}