/* =========================================
   1. CONFIGURAÇÕES GERAIS (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Fonte para textos corridos */
    background-color: #121212; /* Fundo geral do site (cinza muito escuro) */
    color: #e0e0e0; /* Cor do texto (cinza claro para leitura) */
    overflow-x: hidden; /* Evita rolagem lateral */
}

/* =========================================
   2. HERO SECTION (TELA INICIAL)
   ========================================= */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000; /* PRETO PURO (Igual ao fundo da sua foto) */
    min-height: 95vh; /* Ocupa a tela quase toda */
    padding: 0 8%;
    position: relative;
}

/* --- Barra Lateral de Ícones --- */
.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-right: 40px;
}

.social-sidebar a {
    color: #ffffff; /* Ícones brancos */
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-sidebar a:hover {
    color: #0066ff; /* Azul vibrante ao passar o mouse */
    transform: translateY(-3px);
}

/* --- Texto Central --- */
.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-text .subtitle {
    font-family: 'Playfair Display', serif; /* Fonte elegante */
    font-size: 2rem;
    font-weight: 700;
    color: #0066ff; /* Azul destaque */
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.hero-text .title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Nome bem grande */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text .description {
    font-size: 1.1rem;
    color: #b0b0b0; /* Cinza médio */
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 480px;
}

/* --- Botão --- */
.btn-primary {
    background-color: #0066ff;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: scale(1.05);
}

/* --- Imagem (Sua Foto com Correção de Borda) --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;

    /* MÁSCARA MÁGICA: Suaviza as bordas para não mostrar o corte da foto */
    /* O centro (black) é visível, as bordas (transparent) somem suavemente */
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
            mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

/* =========================================
   3. MENU DE NAVEGAÇÃO
   ========================================= */
nav {
    background: #0a0a0a; /* Quase preto */
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul { list-style: none; }
nav ul li { display: inline; margin: 0 25px; }

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #0066ff;
    transition: width .3s;
    position: absolute;
    bottom: -5px;
}

nav ul li a:hover::after { width: 100%; }

/* =========================================
   4. SEÇÃO DE PROJETOS (DESIGN LIMPO)
   ========================================= */
section#projetos {
    padding: 5rem 10%;
    background: #121212; /* Mantém o tema escuro */
}

section#projetos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #ffffff;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem; /* Espaçamento generoso entre projetos */
}

/* O cartão é transparente e invisível, serve apenas para agrupar */
.project-card {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px); /* Movimento leve ao passar o mouse */
}

/* A Imagem recebe o estilo visual */
.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 15px; /* Cantos arredondados na imagem */
    box-shadow: 0 5px 20px rgba(0,0,0,0.6); /* Sombra preta para destacar do fundo */
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

/* Brilho azul na imagem ao passar o mouse */
.project-card:hover .project-image {
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.2); 
    transform: scale(1.02);
}

/* Texto abaixo da imagem */
.project-info {
    padding: 0; /* Sem enchimento */
}

.project-info h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.project-info p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   5. RODAPÉ (FOOTER)
   ========================================= */
footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #222;
}

footer a {
    color: #0066ff;
    text-decoration: none;
}

/* =========================================
   6. RESPONSIVIDADE (CELULAR)
   ========================================= */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse; /* Foto embaixo ou em cima, dependendo do gosto */
        text-align: center;
        padding-top: 4rem;
        height: auto;
    }

    .social-sidebar {
        flex-direction: row;
        justify-content: center;
        margin: 0 0 30px 0;
    }

    .hero-text .title {
        font-size: 3rem;
    }

    .hero-image-container {
        justify-content: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-img {
        max-height: 50vh;
    }

    nav ul li {
        display: block;
        margin: 15px 0;
    }
}