/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-primario: #4CAF50;
    --verde-secundario: #2E7D32;
    --azul-primario: #2196F3;
    --azul-secundario: #1565C0;
    --amarelo: #FFC107;
    --branco: #FFFFFF;
    --preto: #333333;
    --cinza: #f5f5f5;
}

/* ===== EFEITO DE PARTICULAS ===== */
.particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(45deg, #f0f9f0, #e3f2fd);
}

/* ===== CABEÇALHO COM GLASSMORPHISM ===== */
.cabecalho {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(46, 125, 50, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--branco);
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
    animation: girarLogo 5s linear infinite;
}

@keyframes girarLogo {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.menu-lista {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu-link {
    color: var(--branco);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-link:hover {
    background: var(--amarelo);
    color: var(--preto);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== SEÇÕES COM PARALLAX ===== */
.section {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.parallax-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=1920');
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.animate-pop {
    animation: popIn 1s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-slide {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===== IMAGEM DESTAQUE COM OVERLAY ===== */
.imagem-destaque {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.imagem-destaque img {
    width: 100%;
    height: auto;
    transition: transform 5s;
}

.imagem-destaque:hover img {
    transform: scale(1.1);
}

.overlay-destaque {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s;
}

.imagem-destaque:hover .overlay-destaque {
    transform: translateY(0);
}

/* ===== CARD 3D ===== */
.card-3d {
    width: 200px;
    height: 200px;
    margin: 50px auto;
    perspective: 1000px;
    cursor: pointer;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-3d.girar .card-3d-inner {
    transform: rotateY(180deg);
}

.card-3d-frente, .card-3d-tras {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px;
}

.card-3d-frente {
    background: linear-gradient(135deg, var(--verde-primario), var(--azul-primario));
    color: white;
}

.card-3d-tras {
    background: linear-gradient(135deg, var(--amarelo), var(--verde-primario));
    color: var(--preto);
    transform: rotateY(180deg);
}

.card-3d i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ===== CARDS FLUTUANTES ===== */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.card-flutuante {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    animation: flutuar 3s ease-in-out infinite;
}

.card-flutuante:nth-child(2) {
    animation-delay: 0.5s;
}

.card-flutuante:nth-child(3) {
    animation-delay: 1s;
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-flutuante:hover {
    transform: translateY(-30px) scale(1.05);
    box-shadow: 0 30px 40px rgba(76, 175, 80, 0.3);
}

.card-imagem {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-flutuante:hover .card-imagem img {
    transform: scale(1.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-flutuante:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    color: white;
    font-size: 3rem;
    animation: pulse 1s infinite;
}

.card-conteudo {
    padding: 20px;
}

/* ===== GALERIA COM ZOOM ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.galeria-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.galeria-imagem {
    position: relative;
    width: 100%;
    height: 100%;
}

.galeria-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeria-item:hover img {
    transform: scale(1.2);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76,175,80,0.9), rgba(33,150,243,0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
    padding: 20px;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 3rem;
    margin-top: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(var(--verde-primario), var(--azul-primario));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    cursor: pointer;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icone {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--amarelo);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icone {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icone {
    left: -25px;
}

.timeline-conteudo {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.timeline-conteudo img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.timeline-item:hover .timeline-conteudo {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(76,175,80,0.3);
}

.timeline-item.pulsar {
    animation: pulsarCard 0.5s;
}

@keyframes pulsarCard {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== CARDS DE EQUIPE (VIRAR) ===== */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.equipe-card {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.equipe-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.equipe-card.virar .equipe-card-inner {
    transform: rotateY(180deg);
}

.equipe-frente, .equipe-tras {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.equipe-frente {
    background: white;
}

.equipe-frente img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.equipe-frente h3 {
    padding: 15px;
    text-align: center;
}

.equipe-tras {
    background: linear-gradient(135deg, var(--verde-primario), var(--azul-primario));
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* ===== TECNOLOGIA COM EFEITO NEON ===== */
.tecnologia-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.tecnologia-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.tecnologia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin: 15px 0;
}

.tecnologia-icone {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--amarelo);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
}

.tecnologia-card:hover .tecnologia-icone {
    transform: scale(1.2) rotate(360deg);
}

.neon-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 20px;
    transition: all 0.3s;
    pointer-events: none;
}

.tecnologia-card.neon-ativo .neon-border {
    border-color: var(--amarelo);
    box-shadow: 0 0 20px var(--amarelo);
    animation: neonPulse 1s infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== CARDS DE CONCLUSÃO ===== */
.conclusao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.conclusao-card {
    background: linear-gradient(135deg, var(--verde-primario), var(--azul-primario));
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.conclusao-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.conclusao-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.conclusao-card:hover i {
    transform: rotate(360deg) scale(1.2);
}

.conclusao-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.conclusao-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* ===== ASSINATURA FINAL ===== */
.assinatura-final {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.img-assinatura {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--amarelo);
    animation: girarFoto 10s linear infinite;
}

@keyframes girarFoto {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.texto-assinatura {
    font-size: 1.2rem;
    color: var(--verde-secundario);
    font-weight: bold;
}

/* ===== MODAL PARA ZOOM ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-conteudo {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.fechar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modal-legenda {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--amarelo);
    color: var(--preto);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.btn-topo.visivel {
    opacity: 1;
}

.btn-topo:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255,193,7,0.5);
}

/* ===== RODAPÉ ===== */
.rodape {
    background: linear-gradient(135deg, var(--verde-secundario), var(--azul-secundario));
    color: white;
    padding: 30px;
    text-align: center;
}

.redes-sociais {
    margin-bottom: 20px;
}

.redes-sociais a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s;
}

.redes-sociais a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--amarelo);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .menu-lista {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--verde-secundario);
        flex-direction: column;
        padding: 20px;
    }

    .menu-lista.ativo {
        display: flex;
    }

    .menu-hamburguer {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .barra {
        width: 30px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: all 0.3s;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-icone {
        left: 6px !important;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .titulo-principal {
        font-size: 2rem;
    }
    
    .titulo-principal span {
        font-size: 1.5rem;
    }
    
    .assinatura-final {
        flex-direction: column;
        text-align: center;
    }
}