/* ==================================================
   RESET E CONFIGURAÇÕES GERAIS
================================================== */

* {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    /* overflow-x: hidden; */
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

/* ==================================================
   ANIMAÇÕES
================================================== */

@keyframes moverFundo {
    from {
        background-position: 0 0, 10px 10px;
    }

    to {
        background-position: 100px 100px, 110px 110px;
    }
}

@keyframes piscar {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}



/* ==================================================
   FUNDO ANIMADO
================================================== */

.fundoIndex {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    background-image:
        radial-gradient(#d1d1d1 1px, transparent 1px),
        radial-gradient(#e0e0e0 1px, transparent 1px);

    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;

    animation: moverFundo 25s linear infinite;

    overflow-x: hidden;
}

/* ==================================================
   TELA DE LOADING
================================================== */

#loading-screen {
    position: fixed;
    inset: 0;
    background: #FFC400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    color: rgb(0, 0, 0);
    text-align: center;
    margin-top: 15px;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: bold;

    font-size: 20px;

    animation: piscar 1.5s infinite;
}

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

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

.logoImg {
    width: 10%;
}

#logotipo {
    max-width: 20%;
}

.nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#container-header {
    padding: 0% 5% 0% 5%;
    box-sizing: border-box;
    min-width: 90%;
    min-height: 10vh;
    border: none;
    background-color: #222;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.header-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

.header-fixed.header-visible {
    transform: translateY(0);
}

/* ==================================================
   MENU DE NAVEGAÇÃO
================================================== */

#menu {
    list-style: none;
    gap: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

#menu a {
    color: aliceblue;
    text-decoration: none;
    font-size: 91%;
    font-weight: bold;
    min-width: 101%;
}

.itemMenu {
    position: relative;
    display: inline-block;
}

.itemMenu::after,
.itemMenu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #cba709, #e2df0c);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.itemMenu::before {
    top: -5px;
    transform-origin: left;
}

.itemMenu:hover::after,
.itemMenu:hover::before {
    transform: scaleX(1);
}

/* ==================================================
   ESTRUTURA PRINCIPAL
================================================== */

.container {
    min-height: 100vh;
}

/* ==================================================
   SEÇÃO INÍCIO (HOME)
================================================== */

.inicio {
    display: flex;
    flex-direction: row;
}

.box {
    margin-top: 5%;
    position: relative;
    left: 12%;
    width: 35%;
    height: 60%;
}

.imageBox {
    margin-top: 5%;
    position: relative;
    left: 20%;
    width: 35%;
    height: 50%;
}

#imagemUm {
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

.titulo {
    font-weight: bold;
    font-size: 650%;
    margin-bottom: -5%;
}

.subTitulo {
    font-weight: bold;
    font-size: 350%;
}

.slash {
    background-color: #FFC400;
    height: 3%;
    width: 25%;
    margin-bottom: 4%;
}

.fluxe {
    padding: 0;
    margin-top: -10%;
    color: #FFC400;
    font-size: 1100%;
}

.container-texto {
    margin: 0;
    font-size: 120%;
}

#texto {
    font-family: sans-serif;
    font-weight: bold;
}

/* ==================================================
   BOTÕES
================================================== */

.botao {
    margin-top: 4%;
    background-color: #222;
    color: white;
    height: 10%;
    width: 35%;
    font-weight: bold;
    font-size: larger;
    transition: 0.5s;
    cursor: pointer;
}

.botao:hover {
    transform: scale(1.1);
    transition: 0.5s;
}

/* ==================================================
   SEÇÃO SOBRE
================================================== */

.sobre {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.box-sobre {
    margin-top: 5%;
    position: relative;
    left: 10%;
    width: 35%;
    height: 60%;
}

/* ==================================================
   CARDS INFORMATIVOS
================================================== */

.infos {
    margin-top: 4%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
}

.card {
    width: 130px;
    height: 130px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-start;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
}

.card>.row {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-areas:
        "circle titulo"
        "texto texto";
    width: 100%;
    align-items: center;
}

.card>.row>.circle {
    background-color: #FFC400;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.card>.row>.descricao {
    display: contents;
}

.descricao h1 {
    grid-area: titulo;
    opacity: 0;
    transition: opacity 0.3s ease,
        transform 0.3s ease;
}

.descricao p {
    padding-left: 5%;
    padding-right: 4%;
    grid-area: texto;
    opacity: 0;
    transition: opacity 0.3s ease,
        transform 0.3s ease;
}

input {
    display: none;
    border-radius: 2rem;
}

input:checked+label {
    width: 500px;
    height: 400px;
    background-color: white;
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
}

#target:checked+label {
    background-color: #333232;
    color: #FFC400;
    box-shadow: 0px 10px 30px -5px rgb(174, 157, 6);
}

