/* style.css */

/* Variáveis CSS para cores e fontes */
:root {
    --primary-color: #0A192F; /* Azul escuro para o fundo */
    --secondary-color: #00F5D4; /* Verde água para detalhes e acentos */
    --accent-color: #FF007F; /* Rosa choque para botões e destaques */
    --text-color: #E0E0E0; /* Cinza claro para texto principal */
    --light-text-color: #B0B0B0; /* Cinza mais claro para texto secundário */
    --navbar-bg: rgba(10, 25, 47, 0.95); /* Fundo da navbar com mais opacidade */
    --card-bg: #112240; /* Fundo para cards e seções */
    --border-color: #233554; /* Cor da borda */

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal */
    background-image: url('assets/background.png'); /* Nova imagem de background */
    background-size: cover; /* Cobre toda a área */
    background-attachment: fixed; /* Fixo ao rolar */
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat; /* Não repete a imagem */
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5em;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 5px;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Layout Geral */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(10, 25, 47, 0.8); /* Fundo semi-transparente para seções */
    margin-bottom: 20px; /* Espaçamento entre seções */
    border-radius: 10px;
}

section:nth-child(even) {
    background-color: rgba(17, 34, 64, 0.8); /* Fundo semi-transparente para seções pares */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--primary-color); /* Fundo sólido consistente */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px); /* Adiciona efeito de blur para melhor contraste */
}

.navbar.scrolled {
    background-color: var(--primary-color); /* Mantém o mesmo fundo ao rolar */
}

.navbar-left a, .navbar-right a {
    color: var(--text-color);
    margin: 0 15px;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-left a:hover, .navbar-right a:hover {
    color: var(--accent-color);
}

.navbar-center {
    flex-grow: 0; /* Reset flex-grow */
    position: absolute; /* Posicionamento absoluto */
    left: 50%; /* Centraliza horizontalmente */
    transform: translateX(-50%); /* Ajusta para o centro exato */
}

.navbar-center .logo {
    height: 40px !important; /* Ajuste o tamanho da logo */
    width: auto;
    filter: brightness(0) invert(1); /* Torna a logo branca para contraste */
}

.navbar-right img {
    height: 25px; /* Tamanho dos ícones sociais */
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: row; /* Alterado para row */
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Remover background-color para ver a imagem de fundo */
    position: relative;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 0 20px; /* Adicionado padding */
}

#hero .hero-content {
    flex: 1; /* Ocupa espaço disponível */
    text-align: left; /* Alinha texto à esquerda */
    max-width: 600px; /* Limita largura do conteúdo */
    margin-right: 50px; /* Espaçamento entre conteúdo e imagem */
}

#hero .hero-image {
    flex: 1; /* Ocupa espaço disponível */
    text-align: right; /* Alinha imagem à direita */
}

#hero .hero-image img {
    max-width: 100%; /* Garante que a imagem não transborde */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-align: left; /* Alinha título à esquerda */
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    text-align: left; /* Alinha parágrafo à esquerda */
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
}

/* Seções de Conteúdo */
.testimonial-grid, .steps-grid, .results-grid, .services-grid, .additional-services-grid, .m-v-v-grid, .contact-info-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.testimonial-item, .step-item, .result-item, .service-item, .additional-service-item, .m-v-v-item, .contact-info-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease;
}

.testimonial-item:hover, .step-item:hover, .result-item:hover, .service-item:hover, .additional-service-item:hover, .m-v-v-item:hover, .contact-info-item:hover {
    transform: translateY(-5px);
}

.testimonial-item p {
    font-style: italic;
    color: var(--light-text-color);
}

.testimonial-item span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

.steps-grid, .results-grid, .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.additional-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.m-v-v-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-item h3, .result-item h3, .service-item h3, .additional-service-item h3, .m-v-v-item h3, .contact-info-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.step-item p, .result-item p, .service-item p, .additional-service-item p, .m-v-v-item p, .contact-info-item p {
    color: var(--light-text-color);
}

.m-v-v-item ul {
    list-style: none;
    padding-left: 0;
}

.m-v-v-item ul li {
    margin-bottom: 5px;
    color: var(--light-text-color);
}

.m-v-v-item ul li strong {
    color: var(--secondary-color);
}

