/* Cores */
:root {
    --background-color: #000000;
    --section-background: #2C2C2C;
    --text-color: #FFFFFD;
    --highlight-color: #C242FF;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animação de background */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Centralizando o conteúdo principal */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.section-content {
    background-color: var(--section-background);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

h1, h2 {
    color: var(--highlight-color);
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Seção 1: Introdução */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.profile-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-intro .text-content {
    text-align: center;
}

#typed-text {
    font-size: 1.5em;
    font-weight: bold;
    min-height: 1.5em;
}

/* Seção 2: Sobre Mim e Ícones Sociais */
.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--text-color);
    font-size: 2em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--highlight-color);
}

/* Seção 3: Ferramentas e Linguagens */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 1em;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.2em; /* Diminuindo os ícones de ferramentas */
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.skill-item:hover i {
    color: var(--highlight-color);
}

.skill-item span {
    color: var(--text-color);
}

.skill-description-box {
    background-color: var(--highlight-color);
    color: var(--section-background);
    padding: 15px;
    border-radius: 5px;
    margin-top: 30px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1em;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.skill-description-box.show {
    opacity: 1;
    height: auto;
}

/* Seção 4: Projetos */
#projects.section-content {
    padding: 40px 20px; /* Reduzindo o padding horizontal da seção */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    align-items: start;
}

.project-item {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(194, 66, 255, 0.4);
}

.project-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
    height: 180px;
    object-fit: cover;
}

.project-item h3 {
    color: var(--highlight-color);
    margin-bottom: 5px;
}

.project-item p {
    font-size: 0.95em;
    color: var(--text-color);
    flex-grow: 1;
    overflow: hidden; /* IMPORTANTE: Impedindo que o texto vaze */
}

/* Seção 5: Call to Action */
.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: #FFFFFD;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #a835db;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--section-background);
    padding: 20px;
    margin-top: 0px;
    border-radius: 8px;
}

.footer-social-icons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    padding-left: 20px;
}

.footer-social-icons a {
    color: var(--text-color);
    font-size: 1.5em; /* Diminuindo os ícones do footer */
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--highlight-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .section-content {
        padding: 30px;
    }

    .profile-intro {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2em;
    }

    #typed-text {
        font-size: 1.2em;
    }

    .social-icons a {
        font-size: 2em;
    }

    .skill-item i {
        font-size: 2.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .footer-social-icons {
        justify-content: center;
        padding-left: 0;
    }

    .footer-social-icons a {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    #typed-text {
        font-size: 1em;
    }

    .social-icons a {
        font-size: 1.8em;
    }

    .skill-item i {
        font-size: 2em;
    }
}