input:checked+label .descricao * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.iconImg {
    width: 70%;
    /* height: 60%; */
}

/* --------------- Fim animação ---------------- */

/* .pop-ups {
    height: 100%;
    width: 100%;
} */

/* ==================================================
   PROJETOS
================================================== */

#butProject {
    padding: 1.5%;
    border: none;
    background-color: #FFC400;
    font-weight: bold;
    width: 60%;
    font-size: 100%;
    cursor: pointer;
    transition: 0.5s;
    font-size: larger;
    margin-top: 10%;
}

#butProject:hover {
    /* Aumenta o botão em 10% */
    transform: scale(1.1);
    transition: 0.5s;
}

#butProject a {
    text-decoration: none;
    color: #000;
}

#container-quadros {
    display: flex;
    justify-content: space-between;
    gap: 2%;
    margin-top: 5%;
    width: 220%;
}

.quadro {
    width: 250px;
    height: 320px;
    background-color: white;
    border-radius: 15px;
    border: 1px solid #dcdcdc;
    transition: 0.5s ease !important;
    padding: 1%;
    cursor: pointer;
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
}

.quadro:hover {
    transform: scale(1.1) !important;
    box-shadow: 0px 10px 30px -5px #a98202;
}

.quadro1,
.quadro3,
.black,
#projeto1,
#projeto3 {
    background-color: #333232;
    color: #FFC400;
}

.infoProjeto {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
    background-color: white;
    margin-top: 15px;
    border-radius: 10px;
    padding: 0 15px;

    display: flex;
    gap: 2vh;
    flex-direction: column;
}

.quadro:hover .infoProjeto {
    opacity: 1;
    max-height: 200px;
    padding: 15px;
}

.imgQuadro {
    width: 100%;
}

/* ==================================================
   RODAPÉ
================================================== */

#rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #222;
    color: #F5F5F5;
    flex-wrap: wrap;
    height: 22vh;
    /* ajuda no responsivo */
}

#divirodape {
    width: 40%;
    text-align: center;
}

#rodapeUl {
    width: 20%;
    list-style: none;
    padding: 0;
}

#rodapeUl li {
    list-style: none;
    margin-bottom: 3%;
}

#textRodape {
    display: flex;
    justify-content: center;
    font-size: 150%;
    color: #F5F5F5;
}

#fluxeText {
    color: #FFC400;
}

.icone {
    color: #FFC400;
    margin-right: 2%;
}

h1,
h3 {
    margin: 5px 0;
}

/* ==================================================
   ELEMENTOS DECORATIVOS
================================================== */

.meio-circulo {
    width: 350px;
    height: 350px;
    background-color: #FFC400;

    border-radius: 50%;

    position: absolute;

    left: -10%;
    top: -18%;
    z-index: -1;
}

.quadrado-amarelo {
    width: 10%;
    height: 11%;

    background-color: #FFC400;

    position: absolute;

    right: 8%;
    top: 15%;
}

