/* style.css - COM APENAS AS MODIFICAÇÕES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a1200;
    --secondary-dark: #2a1f00;
    --primary-gold: #c9a86a;
    --secondary-gold: #e6c37e;
    --parchment: #634a11;
    --parchment-dark: #d1c2a4;
    --text-light: #beac87;
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --shadow-light: rgba(201, 168, 106, 0.3);
}

body {
    font-family: 'EB Garamond', serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fundo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Cabeçalho permanece igual */
.header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.title-container {
    position: relative;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.medieval-divider {
    width: 100px;
    height: 1px;
    background-color: var(--primary-gold);
    margin: 0 20px;
}

.subtitle {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.3rem;
    color: var(--secondary-gold);
    letter-spacing: 2px;
}

/* 1. MODIFICAÇÃO: ESPAÇAMENTO ENTRE BLOCOS AUMENTADO */
.interactive-squares {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px; /* Alterado de 60px para 80px - mais separados */
    margin: 40px auto;
    max-width: 900px;
    position: relative;
}

.square {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.4s ease;
}

.square-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-dark);
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 15px var(--shadow-dark);
}

.square:hover .square-inner::before {
    opacity: 1;
    animation: gentleGoldGlow 3s infinite alternate;
}

@keyframes gentleGoldGlow {
    0% {
        background: linear-gradient(
            45deg, 
            transparent 40%, 
            rgba(255, 215, 0, 0.08) 50%, 
            transparent 60%
        );
    }
    100% {
        background: linear-gradient(
            45deg, 
            transparent 40%, 
            rgba(255, 215, 0, 0.12) 50%, 
            transparent 60%
        );
    }
}

.square:hover .square-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--secondary-gold);
}

/* 2. MODIFICAÇÃO: CONTEÚDO INTERNO DOS BLOCOS */
.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}


.square:hover .image-container::after {
    opacity: 0.7;
}

.square-label {
    position: absolute;
    bottom: -40px; /* Ajustado devido ao maior espaçamento */
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    color: var(--secondary-gold);
    letter-spacing: 1px;
    padding: 5px 0;
}

/* Resto do CSS permanece igual */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.profile-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.profile-frame {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--primary-gold);
    overflow: hidden;
    position: relative;
    background-color: var(--secondary-dark);
    box-shadow: 0 0 25px var(--shadow-dark);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary-gold);
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.profile-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.coat-of-arms {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-color: var(--secondary-dark);
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.coat-of-arms-inner {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold);
}

.parchment {
    max-width: 600px;
    background-color: var(--parchment);
    border-radius: 5px;
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 15px var(--shadow-dark);
    border: 1px solid var(--parchment-dark);
    margin-top: 20px;
}

.parchment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/paper.png');
    opacity: 0.3;
    border-radius: 5px;
}

.parchment-content {
    position: relative;
    z-index: 1;
}

.parchment-title {
    font-family: 'Cinzel', serif;
    color: var(--primary-dark);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--parchment-dark);
    padding-bottom: 10px;
}

.parchment-text {
    color: #e0a057;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

.parchment-seal {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--secondary-dark);
    border: 3px solid var(--primary-gold);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background-color: var(--primary-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-gold);
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-gold);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.modal-btn:hover {
    background-color: var(--secondary-gold);
    transform: scale(1.05);
}

.modal-btn.secondary {
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.modal-btn.secondary:hover {
    background-color: rgba(201, 168, 106, 0.1);
}

.footer {
    margin-top: 60px;
    text-align: center;
    padding: 30px 0;
    position: relative;
    border-top: 1px solid rgba(201, 168, 106, 0.2);
}

.footer-content {
    margin-bottom: 20px;
}

.footer-text {
    color: var(--secondary-gold);
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.candle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 60px;
}

.candle-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #8B4513, #A0522D, #8B4513);
    border-radius: 5px;
}

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 25px;
    background: linear-gradient(to bottom, #FFD700, #FF4500, transparent 70%);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 60px;
    }
    
    .interactive-squares {
        margin: 0;
        width: 48%;
        gap: 70px; /* Ajuste para telas médias */
    }
    
    .profile-area {
        width: 48%;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .medieval-divider {
        width: 50px;
        margin: 0 10px;
    }
    
    .interactive-squares {
        gap: 60px; /* Ainda mais espaçado no mobile */
    }
    
    .profile-frame {
        width: 200px;
        height: 200px;
    }
    
    .pixel-bat {
        width: 32px;
        height: 32px;
    }
}
/* Partículas mágicas */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.magic-particles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--gold-glow-light) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, var(--gold-glow-light) 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, var(--gold-glow-light) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, var(--gold-glow-light) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, var(--gold-glow-light) 1px, transparent 1px);
    background-size: 300px 300px;
    animation: particleFloat 50s infinite linear;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% {
        background-position: 0 0, 100px 100px, 200px 200px, 300px 300px, 400px 400px;
    }
    100% {
        background-position: 300px 300px, 400px 400px, 500px 500px, 600px 600px, 700px 700px;
    }
}
/* ESTILOS PARA AS IMAGENS DENTRO DOS QUADRADOS - ADICIONE NO FINAL DO CSS */

