/* Variáveis CSS para cores e fontes (mantidas) */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #0056b3; /* Azul mais escuro */
    --accent-color: #28a745; /* Verde para destaque/sucesso */
    --text-color-dark: #343a40; /* Texto principal escuro */
    --text-color-light: #6c757d; /* Texto secundário/leve */
    --bg-light: #f8f9fa; /* Fundo claro */
    --bg-dark: #212529; /* Fundo escuro para header/footer */
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset básico e fontes (mantidos) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões (mantidos) */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
}

/* Header e Navegação (mantidos) */
.main-header {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(33, 37, 41, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 7px;
    transition: all 0.3s ease;
}

/* Hero Section (Ajustado com imagem de fundo) */
.hero-section {
    /* Mantenha o gradiente de sobreposição para garantir legibilidade do texto */
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8)),
                url('https://via.placeholder.com/1920x1080?text=Fundo+Hero+Maxproconsultoria') no-repeat center center/cover;
    background-attachment: fixed; /* Efeito Parallax */
    color: var(--white);
    text-align: center;
    padding: 180px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    animation: fadeInScale 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 400;
}

/* Seções de Conteúdo Gerais (mantidas) */
.content-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

/* Alterando a segunda seção para ter imagem de fundo */
.content-section:nth-of-type(even) {
    /* Pode ser a seção 'Sobre Nós' ou 'Serviços' dependendo da ordem */
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), /* Camada de cor clara por cima */
                url('https://via.placeholder.com/1920x1080?text=Fundo+Claro+Maxpro') no-repeat center center/cover;
    background-attachment: fixed; /* Efeito Parallax */
    color: var(--text-color-dark); /* Garante que o texto continue escuro */
}

.content-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.content-section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.section-description {
    font-size: 1.3rem;
    color: var(--text-color-light);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Seção Sobre Nós (mantida - note que o background pode vir de .content-section:nth-of-type(even)) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.about-item {
    background-color: var(--white); /* Mantenha os itens internos brancos */
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.about-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-item h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.about-item p {
    font-size: 1.05rem;
    color: #555;
}

/* Seção Serviços (mantida - note que o background pode vir de .content-section:nth-of-type(even)) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white); /* Mantenha os cards internos brancos */
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-left-color: var(--accent-color);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    font-size: 1.05rem;
    color: #555;
}

/* Seção Portfólio (Galeria - mantida) */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.85);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 25px;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.overlay p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Seção Depoimentos (Ajustada com imagem de fundo) */
.testimonials-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8)), /* Gradiente para legibilidade */
                url('https://via.placeholder.com/1920x1080?text=Fundo+Depoimentos+Maxpro') no-repeat center center/cover;
    background-attachment: fixed; /* Efeito Parallax */
    color: var(--white);
    box-shadow: none;
    margin-bottom: 0;
}

.testimonials-section h2, .testimonials-section p {
    color: var(--white);
}

.testimonials-section h2::after {
    background-color: var(--accent-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 30px auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 20px;
}

.testimonial-item.active {
    display: block;
    opacity: 1;
}

.testimonial-item p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.testimonial-item span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}
.dot:hover {
    background-color: var(--white);
}

/* Formulário de Contato (mantido) */
.contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    text-align: left;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer (mantido) */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Efeitos Especiais (Animações CSS - mantidas) */

/* Animação de Fade-in e Escala para a seção hero */
@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Efeito de revelação ao rolar (para .reveal) */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade (mantida) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.4rem;
    }
    .content-section h2 {
        font-size: 3rem;
    }
    .section-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    .nav-links li {
        margin-left: 25px;
    }
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }

    .nav-links {
        flex-direction: column;
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 80px;
        left: 0;
        background-color: var(--bg-dark);
        padding: 50px 0;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 30px 0;
    }

    .nav-links li a {
        font-size: 1.6rem;
    }

    .burger {
        display: block;
    }

    .nav-active .nav-links li:nth-child(1) { transition: all 0.5s ease 0.1s; opacity: 1; }
    .nav-active .nav-links li:nth-child(2) { transition: all 0.5s ease 0.2s; opacity: 1; }
    .nav-active .nav-links li:nth-child(3) { transition: all 0.5s ease 0.3s; opacity: 1; }
    .nav-active .nav-links li:nth-child(4) { transition: all 0.5s ease 0.4s; opacity: 1; }
    .nav-active .nav-links li:nth-child(5) { transition: all 0.5s ease 0.5s; opacity: 1; }
    .nav-active .nav-links li:nth-child(6) { transition: all 0.5s ease 0.6s; opacity: 1; }


    .toggle .line1 {
        transform: rotate(-45deg) translate(-8px, 8px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .content-section {
        padding: 80px 0;
    }
    .content-section h2 {
        font-size: 2.8rem;
    }
    .testimonial-item p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .content-section h2 {
        font-size: 2.2rem;
    }
    .about-item, .service-card, .gallery-item, .contact-form {
        padding: 25px;
    }
    .about-item h3, .service-card h3 {
        font-size: 1.7rem;
    }
    .social-links a {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}