/* ==========================================================================
   Configurações Base e Identidade Visual (Tema Dark Premium)
   ========================================================================== */
:root {
    --bg-pure: #000000;
    --bg-card: #080808;
    
    --text-pure: #ffffff;
    --text-muted: #a3a3a3;
    
    --border-accent: #ffffff;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Merriweather', serif;
}

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

body {
    background-color: var(--bg-pure);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Efeito sutil de ruído analógico de fundo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Container Principal */
.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 20px 60px 20px;
}

/* ==========================================================================
   Navegação Topo (Inspirado no layout modelo)
   ========================================================================== */
.navbar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 4px rgba(255, 255, 255, 0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .title {
    font-family: var(--font-heading);
    color: var(--text-pure);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text .subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-pure);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-muted);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Seção Hero (Equilíbrio Texto/Imagem)
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-pure);
    line-height: 1.1;
    margin-bottom: 20px;
}

.bio-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background-color: var(--text-pure);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.hero-avatar-area {
    display: flex;
    justify-content: flex-end;
}

.profile-pic {
    width: 100%;
    max-width: 450px;
    object-fit: cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    border-bottom: 5px solid var(--text-pure);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.08);
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   Ações Principais (Botão Sobre Mim)
   ========================================================================== */
.hero-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.action-btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 12px 45px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--bg-pure);
    background-color: var(--text-pure);
    border: 1px solid var(--text-pure);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15); /* Sombreamento suave para destaque */
    transition: all 0.3s ease;
}

.action-btn:hover {
    color: var(--text-pure);
    background-color: var(--bg-pure);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Cards e Grids
   ========================================================================== */
.content-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.grid-card {
    background-color: var(--bg-card);
    border: 1px solid #111;
    border-bottom: 3px solid var(--border-accent);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.05);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.grid-card .favicon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9));
    transition: transform 0.3s ease;
}

.grid-card span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-pure);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.1);
}

.grid-card:hover .favicon {
    transform: scale(1.1);
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
    border-top: 1px solid #111;
    background-color: var(--bg-pure);
    margin-top: 40px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.disclaimer-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: var(--text-pure);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsividade Mobile (Com ajustes precisos de Grid)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-avatar-area {
        justify-content: center;
        order: -1;
    }
    
    .hero-divider {
        margin: 0 auto;
    }
    
    /* Configuração Padrão Mobile (Projetos e Plataformas) - 2 por linha */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Configuração Compacta Mobile (Conexões) - 3 por linha */
    .compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .compact-grid .grid-card {
        padding: 15px 5px; /* Reduz padding para dar espaço ao texto */
    }
    
    .compact-grid .grid-card .favicon {
        width: 32px; /* Ícones menores para economizar espaço */
        height: 32px;
        margin-bottom: 10px;
    }
    
    .compact-grid .grid-card span {
        font-size: 0.7rem; /* Fonte menor para evitar quebra excessiva de linha */
        letter-spacing: 0.5px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Ajuste fino para telas mobile muito pequenas (ex: iPhone SE, antigos) */
@media (max-width: 380px) {
    .compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .compact-grid .grid-card span {
        font-size: 0.6rem;
    }
}
