/* GLOBAL */
@font-face {
    font-family: "Space Grotesk";
    src: url(./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf) format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Space Grotesk";
    src: url(./assets/fonts/SpaceGrotesk-SemiBold.ttf) format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: "Poppins";
    src: url(./assets/fonts/Poppins-Regular.ttf) format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Poppins";
    src: url(./assets/fonts/Poppins-Bold.ttf) format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: "Poppins";
    src: url(./assets/fonts/Poppins-Italic.ttf) format("truetype");
    font-weight: normal;
    font-style: italic;
}

:root {
    --test-outline: red 2px solid;
    --test-outline-2: green 2px solid;
    --card: #151515;
    --background: #222222;
    --text-grey: #C3C3C3;
    --highlight: #4affee;
    --text: #ffffff;
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-32: 2rem;
    --fs-48: 3rem;
    --fs-64: 4rem;
    --container: 69.375rem; 
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --highlight-transition: 300ms ease-in-out;
    --font-extra-bold: 900;
    --font-bold: 700;
    --font-semi-bold: 500;
    --btn-padding-regular: 8px 18px;
    --line-height-heading: 3.125rem;
    --hero-image-size: 17.5rem;
    --box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    --highlight-shadow: 0 8px 16px 0 rgba(161, 160, 160, 0.2);
    --border-default: 2px solid transparent;
}

html {
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background-color: var(--background);
    font-size: var(--fs-16);
    line-height: 1.39;
}

.wrapper {
    width: calc(100% - 2rem);
    max-width: var(--container);
    margin-inline: auto;
}

@media (min-width: 37.5em){ /* 600px */
    .wrapper {
        width: calc(100% - 3.75rem);
    }
}

a, button {
    transition: color var(--highlight-transition);
    cursor: pointer;
}

a{
    font-family: var(--font-body);
}
a:hover {
    color: var(--highlight);
}

.visually-hidden {
  position: absolute;
  left:     -10000px;
  top:      auto;
  width:    1px;
  height:   1px;
  overflow: hidden;
}

.section{
    margin: 5rem 0;
}

main {
    min-height: 100vh;
    padding-bottom: 8rem;
}


/* HEADER---------------------------------------------------------------- */
.header {
    height: 4rem;
    display: flex;
    align-items: center;
    background-color: var(--card);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 20px;
}

nav ul {
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li{
    height: 50px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-toggle {
    font-size: 1.5rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
}

.header_home {
    font-size: var(--fs-24);
    font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
    font-family: var(--font-heading);
    margin-right: auto;
    flex: 1 0 100%;
    /* outline: var(--test-outline); */
}

.menu.active {
    display: flex;
}

.menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex: 2;
    /* outline: var(--test-outline-2); */
}

.menu a, .sidebar a {
    text-decoration: none;
    font-family: var(--font-body);
}

.menu a:hover {
    font-weight: var(--font-bold);
}

@media (min-width: 37.5em){
    nav {
        justify-content: flex-start;
        text-align: left;
    }

    .header_home {
        flex: 1;
        margin-inline-end: auto;
    }

    .nav-toggle {
        display: none;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: var(--card);
    box-shadow: -10px 0 10px var(--background);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar-item{
        display: none;
    }

@media(max-width: 800px){
    .menu-item {
        display: none;
    }

    .sidebar-item{
        display: block;
    }
}

/* BODY----------------------------------------------------------------- */

.hero{
    margin-top: 3rem;
}

#hero{
    display: flex;
}

#hero h1{
    font-family: var(--font-heading);
    font-size: var(--fs-48);
    line-height: var(--line-height-heading);
}

#hero h1 span{
    color: var(--highlight);
}

#hero p{
    font-family: var(--font-body);
    font-size: var(--fs-16);
    font-weight: normal;
    margin-top: 1rem;
}

#hero-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 6rem;
}

#hero-img{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-img img{
    width: var(--hero-image-size);
    height: var(--hero-image-size);
    margin-right: 2rem;
}

