/* --- RESET E BASE 2026 --- */
:root {
    --bg-color: #050505; /* Preto Profundo */
    --text-main: #E0E0E0;
    --text-muted: #888888;
    --accent: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; color: var(--text-muted); }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }

/* --- HERO SECTION (MOBILE FIRST - FUSÃO TOTAL) --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top center, #121212 0%, #050505 50%);
    padding-top: 30px;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-logo {
    max-width: 150px;
    width: 100%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    position: relative;
}

/* Container do conteúdo */
.hero-content {
    display: flex;
    /* CORREÇÃO AQUI: Invertemos a ordem no mobile. 
       A imagem vem primeiro, o texto vem depois. */
    flex-direction: column-reverse; 
    width: 100%;
}

/* Wrapper da Imagem - MOBILE */
.hero-image-wrapper {
    position: relative;
    width: 100vw;
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    border: none;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.95) contrast(1.05);
}

/* O Overlay de Fusão - MOBILE */
.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradiente ajustado para o texto ficar legível perto do cotovelo */
    background: linear-gradient(to bottom, transparent 40%, var(--bg-color) 85%, var(--bg-color) 100%);
    z-index: 2;
}

/* O Texto - MOBILE (Ajustado para o Cotovelo) */
.hero-text {
    text-align: center;
    z-index: 5;
    position: relative;
    
    /* CORREÇÃO AQUI: Como invertemos a ordem (imagem em cima, texto embaixo),
       agora a margem negativa puxa o texto PARA CIMA, em direção ao cotovelo/imagem. */
    margin-top: -180px; 
    
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Ajuste leve para caber melhor */
    background: linear-gradient(to right, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: fadeUp 1s ease-out;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8); /* Sombra mais forte para leitura */
}

.hero p {
    font-size: 1rem;
    color: #cccccc; /* Texto mais claro para ler sobre a foto */
    margin: 0 auto 30px;
    max-width: 90%;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.btn-glow {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1); 
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-glow:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 40px rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.full-width { width: 100%; margin-top: 20px; }

/* --- DEMAIS SEÇÕES (Mantidas) --- */
.header-section { margin-bottom: 60px; display: flex; justify-content: space-between; align-items: end; }
.year-badge { color: var(--text-muted); }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--glass); border: 1px solid var(--border-glass); border-radius: 24px; aspect-ratio: 1 / 1; overflow: hidden; position: relative; cursor: pointer; transition: var(--transition); }
.card:hover { border-color: rgba(255,255,255,0.3); transform: scale(0.98); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; opacity: 0.7; }
.card:hover img { transform: scale(1.1); opacity: 1; }
.card-info { position: absolute; bottom: 24px; left: 24px; z-index: 2; opacity: 0; transform: translateY(20px); transition: var(--transition); text-align: left; width: 90%; }
.card-info h3 { color: #fff; margin-bottom: 5px; font-size: 1.2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.card-info p { color: #ccc; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.card:hover .card-info { opacity: 1; transform: translateY(0); }
.portfolio-footer { text-align: center; margin-top: 40px; color: var(--text-muted); font-size: 0.9rem; }
.contact-section { padding-bottom: 150px; }
.contact-form { max-width: 700px; margin: 0 auto; background: #0a0a0a; padding: 60px; border-radius: 32px; border: 1px solid var(--border-glass); }
.form-title { margin-bottom: 40px; }
.form-group { margin-bottom: 32px; }
label { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
input, select, textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid #333; padding: 16px 0; color: #fff; font-size: 1.5rem; font-family: 'Outfit', sans-serif; transition: var(--transition); outline: none; }
input:focus, select:focus, textarea:focus { border-bottom-color: #fff; }
select { cursor: pointer; border-radius: 0; color: #888; }
select:focus { color: #fff; }
select option { background-color: #000; color: #fff; }
footer { border-top: 1px solid var(--border-glass); padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; color: var(--text-muted); }
.social-links { display: flex; gap: 20px; }
.social-links a { color: inherit; text-decoration: none; transition: color 0.3s; }
.social-links a:hover { color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVO DESKTOP (Layout Lado-a-Lado) --- */
@media (min-width: 769px) {
    section { padding: 120px 0; }
    .hero {
        height: 100vh;
        padding-top: 0;
        padding-bottom: 60px;
        justify-content: center;
        background: radial-gradient(circle at center, #1a1a1a 0%, #050505 70%);
    }

    .hero-logo {
        margin-left: 0;
        margin-bottom: 60px;
    }

    .hero-content {
        flex-direction: row; /* Volta ao normal no desktop */
        align-items: center;
        justify-content: space-between;
    }

    /* Restaura o Texto para a posição normal */
    .hero-text {
        flex: 1;
        padding-right: 40px;
        text-align: left;
        margin-top: 0; /* Remove a margem negativa */
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 40px;
    }

    .hero h1 { font-size: 5rem; text-shadow: none; }
    .hero p { margin-left: 0; max-width: 600px; color: var(--text-muted); text-shadow: none; }

    /* Restaura a Imagem para o card elegante */
    .hero-image-wrapper {
        flex: 1;
        width: auto;
        max-width: none;
        margin: 0; 
        border-radius: 24px;
        border: 1px solid var(--border-glass);
    }
    
    .image-overlay {
        background: linear-gradient(to bottom, transparent 70%, var(--bg-color) 100%);
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .hero-text { margin-top: -150px; } /* Ajuste fino para telas muito pequenas */
    .hero h1 { font-size: 2.2rem; }
}