* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #f4e1d2; /* Bege claro */
    --bg-gradient: linear-gradient(120deg, #3d1a00 15%, #8b4e06 45%, #c57e30 85%);
 /* Degradê marrom mais contrastante */
    --stroke-color: rgba(139, 78, 6, 0.5); /* Marrom suave */
    --surface-color: rgba(255, 255, 255, 0.2); /* Botões mais claros no modo escuro */
    --surface-color-hover: rgba(255, 255, 255, 0.4);
    --highlight-color: rgba(139, 78, 6, 0.4);
    --switch-bg-url: url(status.svg);
}

.light {
    --text-color: #4a2c12; /* Marrom escuro */
    --bg-gradient: linear-gradient(120deg, #8b4e06, #d9cbb5, #f4e1d2);
 /* Degradê mais contrastante para modo claro */
    --stroke-color: rgba(74, 44, 18, 0.5);
    --surface-color: rgba(74, 44, 18, 0.2);
    --surface-color-hover: rgba(139, 78, 6, 0.3);
    --highlight-color: rgba(74, 44, 18, 0.4);
    --switch-bg-url: url(sun.svg);
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-size: cover;
    transition: background 0.5s ease-in-out;
    animation: fadeIn 1s ease-in-out;
}

body * {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
}

/* Efeito de fade-in no carregamento */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#container {
    width: 100%;
    max-width: 588px;
    margin: 56px auto 0px;
    padding: 0 24px;
}

#profile {
    text-align: center;
    padding: 24px;
}

#profile img {
    display: block;
    width: 112px;
    border: 5px solid #8b4e06; /* Marrom suave */
    border-radius: 100px;
    margin: auto;
    transition: transform 0.3s ease-in-out;
}

#profile img:hover {
    transform: scale(1.1);
}

#profile p {
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
    margin-top: 8px;
}

#switch {
    position: relative;
    width: 64px;
    margin: 20px auto;
}

#switch button {
    width: 32px;
    height: 32px;
    background: var(--text-color) var(--switch-bg-url) no-repeat center;
    border: 0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    transform: translateY(-50%);
    animation: slide-back 0.2s;
    transition: transform 0.2s ease-in-out;
}

.light #switch button {
    animation: slide-in 0.2s forwards;
}

#switch button:active {
    transform: scale(0.9);
}

#switch button:hover {
    outline: 8px solid var(--highlight-color);
}

#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;
}

@keyframes slide-in {
    from {
        left: 0;
    }
    to {
        left: 50%;
    }
}

@keyframes slide-back {
    from {
        left: 50%;
    }
    to {
        left: 0;
    }
}

/* BOTÕES MAIS CLAROS NO MODO ESCURO */
ul li a {
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
    font-weight: 500;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
}

/* Modo escuro: botões mais claros */
.light ul li a {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.light ul li a:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Animação ao passar o mouse nos links */
ul li a:hover {
    background: var(--surface-color-hover);
    border: 1.5px solid white;
    transform: scale(1.05);
}

/* Lista de links */
ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Efeito de surgimento horizontal dos botões */
ul li {
    opacity: 0;
    animation: fadeSide 0.6s ease-in-out forwards;
}

/* Alternando lados para surgimento */
ul li:nth-child(odd) {
    transform: translateX(-100px);
}

ul li:nth-child(even) {
    transform: translateX(100px);
}

/* Aplica animação com delay para cada botão */
ul li:nth-child(1) { animation-delay: 0.2s; }
ul li:nth-child(2) { animation-delay: 0.4s; }
ul li:nth-child(3) { animation-delay: 0.6s; }
ul li:nth-child(4) { animation-delay: 0.8s; }
ul li:nth-child(5) { animation-delay: 1s; }
ul li:nth-child(6) { animation-delay: 1.2s; } 

/* Keyframe para efeito de surgimento */
@keyframes fadeSide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
footer {
    background: linear-gradient(120deg, #5a2a00, #c57e30);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-family: 'Raleway', sans-serif;
    margin-top: 40px;
    animation: fadeIn 1s ease-in-out;
}

.footer-container {
    max-width: 800px;
    margin: auto;
}

.footer-container p {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.8;
    color: white;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 15px;
}

/* Animação de surgimento */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

