/* --- Reset e Configurações Globais --- */
:root {
    /* Tema Claro (Padrão) */
    --color-background: #ffffff;
    --color-background-alt: #f7fafc;
    --color-text-primary: #2d3748;
    --color-text-secondary: #4a5568;
    --color-heading: #1a365d;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-card-shadow: rgba(0, 0, 0, 0.08);
    --color-header-bg: rgba(255, 255, 255, 0.95);
    
    /* Cores de Destaque */
    --color-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-secondary-gradient: linear-gradient(135deg, #00f5a0, #00d9f5);
    --color-primary: #667eea;
    --color-accent: #00f5a0;
}

.dark-mode {
    /* Tema Escuro */
    --color-background: #1a202c;
    --color-background-alt: #2d3748;
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #a0aec0;
    --color-heading: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-card-shadow: rgba(0, 0, 0, 0.2);
    --color-header-bg: rgba(26, 32, 44, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Header e Navegação --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-header-bg);
    backdrop-filter: blur(10px); 
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid var(--color-border); 
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading); 
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "⚡"; 
    margin-right: 8px;
    font-size: 1.5rem;
    background: var(--color-primary-gradient); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-secondary); 
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--color-primary); 
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-primary-gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Estilo atualizado para o botão de tema */
.theme-toggle-button {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 25px; /* Mesmo raio dos outros botões */
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-button:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.dark-mode .theme-toggle-button {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.dark-mode .theme-toggle-button:hover {
    background-color: var(--color-accent);
    color: var(--color-heading);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.theme-toggle-button svg {
    width: 20px;
    height: 20px;
}

.moon-icon { display: none; }
.dark-mode .sun-icon { display: none; }
.dark-mode .moon-icon { display: block; }


.cta-button {
    background: var(--color-primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 25px; 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); 
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Menu Mobile */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-button span {
    width: 30px;
    height: 3px;
    background-color: var(--color-heading);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-header-bg);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 10px 20px var(--color-card-shadow);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-nav a:not(.cta-button):hover {
    background-color: var(--color-background-alt);
}

.mobile-nav .cta-button {
    margin-top: 20px;
}


/* Seção Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-primary-gradient); 
    position: relative;
    overflow: hidden; 
}

.hero::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 1s ease; 
}

.hero-content .highlight { 
    background: var(--color-secondary-gradient); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9); 
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both; 
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both; 
}

.btn-primary {
    background: var(--color-secondary-gradient);
    color: #1a202c; /* Cor escura para alto contraste */
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 245, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1); 
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3); 
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); 
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0.8; 
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite; 
}
.dark-mode .hero-visual .tech-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-card:nth-child(2) { animation-delay: -2s; }
.tech-card:nth-child(3) { animation-delay: -4s; }
.tech-card:nth-child(4) { animation-delay: -1s; }
.tech-card:nth-child(5) { animation-delay: -3s; }
.tech-card:nth-child(6) { animation-delay: -5s; }

.tech-card:hover {
    transform: translateY(-10px); 
    animation-play-state: paused;
}

.tech-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* --- Estrutura de Seções --- */
.section {
    padding: 80px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-heading);
}
.section-title h2.light-text { /* Para seções escuras */
    color: white;
}
.section-title p {
    font-size: 1.2rem;
    max-width: 600px; 
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* --- Seções Específicas (Features, Stats, Solutions) --- */
.stats-section {
    background-color: var(--color-background-alt); 
    padding: 80px 0;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary); 
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-background);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--color-card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem; 
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-heading);
}

