/* ==========================================
   1. RESET E CONFIGURAÇÕES GERAIS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background: radial-gradient(circle, #252525 0%, #0d0d0d 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 20px; 
}

/* Container principal da página inicial (index.html) */
.container {
    width: 100%;
    max-width: 380px;
    padding: 30px 20px;
    text-align: center;
    position: relative; 
    z-index: 2;
}

/* ==========================================
   2. ESTILO DA IMAGEM DE FUNDO (index.html)
   ========================================== */
.profile-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 120%;        
    height: 110%;       
    object-fit: contain; 
    z-index: -1; 
    pointer-events: none; 

    filter: brightness(0.32) contrast(1.05);

    mask-image: linear-gradient(to bottom, 
                    transparent 0%, 
                    black 30%, 
                    black 65%, 
                    transparent 100%),
                 linear-gradient(to right, 
                    transparent 0%, 
                    black 25%, 
                    black 75%, 
                    transparent 100%);
    mask-composite: intersect;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 65%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* ==========================================
   3. TEXTOS E ESTRUTURA DO TOPO
   ========================================== */
.subtitle {
    font-size: 11px;
    color: #aaaaaa;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 25px; 
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.subtitle, .title, .divider-text {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
}

/* ==========================================
   4. LINHA DIVISÓRIA
   ========================================== */
.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

.line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.divider-text {
    font-size: 15px;
    letter-spacing: 2px;
    padding: 0 10px;
    color: #ffffff;
    font-weight: normal; 
    line-height: 1.3;
    max-width: 160px;
    text-transform: uppercase;
}

/* ==========================================
   5. BOTÕES DE LINKS
   ========================================== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background-color: #ffffff;
    color: #111111;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 3px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #111111;
}

/* ==========================================
   6. PÁGINA DE PORTFÓLIO (portfolio.html)
   ========================================== */
.portfolio-container {
    width: 100%;
    max-width: 1100px;
    padding: 20px 0;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.btn-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-back:hover {
    opacity: 1;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-item {
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 320px;
    border-radius: 4px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Ajustes para telas menores (Celulares) */
@media (max-width: 600px) {
    body {
        justify-content: flex-start;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}