/* Encapsulamento CSS para evitar conflitos */
.human-ai-section {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --tertiary-color: #808080;
    --primary-font: 'Orbitron', 'Arial Black', sans-serif;
    --secondary-font: 'Source Code Pro', 'Courier New', monospace;
    
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: var(--primary-font);
}

/* Background da imagem */
.human-ai-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/back_hands.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
}

/* Grid lines overlay */
.human-ai-section .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

/* Container para chuva binária */
.human-ai-section .binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

/* Elementos da chuva binária - ATUALIZADO */
.human-ai-section .binary-drop {
    position: absolute;
    color: var(--tertiary-color);
    font-family: var(--secondary-font);
    font-size: 20px; /* Aumentado de 14px para 24px */
    font-weight: 400; /* Aumentado de 300 para 600 para números mais destacados */
    opacity: 0.5; /* Reduzido de 0.6 para 0.5 para suavizar */
    animation: binaryFall linear infinite;
}

/* Animação da chuva binária - ATUALIZADA */
@keyframes binaryFall {
    0% {
        transform: translateY(-120px); /* Aumentado de -100px para início mais suave */
        opacity: 0;
    }
    15% { /* Aumentado de 10% para 15% - transição mais suave */
        opacity: 0.5; /* Reduzido de 0.6 para 0.5 */
    }
    85% { /* Reduzido de 90% para 85% - transição mais suave */
        opacity: 0.5; /* Reduzido de 0.6 para 0.5 */
    }
    100% {
        transform: translateY(calc(100vh + 120px)); /* Aumentado de +100px para final mais suave */
        opacity: 0;
    }
}

/* Conteúdo principal */
.human-ai-section .content-wrapper {
    position: relative;
    z-index: 4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

/* ========== CORREÇÃO DO BUG - ESTADO INICIAL INVISÍVEL ========== */
/* Elementos com animação ficam invisíveis até serem ativados */
.human-ai-section [data-animation]:not(.animate__animated-done) {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

/* Específico para elementos que vão aparecer de diferentes direções */
.human-ai-section [data-animation="animate__fadeInLeft"]:not(.animate__animated-done) {
    opacity: 0;
    transform: translateX(-30px);
}

.human-ai-section [data-animation="animate__fadeInRight"]:not(.animate__animated-done) {
    opacity: 0;
    transform: translateX(30px);
}

.human-ai-section [data-animation="animate__fadeInDown"]:not(.animate__animated-done) {
    opacity: 0;
    transform: translateY(-30px);
}

.human-ai-section [data-animation="animate__fadeInUp"]:not(.animate__animated-done) {
    opacity: 0;
    transform: translateY(30px);
}

.human-ai-section [data-animation="animate__zoomIn"]:not(.animate__animated-done) {
    opacity: 0;
    transform: scale(0.8);
}

/* Quando a animação é ativada, restaura a visibilidade */
.human-ai-section [data-animation].animate__animated-done {
    opacity: 1;
    transform: none;
}
/* ========== FIM DA CORREÇÃO ========== */

/* Estilização do texto com sombras para melhor legibilidade */
.human-ai-section h1 {
    font-family: var(--primary-font);
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.8), 
                1px 1px 3px rgba(0, 0, 0, 0.3);
}

.human-ai-section h2 {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--tertiary-color);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7), 
                1px 1px 2px rgba(0, 0, 0, 0.2);
}

.human-ai-section p {
    font-family: var(--secondary-font);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 
                1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Container de conteúdo transparente */
.human-ai-section .feature-card {
    background: transparent;
    border: none;
    padding: 2rem;
    margin: 2rem 0;
}

/* Cards de ferramentas IA */
.human-ai-section .ai-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
    gap: 2rem;
}

.human-ai-section .ai-tool-card {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(128, 128, 128, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.human-ai-section .ai-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.human-ai-section .ai-tool-card:hover::before {
    transform: scale(1);
}

.human-ai-section .ai-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.human-ai-section .ai-tool-card iconify-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.human-ai-section .ai-tool-card:hover iconify-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.human-ai-section .ai-tool-card span {
    font-family: var(--secondary-font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
}

.human-ai-section .ai-tool-card:hover span {
    color: var(--primary-color);
}

/* Modal customization */
.ai-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ai-modal .modal-header {
    border-bottom: 2px solid rgba(128, 128, 128, 0.2);
    padding: 2rem 2rem 1rem;
}

.ai-modal .modal-title {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-modal .modal-title iconify-icon {
    font-size: 2rem;
    color: var(--tertiary-color);
}

.ai-modal .modal-body {
    padding: 1rem 2rem 2rem;
}

.ai-modal .modal-body p {
    font-family: var(--secondary-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    text-shadow: none;
    text-align: left;
    margin-bottom: 1rem;
}

.ai-modal .use-cases {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.ai-modal .use-cases h6 {
    font-family: var(--primary-font);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.ai-modal .use-cases ul {
    list-style: none;
    padding: 0;
}

.ai-modal .use-cases li {
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.ai-modal .use-cases li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--tertiary-color);
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .human-ai-section .feature-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .human-ai-section .ai-tools {
        gap: 1.5rem;
    }
    
    .human-ai-section .ai-tool-card {
        width: 100px;
        height: 100px;
    }
    
    .human-ai-section .ai-tool-card iconify-icon {
        font-size: 2rem;
    }
    
    .human-ai-section .ai-tool-card span {
        font-size: 0.7rem;
    }
    
    .human-ai-section .grid-overlay {
        background-size: 30px 30px;
    }
    
    /* Responsividade para chuva binária em mobile */
    .human-ai-section .binary-drop {
        font-size: 18px; /* Reduzido para 18px em mobile */
    }
}