@charset "UTF-8";

:root {
    --main-color: rgb(109, 199, 255);

    --icon-filter: invert(60%) sepia(80%) saturate(650%) hue-rotate(170deg) brightness(105%) contrast(105%);
    --icon-filter-hover: invert(55%) sepia(69%) saturate(517%) hue-rotate(167deg) brightness(98%) contrast(95%);

    --menu-link-hover: #64abca;
    --header-icon-filter: invert(1);

    --main-track-backgroud-color: white;
    --h1-text-color: white;
    --common-text-color: black;
    --background: #e4f2f8;
    --backgorund-menu: rgba(109, 199, 255, 0.873);
}

body.dark-mode {
    --main-color: #37638a;
    --background: rgb(33, 33, 48);
    --main-track-backgroud-color: #242933;
    --h1-text-color: #000000;
    --common-text-color: white;
    --backgorund-menu: rgba(33, 33, 48, 0.9);

    /* ícones no tom de main-color */
    --icon-filter: invert(62%) sepia(17%) saturate(500%) hue-rotate(160deg) brightness(95%) contrast(90%);
    --icon-filter-hover: invert(62%) sepia(17%) saturate(500%) hue-rotate(160deg) brightness(110%) contrast(90%);

    /* header continua diferente */
    --header-icon-filter: invert(0%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);

    --menu-link-hover: #3f8bbf;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;

    background-color: var(--background);
}

body img {
    user-select: none;
}

body p {
    color: var(--common-text-color);
}

/* LIGHTBOX */

#lightbox {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 0;
    left: 0;

    height: 100%;
    width: 100%;

    cursor: pointer;

    background-color: rgba(0, 0, 0, 0.8);

    z-index: 9999;
}

#lightbox img{
    max-height: 95vh;
    max-width: 95vw;

    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

    cursor: default;
}

/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 4%;

    position: sticky;
    top: 0;
    z-index: 3;

    background-color: var(--main-color);
}

header > a {
    text-decoration: none;
}

header > a > h1 {
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 24px;

    color: var(--h1-text-color);
}

header > a > h1 > img {
    width: 28px;

    filter: var(--header-icon-filter);
}

/* MENU */
#menu {
    position: relative;
    cursor: pointer;
}

#menu > ul{
    display: flex;
    gap: 10px;
    list-style: none;
}

#menu > a {
    text-decoration: none;
}

#burger img {
    height: 35px;
    width: 35px;

    filter: var(--header-icon-filter);
}

#menuOptions {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 201%;
    right: 65%;

    padding: 10px;

    border-radius: 12px;

    background-color: var(--backgorund-menu);
}

#menuOptions img {
    height: 15px;
    width: 15px;

    filter: invert(1);
}

#menuOptions li {
    list-style: none;
    padding: 8px;
}

#menuOptions a {
    display: flex;
    align-items: center;
    gap: 5px;

    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.link {
    border-radius: 6px;

    user-select: none;
}

.link:hover{
    background-color: var(--menu-link-hover);
}

#theme img {
    transition: 0.3s ease;
}

#theme:hover img {
    content: url('../assets/icons/functionality_icons/night-day.png');

    opacity: 0.8;
}

/* ABOUT ME */

#aboutMe {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin: 20px auto;
    padding: 10px;

    width: 80vw;

    background-color: var(--main-track-backgroud-color);

    border-radius: 12px;

    text-align: center;
}

#aboutMe h2 {
    color: var(--main-color);
}

#aboutMe h2, #aboutMe p {
    padding: 10px;
}

#aboutMe p {
    max-width: 600px;

    text-align: justify;
    letter-spacing: -0.3px;
}

/* PROFILE IMAGE */

#profile > img {
    padding: 5px;

    height: 200px;
    width: 200px;

    object-fit: cover;
    object-position: center top;

    border: 5px solid var(--main-color);
    border-radius: 50%;
}

/* SOCIAL MEDIAS */

#socialMedias {
    display: flex;
    justify-content: center;
    gap: 20px;

    padding-top: 15px;
}

#socialMedias > a > img {
    height: 32px;
    width: 32px;

    filter: var(--icon-filter);

    transition: 0.5s ease;
}

#socialMedias img:hover {
    filter: var(--icon-filter-hover);

    transform: scale(1.2);
}

