:root {
    --primary-color: #e74c3c; /* Vermelho vibrante */
    --secondary-color: #ffffff; /* Branco */
    --dark-bg-color: #0d0d0d; /* Preto muito escuro para seções */
    --lighter-dark-bg-color: #1a1a1a; /* Preto ligeiramente mais claro */
    --card-bg-color: #2c2c2c; /* Fundo dos cards */
    --text-light: #cccccc; /* Texto cinza claro */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg-color);
    color: var(--secondary-color);
    overflow-x: hidden;
    line-height: 1.7; /* Melhorar legibilidade */
}

/* --- Global Resets & Styles --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-weight: 600;
}

p {
    font-size: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
    position: relative; /* Para o pseudo-elemento decorativo */
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner-grow {
    color: var(--primary-color);
}

/* --- Navbar --- */
.navbar {
    background-color: transparent !important; /* Começa transparente */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1030; /* Acima do conteúdo */
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important; /* Fundo semi-transparente ao rolar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand {
    font-family: var(--heading-font);
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after { /* Linha inferior no hover/active */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg-color) 0%, rgba(29, 29, 29, 0.9) 100%);
    padding: 120px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Para garantir que as formas não vazem */
}
/* Elementos decorativos no hero, se desejar */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape 10s infinite ease-in-out;
    z-index: 0;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: floatShape 12s infinite reverse ease-in-out;
    z-index: 0;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}


.hero-title {
    color: var(--primary-color);
    font-size: 4.5rem; 
    line-height: 1.05;
    margin-bottom: 25px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}


.hero-description {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.btn-main {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px; /* Botão mais arredondado */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
}

.btn-main:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(231, 76, 60, 0.4);
}

.hero-image-container {
    text-align: center;
    z-index: 1; /* Para ficar acima das formas de fundo */
}

.hero-image {
    max-width: 90%;
    height: auto;
    /*border-radius: 15px;*/
    /*box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); Sombra mais pronunciada */
    transition: transform 0.5s ease;
}
.hero-image:hover {
    transform: scale(1.02); /* Leve zoom no hover */
}

/* --- Dots Container (Carrossel Implícito) --- */
.dots-container {
    text-align: center;
    margin-top: 50px;
    z-index: 1;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}
.dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Service Section --- */
.service-section {
    padding: 100px 0;
    background-color: var(--lighter-dark-bg-color);
}

.service-card {
    background-color: var(--card-bg-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borda muito sutil */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden; /* Para o ícone de fundo */
    position: relative;
}

.service-card::before { /* Ícone fantasma no fundo */
    content: attr(data-icon);
    font-family: 'Font Awesome 6 Free'; /* Certifique-se de que é a fonte correta */
    font-weight: 900; /* Para ícones sólidos */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 8rem;
    color: rgba(231, 76, 60, 0.05); /* Vermelho muito transparente */
    z-index: 0;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative; /* Para ficar acima do ::before */
    z-index: 1;
}

.service-card h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* --- Solution Section --- */
.solution-section {
    padding: 100px 0;
    background-color: var(--dark-bg-color);
    /* Removido text-align: center; daqui para controlar individualmente os cards */
}

.solution-section .section-title {
    color: var(--secondary-color); /* Título desta seção em branco */
}
.solution-section .section-title::after {
    background-color: var(--secondary-color);
}

/* Centraliza a descrição da seção */
.solution-section .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.solution-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Organiza o conteúdo verticalmente */
    align-items: center; /* Centraliza os itens horizontalmente dentro do card */
    text-align: center; /* Centraliza o texto dentro do card */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.solution-item .icon-wrapper {
    margin-right: 0; /* Remove a margem direita que puxava para a esquerda */
    margin-bottom: 15px; /* Adiciona espaço abaixo do ícone */
    flex-shrink: 0;
}

.solution-item .solution-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.solution-item h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.3rem;
}

.solution-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--lighter-dark-bg-color);
    text-align: center;
}

.contact-section .section-title {
    color: var(--primary-color);
}

.contact-description {
    font-size: 1.15rem;
    margin-bottom: 50px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* Verde do WhatsApp */
    border-color: #25D366;
    color: var(--secondary-color);
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

.contact-button:hover {
    background-color: #1DA851;
    border-color: #1DA851;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
    color: var(--secondary-color); /* Garante que o texto continue branco */
}

.contact-button i {
    margin-right: 12px;
    font-size: 1.8rem;
}

.contact-info {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
.contact-info-item:hover {
    color: var(--primary-color);
}

.contact-info-item i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-bg-color);
    padding: 40px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.footer .social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}