/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --bg-color: #050505;
    --border-color: #474747;
    --primary: #a6d16a;
    --text-main: #ededed;
    --text-muted: #888888;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color) !important;
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* --- NAVEGAÇÃO --- */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: rgba(5, 5, 5, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    width: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.main-nav a:hover, 
.main-nav a.current {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(166, 209, 106, 0.4);
}

/* --- PÁGINA SOBRE (LAYOUT LADO A LADO) --- */
.about-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 25px;
    border-bottom: none;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-photo {
    .profile-img, .sobre-img 
    width: 100%;
    max-width: 220px; /* Reduz a largura para o texto respirar ao lado */
    height: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
}

/* --- SECÇÃO HERO DO PORTFÓLIO & AVATAR CIRCULAR --- */
.hero {
    text-align: center;
    padding: 40px 20px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-container {
    width: 140px;
    height: 140px;
    margin: 30px auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- FILTROS DE CATEGORIA --- */
.filtros-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filtros a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #111;
    transition: 0.3s;
}

.filtros a:hover,
.filtros a.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(166, 209, 106, 0.05);
}

/* --- GRELHA E CARTÕES DE PROJETOS --- */
.galeria {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.03);
}

.card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-info h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
}

.btn-link:hover {
    text-decoration: underline;
}

/* --- LIGHTBOX (JANELA DE ZOOM) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

#caption {
    margin-top: 15px;
    color: #ccc;
    text-align: center;
    font-size: 1rem;
}

/* --- SKILLS E OUTROS ELEMENTOS --- */
.skills-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 20px; 
}

.skill-tag {
    background: #111;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(166, 209, 106, 0.2);
    color: var(--primary);
}

/* --- RESPONSIVIDADE --- */

/* --- ALINHAMENTO DE TEXTOS (Páginas Portfólio e Contato) --- */
.texto-centrado {
    text-align: center !important;
}
@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2.3rem;
    }

    .skills-grid {
        justify-content: center;
    }
}