/* SKILLS */

#skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;

    margin: 20px auto;
    padding: 10px;

    width: 80vw;

    background-color: var(--main-track-backgroud-color);

    border-radius: 12px;
}

#skills h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px;

    color: var(--main-color);
}

#skills img {
    height: 24px;
    width: 24px;

    filter: var(--icon-filter);
}

#skillContainer {
    display: flex;
    flex: wrap;
    flex-direction: column;
    gap: 20px;

    width: 100%;

    padding: 10px;
}

.skill {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 5px;

    padding: 15px;

    color: var(--main-color);
    background-color: var(--background);

    border-left: 6px solid var(--main-color);
    border-radius: 10px;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.17);

    transition: 0.3s ease;
}

.skill img {
    height: 40px;
    width: 40px;

    object-fit: contain;

    transition: 0.3s ease;
}

.skill:hover {
    border-left: 12px solid var(--main-color);
}

.skill:hover img {
    transform: scale(1.2);
}

/* PROJECTS */

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;

    gap: 20px;

    margin: 20px auto;
    padding: 20px;

    width: 80vw;

    border-radius: 12px;

    background-color: var(--main-track-backgroud-color);
}

#projects > h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-top: 10px 0px;

    color: var(--main-color);
}

#projects > h2 >img {
    height: 24px;
    width: 24px;

    filter: var(--icon-filter);
}

.projectContainer {
    display: flex;
    flex: wrap;
    flex-direction: column;
    gap: 20px;

    padding: 15px;

    width: 100%;

    text-align: center;

    border-left: 6px solid var(--main-color);
    border-radius: 12px;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.17);

    background: var(--background);

    transition: 0.3s ease;
}

.projectContainer:hover {
    border-left: 12px solid var(--main-color);
}

.projectImagesContainer {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    position: relative;

    margin: auto;

    height: 100%;
    width: 100%;
    max-height: 384px;
    max-width: 768px;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.17);
}

.projectImagesContainer img {
    min-height: 100%;
    min-width: 100%;

    object-fit: cover;

    cursor: pointer;

    transition: 0.6s ease;
}

.projectImagesContainer:hover img {
    filter: brightness(0.9);
}

.prevButton, .nextButton {
    cursor: pointer;
    position: absolute;
    top: 50%;

    margin-top: -22px;
    padding: 16px;

    width: auto;

    color: var(--main-color);

    font-weight: bold;
    font-size: 18px;

    border-radius: 0 3px 3px 0;

    user-select: none;

    transition: 0.6s ease;
}

.prevButton {
    left: 0px;
}

.nextButton {
    right: 0px;

    border-radius: 3px 0 0 3px;
}

.prevButton:hover, .nextButton:hover {
    transform: scale(1.2);

    background: rgba(0, 0, 0, 0.1);
}

/* PROJECT INFO */

.projectInfo {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.projectInfo h3 {
    color: var(--main-color);
}

.projectInfo p {
    max-width: 600px;

    text-align: justify;
    letter-spacing: -0.3px;
}

.projectInfo > .moreText {
    display: none;
}

.projectInfo > .toggleButton {
    color: var(--main-color);

    padding-left: 10px;

    user-select: none;
    cursor: pointer;
}

.projectLink {
    display: flex;
    align-items: center;

    padding-top: 10px;

    color: var(--main-color);
}

.projectLink img {
    height: 15px;
    width: 15px;

    filter: var(--icon-filter);
}

/* GRADUATION */

#graduations {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;

    margin: 20px auto;
    padding: 20px;

    width: 80vw;

    background-color: var(--main-track-backgroud-color);

    border-radius: 12px;
}

#graduations h2 {
    display: flex;
    align-items: center;
    gap: 8px;


    color: var(--main-color);
}

#graduations img {
    height: 24px;
    width: 24px;

    filter: var(--icon-filter);
}

#graduationContainer {
    display: flex;
    flex: wrap;
    flex-direction: column;
    gap: 20px;

    width: 100%;
}

.graduation {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 15px;

    border-radius: 12px;
    border-left: 6px solid var(--main-color);

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.17);

    color: var(--main-color);
    background-color: var(--background);

    transition: 0.3s ease;
}

.graduation:hover {
    border-left: 12px solid var(--main-color);
}