.hero-btn{
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

button, .white-btn{
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: var(--fs-16);
    padding: var(--btn-padding-regular);
}

.white-btn{
    display: inline-block;
    background-color: var(--text);
    color: var(--background);
    border: var(--border-default);
    text-decoration: none;
}
.white-btn:hover{
    background-color: var(--background);
    color: var(--text);
    border: 2px solid var(--text);
    font-weight: var(--font-bold);
}

.dark-btn{
    background-color: var(--background);
    color: var(--text);
    border: 2px solid var(--text);
}
.dark-btn:hover{
    background-color: var(--text);
    color: var(--background);
    font-weight: var(--font-bold);
}

.divider{
    margin: 2rem 15rem 0;
}
/* HERO-END---------------------------- */

.topic{
    font-family: var(--font-heading);
    font-size: var(--fs-48);
    margin-bottom: 1rem;
}

.skill{
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-heading{
    font-family: var(--font-heading);
    font-size: var(--fs-24);
    margin: 1rem 0;
}

.logo-box{
    display: flex;
    align-items: center;
    border: solid 3px var(--card);
    border-radius: 40px;
    background-color: var(--card);
    gap: 2rem;
    padding: 0.5rem 1.5rem;
}
/* SKILL-END---------------------------- */

.section-top{
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.section-top a{
    margin-left: auto;
}

.contact-btn{
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: none;
    border-radius: 0;
    border-bottom: 2px solid var(--highlight);
    transition: var(--highlight-transition);
    padding: 3px;
    text-decoration: none;
}
.contact-btn:hover{
    color: var(--highlight);
}

.projects{
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.card{
    width: 35%;
    box-shadow: var(--box-shadow);
}
.card:hover{
    box-shadow: var(--highlight-shadow);
}

.card img{
    display: block;
    border-radius: 5px 5px 0 0;
}

.card h4{
    font-family: var(--font-heading);
    font-size: var(--fs-20);
    margin-top: 2px;
}

.card p{
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: var(--text-grey);
}

.card-text{
    display: flex;
    flex-direction: column;
    background-color: var(--card);
    padding: 0.625rem 1rem;
    border-radius: 0 0 5px 5px;
    height: calc(100% - 200px);
}

.card-text a{
    font-size: var(--fs-14);
    margin: auto auto 0 0;
}

.languages{
    display: flex;
    gap: 2rem;
}

.description{
    margin: 0.625rem 0;
}
/* PROJECT-END---------------------------- */

#degree{
    display: flex;
    flex-direction: column;
}

.degree{
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    background-color: var(--card);
    border-radius: 5px;
    padding: 1rem;
}

.degree-info h3{
    font-family: var(--font-heading);
    font-size: var(--fs-24);
    margin-bottom: 1rem;
}

.degree-info p{
    font-family: var(--font-body);
    font-size: var(--fs-18);
    color: var(--text-grey);
}

.dates{
    font-style: italic;
}

.degree img{
    margin-left: auto;
}

.school{
    width: 7.5rem;
    height: 7.5rem;
}
/* EDUCATION-END---------------------------- */

.title-btn{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0 2rem 0;
}

#myCV{
    width: 100%;
    height: 60rem;
}

.title-btn a{
    margin: auto auto 0 0;
}
/* RESUME-END---------------------------- */

.mid-div{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

.mid-div img{
    margin-bottom: 1rem;
}

.mid-div h2{
    font-family: var(--font-heading);
    font-size: var(--fs-48);
    margin: 1rem 0;
}

.mid-div p{
    font-family: var(--font-body);
    font-size: var(--fs-20);
}
/* MAINTENANCE-END---------------------------- */

/* FOOTER----------------------------------------------------------------- */

footer{
    background-color: var(--card);
    padding: 2rem;
    margin-top: auto;
}

footer h3{
    font-family: var(--font-heading);
    font-size: var(--fs-24);
    margin-bottom: 0.5rem;
}

footer .wrapper{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mail{
    display: flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}
.mail:hover{
    color: var(--highlight);
}

.mail p{
    font-family: var(--font-body);
    font-size: var(--fs-16);
}

.socials{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.socials a{
    color: var(--text);
}
.socials a:hover{
    color: var(--highlight);
}

#unknown{
    visibility: hidden;
}
