/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

p {
    color: #a1a1aa;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a,
.btn,
.icon {
    transition: all 0.3s ease;
}


/* =========================
   NAVBAR
========================= */

nav,
#desktop-nav,
#hamburger-nav {
    background-color: #0a0a0a;
}

nav {
    height: 17vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

.nav-links a:hover {
    color: #10a8ff;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo:hover {
    color: #10a8ff;
    cursor: default;
}


/* =========================
   HAMBURGER
========================= */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background-color: #111111;
    width: max-content;
    max-width: calc(100vw - 2rem);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-links a {
    display: block;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}


/* =========================
   SECTIONS
========================= */

section {
    padding-top: 4vh;
    margin: 0 10rem;
    min-height: 96vh;
    max-width: calc(100% - 20rem);
}

.section-container {
    display: flex;
    min-width: 0;
}


/* =========================
   PROFILE
========================= */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    flex-shrink: 0;
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.section__text {
    align-self: center;
    text-align: center;
    min-width: 0;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    max-width: 100%;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}


/* =========================
   ICONS
========================= */

.icon {
    cursor: pointer;
    height: 2rem;
    width: auto;
    filter: invert(1);
}

.icon:hover {
    filter: invert(55%) sepia(95%) saturate(1500%) hue-rotate(175deg);
}


/* =========================
   BUTTONS
========================= */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    min-width: 0;
}

.btn {
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    cursor: pointer;
}

.btn-color-1 {
    background-color: #10a8ff;
    color: #ffffff;
    border: 1px solid #10a8ff;
}

.btn-color-1:hover {
    background-color: #3bb9ff;
    border-color: #3bb9ff;
}

.btn-color-2 {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #10a8ff;
}

.btn-color-2:hover {
    background-color: #10a8ff;
    color: #ffffff;
}


/* =========================
   ABOUT
========================= */

#about {
    position: relative;
}

.about-containers {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    min-width: 0;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.about-pic {
    border-radius: 2rem;
}

.about-container,
.about-details-container {
    display: flex;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    min-width: 0;
    background-color: #111111;
    border: 1px solid #27272a;
    border-radius: 2rem;
    text-align: center;
}

.details-container h3 {
    margin: 0.5rem 0;
}

.details-container p {
    color: #a1a1aa;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}


/* =========================
   EXPERIENCE
========================= */

#experience {
    position: relative;
}

.experience-sub-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-start;
    min-width: 0;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
    flex-shrink: 0;
}

article .icon {
    cursor: default;
}


/* =========================
   PROJECTS
========================= */

#projects {
    position: relative;
}

.color-container {
    border-color: #27272a;
    background-color: #111111;
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    max-width: 100%;
    height: 90%;
    object-fit: cover;
}

.project-title {
    margin: 1rem;
    color: #ffffff;
}

.project-btn {
    color: #ffffff;
    border-color: #10a8ff;
}


/* =========================
   CONTACT
========================= */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
    min-width: 0;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    border-radius: 2rem;
    border: 1px solid #27272a;
    background-color: #111111;
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
    min-width: 0;
}

.contact-info-container p {
    font-size: larger;
    min-width: 0;
}

.contact-info-container a {
    overflow-wrap: anywhere;
}

.contact-icon {
    cursor: default;
    flex-shrink: 0;
}


/* =========================
   FOOTER
========================= */

footer {
    height: 26vh;
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
    overflow-x: hidden;
}

footer p {
    text-align: center;
}


/* =========================
   CENTRALIZAÇÃO DOS TÍTULOS
========================= */

#about > p,
#experience > p,
#projects > p,
#contact > p {
    text-align: center;
    width: 100%;
}

#about > .title,
#experience > .title,
#projects > .title,
#contact > .title {
    text-align: center;
    width: 100%;
}

footer .nav-links-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

footer .nav-links {
    justify-content: center;
}
