@import url("../styles/global.css");

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 40px 10px;
}

header {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 30px;
    gap: 30px;
    width: 100%;
    background-color: var(--red-v700);
    transition: gap 0.4s ease;
    z-index: 1001;
}

header nav ul li a {
    text-decoration: none;
    color: var(--grey-c100);
}

header.noGap {
    gap: 0;
}

header > .imagesWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: gap 0.4s ease;
}

.imagesWrap > button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#links.open {
    max-height: 380px;
}

nav > ul > li:nth-child(2) > a {
    text-decoration: underline;
}

nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

nav > ul > li > a {
    font-size: 1rem;
    color: var(--grey-c100);
    text-decoration: none;
}


.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
}

.frase-impacto {
    font-weight: 600;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #111;
}

/* ==================== DESCRIÇÕES ==================== */
.descricao-breve,
.descricao-detalhada {
    background: #f4f4f4;
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
}

/* ==================== CARROSSEL DE RACKS ==================== */


.hack-container {
    display: flex;
    gap: 30px;
    padding: 0 30px;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 0.6s ease-in-out;
}

.hack {
    height: 100%;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.hack img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.hack p {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.hack.destaque {
    opacity: 1;
}

/**/
.flip-card {
    background-color: transparent;
    width: 250px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid #E30613;
    border-radius: 10px;
}

.flip-card-front {
    background-color: #FFF;

}

.flip-card-back {
    background-color: #FFF;
    transform: rotateY(180deg);

}

/**/

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.card-front {
    background: #9a1915;
    border-radius: 10px;
}

.card-container.flipped .card-back {
    opacity: 1;
    pointer-events: auto;
}

.card-front img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card-front h3,
.card-back h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e30613;
    display: flex;
    justify-content: center;
    text-align: center;
}

.card-back p {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

.botao-acesso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 24px;
    background-color: #e30613;
    outline: 2px solid #E30613;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.botao-acesso:hover {
    background-color: #ffffff;
    color: #000;
}

.botao-acesso:hover .seta-acesso {
    filter: invert(1);
}

.card-container {
    width: 250px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.carrossel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px;
}


/* ===================== CARÔMETRO ===================== */
.carrossel-participantes {
    text-align: center;
    padding: 100px 0 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carometro-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 300px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carometro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-55%, -40%) rotateY(0deg);
    width: 100%;
    height: 100%;
}

.participante {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: transform 1s ease, opacity 1s ease, filter 1s ease;
}

.participante img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.participante p {
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
}

.participante.tras {
    filter: grayscale(100%);
    opacity: 0.5;
    transform: scale(0.8);
}

.caro-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    color: #e30613;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.caro-btn.prev {
    left: 10px;
}

.caro-btn.next {
    right: 10px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.btn-fotos,
.btn-projeto {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.btn-projeto {
    margin-top: 20px;
}


/* seta */
.seta-acesso {
    width: 20px;
    height: auto;
    transform: translateY(1px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carrossel-servidores {
    display: flex;
    width: 100%;
    overflow: scroll;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 0 20px;
    justify-content: flex-start;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
    gap: 30px;
    background-color: var(--red-v700);
}

footer > .backInPage > h2 {
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 600;
    color: var(--grey-c100);
}

footer > nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

footer > nav > ul > li > a {
    font-size: 16px;
    font-weight: 300;
    color: var(--grey-c100);
}

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

.contatos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.contatos > h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--grey-c100);
}

.socialMedias {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

footer > .contact > .acesseTambem > h4 {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 600;
    color: var(--grey-c100);
}

footer > .contact > .acesseTambem > a {
    font-size: 16px;
    font-weight: 300;
    color: var(--grey-c100);
    text-decoration: underline;
}

/* ===================== RESPONSIVIDADE ===================== */
@media (max-width: 500px) {
    h1 {
        margin-top: 90px;
    }

    .nav-links {
        flex-direction: column;
        background: #e30613;
        z-index: 99;
        max-width: 100%;
        top: 0;
        right: 0;
        transform: translateY(-100%);
        opacity: 0.8;
        transition: transform 0.35s ease, opacity 0.35s ease;
        position: fixed;
        justify-content: center;
        align-items: center;
        margin-top: 70px;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .botao-acesso {
        margin-bottom: 30px;
    }

    .btn-fotos {
        margin-top: 0;
        margin-bottom: 80px;
    }

    .rack-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 16px;
        padding: 0 16px;
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        transform: none !important;
    }

    .rack-container::-webkit-scrollbar {
        display: none;
    }

    .card-container {
        flex: 0 0 auto;
        scroll-snap-align: center;
        width: 240px;
        height: 300px;
    }

    .carometro-wrapper {
        max-width: 550px;
        height: 220px;
    }

    .participante {
        transform-origin: center center -200px !important;
    }

    .participante img {
        width: 70px;
        height: 70px;
    }

    h1 {
        margin-top: 90px;
    }

    .nav-links {
        flex-direction: column;
        background: #e30613;
        padding: 40px 20px;
        z-index: 997;
        width: 100%;
        min-height: 80vh;
        right: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        position: fixed;
        justify-content: center;
        align-items: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0);
    }

    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
    }

    .carrossel-participantes {
        padding: 10px 0 20px 0;
        margin-top: 0;
    }

    .carometro-wrapper {
        max-width: 100%;
        height: auto;
        perspective: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 20px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        margin-bottom: 0;
    }

    .carometro-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carometro {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row;
        gap: 50px;
        width: auto;
        height: auto;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .carousel-item {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 10px;
    }

    .participante {
        position: static;
        transform: none !important;
        opacity: 1;
        filter: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        scroll-snap-align: center;
        min-width: 80px;
    }

    .participante img {
        width: 60px;
        height: 60px;
    }

    .participante p {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .caro-btn {
        display: none;
    }

    footer > .backInPage > h2 {
        margin-bottom: 12px;
        font-size: 48px;
        color: var(--grey-c100);
    }

    footer > .backInPage > nav > ul > li > a {
        font-size: 24px;
        color: var(--grey-c100);
        font-weight: 300;
    }

    footer > .contact > .acesseTambem > h4 {
        font-size: 30px;
        color: var(--grey-c100);
    }

    footer > .contact > .acesseTambem > a {
        font-size: 24px;
        color: var(--grey-c100);
        font-weight: 300;
    }
}