:root {
    --color-primary:      #b30059;
    --color-accent:       #df7cae;
    --color-white:        #ffffff;
    --color-nav-bg:       #ededed;
    --color-card-bg:      #ffffff;

    --font-base:          "Rubik", sans-serif;

    --fs-title:           3.8rem;
    --fs-subtitle:        2.4rem;
    --fs-body:            1.75rem;
    --fs-nav:             1.2rem;
    --fs-small:           1rem;

    --nav-height:         65px;
    --section-padding-x:  5%;
    --gap-section:        80px;

    --radius-base:        8px;
    --radius-card:        20px;

    --shadow-nav:         0px 4px 4px 0px rgba(0, 0, 0, 0.145);
    --shadow-card:        0px 4px 15px rgba(0, 0, 0, 0.1);

    --transition-fast:    0.3s ease;
}

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

* {
    font-family: var(--font-base);
}

html {
    scroll-behavior: smooth;
}

.title {
    font-size: var(--fs-title);
    text-transform: uppercase;
    color: var(--color-white);
}

section {
    min-height: 100vh;
}

/* NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    background-color: var(--color-nav-bg);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 63px;
    box-shadow: var(--shadow-nav);
}

nav img {
    width: 3rem;
    height: 3rem;
}

#navBarLinks {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navBarLinks a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--fs-nav);
    font-weight: 500;
    transition: color var(--transition-fast);
}

#navBarLinks a:hover {
    color: var(--color-accent);
}

/* HOME */
#homeSection {
    background-color: var(--color-primary);
    padding-top: var(--nav-height);
    display: flex;
}

#homePhoto {
    background-image: url(assets/photos/img_perfil.jpeg);
    background-size: cover;
    background-position: center;
    width: 40%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}

#homeTexts {
    padding-top: 400px;
}

#homeTexts h1 {
    color: var(--color-white);
}

#homeTexts h2 {
    color: var(--color-white);
    font-weight: 400;
    font-size: var(--fs-subtitle);
    padding: 24px 0 64px;
}

#homeContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    background-image: url(assets/photos/banner-img.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* SOBRE MIM */
#aboutSection {
    background-color: var(--color-accent);
    display: flex;
}

#aboutMeTextsFlexContainer {
    padding-top: var(--nav-height);
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#aboutMeTextsFlexItem {
    width: 80%;
    text-align: justify;
    display: flex;
    flex-direction: column;
}

#aboutSection p {
    font-size: var(--fs-body);
    color: var(--color-white);
    line-height: 2.4rem;
    padding: 45px 0 56px;
}

#aboutMePhoto {
    background-image: url(assets/photos/img-sobre.jpeg);
    background-size: cover;
    background-position: center;
    width: 40%;
}

/* PROJETOS */
#projectsSection {
    padding: var(--gap-section) var(--section-padding-x);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
        url(assets/photos/img-projects.jpg);
    background-size: cover;
    background-position: center;
}

#projectsSection h2 {
    color: var(--color-primary);
    text-align: center;
}

#projectsContainer {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: visible;        
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;                    
    min-width: 0;              
}

#projectsContainer::-webkit-scrollbar {
    display: none;
}

.projectCard {
    min-width: 350px;
    width: 320px;
    background-color: var(--color-card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.projectCard:hover {
    transform: translateY(-10px);
}

.projectCard img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.projectInfo {
    padding: 20px;
}

.projectInfo h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.projectInfo p {
    line-height: 1.6;
    font-size: var(--fs-small);
}

#projectsWrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.projectArrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: transform var(--transition-fast);
}

.projectArrow:hover {
    transform: scale(1.1);
}

.projectArrow:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* CONTATO */
#contactSection {
    background-color: var(--color-primary);
    display: flex;
}

#contactTextsContainer {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contactTextsChild {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 700px;
}

#contactSection h2 {
    padding-bottom: 60px;
    text-decoration: underline;
}

#contactSection p {
    color: var(--color-white);
    font-size: 1.56rem;
}

#contactVideo {
    width: 50%;
    height: 100vh;
    overflow: hidden;
}

#contactVideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODAL */
#imageModal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#modalMediaContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#modalMediaContainer img,
#modalMediaContainer video {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-card);
    display: block;
}

#modalMediaContainer video {
    background-color: #000;
}

#closeModal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--color-white);
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}

#closeModal:focus-visible {
    outline: 2px solid var(--color-white);
    border-radius: 4px;
}

#prevButton,
#nextButton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
}

#prevButton:focus-visible,
#nextButton:focus-visible {
    outline: 2px solid var(--color-white);
    border-radius: 4px;
}

#prevButton {
    left: 30px;
}

#nextButton {
    right: 30px;
}

/* FOOTER */
footer {
    background-color: var(--color-nav-bg);
    padding: 20px 63px;
    box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

footer p {
    color: var(--color-primary);
    font-size: var(--fs-small);
    margin: 0;
}

/* BOTÃO */
.defaultButton {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 14px;
    gap: 10px;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.defaultButton:hover {
    transform: scale(1.03);
}

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

.downloadButton {
    background-color: var(--color-primary);
}

/* EMAIL */
.emailContainer {
    padding-top: 40px;
    padding-bottom: 100px;
    font-style: normal;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contactItem a {
    color: var(--color-white);
    font-size: var(--fs-body);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.contactItem a:hover {
    color: var(--color-accent);
}

.emailIcon {
    width: 32px;
    flex-shrink: 0;
}

/* REDES SOCIAIS */
.socialMedia {
    display: flex;
    gap: 1rem;
}

.socialMedia a {
    background-color: var(--color-accent);
    padding: 12px;
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.socialMedia a:hover {
    opacity: 0.85;
}

.socialMedia img {
    height: 28px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* RESPONSIVO */
@media (max-width: 1200px) {
    #aboutMeTextsFlexItem .defaultButton {
        margin-bottom: 24px;
    }
}

@media (max-width: 1080px) {
    nav {
        display: none;
    }

    #homeSection,
    #aboutSection,
    #contactSection {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 2rem 1rem;
    }

    #homeTexts {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    #homeTexts h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 0.9;
        font-size: 3rem;
        margin-top: 10px;
    }

    #homeTexts h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-top: 20px;
    }

    #homePhoto {
        width: 80%;
        max-width: 300px;
        height: 300px;
        border-radius: 50%;
        margin: 0 auto 2rem;
        padding-left: 0;
    }

    #aboutMePhoto,
    #contactVideo {
        display: none;
    }

    #aboutMeTextsFlexContainer,
    #contactTextsContainer {
        width: 100%;
    }

    #contactTextsChild {
        align-items: center;
    }

    #contactSection h2 {
        text-align: center;
    }

    #contactSection p {
        text-align: justify;
    }

    .defaultButton {
        margin-bottom: 20px;
    }

    .projectArrow {
        display: none;
    }

    #projectsContainer {
        padding: 20px 0;
    }
}