/* Reset de margem, padding e box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis padrão (modo escuro) */
:root {
    --text-color: #FFF;
    --bg-url: url(../assets/bg-mobile.jpg);
    --stroke-color: rgba(255, 255, 255, 0.5);
    --surface-color: rgba(255, 255, 255, 0.1);
    --surface-color-hover: rgba(0, 0, 0, 0.02);
    --highlight-color: rgba(255, 255, 255, 0.2);
    --switch-bg-url: url(../assets/moon-stars.svg);
}

/* Variáveis para modo claro */
.light {
    --text-color: #000;
    --bg-url: url(../assets/bg-mobile-light.jpg);
    --stroke-color: rgba(0, 0, 0, 0.5);
    --surface-color: rgba(0, 0, 0, 0.05);
    --surface-color-hover: rgba(0, 0, 0, 0.02);
    --highlight-color: rgba(0, 0, 0, 0.1);
    --switch-bg-url: url(../assets/sun.svg);
}

/* Fundo da página com imagem */
body {
    background: var(--bg-url) no-repeat top center/cover;
}

/* Fonte e cor padrão para todos os elementos */
body * {
    font-family: "Inter", sans-serif;
    color: var(--text-color);
}

/* Container principal */
#container {
    width: 100%;
    max-width: 588px;
    margin: 10px auto 0;
    padding: 0 24px;
}

/* Perfil: centralizado com espaçamento */
#profile {
    text-align: center;
    padding: 24px;
}

/* Tamanho da imagem do perfil */
#profile img {
    width: 112px;
}

/* Nome do perfil */
#profile p {
    font-weight: 500;
    line-height: 24px;
    margin-top: 8px;
}

/* Container do botão de tema */
#switch {
    position: relative;
    width: 64px;
    margin: 4px auto;
}

/* Botão circular do switch */
#switch button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #FFF var(--switch-bg-url) no-repeat center;
    position: absolute;
    left: 0;
    z-index: 1;
    transform: translateY(-50%);
    top: 50%;
}

/* Alinhamento do botão no modo claro */
.light #switch button {
    right: 0;
    left: inherit;
}

/* Hover no switch */
#switch button:hover {
    outline: 8px solid var(--highlight-color);
}

/* Trilha do switch */
#switch span {
    display: block;
    width: 64px;
    height: 24px;
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 9999px;
}

/* Lista de links principais */
ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 23px 0;
}

/* Estilo dos botões de link */
ul li a {
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 500;
    transition: background 0.2s;
}

/* Hover nos botões de link */
ul li a:hover {
    border: 1.5px solid var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Área dos ícones sociais */
#social-links {
    display: flex;
    padding: 24px 0;
    justify-content: center;
    font-size: 23px;
}

/* Estilo dos ícones sociais */
#social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 50%;
}

/* Hover nos ícones sociais */
#social-links a:hover {
    background: var(--highlight-color);
    transition: background 0.2s;
}

/* Início sobre.html */

/* Efeitos fade de entrada e saída */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Caixa de texto em forma de balão */
.message-bubble {
    background: var(--surface-color, #fff);
    color: var(--text-color, #000);
    font-family: 'Inter', sans-serif;
    padding: 10px 20px;
    border-radius: 16px;
    max-width: 100%;
    margin: 10px auto 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

/* Triângulo do balão */
.message-bubble::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--surface-color, #fff) transparent;
}

/* Espaçamento entre parágrafos do texto */
.message-bubble p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Remove margem do último parágrafo */
.message-bubble p:last-child {
    margin-bottom: 0;
}

/* Alinhamento Mensagem Olá */
p.hello {
    text-align: center;
    margin-top: 5px;
}

/* Alinhamento de parágrafos */
p {
    text-align: center;
}

/* Botão flutuante de voltar */
.back-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--bg-url);
    color: var(--text-color, #000);
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover no botão de voltar */
.back-floating:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tamanho do ícone do botão flutuante */
.back-floating ion-icon {
    font-size: 16px;
}

/* Rodapé */
footer {
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
}

/* SOMENTE DESKTOP */
/* Container da seção "Sobre mim" */
div#container-sobre {
    max-width: 700px;
    margin: 10px auto 0;
    padding: 0 24px;
}

/* SOMENTE MOBILE*/
@media screen and (max-width: 649px) {

    /* Container da seção "Sobre mim" */
    div#container-sobre {
        width: 100%;
        max-width: 588px;
        margin: 10px auto 0;
        padding: 0 24px;
    }
    
}