/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Slab", serif;
}

body {
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(90deg, #000000, #ffffff);
    transition: background 0.1s ease;
    padding: 20px; /* Adiciona espaçamento interno */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(20px);
}

body::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Header */
.header {
    margin: 10px auto;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.texts-header h1 {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.texts-header h3 {
    font-size: 1rem;
    color: #cccccc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Container e Cards */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 20px auto;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card h4 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.card.books {
    background-color: #f5f5f5;
    cursor: default;
    width: 100%;
    text-align: left;
    padding: 20px;
}

.card.books h4 {
    text-align: center;
    margin-bottom: 10px;
}

.book-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.book-list li {
    margin-bottom: 5px;
}

/* Projetos */
.section-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
    max-width: 800px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    padding: 15px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, #444444, #242424);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 20px;
}

.footer p {
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.snake-emoji {
    position: fixed;
    font-size: 2rem; /* Tamanho do emoji */
    z-index: -1; /* Fica atrás do conteúdo */
    transition: top 0.5s linear, left 0.5s linear; /* Movimentos suaves */
}

@media (max-width: 480px) {
    .header {
        padding: 10px;
    }

    .texts-header h1 {
        font-size: 1.5rem;
    }

    .texts-header h3 {
        font-size: 0.9rem;
    }

    .card {
        width: 100%;
        padding: 10px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .footer {
        font-size: 0.7rem;
        padding: 10px;
    }
}