/* ==========================================================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   CURSOR SUTIL COM EFEITO DE ILUMINAÇÃO
   ========================================================================== */

/* Esconder cursor padrão */
html,
body,
a,
button,
.link-card,
.link-card * {
    cursor: none;
}


/* Cursor principal */
.custom-cursor {
    width: 28px;
    height: 28px;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, width 0.25s ease, height 0.25s ease;
    will-change: transform;
    border-radius: 50%;

    /* Vidro roxo sutil */
    background: rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(3px);
    border: 0.5px solid rgba(168, 85, 247, 0.25);
}

/* Hover */
.custom-cursor.hover {
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.12);
    backdrop-filter: blur(4px);
    border: 0.5px solid rgba(168, 85, 247, 0.4);
}

/* Clique */
.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(168, 85, 247, 0.18);
}


/* Overlay de iluminação que segue o cursor */
.cursor-light {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;

    /* Roxo suave */
    background: radial-gradient(circle,
            rgba(168, 85, 247, 0.12) 0%,
            /* roxo principal */
            rgba(168, 85, 247, 0.04) 40%,
            rgba(168, 85, 247, 0) 70%);

    transition: opacity 0.3s ease;
}

/* Tamanho grande */
.cursor-light-large {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(168, 85, 247, 0.06) 0%,
            rgba(168, 85, 247, 0.02) 30%,
            rgba(168, 85, 247, 0) 60%);
}

/* Tamanho médio */
.cursor-light-medium {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
            rgba(168, 85, 247, 0.08) 0%,
            rgba(168, 85, 247, 0.03) 50%,
            rgba(168, 85, 247, 0) 75%);
}

/* Hover */
.custom-cursor.hover+.cursor-light-medium,
.custom-cursor.hover~.cursor-light-medium {
    opacity: 1.5;
    transform: translate(-50%, -50%) scale(1.1);
}



/* ==========================================================================
   SCROLLBAR PERSONALIZADA ROXA
   ========================================================================== */

/* Para Webkit browsers (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Track (trilha da scrollbar) */
::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

