/* RESPONSIVE STYLES */

@media(max-width:1280px) {
    .first_section .cabecalho {
        gap: 60px;
        /* Ajuste o espaçamento entre o logo e o menu */
    }



    .first_section .redes-sociais {
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    .first_section .redes-sociais a i {
        font-size: 24px;
        margin: 0 4px;
    }



    /* Estilos para a quarta seção */
    .fourth__itens {
        gap: 20px;
        /* Ajuste o espaçamento entre os itens */
    }

    /* Estilos para a quinta seção */
    .fifth_container {
        margin-left: 30px;
        margin-right: 30px;
        grid-template-columns: repeat(3, 1fr);
        /* Altere o número de colunas conforme necessário */
        gap: 10px;
    }


    .home {
        flex-direction: column;
        align-items: center;
        margin: 50px 0;
        gap: 30px;
    }

    .home .informacoes {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .projetos .container-projetos {
        padding: 0 30px;
    }
}

@media(max-width: 425px) {
    .first_section .cabecalho {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        gap: 10px;
        padding: 8px 5px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1000;
        border-bottom: 1px solid rgba(148, 67, 216, 0.3);
        flex-direction: column;
        align-items: center;
    }

    .cabecalho .menu {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
    }

    .cabecalho .menu ul {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 10px;
    }

    .cabecalho .menu li a {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 15px;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cabecalho .menu li:hover a {
        background-color: #9443d8;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(148, 67, 216, 0.35);
    }

    /* New styles for smaller screens */
    .first__title {
        font-size: 3rem;
        /* Reducing font size */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1rem;
        /* Reducing font size */
        margin: 0 20px;
        /* Adding margin */
    }

    .first_section {
        padding-top: 110px;
        /* Adjusting padding top for fixed header */
    }



    .projetos .container-projetos .projeto img {
        max-width: 100%;
        max-height: 300px;
    }

    .projetos .titulo {
        padding: 30px 0;
    }

    .fifth_container {
        margin-left: 30px;
        margin-right: 30px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fifth_container .item img {
        max-width: 100%;
        max-height: 150px;
    }



    /* Adjustments for the social media section */
    .first_section .redes-sociais {
        margin-top: 20px;
        margin-left: 0;
        margin-right: 1px;
        display: flex;
        justify-content: center;
    }

    .first_section .redes-sociais a i {
        font-size: 24px;
        margin: 0 3px;
    }
}

/* Tablet - 1024px */
@media(max-width: 1024px) {
    .first_section .cabecalho {
        gap: 40px;
        padding: 20px 15px;
    }

    .cabecalho .menu ul {
        gap: 35px;
    }

    .cabecalho .menu li a {
        font-size: 17px;
        padding: 12px 22px;
    }

    .first__title {
        font-size: 5rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1.45rem;
        letter-spacing: 0.42rem;
    }

    .sobre-mim__foto {
        width: 140px;
        height: 140px;
    }

    .sobre-mim__texto {
        font-size: 1rem;
        max-width: 600px;
    }

    .stack-tecnologias .container {
        gap: 20px;
    }

    .stack-tecnologias__icon {
        font-size: 2.8rem;
    }

    #projetos .project {
        grid-template-columns: 200px 1fr;
        grid-gap: 2rem;
        padding: 1.5rem 1rem;
    }

    #projetos .project-link {
        width: 180px;
        height: 180px;
    }

    #projetos .project-image {
        height: 180px;
    }
}

/* Tablet pequeno - 768px */
@media(max-width: 768px) {
    .first_section .cabecalho {
        gap: 20px;
        padding: 12px 10px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid rgba(148, 67, 216, 0.2);
        flex-direction: column;
        align-items: center;
    }

    .cabecalho .menu {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
    }

    .cabecalho .menu ul {
        gap: 15px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 15px;
    }

    .cabecalho .menu li a {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 20px;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cabecalho .menu li:hover a {
        background-color: #9443d8;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(148, 67, 216, 0.3);
    }

    .first_section {
        padding-top: 90px;
    }

    .first__title {
        font-size: 3.5rem;
        margin-top: -20vh;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1.1rem;
        letter-spacing: 0.3rem;
    }

    .first_section .redes-sociais {
        margin-top: 15px;
        gap: 25px;
    }

    .first_section .redes-sociais a i {
        font-size: 22px;
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    .sobre-mim {
        margin: 30px auto 30px auto;
        padding: 0 20px;
    }

    .sobre-mim__title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .sobre-mim__foto {
        width: 130px;
        height: 130px;
    }

    .sobre-mim__texto {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .sobre-mim__texto strong {
        font-size: 1.1rem;
    }

    .stack-tecnologias {
        margin: 30px auto 30px auto;
        padding: 0 20px;
    }

    .stack-tecnologias__title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .stack-tecnologias .container {
        gap: 15px;
    }

    .stack-tecnologias .item {
        min-width: 100px;
        max-width: 120px;
        width: 110px;
        height: 110px;
        padding: 18px 15px 10px 15px;
    }

    .stack-tecnologias__icon {
        font-size: 2.5rem;
    }

    .stack-tecnologias__label {
        font-size: 0.95rem;
    }

    .categoria__titulo {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    #projetos .projects-container {
        padding: 0 20px 3rem;
    }

    #projetos .project {
        grid-template-columns: 1fr;
        grid-gap: 1.5rem;
        text-align: center;
        margin: 2rem auto 3rem auto;
        padding: 1.5rem 1rem;
    }

    #projetos .project-link {
        margin: 0 auto;
        width: 200px;
        height: 200px;
    }

    #projetos .project-image {
        height: 200px;
    }

    #projetos .project-tile {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    #projetos .project-details .icons i {
        font-size: 1.2rem;
        margin-right: 0.3rem;
    }

    #projetos .project-details small {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    #projetos .project-details .buttons {
        gap: 0.6rem;
        margin-top: 1rem;
        justify-content: center;
    }

    #projetos .project-details .buttons a {
        min-width: 0;
        padding: 0.5rem 1rem;
        font-size: 0.84rem;
    }

    .fourth__title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .footer {
        margin-top: 30px;
        padding: 15px 0;
        font-size: 0.8rem;
    }
}

