@font-face {
    font-family: 'Open Sans';
    src: url('../font/OpenSans-SemiBold.ttf');
}

/* ===== Variable CSS ===== */
:root {
    --header-height: 3rem;

    /* Colors */
    /* Change favorite colors */
    --hue-color: 220;

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);

    /* Font and typography */
    --body-font: 'Open Sans', sans-serif;

    /* Sizes */
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --logo-font-size: 1.1rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --skills-img-size: 50px;

    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Margines Bottom */
    --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;
    --mb-3-5: 3.5rem;
    --mb-4: 4rem;

    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-menu: 500;
    --z-modal: 1000;
}

/* ===== SOme size for small device ===== */
@media screen and (max-width: 991px) {
    :root {
        --big-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --logo-font-size: .938rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
        --smaller-font-size: .75rem;
        --skills-img-size: 43px;
    }
}

/* ===== Base ===== */
body {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Variables dark/light theme */
body.dark {
    /* HSL color mode */
    --first-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%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --footer-bg-color: var(--first-second);
    --star-rating-color: #e0c957;
}

body.light {
    /* HSL color mode */
    --first-second: hsl(var(--hue-color), 69%, 61%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --footer-bg-color: var(--first-color-alt);
    --star-rating-color: #f5ce0a;
}

body.loading {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none !important;
}

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

/* ===== Scrollbar ===== */
/* width */
::-webkit-scrollbar {
    width: .3rem;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--body-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--first-color-alt);
    border-radius: 20px;
}

/* ===== Remove input number arrow ===== */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* ===== Sections ===== */
.section {
    padding: 0 0 12rem;
}

.section_title {
    font-size: var(--h1-font-size);
}

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

.section_title,
.section_subtitle {
    text-align: center;
}

/* ===== Layout ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    transition: .3s;
}

.header.active {
    box-shadow: 0 0 1px var(--first-color-alt);
}

.nav {
    height: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}

.nav.active {
    height: 4.5rem;
}

.nav_container {
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--mb-1-5);
}

.nav_logo {
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: var(--logo-font-size);
}

.nav_logo:hover {
    color: var(--title-color);
}

.nav_menu {
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
}

.nav_list {
    display: flex;
    column-gap: 2.5rem;
}

.nav_link {
    display: flex;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav_icon {
    font-size: 1rem;
    margin-right: .5rem;
}

.nav_btns {
    display: flex;
    align-items: center;
}

.nav_toggle {
    display: none;
}

.change-theme {
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: var(--z-menu);
    transition: .5s;
}

.change-theme.hide {
    top: -10%;
}

.nav_link:hover,
.nav_toggle:hover,
.change-theme:hover {
    color: var(--first-color-alt);
}

.mobile_link {
    display: none;
}

.nav_link.active,
.mobile_nav_link.active {
    color: var(--first-color);
}

/* ===== Buttons ===== */
button {
    border: none;
    outline: none;
}

.button {
    padding: 1rem 1.5rem;
    background-color: var(--first-color);
    color: #fff;
    border-radius: .5rem;
    transition: .3s;
}

.button:hover {
    color: #fff;
    background-color: var(--first-color-alt);
    transition: .3s;
}

.btn_icon_right {
    font-size: 1.2rem;
    margin-left: var(--mb-0-5);
}

/* ========== Main Content ========== */

/* ===== Home ===== */
.home {
    height: 100vh;
    padding: 6rem 0 6rem;
}

.home_content {
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.home_social {
    margin-top: auto;
    margin-bottom: auto;
    display: grid;
    row-gap: 1.5rem;
    justify-content: center;
}

.home_social-icon {
    font-size: 1.5rem;
    color: var(--first-color);
}

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

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

.home_blob {
    width: 400px;
    fill: var(--first-color);
}

.home_blob-img {
    width: 200px;
}

.home_text {
    margin-top: auto;
    margin-bottom: auto;
}

.home_name {
    font-size: var(--big-font-size);
}

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



/* ===== About ===== */

.about_img {
    text-align: center;
}

.about_img img {
    width: 400px;
    border-radius: .5rem;
    margin-bottom: var(--mb-1-5);
}

.about_description {
    text-align: left;
    margin-top: var(--mb-1);
}

.about_info {
    margin-top: var(--mb-3);
    text-align: center;
}

.about_info-title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.about_info-name {
    font-size: var(--smaller-font-size);
}

/* ===== Personal Journey ===== */

.personal_journey {
    margin-top: 5.5rem;
}

.journey_tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--mb-2);
}

