@font-face {
    font-family: "Space Grotesk";
    src: url(assets/fonts/SpaceGrotesk-Medium.woff2) format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url(assets/fonts/SpaceGrotesk-Regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Work Sans";
    src: url(assets/fonts/WorkSans-Regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url(assets/fonts/IBMPlexMono-Regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #000000;
    --color-secondary: #ff9000;
    --color-tertiary: #2e2e2e;
    --color-quaternary: #8a7050;
    --color-quinary: #ffffff;
    --color-senary: rgb(255 144 0 / 0.5);

    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;
    --font-tertiary: 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--color-primary);
}

header {
    font-family: var(--font-tertiary);
    background-color: var(--color-primary);

    height: 40px;
    margin: 0 auto;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 20px;
}

header a:hover {
    color: var(--color-secondary);
}

header,
.hero,
.tech,
.tools,
.project,
.contact,
.profile,
.tech-skill,
.dev-workflow,
.major {
    width: 100%;
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    header {
        height: auto;
        min-height: 40px;
        padding: 8px 12px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        gap: 8px;
        margin: 0;
    }

    .navbar {
        margin-right: 0;
    }

    .list-navbar {
        gap: 12px;
    }
}

.brand {
    color: var(--color-secondary);
    text-decoration: none;
    margin: 4px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    flex-direction: row;
    margin-right: 20px;
}

.list-navbar {
    margin: 0;
    padding: 0;

    display: flex;
    gap: 20px;
}

.list-navbar li {
    list-style-type: none;
}

.list-navbar a {
    color: var(--color-quaternary);
    text-decoration: none;
}

.hero {
    background-image: linear-gradient(rgba(74, 70, 70, 0.5),
            rgb(0 0 0 / 50%)), url(assets/img/hero.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);

    margin: 0 auto;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-status {
    font-family: var(--font-tertiary);
    color: var(--color-secondary);
    border: solid 1px var(--color-secondary);

    width: 100%;
    max-width: 320px;
    margin-top: 9px;
    margin-bottom: 0;

    animation: led 2s ease-in-out infinite;
}

@keyframes led {

    0%,
    100% {
        opacity: 0.2;
    }

    45%,
    55% {
        opacity: 1;
    }
}

.hero h1 {
    font-family: var(--font-primary);
    color: var(--color-secondary);

    width: fit-content;
    max-width: 100%;
    margin-top: 6px;
    margin-bottom: 0;

    clip-path: inset(0 100% 0 0);
    animation: title-reveal 1.2s steps(25, end) 0.2s forwards;
}

@keyframes title-reveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.hero-designation {
    font-family: var(--font-secondary);
    color: var(--color-secondary);

    width: 100%;
    max-width: 340px;
    margin-top: 6px;
    margin-bottom: 0;
}

.hero-description {
    width: 100%;
    max-width: 323px;
    margin-bottom: 20px;

    font-family: var(--font-secondary);
    color: var(--color-secondary);
}

.hero-designation,
.hero-description {
    animation: title-entry 0.8s ease-out both;
}

@keyframes title-entry {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-navigation {
    display: flex;
    gap: 20px;
}

.hero-navigation a {
    background-color: var(--color-primary);
    font-family: var(--font-tertiary);
    color: var(--color-secondary);
    text-decoration: none;
    text-align: center;

    border: solid 1px var(--color-secondary);

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

    width: 150px;
    height: 30px;

    transition: all 0.3s ease-in-out;
}

.hero a:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.hero a:active {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: solid 3px var(--color-tertiary);
}

@media (max-width: 600px) {
    .hero {
        min-height: 340px;
        padding: 24px 18px;
        background-position: center;
    }

    .hero h1 {
        width: auto;
        max-width: 100%;
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.tech {
    background-color: var(--color-primary);
    color: var(--color-secondary);

    height: auto;
    padding: 10px 0;
}

.tech h2 {
    font-family: var(--font-tertiary);
    font-weight: 400;
    font-size: 1rem;
    text-align: justify;

    border: solid 1px var(--color-secondary);

    margin: 0 6px 0 6px;
    padding: 6px;

    display: flex;
}

.cards-tech {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    padding: 14px 16px;
    margin: 0 6px;

    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
    text-align: center;
}


.tech article {
    padding: 12px 8px;
    min-width: 0;

    border: solid 1px var(--color-secondary);

    transition: border-color 0.6s ease;
}

.tech article:hover {
    border-color: transparent;
}

.tech img {
    margin: 10px auto 0;
    width: 55px;
    height: 55px;

    display: block;
    object-fit: contain;
}

.tech h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
}

.tech-p {
    font-family: var(--font-secondary);
    text-align: center;
}

@media (max-width: 700px) {
    .cards-tech {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .cards-tech {
        gap: 8px;
        padding: 10px;
    }
}

.tools {
    background-color: var(--color-primary);
    color: var(--color-secondary);

    height: auto;
    padding: 10px 0;
}

.tools h2 {
    font-family: var(--font-tertiary);
    font-weight: 400;
    font-size: 1rem;

    margin: 0 6px 0 6px;
    padding: 6px;

    text-align: justify;
    border: solid 1px var(--color-secondary);
}

.cards-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    margin: 0 6px;
    padding: 14px 16px;

    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.cards-tools article {
    min-width: 0;
    height: 180px;
    padding: 12px 8px;

    text-align: center;
    border: 1px solid var(--color-secondary);

    display: flex;
    flex-direction: column;
    align-items: center;

    transition: border-color 0.6s ease;
}

.cards-tools article:hover {
    border-color: transparent;
}

.card-tool-one img,
.card-tool-two img,
.card-tool-three img,
.card-tool-four img {
    width: 60px;
    height: 60px;
    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tools h3 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;

    margin-top: 0;
    margin-bottom: 3px;
}

.tools p {
    font-family: var(--font-secondary);
    text-align: center;
    margin-top: 3px;
}

@media (max-width: 700px) {
    .cards-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .cards-tools {
        gap: 8px;
        padding: 10px;
    }
}

.project {
    background-color: var(--color-primary);
    color: var(--color-secondary);

    height: auto;
    padding: 10px 0;

    display: flex;
    flex-direction: column;
}

.project h2 {
    font-family: var(--font-tertiary);
    font-weight: 400;
    font-size: 1rem;
    text-align: justify;

    margin: 0 6px 0 6px;
    padding: 6px;

    display: flex;

    border: solid 1px var(--color-secondary);
}

.cards-project {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    padding: 14px 16px;
    margin: 0 6px;

    align-items: stretch;

    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.cards-project>a {
    color: var(--color-secondary);
    text-decoration: none;

    display: block;

    min-width: 0;
}

.cards-project article {
    margin: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    min-width: 0;

    border: solid 1px var(--color-secondary);
    background-color: var(--color-primary);

    transition:
        transform 0.6s ease,
        background-color 0.6s ease,
        color 0.6s ease;
}

.cards-project article:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-4px);
}

.cards-project img {
    display: block;

    width: 100%;
    height: auto;
}


.cards-project h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;

    overflow-wrap: break-word;
}

.cards-project a {
    text-decoration: none;
    color: var(--color-secondary);
}

.cards-project p {
    font-family: var(--font-secondary);
}

@media (max-width: 900px) {
    .cards-project {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .cards-project {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
}

.tags {
    margin: 0;
    width: 100%;
    height: 25px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.tags p {
    background-color: var(--color-senary);
    font-family: var(--font-tertiary);
    font-size: 12px;

    width: 38px;
    height: 18px;

    display: flex;
    justify-content: center;
    place-items: center;
}

.tag-beta span {
    background-color: var(--color-senary);
    font-family: var(--font-tertiary);
    font-size: 12px;

    height: 18px;
    padding: 0 8px;

    display: inline;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.dots {
    animation: typing 1.8s infinite steps(4, start);
}

@keyframes typing {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    25% {
        clip-path: inset(0 66% 0 0);
    }

    50% {
        clip-path: inset(0 33% 0 0);
    }

    75%,
    100% {
        clip-path: inset(0 0 0 0);
    }

}

.tags img,
.tags-incompleta img {
    width: 20px;
}

.contact {
    background-color: var(--color-primary);
    color: var(--color-secondary);

    min-height: 230px;
    height: auto;
    padding: 10px 0;
}

.contact h2 {
    font-family: var(--font-tertiary);
    font-weight: 400;
    font-size: 1rem;
    text-align: justify;

    margin: 0 6px 0 6px;
    padding: 6px;

    border: solid 1px var(--color-secondary);
}

.bt-contact {
    background-image: url(assets/img/contato.png);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;

    max-width: 1290px;
    min-height: 150px;
    height: auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 12px;

    padding: 20px 16px;
    margin: 0 6px;

    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.bt-contact a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 160px;
    height: 35px;
    min-height: 35px;
    flex: 0 1 160px;

    background-color: var(--color-primary);
    color: var(--color-secondary);

    font-family: var(--font-tertiary);
    font-size: 1rem;
    text-decoration: none;

    border: 1px solid var(--color-secondary);
    border-radius: 1px;

    transition: background-color 0.3s ease-in-out;
}

.bt-contact a span {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.logo-contact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 20px;
    height: 20px;
    object-fit: contain;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s ease-in-out;
}

.bt-contact a:hover {
    background-color: var(--color-secondary);
}

.bt-contact a:hover span {
    opacity: 0;
}

.bt-contact a:hover .logo-contact {
    opacity: 1;
}

footer {
    background-color: var(--color-primary);
    font-family: var(--font-tertiary);
    color: var(--color-secondary);

    width: 100%;
    height: 40px;
    padding: 0 12px 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

footer p,
footer img {
    margin: 0;

    animation: typing 1.8s infinite steps(4, start);
}


@media (max-width: 480px) {
    footer {
        height: auto;
        min-height: 40px;
        padding: 12px;
        justify-content: center;
        text-align: center;
    }
}

.profile {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
}

.profile h2,
.tech-skill h2,
.dev-workflow h2,
.major h2 {
    background-color: var(--color-primary);
    border: solid 1px var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-tertiary);
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;

    display: block;
    align-content: center;
    grid-column: 1 / -1;

    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 4px 6px;
}

.profile-content {
    min-width: 0;
    padding: 16px;

    background-color: var(--color-primary);
    border: solid var(--color-secondary);
    border-width: 0 1px 1px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-content p {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin: 8px 0;

    animation: text-entry 0.8s ease-out both;
}

.profile-content p:nth-child(2) {
    animation-delay: 0.25s;
}

@keyframes text-entry {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-ilust {
    min-width: 0;
    min-height: 290px;
    padding: 12px;

    background-color: var(--color-primary);
    border: solid var(--color-secondary);
    border-width: 0 1px 1px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.profile video {
    display: block;
    width: 100%;
    height: 265px;
    object-fit: cover;

    background-color: var(--color-primary);
    border: solid 1px var(--color-secondary);
}

.tech-skill {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;

    background-color: var(--color-primary);
    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.cards-tech-skill {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    padding: 14px 12px;
    width: 100%;
}

.cards-tech-skill article {
    min-width: 0;
    padding: 16px 10px;

    border: solid 1px var(--color-secondary);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;

    transition: border-color 0.6s ease;
}

.cards-tech-skill article:hover {
    border-color: transparent;
}

.cards-tech-skill img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cards-tech-skill h3,
.cards-dev-workflow h3,
.graduation h3 {
    color: var(--color-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.cards-tech-skill p,
.cards-dev-workflow p,
.graduation p {
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    margin: 8px 0 0;
}

.dev-workflow {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;

    background-color: var(--color-primary);
    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.cards-dev-workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    padding: 14px 12px;
    width: 100%;
}

.cards-dev-workflow article {
    min-width: 0;
    padding: 16px 10px;

    border: solid 1px var(--color-secondary);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition: border-color 0.6s ease;
}

.cards-dev-workflow article:hover {
    border-color: transparent;
}

.cards-dev-workflow img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 10px;
}

.major {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    background-color: var(--color-primary);
}

.graduation {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    min-height: 180px;
    padding: 23px;

    background-image:
        linear-gradient(rgb(0 0 0 / 50%),
            rgb(0 0 0 / 50%)),
        url(assets/img/academy.jpg);

    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 0;

    border: solid var(--color-secondary);
    border-width: 0 1px 1px;
}

.graduation>div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.graduation img {
    display: block;
    width: 70px;
    height: auto;
}

.graduation>div:last-child {
    min-width: 0;
}

.graduation h3 {
    color: var(--color-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 8px;
}

.graduation p {
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    margin: 6px 0;
}

@media (max-width: 520px) {
    .graduation {
        gap: 12px;
        min-height: 160px;
        padding: 16px 12px;
    }

    .graduation img {
        width: 45px;
    }
}

@media (max-width: 800px) {

    .cards-tech-skill,
    .cards-dev-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .profile {
        grid-template-columns: 1fr;
    }

    .profile-content {
        padding: 16px;
    }

    .video-ilust {
        min-height: 220px;
    }

    .profile video {
        height: 200px;
    }

    .cards-tech-skill,
    .cards-dev-workflow {
        gap: 10px;
        padding: 12px 8px;
    }

    .cards-tech-skill article,
    .cards-dev-workflow article {
        padding: 12px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 {
        animation: none;
        clip-path: none;
        transform: none;
        filter: none;
        text-shadow: none;
    }

    .profile-content p,
    .hero-designation,
    .hero-description {
        animation: none;
    }

    .terminal-status,
    .dots,
    footer p,
    footer img {
        animation: none;
        clip-path: none;
    }

    .hero-navigation a,
    .cards-project article,
    .bt-contact a,
    .bt-contact a span,
    .bt-contact a .logo-contact {
        transition: none;
    }

    .tech article,
    .cards-tools article,
    .cards-tech-skill article,
    .cards-dev-workflow article {
        transition: none;
    }
}