/* Mobile - 480px */
@media(max-width: 480px) {
    .first_section .cabecalho {
        gap: 8px;
        padding: 8px 5px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        z-index: 1000;
        border-bottom: 1px solid rgba(148, 67, 216, 0.3);
        flex-direction: column;
        align-items: center;
    }

    .cabecalho .menu {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
    }

    .cabecalho .menu ul {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 10px;
    }

    .cabecalho .menu li a {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 15px;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cabecalho .menu li:hover a {
        background-color: #9443d8;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(148, 67, 216, 0.4);
    }

    .first_section {
        padding-top: 100px;
    }

    .first__title {
        font-size: 2.8rem;
        margin-top: -15vh;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1rem;
        letter-spacing: 0.2rem;
        margin-top: 1.5rem;
    }

    .first_section .redes-sociais {
        margin-top: 10px;
        gap: 20px;
    }

    .first_section .redes-sociais a i {
        font-size: 20px;
        width: 40px;
        height: 40px;
        padding: 7px;
    }

    .sobre-mim {
        margin: 20px auto 20px auto;
        padding: 0 15px;
    }

    .sobre-mim__title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .sobre-mim__foto {
        width: 110px;
        height: 110px;
    }

    .sobre-mim__texto {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .sobre-mim__texto p {
        margin-bottom: 15px;
    }

    .sobre-mim__texto strong {
        font-size: 1rem;
    }

    .stack-tecnologias {
        margin: 20px auto 20px auto;
        padding: 0 15px;
    }

    .stack-tecnologias__title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .stack-tecnologias .container {
        gap: 12px;
    }

    .stack-tecnologias .item {
        min-width: 90px;
        max-width: 100px;
        width: 95px;
        height: 95px;
        padding: 15px 10px 8px 10px;
    }

    .stack-tecnologias__icon {
        font-size: 2rem;
    }

    .stack-tecnologias__label {
        font-size: 0.85rem;
    }

    .categoria__titulo {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    #projetos .projects-container {
        padding: 0 15px 2rem;
    }

    #projetos .project {
        margin: 1.5rem auto 2.5rem auto;
        padding: 1rem 0.5rem;
    }

    #projetos .project-link {
        width: 180px;
        height: 180px;
    }

    #projetos .project-image {
        height: 180px;
    }

    #projetos .project-tile {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    #projetos .project-details .icons i {
        font-size: 1.1rem;
        margin-right: 0.25rem;
    }

    #projetos .project-details small {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    #projetos .project-details .buttons {
        gap: 0.5rem;
        margin-top: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #projetos .project-details .buttons a {
        min-width: 0;
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .fourth__title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .footer {
        margin-top: 20px;
        padding: 12px 0;
        font-size: 0.75rem;
    }
}

/* Mobile pequeno - 360px */
@media(max-width: 360px) {
    .first_section .cabecalho {
        gap: 10px;
        padding: 8px 5px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        border-bottom: 1px solid rgba(148, 67, 216, 0.4);
    }

    .cabecalho .menu ul {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cabecalho .menu li a {
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 12px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .cabecalho .menu li:hover a {
        background-color: #9443d8;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(148, 67, 216, 0.5);
    }

    .first_section {
        padding-top: 120px;
    }

    .first__title {
        font-size: 2.4rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 0.9rem;
    }

    .sobre-mim__title {
        font-size: 1.6rem;
    }

    .sobre-mim__foto {
        width: 100px;
        height: 100px;
    }

    .sobre-mim__texto {
        font-size: 0.85rem;
    }

    .stack-tecnologias__title {
        font-size: 1.4rem;
    }

    .stack-tecnologias .item {
        min-width: 80px;
        max-width: 90px;
        width: 85px;
        height: 85px;
        padding: 12px 8px 6px 8px;
    }

    .stack-tecnologias__icon {
        font-size: 1.8rem;
    }

    .stack-tecnologias__label {
        font-size: 0.8rem;
    }

    #projetos .project-link {
        width: 160px;
        height: 160px;
    }

    #projetos .project-image {
        height: 160px;
    }

    #projetos .project-tile {
        font-size: 1.3rem;
    }

    .fourth__title {
        font-size: 1.6rem;
    }

    /* Contato - Mobile muito pequeno */
    .contact-section {
        padding: 1.5rem 0;
    }

    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .contact-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0 0.3rem;
    }

    .contact-container {
        padding: 0 0.3rem;
        gap: 1rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.8rem;
    }

    .contact-link {
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .submit-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }
}

/* ===== MELHORIAS DE RESPONSIVIDADE PARA NOVAS SEÇÕES ===== */