.journey_button {
    margin: 0 var(--mb-2);
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
}

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

.journey_icon {
    font-size: 1.5rem;
    margin-right: var(--mb-0-5);
}

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

.journey_subtitle {
    font-size: var(--small-font-size);
}

.journey_calendar {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-top: var(--mb-0-75);
    margin-bottom: var(--mb-1);
}

.journey_calendar i {
    margin-right: 5px;
}

.journey_lines {
    padding-left: 6%;
}

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

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

.journey_right {
    padding-left: 3%;
}

.journey_left {
    padding-left: 19%;
}

.journey_content {
    display: none;
}

.journey_content.journey_active {
    display: block;
}

.journey_button.journey_active {
    color: var(--first-color);
}

/* ===== CV ===== */
.cv {
    margin-top: var(--mb-3);
    display: flex;
    justify-content: center;
}

/* ===== Skills ===== */
.skills_content {
    margin-bottom: var(--mb-2);
}

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

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

.skills_title {
    font-size: var(--h3-font-size);
    margin-bottom: 2px;
}

.skills_data {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.skills_data-img {
    width: var(--skills-img-size);
}

.skills_data-content {
    margin-left: 1rem;
}

.skills_name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: .3rem;
}

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

.skills_rate {
    margin-top: .3rem;
    font-size: var(--smaller-font-size);
}

.skills_rate i {
    margin: 0 1px 0 1px;
    color: var(--star-rating-color);
}

.skills_rate span {
    margin-left: 3px;
    color: var(--text-color);
}


/* ===== Services ===== */
.services {
    margin-top: -4rem;
}

.services_content {
    height: 470px;
    background-color: var(--container-color);
    padding: 3.5rem .5rem 3rem 1.5rem;
    margin: 1rem 0;
    border-radius: .25rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .15);
    transition: .3s;
}

.services_content:hover {
    box-shadow: 0 9px 17px rgba(0, 0, 0, .3);
}

.services_icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

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

.services_subtitle {
    font-size: var(--small-font-size);
}

.services_data {
    margin-top: var(--mb-3-5);
    padding-left: 0;
}

.services_list {
    display: flex;
}

.services_data-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-5);
    margin-top: .30rem;
}

/* ===== Portfolio ===== */
.portfolio_container {
    overflow: initial;
}

.portfolio-row {
    margin: 2rem 0;
}

.portfolio_img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio_img img {
    width: 400px;
    height: 215px;
    border: 1px solid var(--first-color);
    border-radius: .5rem;
}

.portfolio_data {
    padding-top: 2rem;
}

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

.portfolio_title.tech {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.portfolio_description span {
    margin-left: 2rem;
}

.tech_title {
    color: var(--first-color);
}

.tech_icon {
    margin-right: .3rem;
}

.tech_data {
    margin-top: .8rem;
    padding-left: 1.7rem;
}

.tech_list {
    display: flex;
    margin-top: -.2rem;
}

.tech_list-icon {
    margin-top: 4px;
    margin-right: .4rem;
    color: var(--first-color);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper-portfolio-icon {
    font-size: 3rem;
    color: var(--first-color);
}

.swiper-button-prev {
    left: 3rem;
}

.swiper-button-next {
    right: 3rem;
}

/* .swiper-container-horizontal .swiper-pagination-bullets {
    bottom: -1rem;
} */

.swiper-pagination-bullet-active {
    background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
    outline: none;
}

/* ===== Contact Me ===== */
.section.contact {
    padding-bottom: 6rem;
}

#contact2 {
    height: 665px;
    overflow: hidden;
}

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

.contact_information {
    display: flex;
    margin-bottom: var(--mb-2);
}

.contact_icon {
    font-size: 1.5rem;
    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);
}

