/* Variáveis de cores do seu portfólio para consistência */
:root {
    --primary-color: #3b83f6;
    --secondary-color: #1e3b8a;
    --third-color: #E5E7EB;
    --bg-dark: #0B0C10;
    --bg-light: #1f2937c4;
    --text-color: #F9FAFB;
    --accent-color: #3b83f6;
    --card-bg: #111827;
    --border-color: #374151;
}

/* -------------------------- GERAL -------------------------- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url(../_img/4.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text-color);
}

.content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-align: center;
}

/* -------------------------- PARTICULAS DO FUNDO -------------------------- */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
}

/* -------------------------- CONTEINER PRINCIPAL -------------------------- */
.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    z-index: 2;
    color: var(--text-color);
    background-color: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    margin: 40px auto;
    min-height: 600px;
}

.name-subtitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-left: 10px;
    text-align: center;
}

.subtitle-inline {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    color: var(--third-color);
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* -------------------------- AVATAR -------------------------- */
.avatar-section {
    background-color: var(--card-bg);
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    width: 100%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    text-align: left;
}

.profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-right: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.profile-pic:hover {
    transform: scale(1.08);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2em;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    padding-top: 0;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* -------------------------- SEÇÕES -------------------------- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    padding: 0 0 15px 0;
    color: var(--accent-color);
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
    margin-top: 25px;
}

h4 {
    padding-bottom: 10px;
}

/* -------------------------- SKILLS -------------------------- */
.skills-grid {
    background-color: var(--card-bg);
    padding: 25px 30px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.skills-grid img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 10px;
    padding: 8px;
    background-color: var(--bg-light);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skills-grid img:hover {
    transform: translateY(-7px) scale(1.1);
    background-color: var(--primary-color);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

/* -------------------------- SOCIAL -------------------------- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    width: 100%;
    flex-wrap: wrap;
}

.social-icon img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: contain;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
    border: 3px solid transparent;
}

/* -------------------------- Cores de fundo para os ícones sociais --------------------------*/
.social-icon.instagram img {
    background-color: #e1306c;
}

.social-icon.github img {
    background-color: #333;
}

.social-icon.tiktok img {
    background-color: #000;
}

.social-icon.lattes img {
    background-color: #004c3f;
}

.social-icon img:hover {
    transform: translateY(-7px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
    border-color: var(--accent-color);
}

/* -------------------------- LINKS -------------------------- */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.link-button {
    display: block;
    width: 100%;
    padding: 18px 20px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    border-radius: 12px;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
}

.link-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.link-button.main-button {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-color: var(--primary-color);
}

.link-button.main-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.link-button.secondary-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.link-button.secondary-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* -------------------------- FOOTER -------------------------- */
footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.85em;
    color: var(--third-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

footer a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* -------------------------- RESPONSIVIDADE -------------------------- */
@media (max-width: 480px) {
    .main-container {
        padding: 20px;
    }

    .avatar-section {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 20px;
        width: 100%;
        margin-bottom: 25px;
    }

    .profile-pic {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 12px;
    }

    .name-subtitle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    h1 {
        font-size: 1.6em;
        margin-bottom: 0;
    }

    .subtitle-inline {
        font-size: 0.85em;
    }

    .section-title {
        font-size: 1.2em;
        margin-top: 20px;
        padding-bottom: 10px;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 15px 20px;
        margin-bottom: 25px;
    }

    .skills-grid img {
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .social-links {
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-icon img {
        width: 55px;
        height: 55px;
        padding: 8px;
    }

    .links-list {
        gap: 14px;
        margin-bottom: 35px;
    }

    .link-button {
        padding: 16px 18px;
        font-size: 1em;
        border-radius: 10px;
    }

    footer p {
        font-size: 0.75em;
    }
}

@media (max-height: 700px) {
    .main-container {
        margin: 20px auto;
        min-height: auto;
        padding: 20px;
    }
}

/* Ajustes para telas de tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .main-container {
        width: 90%;
        max-width: 480px;
        padding: 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 20px 25px;
    }

    .skills-grid img {
        width: 55px;
        height: 55px;
    }

    .social-links {
        gap: 20px;
    }

    .social-icon img {
        width: 60px;
        height: 60px;
    }
}