/* NAVBAR */
.tech-navbar {
    position: fixed;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 0 40px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 999;
    gap: 12px;
}

/* Estado ao rolar (classe aplicada via GSAP/ScrollTrigger) */
.tech-navbar.scrolled {
    background: rgba(5, 8, 22, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    height: 70px !important;
    padding: 0 32px;
    /* Se quiser cápsula:
  width: 92%;
  left: 4%;
  border-radius: 18px;
  top: 12px;
  */
}

/* MENU LINKS */
.tech-nav-menu ul {
    display: flex;
    gap: 8px;
}

.tech-nav-menu ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1 !important;
    padding: 8px 14px !important;
    position: relative;
    transition: color 0.25s ease;
}

.tech-nav-menu ul li a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.tech-nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #a855f7, transparent);
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.25s ease;
}

.tech-nav-menu ul li a:hover::after {
    width: 80%;
    opacity: 1;
}

/* CTA BUTTON */
.tech-nav-btn .elementor-button {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.45);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-nav-btn .elementor-button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 51, 234, 0.4));
    box-shadow: 0 0 16px rgba(147, 51, 234, 0.45);
    transform: translateY(-2px);
    border-color: rgba(147, 51, 234, 0.8);
}

.tech-nav-btn .elementor-button::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -120%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.tech-nav-btn .elementor-button:hover::before {
    left: 120%;
}

/* MOBILE: deixe o hamburger branco */
/* @media (max-width: 768px) {
    .tech-navbar {
        padding: 0 20px;
        height: 74px;
    }

    .tech-navbar.scrolled {
        height: 64px !important;
        padding: 0 18px;
    }

    .tech-nav-menu .elementor-menu-toggle {
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 8px;
    }
} */


/* Base já existente omitida; só os ajustes/overrides para mobile e dropdown */

/* Estado scrolled já funciona; manter */
.tech-navbar.scrolled {
    /* já definido antes */
}

/* Menu normal (desktop) já tratado; agora mobile */
@media (max-width: 1024px) {
    .tech-navbar {
        padding: 0 20px;
        height: 78px;
    }

    .tech-navbar.scrolled {
        height: 68px !important;
        padding: 0 18px;
    }

    /* Logo menor */
    .tech-nav-logo img {
        max-width: 140px;
        height: auto;
    }

    /* Botão com padding menor */
    .tech-nav-btn .elementor-button {
        padding: 9px 14px;
        font-size: 0.92rem;
        border-radius: 10px;
    }
}

/* Mobile mais estreito */
@media (max-width: 767px) {
    .tech-navbar {
        padding: 0 16px;
        height: 74px;
        gap: 10px;
    }

    .tech-navbar.scrolled {
        height: 64px !important;
        padding: 0 14px;
    }

    .tech-nav-logo img {
        max-width: 128px;
    }

    .tech-nav-btn .elementor-button {
        padding: 9px 14px;
        font-size: 0.9rem;
    }
}

/* Hamburger / Toggle */
.tech-nav-menu .elementor-menu-toggle {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    background: rgba(5, 8, 22, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.tech-nav-menu .elementor-menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

/* Dropdown / Painel mobile */
.tech-nav-menu .elementor-nav-menu--dropdown {
    background: rgba(5, 8, 22, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    margin-top: 10px;
    padding: 10px 0;
}

/* Links dentro do dropdown */
.tech-nav-menu .elementor-nav-menu--dropdown a {
    color: #e5e7eb !important;
    padding: 12px 18px !important;
    font-size: 0.98rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.tech-nav-menu .elementor-nav-menu--dropdown a:hover,
.tech-nav-menu .elementor-nav-menu--dropdown .elementor-item-active {
    background: rgba(96, 165, 250, 0.08);
    color: #fff !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

/* Remover setas padrão do submenu (se houver) */
.tech-nav-menu .elementor-nav-menu--dropdown .sub-arrow {
    display: none;
}

/* Se usar o modo "Full Width" no dropdown, dar espaço lateral */
@media (max-width: 767px) {
    .tech-nav-menu .elementor-nav-menu--dropdown {
        margin: 10px 8px 0;
    }
}

/* Ajuste do CTA para não quebrar layout em mobile: opcionalmente esconder ou mover */
@media (max-width: 480px) {

    /* Opção 1: Reduzir bastante o CTA */
    .tech-nav-btn .elementor-button {
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    /* Opção 2 (comente a de cima e descomente esta se quiser esconder): */
    /* .tech-nav-btn { display: none !important; } */
}