/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

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

    /*========== Colors ==========*/
    --gu-blue: #041e42;
    --pan-280: #012169;
    --pan-293: #003da5;
    --pan-306: #00b5e2;
    --blue-earth: #375470;
    --gu-gray: #63666a;
    --cool-gray: #bbbcbc;
    --gu-gold: #85714d;
    --pan-1205: #f8e08e;

    --subtext-color: #375470;

    --text-color-light: #a4a1a3;
    --container-color: #fafafa;
    --container-color-alt: #d6d2c4;
    --body-color: #fff;

    /*===== Font and typography =====*/
    --body-font: "Poppins", sans-serif;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

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

    /*===== Margins =====*/
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;

    /*===== z index =====*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*====== BASE ======*/
*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
ul,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--gu-blue);
    font-weight: var(--font-medium);
}
h2,
h3 {
    color: var(--gu-gold);
}

ul {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    transition: 0.4s ease-in;
    color: var(--subtext-color);
}

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

/*========== CLASS CSS ==========*/
.section {
    padding: 1.5rem 0;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--gu-blue);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    text-align: center;
    margin-bottom: var(--mb-3);
}

/*========== LAYOUT ==========*/
.container {
    max-width: 968px;
    width: calc(100% - 3rem);
    margin-left: var(--mb-3);
    margin-right: var(--mb-3);
    z-index: var(--z-fixed);
}

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

.l-flex {
    display: flex;
}

.header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--cool-gray);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}
/*========== NAV ==========*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* bottom: var(--header-height); */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        padding: 2rem 1.5rem;
        background-color: var(--cool-gray);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        border-radius: 1rem 1rem 0 0;
        z-index: 0;
        transition: 0.6s ease-in-out;
    }
}

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

.nav__logo {
    color: var(--gu-blue);
}

.nav__toggle {
    color: var(--gu-gold);
    font-size: 1.2rem;
    cursor: pointer;
}

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

.nav__item {
    text-align: center;
}

.nav__icon {
    font-size: 1.2rem;
    margin-bottom: var(--mb-1);
    color: var(--gu-blue);
}

.nav__link {
    display: flex;
    flex-direction: column;
    font-size: var(--smaller-font-size);
    color: var(--gu-blue);
    font-weight: var(--font-medium);
}

.nav__item:hover .nav__link,
.nav__item:hover .nav__icon {
    color: var(--gu-gold);
    transition: 0.4s;
}

.nav__link:hover {
    color: var(--gu-gold);
}

/* Show menu */
.show-menu {
    bottom: var(--header-height);
}

/* Active menu link */
.active-link {
    color: var(--gu-gold);
    transition: 0.4s;
}

/*========== HOME ==========*/
.return__link {
    display: block;
    margin: 1rem;
    text-decoration: underline;
}
.return__link:hover {
    color: var(--sec-color);
    text-decoration: overline;
}

#bottom-return {
    margin-bottom: 5rem;
}

.home {
    display: block;
    position: relative;
}
.home__container {
    gap: 3rem;
}

.home__data {
    gap: 1rem;
    text-align: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
}
.home__img {
    width: 150px;
    height: 200px;
    justify-self: center;
    margin: var(--mb-2) 0;
}

.home__name {
    font-size: var(--h1-font-size);
    margin: 1rem 0;
}

.home__title {
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-1);
}

#download-button {
    display: inline-block;

    width: fit-content;
    margin: var(--mb-3) auto 0 auto;
    padding: 1rem 2rem;
    border: 3px solid #fff;

    background-color: var(--gu-gold);
    color: #fff;

    border-radius: 10px;
    transition: 0.5s ease-in-out;
    font-weight: var(--font-medium);
    margin-top: var(--mb-3);
}

#download-button:hover {
    background-color: #fff;
    color: var(--gu-gold);

    border: 3px solid var(--gu-gold);
}

/*=========== INFO ===========*/
.info {
    margin: 0 auto;
    gap: 2rem;
    grid-template-columns: repeat(2, auto);
    justify-items: center;
}

.info__item {
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    row-gap: 1rem;

    font-size: var(--small-font-size);
    color: var(--subtext-color);
}

.info__item:hover {
    color: var(--gu-gold);
}

.info__icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/*========== PROFILE ==========*/
.profile {
    padding-top: 0;
    width: 90%;
    margin: 0 auto;
}
.profile__description {
    text-align: left;
}
/*========== SOCIAL ==========*/
.social__container {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.social__link {
    row-gap: 0.7rem;
}

.social__link:hover {
    color: var(--gu-gold);
}

/*=== EDUCATION AND EXPERIENCE ===*/

.edu__container {
    width: fit-content;
    margin: 0 auto;
}

.edu__content {
    display: flex;
}

.edu__data {
    padding: 0.5rem 0 0 0.2rem;
}

.edu__year {
    padding: 0.5rem;
    margin-right: 1rem;
    font-size: var(--smaller-font-size);

    font-weight: var(--font-semi-bold);

    color: var(--gu-gold);
}

.edu__degree {
    color: var(--blue-earth);
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
}

.edu__school {
    font-size: var(--small-font-size);
    color: var(--gu-blue);
}

.exp__time {
    padding-right: 1rem;
}

.exp__rounder {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--gu-gray);
    border-radius: 50%;
    margin-top: 0.25rem;
}

