:root {

    /* Colors */

    --white: #ffffff;
    --black: #000000;
    --yellow: #F8FB7B; 
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto Mono", monospace;
    color: var(--white);
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
}

h1 {
    font-size: 120px;
    line-height: 120px;
}

h2 {
    font-size: 100px;
    line-height: 100px;
}

h3 {
    font-size: 80px;
    line-height: 80px;
}

h4 {
    font-size: 30px;
    line-height: 40px;
}

h5 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
}

h6 {
    font-size: 10px;
    line-height: 20px;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
}

p {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 20px;
}

li {
    font-size: 20px;
    line-height: 30px;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--white);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yellow);
}

strong {
    color: var(--yellow);
}

/* Customizações para navegadores WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #F8FB7B;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F8FB7B;
}

/* Customizações para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #F8FB7B transparent;
}

header {
    position: fixed;
    width: 100px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, .1),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, .1)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 9999;
    bottom: 0;
}

.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    scroll-behavior: smooth;
}

.content-wrapper {
    padding: 100px 0;
    display: flex;
    flex-wrap: wrap;
}

.links-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-behavior: smooth;
    overflow: hidden;
}

.links-image {
    position: absolute;
    margin-top: -90px;
}

.button {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 30px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.button svg {
    transition: fill 0.3s ease;
    align-self: center;
}

.button.primary {
    text-decoration: none;
    background-color: var(--yellow);
    color: var(--black);
}

.button.primary svg {
    fill: var(--black);
}

.button.primary:hover svg {
    fill: var(--white);
}

.button.secondary {
    background-color: transparent;
}

.button.secondary svg {
    fill: var(--white);
}

.button.primary:hover {
    background-color: var(--black);
    color: var(--white);
}

.button.secondary:hover svg {
    fill: var(--yellow);
}

.link-button {
    width: 100%;
    margin-bottom: 20px;
}

.link-button:last-child {
    margin-bottom: 0;
}

#links {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .1),
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, .1)
        );
}

#links h1 {
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 40px;
}

#links h6 {
    margin-top: 20px;
}

#logo svg {
    fill: var(--white);
}

#logo-mobile {
    align-self: flex-start;
    display: none;
    position: fixed;
}

#logo-mobile svg {
    fill: var(--white);
}

#content {
    max-width: 1140px;
    width: 100%;
    padding-left: 100px;
    scroll-behavior: smooth;
}

#home {
    background: url('../assets/images/home/junior-silva.png') no-repeat top right;
    background-size: contain;
}

#home h1 {
    width: 99%;
}

#home p {
    margin-top: 20px;
}

#home-buttons {
    margin-top: 70px;
}

.portfolio-card {
    margin-top: 40px;
    border-bottom: solid 1px rgba(255, 255, 255, .3);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s;   
}

.portfolio-card:first-child {
    margin-top: 0;
}

.portfolio-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.portfolio-card.active .card-content {
    max-height: 1080px;
    margin: 20px 0 40px 0;
}

.portfolio-card:not(.active):hover .card-content {
    max-height: 200px;
    margin: 20px 0 40px 0;
}

nav {
    position: relative;
}

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

nav svg {
    fill: var(--white);
    transition: fill 0.3s ease;
}

nav ul li a:hover svg {
    fill: var(--yellow);
}

nav ul li a.active svg {
    fill: var(--yellow);
}

#rectangle {
    position: absolute;
    width: 2px;
    height: 100px;
    background-color: var(--yellow);
    top: 0;
    transition: transform 0.3s ease;
}

.title {
    margin-bottom: 40px;
}

#clients {
    margin-top: 80px;
}

#client-logos {
    display: flex;
    flex-direction: row;
    gap: 27px;
    flex-wrap: wrap;
    justify-content: center;
    align-items:flex-start;
    margin-top: 40px;
}

#client-logos img {
    transition: opacity 0.3s;
}

.portfolio-card {
    text-decoration: none;
    transition: opacity 0.3s;
    opacity: 1;
}

.portfolio-card img {
    border-radius: 10px;
}

.dimmed {
    opacity: 0.5;
}

.content-width {
    width: 60%;
    padding-right: 200px;
}

.content-width-80 {
    width: 80%;
    padding-right: 200px;
}

.content-width-75 {
    width: 63%;
    padding-right: 200px;
}

.content-width-58 {
    width: 63%;
    padding-left: 200px;
}

.content-width:last-child {
    padding-right: 0;
}

#tools-icons {
    width: 200px;
    margin-bottom: 60px;
}

#aboutme-content {
    display: flex;
    margin-bottom: 40px;
}

.aboutme-column {
    width: 50%;
}

.aboutme-column:first-child {
    margin-right: 50px;
}

#services-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    cursor: default;
}

#services-list div {
    margin-right: 30px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.italic {
    font-style: italic;
    font-size: 15px;
}

#portfolio h6.title {
    margin-bottom: 60px;
}

#portfolio-wrapper {
    padding: 100px 0;
}

#portfolio-content h6 {
    margin-bottom: 40px;
}

#portfolio-content h6:last-child {
    margin-top: 40px;
}

#portfolio-content h6 a {
    text-decoration: none;
    color: var(--yellow);
    transition: color 0.3s;
}

#portfolio-content h6 a:hover {
    color: var(--white);
}

#portfolio-content p {
    padding-bottom: 40px;
}

#portfolio-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    cursor: default;
}

#portfolio-images img {
    border-radius: 10px;
    transition: opacity 0.3s;
    object-fit: cover;
}

#portfolio-images-full {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    cursor: default;
    border-radius: 10px;
    overflow: hidden;
}

#portfolio-images-full img {
    transition: opacity 0.3s;
}

.full-width {
    width: 100%;
    height: auto;
}

.half-width {
    width: calc(50% - 10px);
    height: auto;
}

.third-width {
    width: calc(33% - 10px);
    height: auto;
}

.two-third-width {
    width: calc(66%);
    height: auto;
}

.stroke-item {
    border-bottom: solid 1px rgba(255, 255, 255, .3);
    margin-bottom: 30px;
    padding-bottom: 30px;
    transition: opacity 0.3s;
    cursor: default;
}

.stroke-item:last-child {
    margin-bottom: 0;
    padding-bottom: 30px;
}

.title-padding {
    margin-top: 40px;
}

#tools-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
}

#tools-icons img {
    height: 24px;
    box-sizing: border-box;
    transition: opacity 0.3s;
}

#courses {
    max-width: 380px;
}

input,
select,
textarea {
    font-family: "Roboto Mono", monospace;
    color: var(--dark-grey);
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--white);
    font-size: 18px;
    padding: 10px;
    margin-bottom: 9px;
    outline: none;
    background-color: transparent;
    opacity: .5;
    transition: opacity 0.3s;
    margin-bottom: 10px;
}

input:focus,
select:focus,
input:hover,
select:hover,
textarea:focus,
textarea:hover {
    opacity: 1;
}

button {
    font-family: "Roboto Mono", monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;    
    padding: 15px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--yellow);
    color: var(--black);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 40px;
}

button svg {
    fill: var(--black);
    transition: fill 0.3s ease;
}

button:hover {
    background-color: var(--black);
    color: var(--white);
}

button:hover svg {
    fill: var(--white);
}

#form-error {
    color: red;
    padding-top: 20px;
    transition: opacity 0.3s;
    display: none;
}

#form-success {
    color: var(--white);
    padding-top: 20px;
    transition: opacity 0.3s;
    display: none;
}

.spacing-40 {
    padding-bottom: 40px;
}

.spacing-40:last-child {
    padding-bottom: 0;
}

.back-button {
    cursor: pointer;
}

#p-margin {
    margin-bottom: 20px;
}

.gradient {
    position: fixed;
    z-index: 9998;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.gradient::before,
.gradient::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 120px;
    left: 0;
}

.gradient::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1),
        rgba(0, 0, 0, 0)
    );
}

.gradient::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1),
        rgba(0, 0, 0, 0)
    );
}

#black-bg {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    display: none;
}

#black-bg::before,
#black-bg::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 120px;
    left: 0;
}

#black-bg::before {
    top: 0;
    background-color: var(--black);
}

#black-bg::after {
    bottom: 0;
    background-color: var(--black);
}

footer {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 970px) and (max-width: 1340px) {
    #content {
        max-width: 768px;
        width: 100%;
        padding-left: 10%;
    }

    .content-width {
        width: 100%;
        padding-right: 0;
    }

    #courses {
        max-width: 100%;
        width: 100%;
    }

    .content-width-75 {
        width: 100%;
        padding-right: 0;
    }

    .content-width-58 {
        width: 100%;
        padding-left: 0;
    }

    #tools-icons {
        width: 100%;
    }

    #tools-icons {        
        justify-content: flex-start;
    }

    #portfolio-cards {
        margin-bottom: 60px;
    }

    #services {
        margin-bottom: 60px;
    }

    #tools-icons {
        width: 100%;
    }

    #experience {
        margin-bottom: 60px;
    }

    #contact form {
        margin-bottom: 60px;
    }

    .content-width-80 {
        width: 100%;
        padding-right: 0;
    }

    .half-width {
        width: 100%;
    }

    .third-width {
        width: 100%;
    }

    .two-third-width {
        width: 100%;
    }

    #services h6 {
        margin-top: 60px;
    }
}

@media (max-width: 969px) {

    header {
        position: fixed;
        width: 100%;
        height: 65px;
        background: linear-gradient(
            to left,
            rgba(255, 255, 255, .1),
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, .1)
        );
        bottom: 0;
    }

    #rectangle {
        width: 60px;
        height: 2px;
        margin-top: 62px;
    }

    .content-width {
        width: 100%;
        padding-right: 0;
    }

    header nav ul li {
        display: inline-block;
    }

    #logo-mobile {
        display: block;
        margin-top: -120px;
        z-index: 9998;
    }

    #logo {
        display: none;
    }

    #home.content-wrapper {
        padding-top: 60px;
    }

    .button {
        margin-bottom: 20px;
    }

    .button:last-child {
        margin-bottom: 0;
    }

    .wrapper {
        min-width: 320px;
        width: 100%;
        height: calc(100% - 240px);
        overflow-y: auto;
        margin-top: 120px;
        position: fixed;
    }
    
    #content {
        width: 100%;
        padding: 0 40px;
    }
    
    header nav ul li svg {
        width: 64px;
        height: 64px;
    }

    #home-buttons {
        margin-top: 40px;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: 15vw;
        line-height: 16vw;
    }

    #aboutme-content {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .aboutme-column {
        width: 100%;
    }

    #contact form {
        margin-bottom: 60px;
    }

    #aboutme-sidebar {
        width: 100%;
    }

    #services h6 {
        margin-top: 60px;
    }

    #experience h6 {
        margin-top: 60px;
    }

    #courses {
        max-width: 100%;
        width: 100%;
    }

    .content-width-75 {
        width: 100%;
        padding-right: 0;
    }

    .content-width-58 {
        width: 100%;
        padding-left: 0;
    }

    .content-width-80 {
        width: 100%;
        padding-right: 0;
    }

    #tools-icons {
        width: 100%;
    }

    #tools-icons {        
        justify-content: flex-start;
    }

    #portfolio-cards {
        margin-bottom: 60px;
    }

    #experience {
        margin-bottom: 60px;
    }

    .gradient {
        height: 100%;
    }   
    
    .gradient::after {
        margin-bottom: 239px;
    } 

    #gradient-mobile {
        display: block;
        z-index: 9997;
    }

    #black-bg {
        display: block;
        z-index: -9999;
    }

    .gradient::before,
    .gradient::after {
        height: 60px;
    }

    .half-width {
        width: 100%;
    }

    .third-width {
        width: 100%;
    }

    .two-third-width {
        width: 100%;
    }
}