/* ============================================= */
/* Início da Seção de Estilos (CSS)              */
/* ============================================= */

/* Configuração base com Tailwind */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #111111;
    /* Fundo principal do site */
    color: #ffffff;
    overflow-x: hidden;
    /* Previne scroll horizontal */
}

/* Cores personalizadas para corresponder à imagem */
.bg-brand-green {
    background-color: #39FF14;
}

.text-brand-green {
    color: #39FF14;
}

.border-brand-green {
    border-color: #39FF14;
}

.accent-brand-green {
    accent-color: #39FF14;
}

/* Estilização e animação do botão "Contrate" */
.pulsing-button {
    background-color: #39FF14;
    color: #111111;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: smoky-pulse-green 2s infinite;
}

.pulsing-button:hover {
    background-color: #2ee60e;
    animation-play-state: paused;
}

/* Adicionado para responsividade da barra de animação */
@media (max-width: 768px) {
    .animated-text {
        font-size: 0.5rem;
        /* Tamanho do texto menor para celulares */
    }

    .cursor {
        height: 1.5rem;
        /* Ajusta a altura do cursor para o novo tamanho de texto */
    }
}

@keyframes smoky-pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(57, 255, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }
}

/* Estilos do Cabeçalho Fixo e Transparente */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}

.header-scrolled {
    background-color: rgba(17, 17, 17, 0.85);
    /* Fundo do Cabeçalho ao rolar */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: #222;
}

/* Efeito de linha verde nos links do menu */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #39FF14;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Estilo Barra de Clientes com Distincto
/* --- Estilos para a Barra de Animação --- */
.animation-bar {
    background-color: #000000;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'VT323', monospace;
    overflow: hidden;
    position: relative;
    /* Essencial para a sobreposição */
}

/* Camada de Fundo com Pixels Quadrados */
.pixel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    z-index: 1;
    /* Fica atrás do texto */
}

.bg-pixel {
    width: 100%;
    padding-bottom: 100%;
    /* Truque para manter o formato quadrado */
    background-color: #39FF14;
    opacity: 0;
    /* Começa invisível */
    transition: opacity 1s ease-out;
}

/* Camada da Frente com o Texto Animado */
.text-container {
    position: relative;
    /* Para ficar sobre o fundo */
    z-index: 2;
    /* Garante que o texto fique na frente */
}

.animated-text {
    color: #39FF14;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 0.5rem;
    height: 2.8rem;
    background-color: #39FF14;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.cursor.hidden {
    animation: none;
    opacity: 0;
    transition: opacity 0.1s;
}

/* --- Animações do Texto --- */
.sliding-out-left {
    animation: slide-out-left 2s ease-in forwards;
}

@keyframes slide-out-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-200%);
    }
}

.sliding-in-from-right {
    animation: slide-in-from-right 2s ease-out forwards;
}

@keyframes slide-in-from-right {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(0);
    }
}

.fading-out {
    animation: fade-out 1s ease-in forwards;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes blink {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: #39FF14;
    }
}

/* Estilos para o Menu Móvel (Hamburguer) */
.mobile-menu {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-closed {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-open {
    opacity: 1;
    visibility: visible;
    background-color: rgba(17, 17, 17, 0.9);
    /* Fundo do Menu Mobile */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animação do Ícone Hamburguer para X */
.menu-toggle {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
}

.line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.open .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .line2 {
    opacity: 0;
}

.menu-toggle.open .line3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Efeito de grade de pixels */
.pixel-grid {
    display: grid;
    grid-template-columns: repeat(64, 1fr);
    /* Aumentado para cobrir a largura */
    gap: 4px;
}

.pixel {
    width: 100%;
    padding-bottom: 100%;
    background-color: #ffffff;
    opacity: 0.2;
    transition: all 0.4s ease;
}

/* Estilos para o balão de fala com imagem */
.speech-bubble-container {
    position: absolute;
    bottom: 25px;
    right: 15px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.speech-bubble-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.speech-bubble-img {
    width: 120px;
    height: auto;
}

.dots-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #111;
    border-radius: 50%;
    animation: typing-animation 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}


/* --- Estilos para a Seção Interativa "Nossa Especialidade" --- */
.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background-color: #111;
    border: 12px solid #222;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0;
    position: relative;
}

.phone-screen {
    background-color: #0e161a;
    /* Fundo do celular escuro */
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.whatsapp-header {
    background-color: #1f2c34;
    /* Fundo do cabeçalho do celular */
    padding: 25px 12px 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    /* Cor do texto do cabeçalho */
    flex-shrink: 0;
    border-bottom: 1px solid #2a3942;
}

.whatsapp-header .avatar {
    width: 35px;
    height: 35px;
    background-color: #1f2c34;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.whatsapp-header .info .name {
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-header .info .status {
    font-size: 12px;
    color: #8a9a9a;
}

.chat-area {
    background-image: url('https://i.pinimg.com/736x/8c/98/99/8c98994518b575bfd8c949e91d20548b.jpg');
    /* Fundo da área de chat */
    background-size: cover;
    flex-grow: 1;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar {
    display: none;
}

.chat-area {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.message,
.typing-indicator,
.attachment,
.date-separator {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.message.visible,
.typing-indicator.visible,
.attachment.visible,
.date-separator.visible {
    opacity: 1;
    transform: translateY(0);
}

.message {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.message-sent {
    background-color: #005c4b;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-received {
    background-color: #202c33;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.inline-chat-button {
    background-color: #d3d3d3;
    color: #111;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.inline-chat-button:hover {
    background-color: #c0c0c0;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
}

.typing-indicator .typing-dot {
    width: 6px;
    height: 6px;
    background-color: #8a9a9a;
    border-radius: 50%;
    animation: typing-dots-animation 1.2s infinite ease-in-out;
}

.typing-indicator .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dots-animation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.attachment {
    background-color: #005c4b;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.date-separator {
    background-color: #182229;
    color: #a7b4bc;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    align-self: center;
    margin: 8px 0;
}

/* --- Estilos para o Modal de Teste --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: rgba(66, 65, 65, 0.567);
    padding: 2.5rem;
    border-radius: 12px;
    border: none;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    min-height: 400px; /* Garante altura mínima para o conteúdo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
    opacity: 1;
}

#close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #888;
    font-size: 2.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

#close-modal:hover {
    color: #fff;
}

#close-modal:focus {
    outline: none;
}

.form-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #39FF14;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.5);
}

/* Estilo para mapa do rodapé */
.footer-map iframe {
    filter: invert(1) hue-rotate(180deg);
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.footer-map:hover iframe {
    filter: invert(0) hue-rotate(0deg);
}

/* ============================================= */
/* Fim da Seção de Estilos (CSS)                 */
/* ============================================= */