.exp__line {
    display: block;
    width: 2px;
    height: 125%;
    background-color: var(--gu-gray);
    transform: translate(7px, -12px);
}
.exp__line.last-line {
    height: 90%;
}

.edu__data,
.exp__data {
    gap: 0.5rem;
}

.exp__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
}

/* .edu__span {
    color: var(--gu-gray);
} */

.exp__company {
    font-weight: var(--font-semi-bold);
    font-size: var(--small-font-size);
    color: var(--gu-blue);
}

.edu__school,
.edu__degree,
.edu__year {
    margin-bottom: 0.5rem;
}

.exp__content {
    display: flex;
}

.exp__year {
    color: var(--gu-gray);
}

.exp__item {
    line-height: 1.5rem;
    padding: 0.3rem 0;
    list-style-type: square;
}

/*=== SKILLS AND LANGUAGES ===*/
.skills__content {
    width: 98%;
    margin: 3rem auto 0 auto;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 0;
}
.skill__name {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-3);
}

.skill__name,
.skills__icon {
    color: var(--blue-earth);
}

.skills__icon {
    font-size: 2rem;
    margin-right: 1rem;
}

/*===== CERTIFICATIONS =====*/
.cert {
    margin-bottom: 160px;
}

.cert__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
}
.cert__subtitle {
    font-size: var(--h3-font-size);
    color: var(--blue-earth);
    margin-bottom: 1rem;
}

/*===== REFERENCES =====*/
.ref__content {
    gap: 0.25rem;
}

.ref__subtitle {
    color: var(--subtext-color);
}

.ref__subtitle,
.ref__contact {
    font-size: var(--smaller-font-size);
}

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

/*===== INTERESTS =====*/
.int__container {
    grid-template-columns: repeat(3, 1fr);
}

.int__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.int__icon {
    font-size: 1.5rem;
    color: var(--text-color-light);
}

/* Scroll top */
.scrolltop {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
    font-size: 2rem;
    background-color: var(--gu-gold);
    color: var(--gu-blue);
    border-radius: 0.4rem;
    z-index: var(--z-tooltip);
    transition: 0.7s ease-in-out;
    visibility: hidden;
}

.scrolltop:focus {
    background-color: var(--gu-blue);
    color: #fff;
}

/* scrolllTop toggled class */
.show-scroll {
    visibility: visible;
    bottom: 5rem;
}

/*===== MEDIA QUERIES =====*/

/* For small devices, menu two columns */
@media screen and (max-width: 320px) {
    .nav__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.5rem;
    }
}

@media screen and (max-width: 450px) {
    .info {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 600px) and (max-width: 967px) {
    .info {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Classes modified for large screen size */
@media screen and (min-width: 968px) {
    body {
        margin: 3rem 0;
    }

    .container {
        margin: 0 auto;
    }
    .header,
    .scrolltop {
        display: none;
    }

    .resume {
        display: grid;
        grid-template-columns: 0.6fr 1fr;
        background-color: var(--container-color);
        box-shadow: 0 0 8px rgba(13, 12, 12, 0.15);
    }
    .resume__left {
        background-color: var(--container-color-alt);
        //background-color: var(--gu-blue);
    }
    .resume__left,
    .resume__right {
        padding: 0 1.5rem;
    }
    .resume__right {
        height: min-content;
    }

    .section-title,
    .profile__description {
        text-align: initial;
    }

    .home__container {
        gap: 1.5rem;
    }

    #download-button {
        margin: 0 auto 1rem auto;
    }

    .home__data {
        margin-bottom: 1rem;
    }

    .info {
        margin: 0;
        grid-template-columns: 1fr;
        justify-content: start;
        justify-items: start;
    }

    .info__item {
        flex-direction: row;
        align-items: start;
        gap: 0.5rem;
        margin: 0;
    }

    .social__container {
        gap: 1.5rem;
    }

    .social__link {
        margin: 0;
        flex-direction: row;
    }

    .profile {
        width: 100%;
    }

    .profile__description {
        color: var(--blue-earth);
        padding: 0.7rem;
    }

    .edu__data {
        padding: 0;
    }

    .edu__degree {
        color: var(--gu-blue);
        font-size: var(--h3-font-size);
    }

    .edu__school {
        color: var(--blue-earth);
    }

    .edu__year {
        padding: 0.3rem;
        margin-right: 0.4rem;
    }

    .edu__year,
    .profile__description {
        width: fit-content;

        background-color: #fff;
        border-radius: 10px;
    }

    .skill__name,
    .skills__icon {
        color: var(--blue-earth);
    }

    .cert {
        margin-bottom: 1rem;
    }
}