.bolinhas {
    width: 10%;
    height: 12%;

    position: absolute;

    right: 8%;
    top: 60%;

    background-image: radial-gradient(#000 2px, transparent 2px);

    background-size: 12px 12px;
}

.circulo {
    width: 20%;
    height: 50%;
    background-color: #FFC400;

    border-radius: 50%;

    position: absolute;

    right: -10%;
    bottom: -207%;

    z-index: -1;
}

.container.implementacoes {
    position: relative;
}

.container-circuito {
    position: absolute;

    top: -60%;
    /* left: 10%; */

    width: 30%;

    z-index: 1;
    opacity: 0.6;
}

.container-circuito img {
    width: 100vw;
    height: auto;
    position: relative;
    left: -10%;
}

.container.implementacoes .box-sobre {
    position: relative;
    z-index: 2;
}

.header-fixed {
    width: 100%;
    box-sizing: border-box;
}

/* ==================================================
   SEÇÃO EQUIPE
================================================== */

.container-equipe {
    position: relative;
    padding: 80px 6%;
    overflow: hidden;
}

/* Cantos decorativos amarelos (bordas em L) */
.equipe-canto {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.equipe-canto--topo-direita {
    top: 40px;
    right: 6%;
    border-top: 4px solid #FFC400;
    border-right: 4px solid #FFC400;
}

.equipe-canto--base-esquerda {
    bottom: 200px;
    left: 6%;
    border-bottom: 4px solid #FFC400;
    border-left: 4px solid #FFC400;
}

/* Cabeçalho da seção */
.equipe-header {
    text-align: center;
    margin-bottom: 56px;
}

.equipe-label {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFC400;
    margin-bottom: 12px;
}

.equipe-titulo {
    font-size: 2.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
    line-height: 1.2;
}

.equipe-subtitulo {
    font-size: 1.1rem;
    font-weight: bold;
    color: #666;
    line-height: 1.6;
}

/* Linhas de membros */
.equipe-linha {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.equipe-linha--top {
    align-items: stretch;
}

.equipe-linha--bottom {
    align-items: stretch;
}

/* Card de membro */
.membro-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    width: 220px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid #ececec;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

/* Foto / avatar do membro */
.membro-foto {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 2px solid #FFC400;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.membro-foto-icon {
    font-size: 28px;
    color: #aaa;
}

.membro-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.membro-nome {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.membro-funcao {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFC400;
    display: block;
    margin-bottom: 10px;
}

.membro-divider {
    width: 32px;
    height: 2px;
    background: #FFC400;
    margin: 0 auto 12px;
    border-radius: 2px;
}

.membro-desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.55;
}

/* Foto central da equipe */
.equipe-foto-central {
    flex: 1;
    max-width: 480px;
    min-width: 260px;
}

.equipe-foto-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: #f0f0f0;
    border-radius: 18px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
}

.equipe-foto-icon {
    font-size: 48px;
    color: #ccc;
}

.equipe-foto-placeholder span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #bbb;
}

.equipe-foto-placeholder small {
    font-size: 0.78rem;
    color: #ccc;
}

/* Banner de conclusão */
.equipe-banner {
    margin-top: 40px;
    background: #222;
    border-radius: 14px;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.5;
}

.equipe-banner-icon {
    font-size: 28px;
    color: #FFC400;
    flex-shrink: 0;
}

.equipe-banner strong {
    color: #FFC400;
}

/* ==================================================
   BOTÃO HAMBÚRGUER
================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
    align-self: center;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFC400;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVO
   Breakpoints: 1200px (notebook pequeno) | 1024px (tablet) |
                768px (tablet retrato / celular grande) | 480px (celular) | 380px (celular pequeno)
   ============================================================ */

/* --- Notebooks pequenos / telas médias (≤ 1200px) --- */
@media (max-width: 1200px) {
    .titulo {
        font-size: 500%;
    }

    .fluxe {
        font-size: 900%;
    }

    .box,
    .box-sobre {
        width: 45%;
    }

    #container-quadros {
        width: 180%;
    }

    .equipe-linha--top,
    .equipe-linha--bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {

    /* Header / hambúrguer */
    #container-header {
        flex-wrap: wrap;
        padding: 12px 5%;
        z-index: 200;
    }

    #logotipo {
        max-width: 28%;
    }

    .hamburger {
        display: flex;
    }

    #menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
    }

    #menu.open {
        display: flex;
    }

    #menu li {
        width: 100%;
    }

    #menu a {
        font-size: 100%;
        display: block;
        padding: 6px 0;
    }

    /* Decorativos que causam overflow */
    .quadrado-amarelo,
    .bolinhas,
    .circulo,
    .linha-diagonal {
        display: none;
    }

    .meio-circulo {
        width: 200px;
        height: 200px;
        top: -3%;
        left: -5%;
    }

    /* Seção início */
    .inicio {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 40px 5% 60px;
    }

    .box {
        width: 65%;
        left: 0%;
    }

    .titulo {
        font-size: 6rem;
    }

    .fluxe {
        font-size: 8rem;
    }

    #butProject {
        width: 100%;
    }

    .imageBox {
        position: relative;
        width: 80%;
        left: 2%;
        margin: 30px auto 0;
    }

    /* Seção sobre nós */
    .sobre {
        flex-direction: column;
        min-height: auto;
        padding: 40px 5%;
    }

    .box-sobre {
        width: 90%;
        left: 5%;
    }

    .subTitulo1 {
        font-size: 260%;
    }

    .botao {
        width: 45%;
        height: auto;
        padding: 10px;
    }

    .infos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .infos .card {
        width: 100% !important;
        max-width: 500px;
        height: auto !important;
        min-height: 400px;
        background-color: white;
        box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
        margin: 10px 0;
    }

    .infos #target+label {
        background-color: #333232 !important;
        color: #FFC400 !important;
        box-shadow: 0px 10px 30px -5px rgb(174, 157, 6) !important;
    }

    .infos .card .descricao h1,
    .infos .card .descricao p {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .infos .card .descricao p {
        font-size: 20px;
    }

    /* Implementações */
    .container.implementacoes {
        min-height: auto;
        padding: 40px 5%;
    }

    .container-circuito {
        display: none;
    }

    .container.implementacoes .box-sobre {
        position: static;
        width: 90%;
        margin: 0 auto;
        left: 0;
    }

    .subTitulo {
        font-size: 260%;
        left: 0;
        text-align: left;
    }

    .slash {
        left: 0;
    }

    #container-quadros {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }

    .quadro {
        width: calc(50% - 20px);
        min-width: 220px;
        height: auto;
        min-height: 160px;
    }

    /* Rodapé */
    #rodape {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        flex-wrap: nowrap;
    }

    #divirodape {
        width: 60%;
    }

    #rodapeUl {
        width: 40%;
        text-align: center;
    }

    /* Equipe */
    .equipe-linha--top {
        flex-direction: column;
        align-items: center;
    }

    .equipe-foto-central {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .equipe-foto-placeholder {
        min-height: 200px;
    }

    .membro-card {
        width: 100%;
        max-width: 420px;
    }

    .equipe-linha--bottom {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Tablet retrato / celular grande (≤ 768px) --- */
@media (max-width: 768px) {

    #logotipo {
        max-width: 35%;
    }

    .box {
        width: 80%;
    }

    .titulo {
        font-size: 4.2rem;
    }

    .fluxe {
        font-size: 5.5rem;
    }

    .container-texto {
        font-size: 105%;
    }

    .box-sobre {
        width: 100%;
        left: 0;
        padding: 0 5%;
    }

    .subTitulo1 {
        font-size: 220%;
    }

    .subTitulo {
        font-size: 220%;
    }

    .botao {
        width: 60%;
    }

    .quadro {
        width: 100%;
        min-height: auto;
    }

    #container-quadros {
        gap: 16px;
    }

    /* Equipe */
    .container-equipe {
        padding: 70px 5%;
    }

    .equipe-titulo {
        font-size: 2.1rem;
    }

    .equipe-subtitulo {
        font-size: 1rem;
    }

    .equipe-canto {
        width: 40px;
        height: 40px;
    }

    /* Rodapé */
    #rodape {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 30px 20px;
        gap: 16px;
    }

    #divirodape,
    #rodapeUl {
        width: 100%;
    }
}