/* Thumb com gradiente usando background-image */
::-webkit-scrollbar-thumb {
    background-image: linear-gradient(135deg, #551a98, #2c0a53);
    background-size: 100% 100%;
    border-radius: 10px;
    transition: var(--transition);
}

:root {
    --nav-offset: 50px;
    /* ajuste fino */
    --bg-dark: #000000;
    --bg-light: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #8a2be2;
    --accent-hover: #6a1cb8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html {
    scroll-padding-top: var(--nav-offset);
    scroll-behavior: smooth;
    /* você já tem */
}

/* garante que qualquer alvo com id respeite o offset */
section[id] {
    scroll-margin-top: var(--nav-offset);
}

body {
    opacity: 0;
    transition: opacity 0.6s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

body.page-loaded {
    opacity: 1;
}

@media (min-width: 769px) {
    .modal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .top-section {
 min-height: 450px;
}
    
.image-circle {
   
    margin-top: 10px;
}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 120px;
    padding: 0 20px;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.top-section {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    min-height: 400px;
    margin-top: 0px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
    /* ← MUDE DE 1000 PARA 1 */
    padding: 20px 0;
    overflow: hidden;
}

/* Quando o menu mobile estiver aberto, ocultar o CTA flutuante */
@media (max-width: 768px) {

    .nav-menu.active~.floating-cta,
    .nav-menu.active+* .floating-cta,
    body:has(.nav-menu.active) .floating-cta {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }
}

.top-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/assets/blackhole.webp");
    /* sua imagem */
    background-size: cover;
    background-position: center;

    opacity: 0.4;
    /* baixa opacidade */
    filter: blur(4px);
    /* desfoque leve */

    z-index: -1;
    /* fica atrás do conteúdo */
}


/* Perfil Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.profile-image {
    display: flex;
    justify-content: center;
}


.image-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}




/* Responsividade */
@media (max-width: 768px) {
    .value-roller-container {
        height: 28px;
    }

    .currency {
        font-size: 18px;
    }

    .roller-digit,
    .separator {
        font-size: 18px;
        height: 28px;
        width: 14px;
    }

    .digit-number {
        height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .value-roller-container {
        height: 24px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .currency {
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 2px;
        width: 100%;
        text-align: center;
    }

    .roller-digit,
    .separator {
        font-size: 16px;
        height: 24px;
        width: 12px;
    }

    .digit-number {
        height: 24px;
        font-size: 16px;
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.profile-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 400;
}

/* Estatísticas Bar */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL - SCROLLA SEPARADO
   ========================================================================== */
.main-content {
    padding-top: 0;
    padding-bottom: 60px;
}


/* Grid 3x3 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    will-change: transform;
    /* Otimização */
    margin-top: -110px !important;
}

/* Cards sem borda - VERSÃO OTIMIZADA */
.project-card {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    position: relative;

    /* REMOVA transform daqui - move para elemento interno */
    aspect-ratio: 1 / 1;
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
    transform: translateZ(0);
    /* Aceleração GPU */
    will-change: transform;
    /* Otimização */
}

/* Imagens dos projetos - VERSÃO OTIMIZADA */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Timing function suave */
    backface-visibility: hidden;
    /* Otimização */
    -webkit-backface-visibility: hidden;
    /* Para Safari */
    transform: translateZ(0);
    /* Aceleração GPU */
}

/* Hover apenas na imagem - SIMPLIFICADO */
.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Placeholder para fallback - OTIMIZADO */
.placeholder-img.fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
    /* Não interfere no hover */
}

/* Overlay com texto - VERSÃO OTIMIZADA */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Mais escuro para melhor contraste */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
    /* IMPORTANTE: não captura eventos de mouse */
}

/* Hover no overlay - apenas opacidade */
.project-card:hover .project-overlay {
    opacity: 1;
}

.project-text {
    text-align: center;
    color: var(--text-primary);
    transform: translateY(10px);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-text {
    transform: translateY(0);
}

.project-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Melhor legibilidade */
}

.project-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.75);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 2000;
    overflow-y: auto;
}


.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background-color: var(--bg-dark);
    margin: 40px auto;
    max-width: 1000px;
    width: 95%;
    border-radius: 8px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 300;

    z-index: 2001;
    transition: color 0.3s ease;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.close-modal:hover {

    color: #a7a7a7;
}

.modal-image-container {
    width: 100%;

    overflow: hidden;
    background: none
}

.modal-image {
    width: 100%;
    height: auto;

    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 30px;
    background-color: var(--bg-light);
}

