/* ==========================================================================
   1. LAYOUT PRINCIPAL DA PÁGINA "SOBRE NÓS"
   ========================================================================== */
main {
    margin-bottom: 3vh;
}

.about-section {
    width: 100%;
    max-width: 1440px;
    margin-top: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
}

.about-section h1 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    text-align: justify;
}

.about-us-section {
    width: 100%;
    max-width: 1440px;
    margin-top: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
}

.about-us-section h1 {
    font-family: var(--font-main);
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.about-us-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* ==========================================================================
   2. CARROSSEL DE DESENVOLVEDORES (LAYOUT REFEITO)
   ========================================================================== */

.team-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 550px;
    position: relative;
    perspective: 1500px;
}

.carousel-container {
    position: relative;
    width: 450px;
    height: 350px;
    transform-style: preserve-3d;
}

.dev-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease, filter 0.5s ease;
    will-change: transform, opacity, filter;
}

.dev-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dev-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.dev-info h3 {
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

/* --- Estados dos Cards do Carrossel --- */

.dev-card.active {
    transform: translateX(0) scale(1.1);
    opacity: 1;
    z-index: 10;
    filter: blur(0);
}

.dev-card.prev,
.dev-card.next {
    z-index: 5;
    opacity: 0.6;
    filter: blur(2px);
}

.dev-card.prev {
    transform: translateX(-65%) scale(0.8);
}

.dev-card.next {
    transform: translateX(65%) scale(0.8);
}

.dev-card.far-prev,
.dev-card.far-next {
    z-index: 1;
    opacity: 0.2;
    filter: blur(4px);
}

.dev-card.far-prev {
    transform: translateX(-120%) scale(0.6);
}

.dev-card.far-next {
    transform: translateX(120%) scale(0.6);
}

.dev-card.hidden {
    transform: scale(0);
    opacity: 0;
}

/* --- Setas de Navegação --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glasmorphism-bg);
    border: 1px solid var(--glasmorphism-border-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carousel-arrow:hover {
    transform: scale(1.1) translateY(-50%);
    background-color: var(--accent-color);
    color: white;
}

#arrowLeft {
    left: 10%;
}

#arrowRight {
    right: 10%;
}


/* ==========================================================================
   3. DIÁLOGO DE INFORMAÇÕES (MAIOR E COM ANIMAÇÕES)
   ========================================================================== */

#dev-dialog {
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 650px;
    border: none;
    overflow: hidden;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#dev-dialog[open] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

#dev-dialog.closing {
    animation: fadeOut 0.3s ease forwards;
}

.dialog-content {
    position: relative;
    padding: 40px;
    padding-top: 60px;
}

#dev-dialog .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

#dialog-image {
    width: 60%;
    height: 40%;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    margin: 0 auto 25px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#dialog-name {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

#dialog-description {
    font-size: 1.2rem;
    color: var(--text-primary);
    background-color: var(--glasmorphism-bg);
    padding: 20px;
    border-radius: 12px;

    max-width: fit-content;
    margin: 0 auto;
    text-align: center;
}

/* ============================
* MEDIA QUERIES PARA RESPONSIVIDADE
* ============================ */
@media (max-width: 992px) {
    .team-carousel {
        height: 450px;
    }

    .carousel-container {
        width: 350px;
        height: 280px;
    }

    #arrowLeft {
        left: 5%;
    }

    #arrowRight {
        right: 5%;
    }
}


@media (max-width: 768px) {
    .about-us-section h1 {
        font-size: 2.5rem;
    }

    .about-us-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .team-carousel {
        height: auto;
        padding: 40px 0;
        perspective: none;
    }

    .carousel-container {
        width: 80vw;
        max-width: 300px;
        height: 350px;
        transform-style: flat;
    }

    /* Simplifica o carrossel em telas pequenas */
    .dev-card.prev,
    .dev-card.next,
    .dev-card.far-prev,
    .dev-card.far-next {
        display: none;
    }

    .dev-card.active {
        transform: translateX(0) scale(1);
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    #arrowLeft {
        left: 0;
    }

    #arrowRight {
        right: 0;
    }

    #dialog-name {
        font-size: 1.8rem;
    }

    #dialog-description {
        font-size: 1rem;
    }

    .dialog-content {
        padding: 30px 20px;
        padding-top: 50px;
    }
}