.direct-message {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.direct-message span {
    font-size: var(--small-font-size);
}

.input_group {
    background-color: var(--input-color);
    border-radius: .5rem;
    padding: .75rem 1rem .25rem;
    margin-bottom: var(--mb-1-5);
}

.input_group.invalid {
    border: 1px solid #cb4343;
}

.input_label {
    font-size: var(--smaller-font-size);
    color: var(--title-color);
}

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

textarea {
    height: 150px;
    resize: none;
}

.send-status {
    display: none;
}

.bot-chat {
    display: flex;
    top: 0;
    width: 40px;
}

.talk-bubble {
    display: inline-block;
    position: relative;
    top: -25px;
    left: 70px;
    width: 0;
    height: 0;
    overflow: hidden;
    background-color: var(--input-color);
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
    transition: .5s;
}

.talk-bubble:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: -20px;
    right: auto;
    top: 0px;
    bottom: auto;
    border: 22px solid;
    border-color: var(--input-color) transparent transparent transparent;
}

.talktext {
    padding: .75rem 1rem 0 1rem;
    text-align: left;
    line-height: 1.5em;
    font-size: var(--normal-font-size);
    width: 0;
    height: 0;
    overflow: hidden;
    transition: width .5s;
}

.talktext.sending {
    color: var(--text-color);
}

.talktext.sending p:after {
    content: ' .';
    animation: dots 1s infinite;
}

@keyframes dots {

    0%,
    20% {
        color: rgba(0, 0, 0, 0);
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    40% {
        color: white;
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    60% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 rgba(0, 0, 0, 0);
    }

    80%,
    100% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 white;
    }
}

.talktext.success {
    color: #43cb5a;
}

.talktext.failed {
    color: #cb4343;
}

.talk-bubble.show {
    width: 300px;
    height: auto;
    overflow: inherit;
}

.talktext.show {
    width: 300px;
    height: 75px;
}

.send-status-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* ===== Animate Elements */
/* .row {
    overflow: hidden;
} */

.animate-top {
    opacity: 0;
    transform: translate(0, -50px);
    transition: 1s;
}

.animate-bottom {
    opacity: 0;
    transform: translate(0, 50px);
    transition: 1s;
}

.animate-right {
    opacity: 0;
    transform: translate(50px, 0);
    transition: 1s;
}

.animate-left {
    opacity: 0;
    transform: translate(-50px, 0);
    transition: 1s;
}

.animate-center {
    opacity: 0;
    transform: translate(0, 0);
    transition: 1s;
}

