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

/* Variable CSS */
:root {
    --header-height: 3em;
    --nav-width: 324px;

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

    /* colors */
    --first-color: #cc4b2c;
    --first-color-dark: #662616;
    --first-color-darker: #290f09;
    --text-color: #54423d;
    --first-color-light: #eae7e6;
    --first-color-lighter: #fffafa;

    /* 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: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Margins */
    --margin-1: .5rem;
    --margin-2: 1rem;
    --margin-3: 1.5rem;
    --margin-4: 2rem;
    --margin-5: 2.5rem;

    /* z-index */
    --z-index: 100;
}


@media screen and (min-width: 768px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }

}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    background-color: var(--first-color-lighter);
    color: var(--text-color);
    line-height: 1.6;
}

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

h3 {
    font-weight: var(--font-semi-bold);
}

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

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

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

/* CSS Class */
.section {
    padding: 4rem 0 2rem;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    margin-bottom: var(--margin-3);
    text-align: center;
}

.section-subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color-darker);
    text-align: center;
    font-weight: var(--font-bold);
    margin-bottom: .25rem;
}

/* Layout */
.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--margin-2);
    margin-right: var(--margin-2);
}

.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-index);
    background-color: var(--first-color-lighter);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* nav */
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    height: 100vh;
    padding: 3rem;
    display: flex;
    align-items: center;
    background-color: var(--first-color);
    transition: .5s;
}

.nav_close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--first-color-dark);
    cursor: pointer;
}

.nav_item {
    margin-bottom: var(--margin-4);
}

.nav_link {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--first-color-lighter);
    font-weight: var(--font-bold);
    transition: .3s;
}

.nav_link:hover {
    color: var(--text-color);
}
.nav_toggle {
    color: var(--first-color-dark);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Show Menu */
.show {
    left: 0;
}

/* active menu  */
.active {
    color: var(--text-color);
}

/* ========== home ========== */
.home_container {
    height: calc(100vh - var(--header-height));
    align-items: center;
}

.home_data {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: max-content;
    text-align: center;
}

.home_img {
    padding-top: 1.3rem;
    padding-left: .8rem;
    width: 160px;
    height: 160px;
    background-color: var(--first-color);
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--margin-2);
}

.home_img img {
    width: 155px;
}

.home_title {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}

.home_profession {
    font-size: var(--small-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--margin-5);
}

.home_social {
    margin-bottom: 5rem;
}

.home_social-link {
    display: inline-flex;
    background-color: var(--first-color);
    color: var(--first-color-lighter);
    font-size: 1.1rem;
    border-radius: 50%;
    padding: .40rem;
    margin: 0 var(--margin-1);
    transition: .3s;
}

.home_social-link:hover { 
    background-color: var(--first-color-dark);
}

.home_button{
    width: 100%;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--first-color-lighter);
    padding: 1rem 2rem;
    font-weight: var(--font-semi-bold);
    border-radius: .5rem;
    transition: .3s;
}

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

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

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

/* ========== About ========== */
.about_container {
    row-gap: 2rem;
}

.about_data {
    text-align: center;
}

.about_description {
    margin-bottom: var(--margin-4);
}

.about_img {
    width: 150px;
    border-radius: .5rem;
    margin: 0 auto;
}

.about_information {
    margin-bottom: var(--margin-4);
}

.about_information-title {
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--margin-2);
}

.about_information-data {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    margin-bottom: var(--margin-3);
}

.about_information-icon {
    font-size: 1.5rem;
    color: var(--first-color);
    margin-right: var(--margin-4);
}

.about_information-subtitle {
    display: block;
    font-weight: var(--font-semi-bold);
}

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

/* ========== Skills ========== */
.skills_container {
    row-gap: 2rem;
}

.skills_subtitle {
    font-size: var(--h3-font-size);
    color: var(--first-color-dark);
    margin-bottom: var(--margin-2);
}

.skills_data {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 var(--margin-2);
    margin-bottom: var(--margin-4);
}

.skills_name {
    text-transform: uppercase;
}

.skills_bar {
    position: absolute;
    bottom: -.75rem;
    height: .25rem;
    background-color: var(--first-color);
}

.skills_html {
    width: 75%;
}

.skills_javascript {
    width: 80%;
}

.skills_angular {
    width: 80%;
}

.skills_api {
    width: 80%;
}

.skills_python {
    width: 80%;
}

.skills_java {
    width: 90%;
}

.skills_cSharp {
    width: 100%;
}

.skills_node {
    width: 80%;
}

/* ========== Education ========== */
.education_container {
    row-gap: 2rem;
}

.education_content {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
}

.education_year, .education_race {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
}

.education_university, .education_major {
    display: block;
    font-size: var(--smaller-font-size);
}

.education_year, .education_university {
    text-align: right;
}

.education_time {
    padding: 0 1rem;
    justify-self: center;
}

.education_rounder {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--first-color);
    border-radius: 50%;
}

.education_rounder::before {
    content: '';
    position: absolute;
    transform: translate(-4px, -4px);
    width: 20px;
    height: 20px;
    border: 1px solid var(--first-color);
    border-radius: 50%;
}

.education_line {
    display: block;
    height: 90%;
    width: 2px;
    background-color: var(--first-color);
    transform: translate(5px, -4px);
}


/* ========== Services ==========*/
.services_container {
    row-gap: 2rem;
}

.services_content {
    padding: 1.5rem .5rem;
    border: 2px solid var(--first-color);
    border-radius: .5rem;
    text-align: center;
}

.services_icon {
    font-size: 2rem;
    padding: .5rem;
    background-color: var(--first-color-lighter);
    border-radius: 50%;
    margin-bottom: var(--margin-2);
}

.services_title {
    font-size: 1.25rem;
    color: var(--first-color-dark);
    margin-bottom: var(--margin-1);
}

.services_content, .services_icon, .services_description, .services_title {
    transition: .5s;
}

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

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

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

/* ========== Projects ==========*/
.projects {
    background-color: var(--first-color);
    padding-bottom: 0;
}

.project_container {
    row-gap: 2rem;
}

.project_data {
    text-align: center;
}

.project_title, .project_description {
    margin-bottom: var(--margin-4);
}

.project_img {
    width: 220px;
    justify-self: center;
}