/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS (TEMA SÓBRIO) --- */
:root {
    --primary-color: #007BFF;   /* Azul para destaque e botões */
    --dark-color: #1a1a1a;      /* Preto suave para fundos escuros */
    --light-color: #ffffff;     /* Branco */
    --text-color-light: #f0f0f0;/* Texto para fundos escuros */
    --text-color-dark: #333333; /* Texto principal para fundos claros */
    --border-color: #e0e0e0;    /* Borda subtil */
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Titillium Web', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color-dark);
    line-height: 1.7;
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 700;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; padding: 10px; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--text-color-dark); margin: 4px 0; transition: all 0.3s ease-in-out; }

/* --- SEÇÕES GERAIS --- */
main {
    padding-top: 80px;
}

.content-section { padding: 80px 0; }
.content-section-dark { padding: 80px 0; background-color: var(--dark-color); color: var(--text-color-light); }
.section-title { font-family: var(--font-secondary); font-size: 2.5rem; text-align: center; margin-bottom: 20px; color: var(--text-color-dark); }
.content-section-dark .section-title { color: var(--text-color-light); }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 50px auto; font-size: 1.1rem; color: #666; }
.content-section-dark .section-subtitle { color: rgba(255, 255, 255, 0.8); }

/* --- SEÇÃO HERO --- */
.hero { background-color: #f8f9fa; text-align: center; padding: 100px 0; }
.hero h1 { font-family: var(--font-secondary); font-size: 3.5rem; margin-bottom: 20px; }
.hero .subtitle { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px auto; }
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.cta-button:hover { background-color: #0056b3; transform: scale(1.05); }

/* --- SEÇÃO DE SERVIÇOS DETALHADA --- */
.services-grid-detailed { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-item-detailed { padding: 30px; border-radius: 8px; background-color: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
.service-item-detailed h3 { font-family: var(--font-secondary); color: var(--text-color-dark); margin-bottom: 15px; }
.service-item-detailed ul { list-style: none; padding-left: 0; }
.service-item-detailed ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.service-item-detailed ul li::before { content: '✅'; position: absolute; left: 0; }

/* --- SEÇÃO DE PORTFÓLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-item a { text-decoration: none; color: inherit; }
.portfolio-item {
    background-color: var(--dark-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.portfolio-item img { width: 100%; display: block; aspect-ratio: 20 / 100; object-fit: cover; }
.portfolio-info { padding: 20px; }
.portfolio-info h3 { margin-top: 0; font-size: 1.3rem; color: var(--light-color); }
.portfolio-info p { margin-bottom: 0; color: var(--text-color-light); }

/* --- SEÇÃO SOBRE MIM --- */
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; max-width: 300px; }
.about-image img { width: 100%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text { flex: 2; }
.about-text .section-title { text-align: left; }
.about-text p { margin-bottom: 15px; }

/* --- SEÇÃO DE CONTATO --- */
.contact-info p { margin-bottom: 10px; }
.social-links { text-align: center; margin-top: 30px; }
.social-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 25px; right: 25px;
    background-color: #25D366; border-radius: 50px; text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25); z-index: 100;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 32px; height: 32px; }

/* --- RODAPÉ --- */
.main-footer { background-color: var(--dark-color); color: #aaa; text-align: center; padding: 20px 0; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .main-nav ul {
        display: none; flex-direction: column; position: absolute; top: 80px;
        left: 0; width: 100%; background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .main-nav ul.active { display: flex; }
    .main-nav ul li { margin: 0; text-align: center; }
    .main-nav ul li a { padding: 15px; display: block; border-bottom: 1px solid var(--border-color); color: var(--text-color-dark); }
    .menu-toggle { display: flex; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .services-grid-detailed { grid-template-columns: 1fr; }
    .about-flex { flex-direction: column; text-align: center; }
    .about-text .section-title { text-align: center; }
}