/* Ilustrações de Seção */
.section-illustration {
    max-width: 80%;
    height: auto;
    margin: 40px auto 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Seções com imagem e texto lado a lado */
.services-intro-section, .about-intro-section {
    display: flex;
    flex-direction: row; /* Padrão para desktop */
    align-items: center;
    justify-content: center;
    padding: 60px 120px;
    text-align: left;
}

.services-intro-content, .about-intro-content {
    flex: 1;
    max-width: 600px;
    margin-right: 50px;
}

.services-intro-image, .about-intro-image {
    flex: 1;
    text-align: right;
}

.services-intro-image img, .about-intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Contato Page Specific */
.contact-section {
    display: flex;
    flex-direction: row; /* Lado a lado */
    align-items: flex-start; /* Alinha ao topo */
    justify-content: center;
    padding: 80px 20px;
    text-align: left;
    gap: 50px; /* Espaçamento entre as colunas */
}

.contact-content {
    flex: 1;
    max-width: 600px;
}

.contact-form-container {
    flex: 1;
    max-width: 600px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .submit-button:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-links-footer a img {
    height: 25px; /* Reduzido o tamanho para melhor proporção */
    width: auto;
    margin: 0 8px; /* Ajustado o espaçamento */
    transition: transform 0.3s ease;
}

.social-links-footer a img:hover {
    transform: translateY(-3px);
}

/* Social Links Contact */
.social-links-contact a img {
    height: 25px; /* Reduzido o tamanho para melhor proporção */
    width: auto;
    margin: 0 8px; /* Ajustado o espaçamento */
    transition: transform 0.3s ease;
}

.social-links-contact a img:hover {
    transform: translateY(-3px);
}

/* Botão Voltar ao Topo */
#scrollTopBtn {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fixo na tela */
    bottom: 20px; /* 20px do fundo */
    right: 30px; /* 30px da direita */
    z-index: 99; /* Acima de outros elementos */
    border: none; /* Sem borda */
    outline: none; /* Sem outline */
    background-color: var(--accent-color); /* Cor de fundo */
    color: white; /* Cor do texto/ícone */
    cursor: pointer; /* Cursor de ponteiro */
    padding: 15px; /* Preenchimento */
    border-radius: 10px; /* Cantos arredondados */
    font-size: 18px; /* Tamanho da fonte */
    transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: darken(var(--accent-color), 10%);
}

/* Services Carousel */
.services-carousel-container {
    position: relative;
    width: 80%; /* Ajustado para 80% da largura */
    max-width: 400px; /* Limite máximo reduzido */
    min-height: 400px;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-carousel {
    display: flex;
    width: 600%; /* 6 itens x 100% cada */
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%; /* Exibe 1 item por vez */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background-color: var(--card-bg);
    flex-shrink: 0;
    border-radius: 10px;
    box-sizing: border-box;
}

.carousel-controls {
    position: absolute;
    bottom: -40px; /* Movido para fora do container */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

/* Áreas laterais clicáveis invisíveis - 20% de cada lado */
.carousel-side-area {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: transparent;
    border: none;
    width: 20%; /* 20% da largura do carrossel */
    height: 100%;
    cursor: pointer;
    z-index: 15;
    opacity: 0; /* Completamente invisível */
}

.carousel-side-area.left {
    left: 0;
}

.carousel-side-area.right {
    right: 0;
}

/* Botões circulares - OCULTOS */
.carousel-btn {
    display: none; /* Oculta completamente os botões circulares */
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-text-color);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.indicator:hover {
    background-color: var(--secondary-color);
}

/* About Page Specific */
.about-intro-section {
    display: flex;
    flex-direction: row; /* Lado a lado */
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: left;
    gap: 50px; /* Espaçamento entre as colunas */
}

.about-intro-content {
    flex: 1;
    max-width: 600px;
}

.about-intro-logo {
    flex: 1;
    text-align: left; /* Garante que a logo esteja alinhada à esquerda */
}

.about-intro-logo .section-logo {
    max-width: 80%;
    height: auto;
    filter: brightness(0) invert(1); /* Torna a logo branca para contraste */
}

/* Responsividade */
@media (max-width: 1024px) {
    .navbar-left a, .navbar-right a {
        margin: 0 10px;
        font-size: 1em;
    }

    .navbar-center .logo {
        height: 45px;
    }

    #hero h1 {
        font-size: 3.5em;
    }

    #hero p {
        font-size: 1.3em;
    }

    .about-intro-section {
        flex-direction: row; /* Mantém lado a lado em telas menores */
        gap: 30px;
        flex-wrap: nowrap; /* Impede quebra de linha para manter lado a lado */
        align-items: center; /* Alinha verticalmente ao centro */
    }

    .about-intro-content, .about-intro-logo {
        margin-right: 0;
        max-width: 50%; /* Ajusta a largura para que fiquem lado a lado */
        text-align: left; /* Alinha o conteúdo e a logo à esquerda */
    }

    .contact-form-container {
        padding: 30px;
    }

    .services-carousel-container {
        height: 550px !important; /* Aumentado de 450px para 550px */
        max-width: 1000px !important; /* Aumentado de 800px para 1000px */
    }

    .carousel-item {
        min-width: 50%; /* Mostra 2 itens por vez em tablets */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        height: auto;
        min-height: 60px;
    }

    .navbar-center {
        position: static;
        left: auto;
        transform: none;
        margin: 0;
        order: 0;
    }

    .navbar-left, .navbar-right {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .navbar-left a, .navbar-right a {
        margin: 0 8px;
        font-size: 0.9em;
        display: inline-block;
    }

    .navbar-center .logo {
        height: 35px !important;
    }

    .navbar-left a,    .navbar-center .logo {
        height: 35px !important;
    }

    .navbar-left a, .navbar-right a {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row; /* Mantém na horizontal em telas muito pequenas */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        height: auto;
        min-height: 60px;
    }

    .navbar-center {
        position: static;
        left: auto;
        transform: none;
        margin: 0;
        order: 0;
    }

    .navbar-left, .navbar-right {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0;
    }

    .navbar-left a, .navbar-right a {
        margin: 0 5px;
        font-size: 0.9em;
        display: inline-block;
    }

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
    position: relative;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.4s;
    border-radius: 2px;
}

/* Animação do hamburger quando ativo */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Sidebar */
.sidebar {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    overflow-x: hidden;
    transition: width 0.5s ease;
    padding-top: 80px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.7);
    border-right: 2px solid var(--secondary-color);
}

.sidebar.active {
    width: 280px;
}

.sidebar a {
    padding: 20px 30px;
    text-decoration: none;
    font-size: 1.3em;
    color: var(--text-color);
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.sidebar a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 0, 127, 0.1);
    padding-left: 40px;
}

.sidebar .sidebar-social-links {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar .sidebar-social-links img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.sidebar .sidebar-social-links img:hover {
    transform: scale(1.2);
}

/* Overlay para fechar sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .navbar-left, .navbar-right {
        display: none; /* Hide regular nav links on mobile */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
    }

    .navbar-center {
        position: static;
        transform: none;
    }

    .navbar {
        justify-content: space-between;
        padding: 15px 20px;
    }
}