.feature-card p, .feature-card strong {
    color: var(--color-text-secondary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background: var(--color-primary-gradient);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before { 
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transition: transform 0.5s ease;
    transform: scale(0);
}

.solution-card:hover::before {
    transform: scale(1);
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card h3, .solution-card p {
    position: relative; 
    z-index: 2;
    color: #ffffff; /* Cor branca para o texto */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); /* Sombra para contraste */
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.solution-card p {
    font-size: 0.95rem;
    opacity: 0.95; /* Aumenta a opacidade para melhor leitura */
}

/* --- Seção de Depoimentos --- */
.testimonials {
    background: var(--color-heading); 
    padding: 80px 20px;
    margin: 80px 0; 
    color: white;
}
.dark-mode .testimonials {
    background: #1a202c; /* Um pouco mais claro que o fundo */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1); 
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 700px;
    margin: 0 auto; 
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--color-accent); 
}

/* --- Seção Sobre --- */
.about-container {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
    margin-top: 40px;
}

.about-container h3 {
    font-size: 1.5rem; 
    color: var(--color-heading); 
    margin-bottom: 20px;
}

.about-container p {
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.why-us-box {
    background: var(--color-background-alt); 
    padding: 40px; 
    border-radius: 15px;
}

.why-us-box ul {
    list-style: none; 
    padding: 0;
}

.why-us-box li {
    margin-bottom: 15px; 
    display: flex; 
    align-items: center;
}

.check-icon {
    color: var(--color-primary); 
    margin-right: 10px;
}

/* --- Seção de Contato --- */
.contact-section {
    background-color: var(--color-background-alt); 
    padding: 80px 20px; 
    margin-top: 80px; 
    margin-bottom: 80px;
}

.contact-container {
    display: grid; 
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 60px; 
    align-items: flex-start; 
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.form-wrapper {
    background: var(--color-background); 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px var(--color-card-shadow);
}

.form-wrapper h3 {
    font-size: 1.5rem; 
    color: var(--color-heading); 
    margin-bottom: 30px;
}

#contactForm {
    display: flex; 
    flex-direction: column; 
    gap: 20px;
}

#contactForm label {
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: var(--color-text-secondary);
}

#contactForm input, #contactForm select, #contactForm textarea {
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid var(--color-border); 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
}

#contactForm input::placeholder, #contactForm textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
    outline: none;
}

#contactForm button {
    background: var(--color-primary-gradient); 
    color: white; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#contactForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#contactForm button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    text-align: center; 
    font-weight: 500;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background-color: #e6fffa;
    color: #2c7a7b;
    display: block;
}

.form-message.error {
    background-color: #fed7d7;
    color: #c53030;
    display: block;
}

.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

.contact-info-box {
    background: var(--color-background); 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px var(--color-card-shadow); 
    margin-bottom: 30px;
}

.contact-info-box h3 {
    font-size: 1.3rem; 
    color: var(--color-heading); 
    margin-bottom: 20px;
}

/* Estilos para alinhar detalhes de contacto */
.contact-details {
    display: flex; 
    flex-direction: column; 
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.dark-mode .contact-icon {
    color: var(--color-accent);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-text span, .contact-text a {
    color: var(--color-text-secondary);
    line-height: 1.4;
    text-decoration: none;
    word-break: break-word;
}

.contact-text a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}


.hours-box {
    background: var(--color-primary-gradient); 
    padding: 30px; 
    border-radius: 15px; 
    color: white; 
    text-align: center;
}

.hours-box h3 {
    margin-bottom: 15px;
}

.hours-box p {
    margin-bottom: 10px; 
    opacity: 0.9;
}

.social-links {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 20px;
}

.social-links a {
    color: white; 
    font-size: 1.5rem; 
    text-decoration: none; 
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* --- Footer --- */
.footer {
    background: var(--color-heading); 
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
}
.dark-mode .footer {
    background-color: #111827; /* Tom ainda mais escuro */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-accent); 
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.company-details {
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Animações --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-container {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap; 
    }
    .contact-info-wrapper {
        position: static; /* Remove sticky on smaller screens */
    }
}

@media (max-width: 768px) {
    .nav-menu, .desktop-cta { display: none; }
    .nav-actions {
        /* Garante que o botão de tema fique visível no mobile */
        gap: 10px;
        flex-grow: 1;
        justify-content: flex-end;
    }
    .mobile-menu-button { display: flex; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid, .footer-content { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .tech-grid, .stats-grid, .footer-content { grid-template-columns: 1fr; }
}