.modal-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modal-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.modal-link:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {


    .top-section {

        padding: 15px 0;
    }

    .image-circle {
        width: 60px;
        height: 60px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .stats-bar {
        padding: 0;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-divider {
        height: 25px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 18px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 20px;
    }


}

@media (max-width: 480px) {


    .stat-item {
        padding: 0 8px;
    }

    .placeholder-img.fallback i {
        font-size: 28px;
    }

    .project-text h3 {
        font-size: 16px;
    }

    .project-text p {
        font-size: 12px;
    }

    .modal-info {
        padding: 15px;
    }

    .modal-info h2 {
        font-size: 18px;
    }

    .modal-info p {
        font-size: 14px;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Selo de Confiança */
.trust-highlight {
    color: #7b2dc3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin: 0px 0 30px;
    flex-wrap: wrap;
    font-size: 12px;
    background: rgba(123, 45, 195, 0.12);
    /* roxo com baixa opacidade */
    padding: 12px 20px;
    border-radius: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 60px 0 30px;
    background-color: #000000;
    border-top: 1px solid var(--border-color);

    box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.9);
}

@media (min-width: 769px) {
    .footer {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .footer {
        max-height: 450px !important;
    }

    .footer {
        min-height: 550px !important;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.link-group {
    min-width: 150px;
}

.link-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 100%;
    }

    .footer-tagline {
        text-align: center;
        margin: 0 auto;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
        width: 100%;
    }

    .link-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: auto;
    }

    .link-title {
        text-align: center;
        width: 100%;
    }

    .footer-link {
        text-align: center;
        width: 100%;
    }

    .footer {
        min-height: 700px !important;
        padding: 40px 0 20px;
    }

    .footer-bottom {
        text-align: center;
        width: 100%;
    }

    .copyright {
        text-align: center;
    }
}

.floating-cta.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);

    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    visibility: visible;
    padding: 15px 20px;
    border-radius: 10px;

    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;

    z-index: 9999;
}

.cta-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

a {
    text-decoration: none;
}

.cta-status {
    font-size: 14px;
    color: #cfcfcf;
}

.cta-action {
    text-align: center;
    border-radius: 25px;
    padding: 5px 10px 5px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    color: #000000;

}


.profile-photo1 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 12px;
        padding: 10px 14px;
        gap: 10px;
        border-radius: 12px;
        max-width: calc(100% - 24px);
    }

    .cta-text {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-status {
        font-size: 12px;
        white-space: nowrap;
    }

    .cta-action {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .profile-photo1 {
        width: 32px;
        height: 32px;
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 30px;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.9);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.navbar.scrolled {
    padding: 5px 30px;
    background: rgba(0, 0, 0, 0.8);
}

.navbar.scrolled::before {
    opacity: 0.8;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nav-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: width 0.25s ease, height 0.25s ease;
}

.navbar.scrolled .nav-logo img {
    width: 60px;
    height: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #9f4eed;
}

.nav-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

.nav-toggle {
    display: none !important;
    color: white;
    font-size: 1.5rem;

    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

/* ========== DROPDOWN MENU (DESKTOP) - SOMENTE COM HOVER REAL ========== */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: #9f4eed;
    padding-left: 25px;
    padding-right: 25px;
}

.mobile-menu-footer {
    display: none;
}


/* ========== MEDIA QUERY MOBILE ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .nav-logo img {
        width: 60px;
        height: 60px;
    }

    .navbar.scrolled .nav-logo img {
        width: 50px;
        height: 50px;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-toggle i {
        transition: transform 0.3s ease;
    }

    .nav-toggle.active i {
        transform: rotate(90deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 100px 20px 20px;
        flex-direction: column;
        gap: 5px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 600;
    }

    .nav-link:hover {
        color: #9f4eed;
    }

    .nav-divider {
        display: none;
    }

    /* ========== DROPDOWN NO MOBILE ========== */
    .dropdown {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-trigger {
        justify-content: center;
        width: 100%;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 0;
    }

    .dropdown-icon {
        display: inline-block !important;
        font-size: 0.8rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 150px;
        padding: 8px 0;
    }

    .dropdown-item {
        padding: 14px 0;
        font-size: 1rem;
        text-align: center;
        color: #fff;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        display: block;
    }

    .dropdown.active .dropdown-item {
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown.active .dropdown-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .dropdown.active .dropdown-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: rgba(159, 79, 237, 0.2);
        color: #9f4eed;
    }

    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: auto;
        padding: 40px 20px 30px;
        margin-top: 5px !important;
        width: 100%;

    }

    .mobile-menu-footer .footer-logo {
        margin-bottom: -15px;
    }

    .mobile-menu-footer .footer-logo img {
        width: 60px;
        height: 60px;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-footer .footer-logo img:hover {
        opacity: 1;
    }

    .mobile-menu-footer .copyright-text {
        color: #666;
        font-size: 0.9rem;
        /* AUMENTADO o tamanho */
        text-align: center;
        line-height: 1.6;
        max-width: 280px;
        margin: 0 auto;
        font-weight: 400;
        letter-spacing: 0.5px;
    }
}


/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .nav-link {
        font-size: 1.1rem;
        /* AUMENTADO também */
        padding: 12px 0;
    }

    .mobile-menu-footer {
        padding: 30px 15px 20px;
    }

    .mobile-menu-footer .copyright-text {
        font-size: 0.8rem;
        /* AUMENTADO */
        max-width: 250px;
    }
}

.nav-logo {
    margin-top: 5px;
}

body {
    isolation: isolate;
}