/* --- Celular (≤ 480px) --- */
@media (max-width: 480px) {

    #container-header {
        width:100vw
    }

    #logotipo {
        max-width: 15rem;
        max-height: 5rem;
    }

    .meio-circulo {
        display: none;
    }

    .titulo {
        font-size: 260%;
    }

    .fluxe {
        font-size: 420%;
    }

    .container-texto {
        font-size: 95%;
    }

    .box {
        width: 90%;
    }

    #butProject {
        width: 90%;
        font-size: 14px;
        padding: 14px;
    }

    .imageBox {
        width: 95%;
    }

    .subTitulo1 {
        font-size: 200%;
    }

    .subTitulo {
        font-size: 180%;
    }

    .botao {
        width: 70%;
        font-size: 14px;
    }

    .card {
        max-width: 100%;
    }

    input:checked+label {
        max-width: 100%;
    }

    .quadro {
        width: 100%;
        max-width: 100%;
    }

    .logoImg {
        width: 40%;
    }

    #divirodape h3 {
        font-size: 14px;
    }

    #textRodape {
        font-size: 120%;
    }

    /* Equipe */
    .container-equipe {
        padding: 60px 5%;
    }

    .equipe-linha {
        width: 80vw;
    }

    .equipe-titulo {
        font-size: 1.8rem;
    }

    .equipe-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .equipe-canto {
        display: none;
    }
}

/* --- Celular pequeno (≤ 380px) --- */
@media (max-width: 380px) {

    #logotipo {
        max-width: 50%;
    }

    .titulo {
        font-size: 220%;
    }

    .fluxe {
        font-size: 340%;
    }

    .box {
        width: 95%;
    }

    .membro-card {
        padding: 24px 16px;
    }

    .membro-foto {
        width: 8rem;
        height: 8rem;
    }

    .equipe-label {
        font-size: 1.8rem;
    }

    .equipe-titulo {
        font-size: 1.5rem;
    }

    #divirodape h3 {
        font-size: 12px;
    }
}