/* style.css */

:root {
    --primary-color: #0d6efd; /* Azul do Bootstrap */
    --secondary-color: #6c757d; /* Cinza do Bootstrap */
    --success-color: #198754; /* Verde do Bootstrap */
    --info-color: #0dcaf0; /* Ciano do Bootstrap */
    --dark-color: #212529; /* Escuro do Bootstrap */
    --light-bg: #f8f9fa; /* Fundo claro do Bootstrap */
    --gradient-start: #0a0e1a;
    --gradient-end: #1a233b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden; /* Evita scroll horizontal indesejado */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    /* Exemplo com imagem de fundo, com overlay para escurecer: */
    /* background: linear-gradient(rgba(10, 14, 26, 0.85), rgba(26, 35, 59, 0.85)), url('img/background_ai_automation.jpg') no-repeat center center/cover; */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 0; /* Ajuste para dar espaço ao conteúdo */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.hero-content {
    max-width: 900px;
    z-index: 2; /* Garante que o texto esteja acima de quaisquer animações de fundo */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
}

.navbar-brand .animated-robot-icon {
    font-size: 2rem;
    animation: bounceRobot 2s infinite ease-in-out;
}

.nav-link.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: bold;
}

/* Animações inspiradas em automação/bots */

/* Animação para o ícone do robô no cabeçalho */
@keyframes bounceRobot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Animação para o título principal (efeito de digitação/entrada) */
.animated-headline {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-subheadline {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s; /* Atraso */
}

.animated-button-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s; /* Atraso */
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Seção de Recursos/Funcionalidades */
.feature-card, .testimonial-card {
    background-color: white;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-card h3, .testimonial-card h3 {
    color: var(--primary-color);
}

.feature-card .animated-icon {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mockup de Telas */
.animated-mockup-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-mockup-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Seção de Testemunhos */
.testimonial-card {
    border-top: 5px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
}

.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color) !important;
}

/* Estilos para o Chatbot (copiado de dashboard.css e ajustado) */
/* Opcional: Você pode colocar este CSS em um arquivo separado chamado 'chatbot.css'
   e importá-lo no <head> como `<link rel="stylesheet" href="chatbot.css">` */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s;
    z-index: 1000;
}
#chat-header {
    background: var(--dark-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}
.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.user-message {
    justify-content: flex-end;
}
.bot-message {
    justify-content: flex-start;
}
.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}
.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}
.bot-message .message-content {
    background: var(--light-bg);
    color: #333;
    border-bottom-left-radius: 5px;
}
.bot-icon {
    margin-right: 10px;
    color: var(--dark-color);
    font-size: 20px;
    flex-shrink: 0;
}
#chat-input-container {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}
#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}
#send-button {
    margin-left: 10px;
    padding: 10px 15px;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
#close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
#open-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}
.typing-indicator {
    display: inline-block;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 18px;
    margin-bottom: 15px;
    border-bottom-left-radius: 5px;
}
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    margin: 0 2px;
    opacity: 0.4;
}
.typing-dot:nth-child(1) {
    animation: typingAnimation 1s infinite;
}
.typing-dot:nth-child(2) {
    animation: typingAnimation 1s infinite 0.2s;
}
.typing-dot:nth-child(3) {
    animation: typingAnimation 1s infinite 0.4s;
}
@keyframes typingAnimation {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
.loading-message {
    color: #666;
    font-style: italic;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-section {
        padding: 80px 0;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 (1080 / 1920 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 1920px; /* Permite que o vídeo alcance a largura de um Full HD */
    width: 90%; /* Garante que o vídeo seja responsivo e ocupe 90% da largura do container pai */
    margin: 30px auto; /* Margem superior/inferior e centraliza */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Ajustes responsivos para telas menores */
@media (max-width: 1200px) { /* Ajuste para telas grandes, mas menores que a max-width */
    .video-container {
        width: 85%; /* Pode ser um pouco menor para dar mais respiro */
    }
}

@media (max-width: 992px) { /* Tablets e desktops pequenos */
    .video-container {
        width: 90%;
    }
}

@media (max-width: 768px) { /* Tablets menores e celulares */
    .video-container {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 576px) { /* Celulares */
    .video-container {
        width: 100%; /* Ocupa largura total em celulares */
        margin: 15px auto;
        border-radius: 0; /* Remove borda arredondada em telas muito pequenas para melhor aproveitamento */
    }
    .video-container iframe {
        border-radius: 0;
    }
}