@import "tailwindcss";
:root {
    --background: #080808;
    --foreground: #ededed;
    --primario: #4b6b5b;
    --secundario: #1B1B1B;
}

@theme inline {
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --font-sans: var(--font-geist-sans);
    --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
     :root {
        --background: #080808;
        --foreground: #ededed;
    }
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

h2,
p {
    cursor: default;
    color: var(--foreground);
}

.body-content {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}


/* sm: → @media (max-width: 640px) */

@media (max-width: 640px) {
    .body-content {
        display: flex;
        min-height: 100vh;
        height: auto;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
}


/* Para telas até 800px */

@media (max-width: 800px) {
    .main-content {
        align-items: center;
        width: 100%;
    }
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
    width: 80vw;
    height: 100%;
}

@media (max-width: 800px) {
    .page-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
}

.header-content {
    display: flex;
    position: absolute;
    top: 0;
    left: 50%;
    /* joga o canto esquerdo no meio da tela */
    transform: translateX(-50%);
    /* puxa de volta metade da largura */
    background-color: var(--secundario);
    min-width: 75vw;
    height: 64px;
    border-radius: 0.375rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    transition: height 0.3s ease-in-out;
}


/* Responsivo para telas até 800px */

@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        justify-content: flex-start;
        width: 100vw;
        height: 3.5rem;
        padding-top: 1rem;
    }
}

.nav-link {
    margin: 0 2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    text-shadow: 0px 1px 1px var(--foreground);
    font-weight: bold;
    scale: 1.1;
}

.nav-link.active {
    font-weight: bold;
    scale: 1.1;
}

.menu {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
}

@media (max-width: 800px) {
    .menu {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        gap: 96px;
        width: 100%;
        height: 100%;
    }
}

.card-about {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 32px;
}

@media (max-width: 800px) {
    .card-about {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 16px;
        height: 100vh;
    }
}

.underline-hover {
    position: relative;
    overflow: hidden;
}

.underline-hover::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.underline-hover:hover::after {
    left: 0;
    width: 100%;
}

#footer-content {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 75vw;
}


/* Para telas até 800px */

@media (max-width: 800px) {
    #footer-content {
        position: relative;
        /* relative */
        margin-left: auto;
        /* mx-auto → margin-left/right auto */
        margin-right: auto;
    }
}

.footer-item {
    display: inline-block;
    scroll-snap-align: start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--secundario);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-item:hover {
    scale: 1.15;
}

.wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroller {
    display: flex;
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.footer-item i {
    font-size: 32px;
}


/*
* Flip Card CSS
*
*/

.flip-card {
    background-color: transparent;
    width: 256px;
    height: 256px;
    perspective: 512px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: var(--foreground);
    color: var(--background);
}

.flip-card-back {
    background-color: var(--foreground);
    color: var(--background);
    transform: rotateY(180deg);
}

@media (max-width: 800px) {
    .header-content.expanded {
        z-index: 15;
        height: 100vh;
    }
    .menu.open {
        display: flex;
    }
    .nameplate {
        margin-top: 16px;
    }
}

.projeto-item {
    display: flex;
    margin: 16px;
    padding: 16px;
    width: 300px;
    height: 300px;
    border: 1px solid var(--secundario);
    border-radius: 8px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    justify-items: center;
}

@media (max-width: 800px) {
    .projetos-grid {
        grid-template-columns: 1fr;
        /* uma coluna no mobile */
        gap: 16px;
    }
}