:root {
    --primary: #FF3300;
    --secondary: #CC2200;
    --light: #ffffff;
    --dark: #000000;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--light);
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--primary);
    font-size: 24px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--light);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 250px;
    height: auto;
}

.logo span.tech {
    color: var(--light);
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--dark);
}

/* Hero Section */
.hero {
    background: url('../imagens_png/1.jpg') center/cover;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--light);
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(to right, var(--primary), var(--dark));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-light {
    background-color: var(--light);
    color: var(--primary);
}

.btn-light:hover {
    background-color: #f5f5f5;
    color: var(--primary);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.service-img {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: auto;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-content p {
    margin-bottom: 20px;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    max-width: none;
    height: 550px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 36px;
}

.about-text p {
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--light);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.contact-info {
    color: #ccc;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #aaa;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
}

/* Accessibility improvements */
a:focus, button:focus, .menu-toggle:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Performance improvements */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UX improvements */
.btn, .btn-outline, .btn-light {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:focus, .btn-outline:focus, .btn-light:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* SEO improvements */
/* No direct CSS changes needed for SEO */

/* Estilos para o chat de perguntas e respostas */
#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 480px;
    background-color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    z-index: 1100;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    max-height: 300px;
    /* Garantir rolagem para visualizar todas as perguntas */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
#chat-messages::-webkit-scrollbar {
    width: 8px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

/* Animação de digitação para o indicador de typing */
@keyframes typingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: ''; }
}

.typing-indicator {
    font-style: italic;
    color: var(--primary);
    position: relative;
}

.typing-indicator::after {
    content: '';
    animation: typingDots 1.5s infinite;
    position: absolute;
    right: -25px;
    top: 2px;
    font-weight: bold;
    font-style: normal;
    color: var(--primary);
}

/* Transição suave para perguntas frequentes */
.faq-question {
    transition: opacity 0.3s ease;
}

/* Botão do chat fixo e sempre visível */
#chat-hello-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1101;
    border-radius: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

#chat-hello-btn:hover {
    background-color: var(--secondary);
}

#chat-header {
    background-color: var(--primary);
    color: var(--light);
    padding: 10px;
    font-weight: 700;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: default;
    user-select: none;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    max-height: 300px;
    /* Garantir rolagem para visualizar todas as perguntas */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
#chat-messages::-webkit-scrollbar {
    width: 8px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.chat-message {
    margin-bottom: 10px;
    line-height: 1.4;
}

.chat-message.user {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
}

.chat-message.bot {
    text-align: left;
    color: var(--dark);
    background-color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    max-width: 80%;
}

#chat-input-container {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    border-bottom-left-radius: 8px;
    outline: none;
}

#chat-send-btn {
    background-color: var(--primary);
    border: none;
    color: var(--light);
    padding: 0 15px;
    cursor: pointer;
    font-weight: 700;
    border-bottom-right-radius: 8px;
    transition: background-color 0.3s ease;
}

#chat-send-btn:hover {
    background-color: var(--secondary);
}
