/* --- Variáveis e Reset --- */
:root {
    --primary-color: #003366; /* Azul Marinho */
    --primary-dark: #002244;
    --accent-color: #64748B; /* Prata / Cinza Metálico */
    --text-color: #334155;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --dark-bg: #0F172A; /* Azul Marinho Profundo */
    --border-color: #CBD5E1; /* Prata Claro */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* --- Utilitários --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 1px solid var(--text-color);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}
.logo span { color: var(--primary-color); }

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a { font-size: 0.95rem; font-weight: 500; }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #F1F5F9 0%, #ffffff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.highlight { color: var(--primary-color); position: relative; }

.hero-text p {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns { display: flex; gap: 20px; align-items: center; margin-bottom: 40px; }
.btn-text { color: var(--primary-color); font-weight: 600; }

.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #64748B;
}
.trust-badges i { color: var(--accent-color); margin-right: 5px; }

/* Placeholder visual 3D */
.hero-visual {
    width: 100%;
    height: 450px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    background: #fff;
}

.\33 d-model-placeholder {
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    background: #E2E8F0;
}

/* Carrossel */
.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
}

.hero-slide.active { transform: translateX(0); z-index: 2; }
.hero-slide.exit { transform: translateX(-100%); z-index: 1; }

.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Botões do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.9); color: var(--primary-color); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.indicator-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}
.indicator-dot.active { background-color: var(--primary-color); transform: scale(1.2); }

/* --- Passos (Como Funciona) --- */
.steps-section { padding: 80px 0; background: var(--white); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* --- Serviços --- */
.services-section { padding: 80px 0; background: var(--bg-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; color: var(--dark-bg); }
.center-btn { text-align: center; }

/* --- Sobre --- */
.about-section { padding: 80px 0; }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-list li { margin-bottom: 10px; }
.about-list i { color: var(--accent-color); margin-right: 10px; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat {
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}
.stat .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent-color); }

/* --- Orçamento (Formulário) --- */
.quote-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.quote-wrapper {
    background: var(--white);
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.quote-header { text-align: center; margin-bottom: 30px; }
.quote-header h2 { font-size: 1.8rem; color: var(--dark-bg); margin-bottom: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.file-upload input { display: none; }
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius);
    background: #f0f7ff;
    cursor: pointer;
    transition: 0.3s;
    color: var(--primary-color);
    font-weight: 600;
}
.file-label:hover { background: #e0efff; }

.btn-full { width: 100%; font-size: 1.1rem; }
.form-footer { text-align: center; font-size: 0.8rem; margin-top: 15px; color: #94a3b8; }

/* --- Footer --- */
footer { background: var(--dark-bg); color: #cbd5e1; padding: 60px 0 20px; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.contact-list li { margin-bottom: 12px; }
.contact-list i { width: 20px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #334155; font-size: 0.8rem; }

/* --- Responsividade --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; width: 100%; text-align: center; }
    
    .hero-content, .about-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .trust-badges { justify-content: center; flex-wrap: wrap; }
    .quote-wrapper { padding: 25px; }
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    top: 90px; /* Abaixo do header */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(100%);
    min-width: 300px;
    border-left: 4px solid var(--accent-color);
}

.toast i { font-size: 1.2rem; color: var(--accent-color); }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366; /* Mantém verde do WhatsApp */
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* --- Tooltip do WhatsApp --- */
.whatsapp-float::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 75px; /* Posiciona à direita do botão */
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --- Seção Quem Sou Eu (Especialista) --- */
.expert-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* Foto e Visual */
.expert-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.expert-photo-container {
    width: 100%;
    max-width: 400px;
    height: 450px;
    background-color: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 0px var(--primary-color); /* Sombra sólida estilo engenharia */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 8rem;
    color: #cbd5e1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--dark-bg);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--accent-color);
}

.exp-number { font-size: 2rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.exp-text { font-size: 0.8rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; }

/* Conteúdo Texto */
.expert-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.expert-title { font-size: 2.5rem; line-height: 1.2; color: var(--dark-bg); margin-bottom: 1.5rem; }
.expert-desc { font-size: 1.1rem; color: #64748B; margin-bottom: 2rem; text-align: justify; }

/* Grid de Skills */
.tech-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark-bg);
}
.skill-item i { color: var(--primary-color); font-size: 1.2rem; }

.expert-cta { display: flex; gap: 20px; align-items: center; }

@media (max-width: 768px) {
    .expert-grid { grid-template-columns: 1fr; gap: 3rem; }
    .expert-photo-container { height: 350px; box-shadow: 10px 10px 0px var(--primary-color); }
    .experience-badge { right: 0; }
}

/* --- Página de Portfólio --- */
.portfolio-header {
    padding-top: 120px;
    padding-bottom: 40px;
    background: #f8f9fa;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-gallery-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    transition: opacity 0.3s ease;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-img-wrapper:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 51, 102, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.gallery-img-wrapper:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

.gallery-info { padding: 15px 5px; }
.gallery-info h3 { font-size: 1.1rem; color: var(--dark-bg); margin-bottom: 5px; }
.gallery-info p { font-size: 0.9rem; color: #64748b; }

/* --- FAQ Section --- */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.faq-item details {
    padding: 10px 0;
    cursor: pointer;
    transition: 0.3s;
}

.faq-item summary {
    font-weight: 600;
    color: var(--dark-bg);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding: 10px 0;
}
.faq-item summary::-webkit-details-marker { display: none; } /* Remove seta padrão */
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); transition: 0.3s; font-weight: 400; }

.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item details[open] summary { color: var(--primary-color); }

.faq-item p { margin-top: 5px; margin-bottom: 15px; color: #64748b; line-height: 1.6; padding-right: 20px; animation: fadeIn 0.5s ease; }

/* --- Modal Global Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* --- Ícone de Ajuda --- */
.help-icon {
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 5px;
    transition: 0.2s;
}
.help-icon:hover { color: var(--accent-color); transform: scale(1.1); }

/* --- Modal de Texturas (Específico) --- */
.texture-modal-content { max-width: 800px; }

.texture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.texture-item { text-align: center; font-size: 0.9rem; color: #64748b; }
.texture-item img { width: 100%; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 10px; transition: 0.3s; aspect-ratio: 1/1; object-fit: cover; }
.texture-item:hover img { transform: scale(1.05); border-color: var(--primary-color); }

/* --- Página 404 --- */
.error-section {
    padding: 160px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    text-align: center;
}

.error-content { max-width: 600px; }
.error-icon { font-size: 5rem; color: var(--primary-color); margin-bottom: 20px; opacity: 0.8; }
.error-code { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--dark-bg); margin-bottom: 10px; }
.error-title { font-size: 1.5rem; color: var(--text-color); margin-bottom: 15px; }
.error-text { color: #64748b; margin-bottom: 30px; font-size: 1.1rem; }