/* Certificações - Responsividade */
@media (max-width: 768px) {
    .certifications {
        padding: 3rem 0;
    }

    .certifications-title {
        font-size: 2.5rem;
    }

    .certifications-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cert-card {
        padding: 1.5rem;
        min-height: 320px;
        /* Altura mínima aumentada para uniformizar */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    /* Garantir que todos os cards tenham o mesmo tamanho */
    .unity-card,
    .cisco-card,
    .aws-card,
    .cambridge-card,
    .fgv-card,
    .fatec-card {
        min-height: 320px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cert-header {
        margin-bottom: 1rem;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cert-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .cert-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .cert-provider {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cert-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .cert-skills {
        gap: 0.4rem;
        margin-top: auto;
    }

    .cert-skills .skill-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .certifications {
        padding: 2rem 0;
    }

    .certifications-title {
        font-size: 2rem;
    }

    .certifications-subtitle {
        font-size: 0.9rem;
    }

    .cert-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .cert-card {
        padding: 1rem;
        min-height: 300px;
        /* Altura mínima aumentada para mobile */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    /* Garantir que todos os cards tenham o mesmo tamanho em mobile */
    .unity-card,
    .cisco-card,
    .aws-card,
    .cambridge-card,
    .fgv-card,
    .fatec-card {
        min-height: 300px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cert-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .cert-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .cert-content h3 {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .cert-provider {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .cert-date {
        font-size: 0.8rem;
    }

    .cert-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .cert-skills {
        margin-top: auto;
    }

    .cert-skills .skill-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Garantir distribuição uniforme do conteúdo em mobile pequeno */
    .cert-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .cert-meta {
        margin-top: auto;
    }
}

/* Experiência Profissional - Responsividade */
@media (max-width: 768px) {
    .experience {
        padding: 3rem 0;
    }

    .experience-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .timeline {
        padding: 0 1rem;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-date {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .company-logo {
        align-self: center;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .logo-placeholder i {
        font-size: 1.5rem;
    }

    .experience-info h3 {
        font-size: 1.2rem;
    }

    .timeline-company {
        font-size: 0.9rem;
    }

    .timeline-duration {
        font-size: 0.8rem;
    }

    .experience-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .experience-skills {
        gap: 0.5rem;
    }

    .experience-skills .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 2rem 0;
    }

    .experience-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .timeline {
        padding: 0 0.5rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .logo-placeholder {
        width: 45px;
        height: 45px;
    }

    .logo-placeholder i {
        font-size: 1.3rem;
    }

    .experience-info h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .timeline-company {
        font-size: 0.85rem;
    }

    .timeline-duration {
        font-size: 0.75rem;
    }

    .experience-description {
        font-size: 0.85rem;
    }

    .experience-skills .skill-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Contato - Responsividade */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-details h3 {
        font-size: 1.2rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .contact-link {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    .contact-link {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
    }
}

/* Stats Section - Responsividade */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0;
    }

    .stats-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 2rem 0;
    }

    .stats-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Melhorias gerais para mobile */
@media (max-width: 768px) {

    /* Smooth scrolling para mobile */
    html {
        scroll-behavior: smooth;
    }

    /* Melhorar touch targets */
    .cabecalho .menu li a,
    .btn-submit,
    .contact-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Melhorar legibilidade */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Otimizar espaçamentos */
    section {
        padding: 2rem 0;
    }

    /* Melhorar contraste em mobile */
    .cert-card,
    .timeline-content,
    .contact-item,
    .stat-item {
        border: 1px solid rgba(148, 67, 216, 0.2);
    }
}

@media (max-width: 480px) {

    /* Ajustes finais para telas muito pequenas */
    .first__title {
        word-break: break-word;
    }

    .cert-content h3,
    .experience-info h3,
    .contact-info h3 {
        word-break: break-word;
    }

    /* Melhorar botões em mobile */
    .btn-submit {
        width: 100%;
        margin-top: 1rem;
    }

    /* Otimizar formulários */
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== MELHORIAS GERAIS DE RESPONSIVIDADE ===== */

/* Breakpoint intermediário - 900px */
@media (max-width: 900px) {
    .first__title {
        font-size: 4.25rem;
        line-height: 1.1;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1.26rem;
        letter-spacing: 0.34rem;
        max-width: 500px;
    }

    .sobre-mim__title {
        font-size: 2.5rem;
    }

    .stack-tecnologias .item {
        width: 90px;
        height: 90px;
    }

    .stack-tecnologias__icon {
        font-size: 2.2rem;
    }

    .stack-tecnologias__label {
        font-size: 0.8rem;
    }
}

/* Breakpoint intermediário - 600px */
@media (max-width: 600px) {
    .first__title {
        font-size: 3.45rem;
        margin-bottom: 1rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 1.08rem;
        letter-spacing: 0.22rem;
        margin: 0 1rem;
    }

    .sobre-mim__title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .sobre-mim__foto {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .sobre-mim__texto {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .stack-tecnologias__title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .stack-tecnologias .item {
        width: 80px;
        height: 80px;
        padding: 10px 6px 4px 6px;
    }

    .stack-tecnologias__icon {
        font-size: 2rem;
    }

    .stack-tecnologias__label {
        font-size: 0.75rem;
    }

    .fourth__title {
        font-size: 2rem;
    }

    .fourth__itens {
        gap: 15px;
    }
}

/* Breakpoint intermediário - 320px (telas muito pequenas) */
@media (max-width: 320px) {
    .first__title {
        font-size: 2.45rem;
        word-break: break-word;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
    }

    .first__text {
        font-size: 0.98rem;
        letter-spacing: 0.16rem;
        margin: 0 0.5rem;
    }

    .sobre-mim__title {
        font-size: 1.8rem;
    }

    .sobre-mim__foto {
        width: 100px;
        height: 100px;
    }

    .sobre-mim__texto {
        font-size: 0.85rem;
    }

    .stack-tecnologias__title {
        font-size: 1.6rem;
    }

    .stack-tecnologias .item {
        width: 70px;
        height: 70px;
        padding: 8px 4px 3px 4px;
    }

    .stack-tecnologias__icon {
        font-size: 1.8rem;
    }

    .stack-tecnologias__label {
        font-size: 0.7rem;
    }

    .fourth__title {
        font-size: 1.8rem;
    }

    .fourth__itens {
        gap: 10px;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-subtitle {
        font-size: 0.8rem;
    }
}

/* ===== MELHORIAS DE ACESSIBILIDADE E USABILIDADE ===== */

/* Melhorar contraste e legibilidade */
@media (prefers-contrast: high) {

    .first__title,
    .sobre-mim__title,
    .stack-tecnologias__title,
    .fourth__title,
    .contact-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .cert-card,
    .timeline-content,
    .contact-item,
    .stat-item {
        border: 2px solid rgba(148, 67, 216, 0.5);
    }
}

/* Melhorar para usuários que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .first__title span {
        animation: none !important;
    }
}

/* Melhorar para orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .first_section {
        padding: 2rem 0;
        min-height: auto;
    }

    .first__title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .first__text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .sobre-mim {
        padding: 2rem 0;
    }

    .stack-tecnologias {
        padding: 2rem 0;
    }
}

/* ===== OTIMIZAÇÕES DE PERFORMANCE ===== */

/* Reduzir efeitos em dispositivos com baixa performance */
@media (max-width: 480px) {

    .cert-card:hover,
    .timeline-content:hover,
    .contact-item:hover,
    .stat-item:hover {
        transform: none;
        box-shadow: var(--shadow-glow);
    }

    .stack-tecnologias .item:hover {
        transform: none;
    }
}

/* ===== MELHORIAS DE TOUCH ===== */

/* Aumentar área de toque para elementos interativos */
@media (max-width: 768px) {

    .cabecalho .menu li a,
    .stack-tecnologias .item,
    .project-link,
    .contact-link,
    .submit-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stack-tecnologias .item {
        min-height: 80px;
        min-width: 80px;
    }
}

/* ===== MELHORIAS ESPECÍFICAS PARA PROJETOS ===== */

/* Projetos - Responsividade */
@media (max-width: 768px) {
    .projetos {
        padding: 3rem 0;
    }

    .projetos .titulo {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .projetos .container-projetos {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .projeto {
        max-width: 100%;
        margin: 0 auto;
    }

    .projeto img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .projeto h3 {
        font-size: 1.3rem;
        margin: 1rem 0 0.5rem 0;
    }

    .projeto p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .projeto .tecnologias {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .projeto .tecnologia {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .projetos {
        padding: 2rem 0;
    }

    .projetos .titulo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .projetos .container-projetos {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .projeto img {
        height: 180px;
    }

    .projeto h3 {
        font-size: 1.2rem;
    }

    .projeto p {
        font-size: 0.85rem;
    }

    .projeto .tecnologias {
        gap: 0.4rem;
    }

    .projeto .tecnologia {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* ===== MELHORIAS PARA FOOTER ===== */

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .footer p {
        font-size: 0.9rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 0;
    }

    .footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* ===== MELHORIAS PARA SCROLL SUAVE ===== */

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }

    /* Melhorar scroll em iOS */
    .first_section,
    .sobre-mim,
    .stack-tecnologias,
    .projetos,
    .certifications,
    .experience,
    .contact-section,
    .stats-section {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== MELHORIAS PARA VIEWPORT ===== */

/* Garantir que o viewport está correto */
@media (max-width: 768px) {
    .first_section {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* ===== MELHORIAS PARA TEXTO ===== */

/* Melhorar quebra de texto em todos os dispositivos */
@media (max-width: 768px) {

    .first__title,
    .sobre-mim__title,
    .stack-tecnologias__title,
    .projetos .titulo,
    .fourth__title,
    .contact-title {
        word-break: break-word;
        hyphens: auto;
    }

    .first__text,
    .sobre-mim__texto,
    .projeto p,
    .contact-subtitle {
        word-break: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

/* ===== CORREÇÃO ESPECÍFICA PARA TÍTULO PRINCIPAL ===== */

/* Garantir que o título "Pedro Tescaro" seja sempre visível e não se mova */
.first__title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: 10 !important;
    animation: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.first__title span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #9443d8 !important;
    position: static !important;
    z-index: 11 !important;
    animation: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Correção específica para mobile */
@media (max-width: 768px) {
    .first__title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
        position: relative !important;
        z-index: 11 !important;
    }
}

/* Correção para telas muito pequenas */
@media (max-width: 480px) {
    .first__title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        z-index: 10 !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .first__title span {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #9443d8 !important;
        position: static !important;
        z-index: 11 !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

/* Experiência - Redesign Editorial */
@media (max-width: 1024px) {
    .experience-entry {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-entry-heading h3 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .experience {
        padding: 88px 18px;
    }

    .experience-section-label {
        gap: 14px;
        margin-bottom: 30px;
    }

    .experience-entry {
        padding: 26px 20px;
        border-radius: 28px;
        gap: 1.5rem;
    }

    .experience-entry-mark {
        width: 76px;
        height: 76px;
        border-radius: 24px;
    }

    .experience-entry-mark i {
        font-size: 1.7rem;
    }

    .experience-entry-company {
        font-size: 1.9rem;
    }

    .experience-entry-heading h3 {
        font-size: 1.7rem;
    }

    .experience-highlights {
        gap: 14px;
    }

    .experience-highlights li {
        font-size: 0.95rem;
        padding-left: 20px;
    }

    .experience-pill-list {
        gap: 10px;
    }

    .experience-pill {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 0.68rem;
    }
}

@media (max-width: 540px) {
    .experience-section-number {
        font-size: 0.8rem;
    }

    .experience-section-line {
        width: 32px;
    }

    .experience-section-text {
        font-size: 0.76rem;
        letter-spacing: 0.18em;
    }

    .experience-entry-company {
        font-size: 1.55rem;
    }

    .experience-entry-tenure,
    .experience-entry-details {
        font-size: 0.72rem;
    }

    .experience-entry-heading h3 {
        font-size: 1.38rem;
    }

    .experience-entry-mark {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .experience-entry-mark i {
        font-size: 1.45rem;
    }

    .experience-highlights li {
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

/* Experiência - ajuste da composição inspirada na referência */
@media (max-width: 1024px) {
    .experience-list {
        gap: 50px;
    }

    .experience-heading-wrap {
        margin-bottom: 42px;
    }

    .experience-entry {
        gap: 2rem;
    }

    .experience-entry-aside {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .experience-heading-wrap {
        margin-bottom: 34px;
    }

    .experience-heading {
        font-size: 2.2rem;
    }

    .experience-entry {
        gap: 1.75rem;
        padding: 0;
    }

    .experience-entry-mark {
        width: 88px;
        height: 88px;
        border-radius: 26px;
    }

    .experience-entry-body {
        gap: 22px;
        padding-top: 0;
    }

    .experience-entry-details {
        font-size: 0.92rem;
    }

    .experience-entry-heading h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 540px) {
    .experience-heading-wrap {
        margin-bottom: 28px;
    }

    .experience-kicker {
        letter-spacing: 0.16em;
    }

    .experience-heading {
        font-size: 1.85rem;
    }

    .experience-entry-mark {
        width: 74px;
        height: 74px;
        border-radius: 22px;
    }

    .experience-entry-company {
        font-size: 1.7rem;
    }

    .experience-entry-details {
        font-size: 0.88rem;
    }

    .experience-entry-heading h3 {
        font-size: 1.18rem;
    }
}

/* Sobre Mim - Redesign Editorial */
@media (max-width: 1024px) {
    .sobre-mim {
        padding: 96px 20px 64px;
    }

    .about-editorial__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .about-editorial__display {
        font-size: 3.2rem;
        max-width: none;
    }

    .about-editorial__profile {
        width: fit-content;
    }

    .about-editorial__photo-shell {
        width: 200px;
    }

    .about-editorial__body {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .sobre-mim {
        padding: 82px 18px 56px;
    }

    .about-editorial__label {
        margin-bottom: 22px;
    }

    .about-editorial__display {
        font-size: 2.25rem;
    }

    .about-editorial__profile {
        margin-top: 28px;
    }

    .about-editorial__photo-shell {
        width: 172px;
    }

    .about-editorial__body p {
        font-size: 0.92rem;
    }

    .about-editorial__body {
        gap: 18px;
    }
}

@media (max-width: 540px) {
    .sobre-mim {
        padding: 72px 16px 48px;
    }

    .about-editorial__index,
    .about-editorial__eyebrow {
        font-size: 0.74rem;
    }

    .about-editorial__line {
        width: 28px;
    }

    .about-editorial__display {
        font-size: 1.82rem;
    }

    .about-editorial__profile {
        width: fit-content;
    }

    .about-editorial__photo-shell {
        width: 146px;
        padding: 8px;
    }

    .about-editorial__body p {
        font-size: 0.86rem;
        line-height: 1.62;
    }

    .about-editorial__tags span {
        font-size: 0.7rem;
        min-height: 34px;
        padding: 8px 12px;
    }
}

/* Hard Skills - Redesign Compacto */
@media (max-width: 1100px) {
    .skills-board {
        padding: 152px 20px 176px;
    }

    .skills-board::before {
        top: 50px;
    }

    .skills-board__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-board__column {
        padding: 26px 26px 28px;
    }

    .skills-board__column + .skills-board__column {
        border-left: none;
    }

    .skills-board__column:nth-child(even) {
        border-left: 1px solid var(--skills-divider);
    }

    .skills-board__column:nth-child(n + 3) {
        border-top: 1px solid var(--skills-divider);
    }
}

@media (max-width: 768px) {
    .skills-board {
        padding: 122px 18px 140px;
    }

    .skills-board::before {
        width: calc(100% - 36px);
        top: 40px;
    }

    .skills-board__label {
        margin-bottom: 40px;
    }

    .skills-board__panel {
        border-radius: 24px;
    }

    .skills-board__column h3 {
        font-size: 1.12rem;
    }

    .skills-board__column li {
        font-size: 0.92rem;
    }
}

@media (max-width: 620px) {
    .skills-board__panel {
        grid-template-columns: 1fr;
    }

    .skills-board__column {
        padding: 24px 22px;
    }

    .skills-board__column:nth-child(even) {
        border-left: none;
    }

    .skills-board__column:nth-child(n + 2) {
        border-top: 1px solid var(--skills-divider);
    }
}

@media (max-width: 540px) {
    .skills-board {
        padding: 104px 16px 118px;
    }

    .skills-board__index,
    .skills-board__eyebrow {
        font-size: 0.74rem;
    }

    .skills-board__line {
        width: 28px;
    }

    .skills-board::before {
        width: calc(100% - 32px);
        top: 30px;
    }

    .skills-board__panel {
        border-radius: 20px;
    }

    .skills-board__icon {
        width: 42px;
        height: 42px;
        margin-bottom: 14px;
    }

    .skills-board__column h3 {
        margin-bottom: 14px;
        font-size: 1.02rem;
    }

    .skills-board__column ul {
        gap: 9px;
    }

    .skills-board__column li {
        font-size: 0.88rem;
        line-height: 1.45;
    }
}

@media (max-width: 900px) {
    .section-dots {
        right: 10px;
        gap: 8px;
        padding: 8px 6px;
    }

    .section-dots__dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 768px) {
    .section-dots {
        display: none;
    }
}

/* ===== PROJETOS: REFRESH RESPONSIVO ===== */
@media (max-width: 1100px) {
    #projetos .projects-container {
        padding: 0 1.25rem 4rem;
    }

    #projetos .project {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.4rem;
    }

    #projetos .project:nth-child(even) .project-link,
    #projetos .project:nth-child(even) .project-details,
    #projetos .project .project-link,
    #projetos .project .project-details {
        order: initial !important;
    }

    #projetos .project-link {
        aspect-ratio: 16 / 10;
    }

    #projetos .project-details {
        padding: 0.15rem 0.1rem 0.1rem;
    }
}

@media (max-width: 768px) {
    #projetos .projects-section-label {
        padding: 0 1rem;
        margin-bottom: 1.7rem;
    }

    #projetos .fourth__title {
        font-size: 2.1rem;
    }

    #projetos .projects-intro {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
        font-size: 0.96rem;
        line-height: 1.7;
    }

    #projetos .projects-container {
        padding: 1.1rem 1rem 3rem;
        gap: 1.35rem;
    }

    #projetos .project {
        border-radius: 22px;
    }

    #projetos .project-link {
        border-radius: 18px;
    }

    #projetos .project-tile {
        font-size: 1.7rem;
    }

    #projetos .project-details .icons {
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }

    #projetos .project-details .icons i {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    #projetos .project-details small {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    #projetos .project-details .buttons {
        gap: 0.6rem;
        margin-top: 1rem;
        padding-top: 0.85rem;
        justify-content: center;
    }

    #projetos .project-details .buttons a {
        min-width: 0;
        flex: 0 1 auto;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
        border-radius: 10px;
    }
}

@media (max-width: 520px) {
    #projetos .projects-section-label {
        padding: 0 1rem;
        margin-bottom: 1.45rem;
    }

    #projetos .fourth__title {
        font-size: 1.75rem;
    }

    #projetos .projects-intro {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    #projetos .projects-container {
        padding: 0.95rem 0.85rem 2.5rem;
    }

    #projetos .project {
        padding: 0.8rem;
        border-radius: 20px;
    }

    #projetos .project-link {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    #projetos .project-tile {
        font-size: 1.45rem;
        line-height: 1.12;
    }

    #projetos .project-details .icons i {
        width: 34px;
        height: 34px;
    }

    #projetos .project-details small {
        font-size: 0.9rem;
    }

    #projetos .project-details .buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #projetos .project-details .buttons a {
        width: auto;
        flex: 0 1 auto;
        padding: 0.5rem 0.9rem;
        font-size: 0.78rem;
        border-radius: 10px;
    }
}

@media (max-width: 1024px) {
    .community-showcase {
        padding: 82px 18px 76px;
    }

    .community-showcase__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .community-card {
        min-height: 174px;
        padding: 1.2rem 0.85rem 0.95rem;
    }

    .community-card__logo {
        width: 48px;
        height: 48px;
    }

    .community-card__logo img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .community-showcase__label {
        margin-bottom: 30px;
    }

    .community-showcase__intro {
        margin-bottom: 26px;
    }

    .community-showcase__title {
        font-size: 2.2rem;
    }

    .community-showcase__subtitle {
        font-size: 0.9rem;
    }

    .community-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-card {
        min-height: 160px;
        padding: 1rem 0.8rem 0.85rem;
    }

    .community-card__logo {
        width: 44px;
        height: 44px;
    }

    .community-card__logo img {
        width: 44px;
        height: 44px;
    }

    .community-card__name {
        font-size: 0.74rem;
    }
}

@media (max-width: 560px) {
    .community-showcase {
        padding: 72px 16px 64px;
    }

    .community-showcase__grid {
        grid-template-columns: 1fr;
    }

    .community-showcase__title {
        font-size: 1.85rem;
    }

    .community-showcase__subtitle {
        font-size: 0.84rem;
        line-height: 1.64;
    }

    .community-card {
        min-height: 0;
        padding: 0.95rem 0.8rem 0.8rem;
    }

    .community-card__logo {
        width: 42px;
        height: 42px;
    }

    .community-card__logo img {
        width: 42px;
        height: 42px;
    }

    .community-card__label {
        min-height: auto;
    }

    .community-showcase__rail {
        gap: 8px 12px;
        font-size: 0.62rem;
    }
}

/* =============================================================
   MOBILE RESPONSIVENESS - COMPREHENSIVE OVERHAUL
   All sections: Hero, Sobre Mim, Hard Skills, Experiência,
   Projetos, Formação, Comunidade, Contato
   ============================================================= */

/* ---------- GLOBAL MOBILE FIXES ---------- */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        overflow-x: hidden;
    }

    main {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ---------- 01. HERO / FIRST SECTION ---------- */
@media (max-width: 480px) {
    .first_section {
        padding-top: 90px;
    }

    .first__foreground {
        padding: 0 1rem;
    }

    .first__title {
        font-size: 2.6rem !important;
        line-height: 1.08 !important;
        margin-top: -10vh !important;
        text-align: center;
    }

    .first__text {
        font-size: 0.95rem;
        letter-spacing: 0.18rem;
        text-align: center;
    }

    .redes-sociais {
        gap: 16px !important;
        justify-content: center;
    }

    .redes-sociais a i {
        font-size: 18px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 375px) {
    .first__title {
        font-size: 2.2rem !important;
    }

    .first__text {
        font-size: 0.88rem;
        letter-spacing: 0.14rem;
    }

    .cabecalho .menu li a {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
}

/* ---------- 02. SOBRE MIM ---------- */
@media (max-width: 768px) {
    .sobre-mim {
        padding: 72px 16px 56px !important;
    }

    .about-editorial__grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .about-editorial__display {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        text-align: center;
    }

    .about-editorial__profile {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .about-editorial__photo-shell {
        width: 180px !important;
        margin: 0 auto;
    }

    .about-editorial__body p {
        font-size: 0.9rem !important;
        line-height: 1.65;
    }

    .about-editorial__tags {
        justify-content: center;
    }

    .about-editorial__tags span {
        font-size: 0.72rem;
        padding: 7px 12px;
        min-height: 32px;
    }
}

@media (max-width: 480px) {
    .sobre-mim {
        padding: 60px 14px 44px !important;
    }

    .about-editorial__label {
        margin-bottom: 18px !important;
    }

    .about-editorial__display {
        font-size: 1.7rem !important;
    }

    .about-editorial__photo-shell {
        width: 150px !important;
        padding: 7px !important;
        margin: 0 auto !important;
    }

    .about-editorial__body {
        gap: 14px !important;
    }

    .about-editorial__body p {
        font-size: 0.85rem !important;
    }

    .about-editorial__tags span {
        font-size: 0.68rem;
        padding: 6px 10px;
    }
}

@media (max-width: 375px) {
    .about-editorial__display {
        font-size: 1.5rem !important;
    }

    .about-editorial__photo-shell {
        width: 110px !important;
    }
}

/* ---------- 03. HARD SKILLS ---------- */
@media (max-width: 768px) {
    .skills-board {
        padding: 80px 16px 100px !important;
    }

    .skills-board__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        border-radius: 22px !important;
    }

    .skills-board__column {
        padding: 22px 20px 24px !important;
    }

    .skills-board__column + .skills-board__column {
        border-left: none;
    }

    .skills-board__column:nth-child(even) {
        border-left: 1px solid var(--skills-divider);
    }

    .skills-board__column:nth-child(n + 3) {
        border-top: 1px solid var(--skills-divider);
    }

    .skills-board__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .skills-board__column h3 {
        font-size: 1.1rem !important;
        margin-bottom: 14px;
    }

    .skills-board__column li {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .skills-board {
        padding: 64px 14px 80px !important;
    }

    .skills-board__panel {
        grid-template-columns: 1fr !important;
        border-radius: 18px !important;
    }

    .skills-board__column + .skills-board__column {
        border-left: none !important;
    }

    .skills-board__column:nth-child(even) {
        border-left: none !important;
    }

    .skills-board__column:nth-child(n + 2) {
        border-top: 1px solid var(--skills-divider);
    }

    .skills-board__column {
        padding: 20px 18px 22px !important;
    }

    .skills-board__icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .skills-board__column h3 {
        font-size: 1.02rem !important;
    }

    .skills-board__column li {
        font-size: 0.86rem !important;
        line-height: 1.5;
    }

    .skills-board__label {
        margin-bottom: 32px !important;
    }
}

/* ---------- 04. EXPERIÊNCIA ---------- */
@media (max-width: 768px) {
    .experience {
        padding: 72px 16px !important;
    }

    .experience-entry {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 24px 20px !important;
        border-radius: 24px !important;
    }

    .experience-entry-mark {
        width: 72px !important;
        height: 72px !important;
        border-radius: 22px !important;
    }

    .experience-entry-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .experience-entry-company {
        font-size: 1.7rem !important;
    }

    .experience-entry-heading h3 {
        font-size: 1.4rem !important;
        max-width: none !important;
    }

    .experience-highlights li {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        padding-left: 18px !important;
    }

    .experience-pill-list {
        gap: 8px !important;
    }

    .experience-pill {
        font-size: 0.68rem !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 56px 14px !important;
    }

    .experience-entry {
        padding: 20px 16px !important;
        border-radius: 20px !important;
    }

    .experience-entry-mark {
        width: 60px !important;
        height: 60px !important;
        border-radius: 18px !important;
    }

    .experience-entry-company {
        font-size: 1.4rem !important;
    }

    .experience-entry-heading h3 {
        font-size: 1.2rem !important;
    }

    .experience-highlights li {
        font-size: 0.86rem !important;
    }

    .experience-entry-tenure,
    .experience-entry-details {
        font-size: 0.72rem !important;
    }
}

/* ---------- 05. FORMAÇÃO & CERTIFICAÇÕES ---------- */
@media (max-width: 768px) {
    .formation-showcase {
        padding: 72px 16px !important;
    }

    .formation-shell {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    .formation-heading h2 {
        font-size: 2rem !important;
    }

    .formation-item {
        flex-direction: column !important;
        gap: 14px !important;
    }

    .formation-item-meta {
        min-width: 0 !important;
        align-items: flex-start !important;
    }

    .formation-item-copy h3 {
        font-size: 0.98rem !important;
    }

    .formation-badge-card img {
        width: 50px !important;
        height: 50px !important;
    }

    .formation-badge-copy h3 {
        font-size: 0.94rem !important;
    }

    .formation-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .formation-actions a {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .formation-showcase {
        padding: 56px 14px !important;
    }

    .formation-heading h2 {
        font-size: 1.7rem !important;
    }

    .formation-item-copy h3 {
        font-size: 0.92rem !important;
    }

    .formation-item-copy p {
        font-size: 0.84rem !important;
    }

    .formation-chip {
        font-size: 0.6rem !important;
        padding: 6px 12px !important;
    }

    .formation-item-period {
        font-size: 0.74rem !important;
    }

    .formation-badge-card {
        gap: 12px !important;
    }

    .formation-badge-card img {
        width: 44px !important;
        height: 44px !important;
    }
}

/* ---------- 06. EVENTOS & COMUNIDADE ---------- */
@media (max-width: 480px) {
    .community-showcase {
        padding: 56px 14px 48px !important;
    }

    .community-showcase__title {
        font-size: 1.65rem !important;
    }

    .community-showcase__subtitle {
        font-size: 0.82rem !important;
    }

    .community-showcase__grid {
        grid-template-columns: 1fr !important;
        border-radius: 10px !important;
    }

    .community-card {
        min-height: 0 !important;
        padding: 0.9rem 0.75rem 0.75rem !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.8rem !important;
    }

    .community-card__logo {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }

    .community-card__logo img {
        width: 40px !important;
        height: 40px !important;
    }

    .community-card__name {
        font-size: 0.78rem !important;
    }

    .community-card__label {
        min-height: auto !important;
        font-size: 0.54rem !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .community-card__meta {
        margin-top: 0 !important;
        font-size: 0.5rem !important;
    }

    .community-showcase__rail {
        display: none;
    }
}

@media (max-width: 375px) {
    .community-showcase__title {
        font-size: 1.45rem !important;
    }

    .community-card__name {
        font-size: 0.72rem !important;
    }
}

/* ---------- 07. CONTATO ---------- */
@media (max-width: 768px) {
    .contact-section {
        padding: 64px 30px 72px 16px !important;
    }

    .contact-title {
        max-width: 10ch;
        margin: 0 auto 0.85rem !important;
        font-size: clamp(2rem, 6vw, 2.55rem) !important;
        line-height: 1.02 !important;
    }

    .contact-title span {
        display: block;
    }

    .contact-subtitle {
        max-width: 34ch;
        margin: 0 auto 2rem !important;
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        padding: 0 !important;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 1.3rem !important;
        padding: 0 !important;
    }

    .contact-info {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem !important;
    }

    .contact-item {
        display: grid !important;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        min-width: 0;
        padding: 1.05rem 1.1rem !important;
        gap: 0.9rem !important;
        text-align: left !important;
        border-radius: 22px !important;
    }

    .contact-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        font-size: 1.35rem !important;
    }

    .contact-details {
        min-width: 0;
    }

    .contact-details h3 {
        margin-bottom: 0.2rem;
        font-size: 1rem !important;
    }

    .contact-link,
    .contact-details p {
        font-size: 0.88rem !important;
        line-height: 1.55;
        word-break: normal !important;
        overflow-wrap: anywhere;
    }

    .contact-form {
        padding: 1.2rem !important;
        border-radius: 22px !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 52px 26px 56px 14px !important;
    }

    .contact-title {
        max-width: 8.5ch;
        font-size: clamp(1.85rem, 8.6vw, 2.25rem) !important;
        margin-bottom: 0.75rem !important;
    }

    .contact-subtitle {
        max-width: 30ch;
        font-size: 0.88rem !important;
        margin-bottom: 1.6rem !important;
    }

    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .contact-item {
        grid-template-columns: 44px minmax(0, 1fr);
        text-align: left !important;
        padding: 0.95rem 1rem !important;
        border-radius: 20px !important;
    }

    .contact-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    .contact-details h3 {
        font-size: 0.98rem !important;
    }

    .contact-link,
    .contact-details p {
        font-size: 0.83rem !important;
        word-break: normal !important;
        overflow-wrap: anywhere;
    }

    .contact-form {
        padding: 1rem !important;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem !important;
        font-size: 0.85rem !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.88rem !important;
    }
}

@media (max-width: 375px) {
    .contact-title {
        font-size: 1.55rem !important;
    }

    .contact-section {
        padding-right: 22px !important;
    }

    .contact-item {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 0.88rem 0.92rem !important;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* ---------- 08. FOOTER ---------- */
@media (max-width: 480px) {
    .footer {
        padding: 1rem 1rem !important;
    }

    .footer p {
        font-size: 0.76rem !important;
        line-height: 1.5;
    }
}

/* ---------- GLOBAL LABEL FIXES (sections 02-06) ---------- */
@media (max-width: 480px) {
    .skills-board__index,
    .skills-board__eyebrow {
        font-size: 0.72rem !important;
    }

    .skills-board__line {
        width: 24px !important;
    }

    .skills-board__label {
        gap: 10px !important;
    }
}

/* ---------- PREVENT HORIZONTAL OVERFLOW ---------- */
@media (max-width: 768px) {
    .experience-entry,
    .formation-item,
    .formation-badge-card,
    .community-card,
    .skills-board__column,
    .contact-item,
    .contact-form {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* ---------- MOBILE HERO + NAV RESCUE ---------- */
@media (max-width: 768px) {
    .cabecalho {
        display: flex !important;
        position: fixed !important;
        top: 12px !important;
        left: 50% !important;
        right: auto !important;
        width: min(calc(100% - 24px), 520px) !important;
        padding: 12px !important;
        border-radius: 24px !important;
        transform: translateX(-50%) !important;
        background: rgba(7, 6, 12, 0.84) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        border: 1px solid rgba(148, 67, 216, 0.22) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34) !important;
    }

    .cabecalho .menu {
        width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .cabecalho .menu ul {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .cabecalho .menu li {
        min-width: 0;
    }

    .cabecalho .menu li a {
        min-height: 54px;
        padding: 10px 8px !important;
        font-size: clamp(0.7rem, 1.8vw, 0.86rem) !important;
        line-height: 1.2;
        letter-spacing: 0.05rem !important;
        white-space: normal !important;
        text-wrap: balance;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 18px !important;
    }

    .cabecalho .menu li a:is(:hover, :focus-visible, :active) {
        background: linear-gradient(45deg, var(--color-purple), var(--color-accent)) !important;
        color: #fff !important;
        transform: translateY(-3px) scale(1.05);
        box-shadow: var(--shadow-glow), 0 8px 25px rgba(148, 67, 216, 0.4);
    }

    .cabecalho .menu li a:is(:hover, :focus-visible, :active)::before {
        left: 100%;
    }

    .cabecalho .menu li a:is(:hover, :focus-visible, :active)::after {
        width: 0;
    }

    .first_section {
        min-height: 100svh !important;
        padding: 126px 20px 72px !important;
        justify-content: center !important;
    }

    .first_section::after {
        height: clamp(150px, 26vh, 220px) !important;
    }

    .first__foreground {
        width: min(100%, 560px) !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .first__title {
        margin: 0 !important;
        font-size: clamp(2.85rem, 13vw, 4.25rem) !important;
        line-height: 0.92 !important;
        letter-spacing: clamp(2px, 1vw, 5px) !important;
        text-align: center !important;
    }

    .first__title span {
        display: block !important;
    }

    .first__text {
        margin: 1rem auto 0 !important;
        max-width: 18ch;
        font-size: clamp(0.92rem, 4.1vw, 1.12rem) !important;
        line-height: 1.45 !important;
        letter-spacing: 0.16rem !important;
    }

    .first__text::after {
        bottom: -14px !important;
        width: min(72vw, 220px) !important;
    }

    .first_section .redes-sociais {
        width: min(100%, 320px);
        margin-top: 2.25rem !important;
        gap: 14px !important;
        flex-wrap: wrap;
    }

    .first_section .redes-sociais a {
        width: 54px !important;
        height: 54px !important;
    }

    .first_section .redes-sociais a i {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 20px !important;
    }

    .section-dots {
        display: flex !important;
        top: 50% !important;
        right: 10px !important;
        padding: 10px 6px !important;
        gap: 8px !important;
        background: rgba(5, 5, 10, 0.68) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    .section-dots.is-visible {
        transform: translateY(-50%) translateX(0) !important;
    }

    .section-dots__dot {
        width: 9px !important;
        height: 9px !important;
    }
}

@media (max-width: 480px) {
    .cabecalho {
        top: 10px !important;
        width: min(calc(100% - 18px), 420px) !important;
        padding: 10px !important;
        border-radius: 20px !important;
    }

    .cabecalho .menu ul {
        gap: 6px !important;
    }

    .cabecalho .menu li a {
        min-height: 48px;
        padding: 9px 6px !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.04rem !important;
        border-radius: 15px !important;
    }

    .first_section {
        padding: 112px 16px 64px !important;
    }

    .first__foreground {
        width: min(100%, 420px) !important;
    }

    .first__title {
        font-size: clamp(2.45rem, 14vw, 3.5rem) !important;
    }

    .first__text {
        letter-spacing: 0.14rem !important;
    }

    .section-dots {
        right: 8px !important;
        padding: 9px 5px !important;
        gap: 7px !important;
    }

    .section-dots__dot {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 360px) {
    .cabecalho .menu li a {
        min-height: 44px;
        font-size: 0.62rem !important;
        letter-spacing: 0.03rem !important;
    }
}
