/* ===================================
   PROJETO ELEVOX - ESTILOS PRINCIPAIS
   =================================== */

/* Estilos base (Tema Claro) */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--tw-bg-light);
    color: var(--tw-text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Canvas 3D */
#elevox-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Efeito de fundo Aurora (com o novo azul) */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Cor HSL(242, 69%, 43%) é ~ #281dc2 */
    background-image: radial-gradient(at 20% 80%, hsla(242, 69%, 43%, 0.1) 0px, transparent 50%),
                      radial-gradient(at 80% 20%, hsla(242, 69%, 43%, 0.15) 0px, transparent 50%),
                      radial-gradient(at 70% 80%, hsla(242, 69%, 43%, 0.1) 0px, transparent 50%);
    filter: blur(50px);
}

/* Header com Glassmorphism */
.header-glass {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.mobile-menu-link:hover {
    color: #ffffff;
    border-bottom-color: #281dc2;
    padding-left: 1rem;
}

.mobile-menu-link-cta {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(to right, #281dc2, #201799);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.mobile-menu-link-cta:hover {
    transform: scale(1.05);
}

/* Animação de Revelação de Seção */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Texto em Gradiente (Agora com o azul vibrante) */
.gradient-text {
    background-image: linear-gradient(to right, #281dc2, #201799);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cartão "Clean" (Tema Claro) */
.tech-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Borda sutil */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Sombra suave */
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(40, 29, 194, 0.7); /* brand-blue */
    transform: translateY(-5px);
    /* Sombra azul sutil */
    box-shadow: 0 10px 30px rgba(40, 29, 194, 0.1);
}

.modal-overlay {
    background-color: rgba(15, 23, 42, 0.6); /* Fundo escuro translúcido */
    backdrop-filter: blur(4px); /* Efeito de desfoque no fundo */
}

.component-card {
    cursor: pointer; /* Indica que é clicável */
}

/* Efeito no botão "Ver Specs" ao passar o mouse no card */
.component-card:hover .view-specs-btn {
    background-color: #281dc2;
    color: #ffffff;
}

/* Animação de fade-in para o modal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

/* Estilos para imagens - Evitar distorção */
img {
    max-width: 100%;
    height: auto;
}

/* Imagens circulares (perfis) - manter proporção sem distorção */
img.rounded-full {
    object-fit: cover !important;
    object-position: center top;
}

/* Ajustes específicos de posicionamento para fotos da equipe */
img[alt="Israel Oliveira"] {
    object-position: center 20% !important;
}

img[alt="Wisley Anjos"] {
    object-position: center 60% !important;
}

img[alt="Nadia Sugawara"] {
    object-position: center 60% !important;
}

img[alt="Matheus Costa"] {
    object-position: center 30% !important;
}

img[alt="Carlos Eduardo"] {
    object-position: center 30% !important;
}

img[alt="Jhennyfer Gomes"] {
    object-position: center 50% !important;
}


/* Imagens gerais - manter proporção */
img.rounded-lg {
    object-fit: contain;
}

/* Carrossel de Protótipo - padronizar altura */
#prototype-carousel img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background-color: #f8fafc;
}

@media (max-width: 768px) {
    #prototype-carousel img {
        height: 350px;
    }
}

@media (max-width: 480px) {
    #prototype-carousel img {
        height: 280px;
    }
}

/* Background do Hero */
#home {
    background-image: url('https://github.com/deskytop/elevox-website/blob/Main/assets/background.png?raw=true');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay escuro azulado com blur */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 50, 80, 0.85);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
}

/* Garantir que o conteúdo fique acima do overlay */
#home > div {
    position: relative;
    z-index: 10;
}

/* Canvas não interfere no layout */
#home > canvas {
    z-index: 5;
}

/* Título do Hero - gradiente roxo/rosa uniforme */
#home h1 {
    background-image: linear-gradient(90deg, #c9c8ff, #6d76fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#home h1 .gradient-text {
    background: none;
    -webkit-text-fill-color: transparent;
}

/* Descrição do hero - texto branco */
#home p {
    color: #ffffff !important;
}

/* Carrossel Infinito de Equipe - VERSÃO DESKTOP (cards maiores) */
@media (min-width: 1024px) {
    .team-gallery {
        position: relative;
        width: 100%;
        height: 650px;
        padding-bottom: 3rem;
    }

    .team-cards {
        position: absolute;
        width: 24rem;
        height: 28rem;
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        margin: 0;
    }

    .team-cards li {
        list-style: none;
        padding: 1.5rem !important;
        margin: 0;
        width: 24rem;
        height: 28rem;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .team-cards li img {
        opacity: 0;
    }

    .team-cards li .w-32 {
        width: 10rem !important;
        height: 10rem !important;
        margin-bottom: 1rem !important;
    }

    .team-cards li h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .team-cards li p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        padding: 0 1rem;
        line-height: 1.5 !important;
    }

    .team-actions {
        z-index: 100 !important;
        position: absolute !important;
        bottom: 15px !important;
    }
}

/* VERSÃO MOBILE E TABLET (carrossel adaptado) */
@media (max-width: 1023px) {
    .team-gallery {
        position: relative;
        width: 100%;
        max-width: 100vw;
        height: 580px;
        padding: 2rem 0 4rem 0;
        overflow: visible !important;
    }

    .team-cards {
        position: absolute;
        width: 18rem;
        max-width: 90vw;
        height: 24rem;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        margin: 0;
    }

    .team-cards li {
        list-style: none;
        padding: 1.5rem !important;
        margin: 0;
        width: 18rem;
        max-width: 90vw;
        height: 24rem;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .team-cards li img {
        opacity: 0;
        width: 8rem !important;
        height: 8rem !important;
        margin-bottom: 1rem !important;
    }

    .team-cards li h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .team-cards li p {
        font-size: 0.9375rem !important;
        margin-bottom: 0 !important;
        padding: 0 0.5rem;
        line-height: 1.4 !important;
    }

    .team-actions {
        z-index: 100 !important;
        position: absolute !important;
        bottom: 30px !important;
    }
}

/* VERSÃO MOBILE PEQUENO (celulares) */
@media (max-width: 480px) {
    .team-gallery {
        height: 520px;
        max-width: 100vw;
        padding: 2rem 0 4rem 0;
        overflow: visible !important;
    }

    .team-cards {
        top: 42%;
    }

    .team-actions {
        bottom: 35px !important;
    }

    .team-cards {
        width: 16rem;
        max-width: 90vw;
        height: 22rem;
    }

    .team-cards li {
        width: 16rem;
        max-width: 90vw;
        height: 22rem;
        padding: 1rem !important;
    }

    .team-cards li img {
        width: 7rem !important;
        height: 7rem !important;
    }

    .team-cards li h3 {
        font-size: 1rem !important;
    }

    .team-cards li p {
        font-size: 0.875rem !important;
    }
}