/* Garante que as imagens dentro dos quadrados ocupem todo o espaço */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta a imagem para preencher o container */
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

/* Remove o texto indicador quando há imagem */
.image-container:has(img)::before {
    display: none;
}

/* Efeito de zoom suave ao passar o mouse */
.square:hover .image-container img {
    transform: scale(1.05);
}

/* Estilo específico para cada quadrado com imagem */
#square-lattes .image-container img {
    object-position: center;
}

#square-youtube .image-container img {
    object-position: center;
}

#square-academia .image-container img {
    object-position: center;
}

#square-contact .image-container img {
    object-position: center;
}
/* BORDA DOURADA COM GRADIENTE */

/* Borda com gradiente dourado permanente */
.square-inner {
    position: relative;
    border: 2px solid transparent;
    background: 
        linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
        linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.4),
            rgba(201, 168, 106, 0.6),
            rgba(255, 215, 0, 0.4)
        ) border-box;
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Intensifica o gradiente ao passar o mouse */
.square:hover .square-inner {
    background: 
        linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
        linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.8),
            rgba(255, 223, 0, 0.9),
            rgba(255, 215, 0, 0.8)
        ) border-box;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}
/* VELA AO LADO DA FOTO DE PERFIL */

.profile-candle {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 60px;
    height: 100px;
    z-index: 2;
}

.candle-wax {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 70px;
    background: linear-gradient(to right, #8B4513, #A0522D, #8B4513);
    border-radius: 5px 5px 3px 3px;
    box-shadow: 
        0 0 10px rgba(255, 140, 0, 0.3),
        inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.candle-base {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 10px;
    background: linear-gradient(to right, #654321, #8B4513, #654321);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.candle-flame {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 40px;
    background: linear-gradient(to bottom, 
        #FFFF00 0%,
        #FFD700 20%,
        #FF8C00 50%,
        #FF4500 80%,
        transparent 100%);
    border-radius: 50% 50% 20% 20%;
    animation: candleFlicker 0.8s infinite alternate;
    filter: blur(1px);
    z-index: 3;
}

/* Animações da vela */
@keyframes candleFlicker {
    0%, 100% { 
        transform: translateX(-50%) scale(1, 1);
        height: 35px;
        opacity: 0.9;
    }
    25% {
        transform: translateX(-50%) scale(1.1, 0.9);
        height: 40px;
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(0.9, 1.1);
        height: 38px;
        opacity: 0.95;
    }
    75% {
        transform: translateX(-50%) scale(1.05, 0.95);
        height: 42px;
        opacity: 1;
    }
}

@keyframes candleGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px #FFD700,
            0 0 30px rgba(255, 140, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 25px #FFD700,
            0 0 45px rgba(255, 140, 0, 0.7);
    }
}

.candle-flame {
    animation: 
        candleFlicker 0.8s infinite alternate,
        candleGlow 1.5s infinite alternate;
}

/* Efeito de brilho da vela na foto */
.profile-image {
    position: relative;
}

.profile-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 80% 80%,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Remover brasão original do CSS */
.coat-of-arms {
    display: none;
}

/* Ajustar a vela no rodapé para ficar menor ou removê-la */
.footer .candle {
    display: none; /* Remove a vela do rodapé se quiser */
    /* Ou ajuste o tamanho se quiser manter ambas:
    width: 40px;
    height: 70px;
    bottom: 20px;
    right: 20px;
    */
}
/* APENAS O GRADIENTE - MINIMALISTA */

.profile-image {
    border: 2px solid transparent !important;
    background: 
        linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
        linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.4),
            rgba(201, 168, 106, 0.6),
            rgba(255, 215, 0, 0.4)
        ) border-box;
    border-radius: 50% !important;
}

.profile-image img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    margin: 2px;
    border-radius: 50%;
    object-fit: cover;
}

/* Apenas muda a intensidade do gradiente no hover */
.profile-frame:hover .profile-image {
    background: 
        linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
        linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.6),
            rgba(255, 223, 0, 0.8),
            rgba(255, 215, 0, 0.6)
        ) border-box;
}
/* VERSÃO SIMPLES - APENAS AS CORES */

/* Borda dourada */
.parchment {
    border: 2px solid #FFD700 !important; /* Dourado puro */
}

/* Linha sob o título */
.parchment-title {
    border-bottom: 2px solid #FFD700 !important; /* Dourado puro */
}
/* APENAS AUMENTAR DISTÂNCIA VERTICAL - SEM ESTILOS EXTRAS */

@media (max-width: 767px) {
    /* AUMENTAR ESPAÇO VERTICAL ENTRE AS LINHAS DA GRID */
    .interactive-squares {
        row-gap: 100px !important; /* Espaço maior entre linhas */
    }
    
    /* AUMENTAR A DISTÂNCIA DO NOME EM RELAÇÃO AO BLOCO */
    .square-label {
        bottom: -50px !important; /* Mais distante do bloco */
    }
}