/* Definição das variáveis de cor e fonte */
:root {
    /* TEMA CLARO (Padrão) */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8f9fa;
    --theme-text-primary: #212529;
    --theme-text-secondary: #6c757d;
    --theme-border: #dee2e6;
    --theme-accent-primary: #007bff;
    --theme-accent-secondary: #0056b3;
    --theme-hero-bg: linear-gradient(135deg, #007bff 0%, #0a2540 100%);
    --theme-header-bg: rgba(255, 255, 255, 0.8);
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html.dark-mode {
    /* TEMA ESCURO (Quando a classe .dark-mode está no HTML) */
    --theme-bg-primary: #0d1117;
    --theme-bg-secondary: #161b22;
    --theme-text-primary: #e6edf3;
    --theme-text-secondary: #8d96a0;
    --theme-border: #30363d;
    --theme-accent-primary: #58a6ff;
    --theme-accent-secondary: #8b5cf6;
    --theme-hero-bg: linear-gradient(135deg, #0d1117 0%, #1a1f36 100%);
    --theme-header-bg: rgba(13, 17, 23, 0.8);
}

@keyframes scroll-bg {
    from { background-position: 0 0; }
    to { background-position: -100px -100px; }
}

/* --- ESTILOS GERAIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: radial-gradient(var(--theme-border) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.15;
    animation: scroll-bg 10s linear infinite;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);    
    color: var(--theme-text-primary);    
    text-decoration: none;             
    transition: color 0.3s ease;       
}

.logo:hover {
    color: var(--theme-accent-primary);
}

/* Utilitários */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-light { background-color: var(--theme-bg-secondary); }
html.dark-mode .section-light { background-color: var(--theme-bg-primary); }

.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 20px; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 60px auto; font-size: 1.1rem; color: var(--theme-text-secondary); }
.cta-button {
    background-image: linear-gradient(45deg, var(--theme-accent-primary), var(--theme-accent-secondary));
    color: #fff; padding: 15px 35px; border-radius: 8px; text-decoration: none; font-weight: 600;
    display: inline-block; transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; cursor: pointer;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }

/* Animação */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in-element { opacity: 0; }
.fade-in-element.is-visible { animation: fadeIn 0.8s ease-out forwards; }

/* Cabeçalho */
header {
    background-color: var(--theme-header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--theme-border);
}
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--theme-text-primary); font-weight: 600; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--theme-accent-primary); }

.theme-toggle-button {
    background: none; border: none; cursor: pointer; color: var(--theme-text-primary); font-size: 1.2rem;
    padding: 5px; line-height: 0;
}
html.dark-mode .theme-toggle-button .fa-sun { display: inline-block; }
html.dark-mode .theme-toggle-button .fa-moon { display: none; }
.theme-toggle-button .fa-sun { display: none; }

/* Seção Hero */
.hero { background-image: var(--theme-hero-bg); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 90vh; padding-top: 70px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Seção de Serviços */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background-color: var(--theme-bg-primary);
    padding: 40px; text-align: center; border-radius: 12px;
    border: 1px solid var(--theme-border);
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative; overflow: hidden; 
}
html.dark-mode .service-card { background-color: var(--theme-bg-secondary); }
.service-card:hover { transform: translateY(-5px) scale(1.02); border-color: var(--theme-accent-primary); }
.service-card i { font-size: 3rem; color: var(--theme-accent-primary); margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; color: var(--theme-text-primary); margin-bottom: 15px; }
.service-card::before {
    content: ''; position: absolute;
    left: var(--mouse-x, 50%); top: var(--mouse-y, 50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.5s;
    pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* Diferenciais */
.diferenciais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 60px; }
.diferencial-item { text-align: center; }
.diferencial-item i { font-size: 2.5rem; color: var(--theme-accent-primary); margin-bottom: 15px; }
.diferencial-item h4 { font-size: 1.3rem; color: var(--theme-text-primary); margin-bottom: 10px; }
.diferencial-item p { color: var(--theme-text-secondary); }

/* Carrossel de Equipe */
.carousel-container { position: relative; max-width: 600px; margin: 0 auto; overflow: hidden; border-radius: 15px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; position: relative; box-sizing: border-box; padding: 40px 20px; text-align: center; }
.carousel-slide img {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: contain; /* Novo valor */
margin-bottom: 20px;
border: 4px solid var(--theme-accent-primary);
}
.team-member-name { font-size: 1.8rem; margin-bottom: 5px; }
.team-member-role { font-size: 1rem; color: var(--theme-text-secondary); }
.carousel-button {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.3);
    border: none; color: #fff; cursor: pointer; padding: 10px; border-radius: 50%; width: 40px; height: 40px; z-index: 10;
    transition: background 0.3s ease;
}
.carousel-button:hover { background: rgba(0, 0, 0, 0.6); }
.carousel-button--left { left: 15px; }
.carousel-button--right { right: 15px; }


/* Contato */
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form select {
    width: 100%; padding: 15px; border: 1px solid var(--theme-border); border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem; background-color: var(--theme-bg-primary); color: var(--theme-text-primary);
    -webkit-appearance: none; /* Remove a aparência padrão no iOS */
    appearance: none; /* Remove a aparência padrão em outros navegadores */
}
.contact-form input::placeholder { color: var(--theme-text-secondary); }

/* Rodapé */
footer {
    background-color: var(--theme-bg-primary); color: var(--theme-text-secondary);
    text-align: center; padding: 30px 0; border-top: 1px solid var(--theme-border);
}


.contact-form select:invalid {
    color: var(--theme-text-secondary);
}

.contact-form option {
    color: var(--theme-text-primary);
}

/* 1. O container que segura o select e o ícone */
.select-container {
    position: relative; /* Essencial para que o ícone se posicione dentro dele */
}

/* 2. O ícone da seta, posicionado dentro do container */
.select-container::after {
    content: '\f078'; /* Código do ícone de seta para baixo (chevron-down) */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    /* Alinhamento perfeito: 50% do topo e depois ajusta metade da sua altura */
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    color: var(--theme-text-secondary);
    pointer-events: none; /* Impede que o ícone bloqueie cliques no menu */
}