/* --- CONFIGURAÇÕES GLOBAIS --- */
:root {
    --bg-dark: #212121;
    --primary-yellow: #FFC107;
    --text-light: #FFFFFF;
    --text-secondary: #BDBDBD;
    --card-bg: #2A2A2A;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- CABEÇALHO E NAVEGAÇÃO --- */
header {
    background-color: rgba(33, 33, 33, 0.85);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-bg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo-img {
    height: 90px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a:focus {
    color: var(--primary-yellow);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- SEÇÕES PADRÃO --- */
main {
    padding-top: 75px; /* Altura do header */
}

section {
    padding: 100px 5%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.text-center { text-align: center; }

/* --- SEÇÃO INÍCIO --- */
#inicio {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(33, 33, 33, 0.9), rgba(33, 33, 33, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.inicio-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
}

.inicio-content .subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.inicio-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    background-color: var(--primary-yellow);
    color: var(--bg-dark);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* --- SEÇÃO SOBRE MIM --- */
#sobre .section-container {
    display: flex;
    align-items: center; /* Alinha verticalmente os itens */
    gap: 4rem;
}

.sobre-text {
    flex: 2;
}

.sobre-img {
    flex: 1;
    display: flex; /* Adiciona flexbox para controlar o alinhamento interno */
    justify-content: center; /* Centraliza a imagem horizontalmente */
}

.sobre-img img {
    width: 100%;
    max-width: 400px; /* Aumenta um pouco o tamanho máximo */
    height: auto; /* Mantém a proporção da imagem */
    border-radius: 10px;
    border: 3px solid var(--primary-yellow);
}

.sobre-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Aumentei um pouco o espaçamento inferior do texto */
}

@media screen and (max-width: 900px) {
    #sobre .section-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .sobre-img {
        margin-bottom: 2rem; /* Adiciona espaço abaixo da imagem em telas menores */
    }
}

/* --- SEÇÃO SERVIÇOS --- */
#servicos { background-color: var(--card-bg); }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servico-card {
    background-color: var(--bg-dark);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary-yellow);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.servico-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.servico-card p { color: var(--text-secondary); }

/* --- SEÇÃO PROJETOS/ÁREAS --- */
.projetos-subtitle {
    max-width: 700px;
    margin: -1rem auto 3rem;
    color: var(--text-secondary);
}

.projetos-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.projetos-tags span {
    background-color: var(--card-bg);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.projetos-tags span:hover {
    background-color: var(--primary-yellow);
    color: var(--bg-dark);
}

.projetos-tags i {
    margin-right: 10px;
}

/* --- SEÇÃO CONTATO --- */
#contato { background-color: var(--card-bg); }

#contato p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.whatsapp-button {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}
.whatsapp-button i { margin-right: 10px; }
.contato-email { margin-top: 2rem !important; font-size: 1.1rem;}
.contato-email a { color: var(--primary-yellow); text-decoration: none; font-weight: 600; }

/* --- RODAPÉ --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--card-bg);
    color: var(--text-secondary);
}

/* --- RESPONSIVIDADE --- */
@media screen and (max-width: 900px) {
    #sobre .section-container { flex-direction: column-reverse; text-align: center; }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 75px;
        background: var(--bg-dark);
        flex-direction: column;
        width: 60%;
        height: calc(100vh - 75px);
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: right 0.5s ease-in-out;
    }
    .nav-links.nav-active { right: 0; }
    .burger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .inicio-content h1 { font-size: 2.8rem; }
    .inicio-content .subtitle { font-size: 1.5rem; }
    .section-title { font-size: 2.2rem; }
}