.animate-top.show,
.animate-bottom.show,
.animate-left.show,
.animate-right.show,
.animate-center.show {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Footer ===== */
.footer {
    margin-top: var(--mb-1);
    padding: 3rem 0 1.5rem;
    background-color: var(--footer-bg-color);
}

.footer_bg {
    background-color: var(--footer-bg-color);
    padding: 2rem 0 3rem;
}

.footer_titles {
    margin-bottom: var(--mb-3);
}

.footer_title {
    font-size: var(--h1-font-size);
    color: #fff;
}

.footer_subtitle {
    font-size: var(--small-font-size);
    color: #fff;
}

.footer_links {
    margin-bottom: var(--mb-3);
}

.footer_link {
    text-align: center;
    margin-bottom: var(--mb-1);
}

.footer_link a {
    color: #fff;
}

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

.footer_socials {
    display: flex;
    justify-content: right;
    margin-bottom: var(--mb-3);
}

.footer_social {
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
    color: #fff;
}

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

.footer_copy {
    font-size: var(--smaller-font-size);
    text-align: center;
    color: #fff;
    margin-top: var(--mb-1-5);
}

/* ===== Scroll up ===== */
.scrollup {
    position: fixed;
    right: 4rem;
    bottom: -10%;
    background-color: var(--first-color);
    opacity: .7;
    padding: .5rem .8rem;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
}

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

.scrollup_icon {
    font-size: 1.3rem;
    color: #fff;
    padding-top: 2px;
}

.scrollup.show {
    bottom: 5rem;
}

@media screen and (max-width: 400px) {
    .talk-bubble.show {
        width: 240px;
    }

    .talktext.show {
        width: 240px;
        height: 100px;
    }
}

@media screen and (max-width: 600px) {
    .home_text {
        padding: 0 1.5rem;
    }

    .about_container {
        padding: 0 1rem;
    }

    .skills_container {
        padding: 0 2rem;
    }

    .services_container {
        padding: 0 1rem;
    }

    .portfolio_container {
        padding: 0 2rem;
    }

    .tech_content {
        padding: 0 !important;
    }

    .portfolio_img img {
        width: 360px;
        height: 195px;
    }

    .swiper-portfolio-icon {
        font-size: 2rem;
    }

    .swiper-button-prev {
        left: -.5rem;
    }

    .swiper-button-next {
        right: -.5rem;
    }
}

@media screen and (min-width: 601px) and (max-width: 767px) {

    .portfolio_img img {
        width: 380px;
        height: 215px;
    }

    .swiper-portfolio-icon {
        font-size: 2.5rem;
    }

    .swiper-button-prev {
        left: -1.7rem;
    }

    .swiper-button-next {
        right: -1.7rem;
    }
}

@media screen and (max-width: 767px) {
    body {
        margin: 0 0 var(--header-height) 0;
    }

    .header {
        bottom: 0;
        top: initial;
        box-shadow: 0 -1px 5px var(--first-second);
        padding: 0;
    }

    .header.active {
        box-shadow: 0 -1px 5px var(--first-second);
    }

    .nav {
        height: var(--header-height);
    }

    .nav_container {
        /* max-width: 1100px; */
        margin: 0;
        padding: 0;
    }

    .nav.active {
        height: var(--header-height);
    }

    .nav_menu {
        display: none;
    }

    .mobile_link {
        display: inline;
        width: 100%;
        height: 100%;
    }

    .mobile_nav_list {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .mobile_nav_item {
        padding: 0;
    }

    .mobile_nav_link {
        display: flex;
        align-items: center;
        font-size: var(--small-font-size);
        color: var(--title-color);
        font-weight: var(--font-medium);
        padding: 1rem;
    }

    .nav_toggle {
        display: inline;
        font-size: 1.2rem;
        cursor: pointer;
        color: var(--title-color);
        margin-left: var(--mb-1-5);
    }

    .change-theme {
        top: 1rem;
        left: 1rem;
        font-size: 1.2rem;
    }

    .nav_icon {
        font-size: 1.2rem;
    }

    .home {
        padding-top: 3rem;
    }

    .journey_lines {
        padding-left: 3%;
    }

    .journey_left {
        padding-left: 4%;
    }

    #contact2 {
        height: 765px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .home {
        padding-top: 9rem;
    }

    .journey_right {
        padding-left: 5%;
    }

    .journey_left {
        padding-left: 7%;
    }

    .portfolio_container {
        padding: 0 1.5rem;
    }

    .swiper-button-prev {
        left: -1.5rem;
    }

    .swiper-button-next {
        right: -1.5rem;
    }
}

@media screen and (max-width: 991px) {
    .footer_link {
        text-align: left;
    }

    .footer_socials {
        justify-content: left;
    }

    .scrollup {
        right: 1rem;
        padding: .3rem .6rem;
    }

    .animate-top {
        opacity: 0;
        transform: translate(0, 50px);
        transition: 1s;
    }

    .animate-right {
        opacity: 0;
        transform: translate(0, 50px);
        transition: 1s;
    }

    .animate-left {
        opacity: 0;
        transform: translate(0, 50px);
        transition: 1s;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .journey_left {
        padding-left: 14%;
    }

    .swiper-button-prev {
        left: -.3rem;
    }

    .swiper-button-next {
        right: -.3rem;
    }

    .scrollup {
        right: 1rem;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .journey_left {
        padding-left: 16%;
    }

    .swiper-button-prev {
        left: 0;
    }

    .swiper-button-next {
        right: 0;
    }

    .scrollup {
        right: 2rem;
    }
}