:root {
    --bg-fundo: #0f172a;         /* Fundo Grafite Noturno */
    --bg-card: #1e293b;            /* Tom dos Cartões */
    --cor-borda: #334155;        /* Borda Sutil */
    --cor-azul: #3b82f6;           /* Azul Destaque Tech */
    --cor-roxo: #7c3aed;           /* Roxo Violeta Escuro (Índigo Profundo) */
    --cor-texto: #f8fafc;        /* Texto Claro */
    --cor-subtexto: #94a3b8;       /* Texto Secundário */
}

*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Cursor Seta Arredondada Cartoon Roxo (Tamanho reduzido pela metade) */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"><path d="M 6 4 L 24 13 A 2 2 0 0 1 22 17 L 17 17 L 23 26 A 2 2 0 0 1 19 28 L 13 19 L 9 23 A 2 2 0 0 1 6 21 Z" fill="%23c4b5fd" stroke="%237c3aed" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/></svg>') 3 2, auto !important;
}

/* Cursor Seta Arredondada Roxo Neon em Links e Botões */
a, button, input, label, select, summary, .btn-carrossel {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"><path d="M 6 4 L 24 13 A 2 2 0 0 1 22 17 L 17 17 L 23 26 A 2 2 0 0 1 19 28 L 13 19 L 9 23 A 2 2 0 0 1 6 21 Z" fill="%237c3aed" stroke="%23ffffff" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/></svg>') 3 2, pointer !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    max-width: 1600px;                   /* Tela expandida para caber os 4 cartões largos lado a lado */
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-fundo);
}

/*  CABEÇALHO & FOTO DE PERFIL */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--cor-borda);
    margin-bottom: 30px;
}

#title {
    color: var(--cor-texto);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.foto-perfil {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cor-roxo);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.foto-perfil:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.85);
}

header p {
    color: var(--cor-subtexto);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

header img {
    border-radius: 50%;
    border: 3px solid var(--cor-roxo);
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin: 15px 0;
}

/* NAVEGAÇÃO */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--cor-azul);
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* CITAÇÃO (blockquote) */
blockquote {
    background-color: var(--bg-card); 
    border-left: 4px solid var(--cor-azul);
    color: var(--cor-subtexto);
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    padding: 16px 20px;
    font-style: italic;
}

/* GRADE DE CARTÕES & SEÇÕES (h2, h3, section, figure)*/
section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

#hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

#hobbies > h2, 
#hobbies > p {
    flex: 0 0 100%;
    width: 100%;
}

/* Larguras equilibradas: reduz Viagens e aumenta Família e Conexões */
.card-familia {
    flex: 0 1 315px;                     /* Cartão Família expandido */
    min-width: 260px;
}

.card-hobbies {
    flex: 0 1 315px;                     /* Cartão Hobbies */
    min-width: 260px;
}

.card-viagens {
    flex: 0 1 340px;                     /* Cartão Viagens ajustado (sem sobram laterais gigantes) */
    min-width: 280px;
}

.card-conexoes {
    flex: 0 1 315px;                     /* Cartão Conexões expandido */
    min-width: 260px;
}

section > h2, 
section > h3, 
section > p {
    grid-column: 1 / -1;
    width: 100%;
}

h2, h3 {
    color: var(--cor-texto);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

figure {
    background-color: var(--bg-card);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;                        /* Todos os cartões com a mesma altura idêntica */
}

figcaption, figure > p {
    color: var(--cor-subtexto);
    font-size: 0.98rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* CARROSSEL INTERATIVO COM SETAS */
.carrossel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;                             /* Ocupa a mesma altura no container do cartão */
}

.carrossel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    width: 100%;
    scrollbar-width: none;               /* Esconde a barra no Firefox */
}

.carrossel::-webkit-scrollbar {
    display: none;                       /* Esconde a barra no Chrome/Edge */
}

.slide {
    flex: 0 0 100%;                      /* APENAS 1 FOTO VISÍVEL POR VEZ */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
}

.slide figcaption {
    width: 100%;
    color: var(--cor-subtexto);
    font-size: 0.98rem;
    margin-bottom: 12px;
    text-align: left;
    min-height: 55px;                    /* Alinha o início das fotos de todos os cartões */
}

.slide img, figure img {
    width: 100%;
    height: 400px;                       /* Altura ampla que destaca qualquer imagem */
    object-fit: contain !important;      /* ZERO ZOOM: EXIBE 100% DA FOTO INTEIRA SEM CORTES OU DESTORÇÕES */
    border-radius: 6px;
    background-color: rgba(15, 23, 42, 0.4); /* Fundo noturno suave para emoldurar fotos */
}

.foto-cavalo {
    object-fit: contain !important;      /* Garante que a foto a cavalo apareça inteira sem cortar */
    background-color: var(--bg-card);
}

/* BOTÕES DE SETAS INTERATIVAS (❮ e ❯) */
.btn-carrossel {
    position: absolute;
    top: 50%;                            /* Centraliza as setas exatamente no meio da altura da foto */
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.85);  /* Fundo noturno transparente */
    color: var(--cor-azul);
    border: 1px solid var(--cor-borda);
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-carrossel:hover {
    background: var(--cor-azul);
    color: #ffffff;
    transform: translateY(-50%) scale(1.15);
}

.btn-carrossel.prev {
    left: 8px;
}

.btn-carrossel.next {
    right: 8px;
}

/* RODAPÉ & REDES SOCIAIS*/
footer {
    margin-top: 50px;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--cor-borda);
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

footer a {
    color: var(--cor-subtexto);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--cor-azul);
    text-decoration: underline;
}

/* ==========================================================================
   BARRA DE ROLAGEM PRINCIPAL (SCROLLBAR VERTICAL ROXA AO ROLAR)
   ========================================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-fundo);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 6px;
    border: 2px solid var(--bg-fundo);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Fica roxa quando o usuário move o scroll do mouse ou passa a seta por cima */
body.is-scrolling::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    background: var(--cor-roxo) !important;
    box-shadow: 0 0 12px var(--cor-roxo);
}

/* ==========================================================================
   ANIMAÇÃO E EFEITO VISUAL DE ONDA (NEON RIPPLE) AO CLICAR
   ========================================================================== */
.cursor-click-effect {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 3px solid var(--cor-roxo);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    pointer-events: none;
    z-index: 999999;
    animation: clickRipple 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes clickRipple {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3);
        box-shadow: 0 0 15px var(--cor-roxo);
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.6);
        box-shadow: 0 0 30px rgba(124, 58, 237, 0);
    }
}
