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

:root {
    --margin-grid: 1rem;
    --primary-color: #ffffff;
    --background-color: #000000;
}

@media (max-width: 992px) {
    :root {
        --margin-grid: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --margin-grid: 1rem;
    }
}

.container-fluid {
    padding-left: var(--margin-grid);
    padding-right: var(--margin-grid);
}

.row {
    --bs-gutter-x: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    color: var(--primary-color);
    font-family: "akzidenz-grotesk-next-pro", sans-serif;
    background-color: var(--background-color);


}



/* ============= HEADER ============= */


header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 2 * var(--margin-grid));


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

    margin: 0 var(--margin-grid);
    height: 5rem;
    background-color: var(--background-color);
    border-bottom: solid 1px rgb(58, 58, 58);

    z-index: 10;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0 .5rem;
}

header .logo img {
    width: auto;
    height: 3rem;
    display: block;
}

header ul li:hover {
    text-decoration: underline;
}

header nav ul {
    display: flex;
    gap: 0 var(--margin-grid);
    list-style: none;
    transition: 0.2s;
}

header .active {
    text-decoration: underline;
}

@media(max-width: 576px) {
    header {
        height: 4rem;
        font-size: 1rem;
    }
}


/* ============= MAIN ============= */
main {
    margin-top: 5rem;
}sobreposto

/* ============= INDEX ============= */
/* Oi professoar só para dizer que tive bastante dificuldades a fazer o index por isso pedi ajuda ao chat gpt, desculpe :(  */

.index {
  position: relative;
 width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/index/index-gif.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.index-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  z-index: 2;
  
}

.logo-index {
  width: 100%;
  max-width: 600px;
  transition: transform 0.3s ease;
}

.logo-index:hover {
  transform: scale(1.05);
}



/* ============= WORK ============= */

main.work {
    padding: var(--margin-grid) 0;
}

main.work .card .card-image {
    aspect-ratio: 1.6/1;
    margin-bottom: 0.3rem;
    border: 1px solid rgb(58, 58, 58);
}

main.work .card .card-image:hover {

    border: 2px solid rgb(58, 58, 58);
}

main.work .card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

main.work .card .card-title {
    font-size: 0.85rem;


}

main.work .card .card-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;

}

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

main.about {
    padding: var(--margin-grid) 0;

}

main.about .card {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgb(58, 58, 58);
}

main.about .about-me {
    font-size: 1.5rem;
    font-weight: 500;
}

main.about .about-text {
    font-size: 1rem;


}

main.about .about-cv {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    margin-right: 0.5rem;
    padding: .4rem;
    border: 1px solid rgb(258, 255, 255);
    font-size: 0.85rem;
}

main.about .contact-me {
    font-size: 1.5rem;
    font-weight: 500;
}

main.about .contact-text {
    font-size: 1rem;



}


main.about .contact-text ul {
    list-style: none;
}

main.about ul li:hover {
    text-decoration: underline;
}


/* ============= PROJECT ============= */

main.project {
    padding: var(--margin-grid) 0;

}

main.project .project-sticky {
    position: sticky;
    top: calc(5rem + var(--margin-grid));
    border-right: 1px solid rgb(58, 58, 58);
    min-height: calc(100dvh - 10rem);
    padding-right: var(--bs-gutter-x);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    align-items: flex-start;

    display: block;

}

@media (max-width: 576px) {

    main.project .project-sticky {
        display: flex;
        border-right: none;
        min-width: none;
        min-height: 0rem;
        padding-bottom: 3rem;
    }
}


main.project .project-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5rem;


}

main.project .project-date {
    font-size: 0.85rem;
    margin-bottom: 1rem;

}

main.project .project-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;

}

main.project .project-tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    margin-right: 0.5rem;
    padding: .4rem;
    border: 1px solid rgb(258, 255, 255);
    font-size: 0.85rem;

}

main.project .setas {
    padding-top: 1rem;

    display: flex;
    gap: 1rem;


}

.seta-esquerda {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.seta-esquerda:hover {
    transform: scale(1.2);
}

.seta-direita {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.seta-direita:hover {
    transform: scale(1.2);
}



main.project .project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgb(58, 58, 58);
}


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

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.85rem;


    height: 3rem;
    background-color: var(--secondary-color);
    border-top: solid 1px rgb(58, 58, 58);
}