/* ============================================================
   NAVBAR APPLE STYLE - Glassmorphism & Hierarchical Menu
   Layout: Logo (Left) | Menu (Center) | Actions (Right)
   ============================================================ */

/* ========== Container Principal - APPLE GLASS PROTOCOL ========== */
.navbar-apple {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background: rgba(20, 20, 23, 0.8) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Logo (Esquerda) ========== */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--c-accent, #7A4CFF);
}

/* ========== Menu Central ========== */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
}

/* Link Destacado (Monte seu Site) */
.nav-link-highlight {
    color: var(--c-accent, #7A4CFF);
    font-weight: 600;
}

.nav-link-highlight:hover {
    color: #8A5CFF;
}

/* ========== Megamenu (Soluções) - SOLID BLACK & BLURRED BACKDROP ========== */
.megamenu {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    background-color: #000000 !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7) !important;
    padding: 40px 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9998 !important;
}

/* Backdrop Blur Overlay - Cobre a tela abaixo do menu */
.megamenu::before {
    content: '';
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Invisible Bridge para Megamenu */
.megamenu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-megamenu:hover .megamenu::before {
    opacity: 1;
}

.megamenu-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.megamenu-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.megamenu-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-megamenu:hover .megamenu-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.megamenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.megamenu-link:hover {
    background: none !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.megamenu-link i {
    color: var(--c-accent, #7c3aed);
    font-size: 18px;
    width: 20px;
    transition: all 0.3s ease;
}

.megamenu-link:hover i {
    color: #7c3aed;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* Staggered Animation - Coluna 1 */
.has-megamenu:hover .megamenu-column:nth-child(1) .megamenu-link:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.has-megamenu:hover .megamenu-column:nth-child(1) .megamenu-link:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.has-megamenu:hover .megamenu-column:nth-child(1) .megamenu-link:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.has-megamenu:hover .megamenu-column:nth-child(1) .megamenu-link:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Staggered Animation - Coluna 2 */
.has-megamenu:hover .megamenu-column:nth-child(2) .megamenu-link:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.has-megamenu:hover .megamenu-column:nth-child(2) .megamenu-link:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.has-megamenu:hover .megamenu-column:nth-child(2) .megamenu-link:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.has-megamenu:hover .megamenu-column:nth-child(2) .megamenu-link:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.has-megamenu:hover .megamenu-column:nth-child(2) .megamenu-link:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* ========== Dropdown (Portfólio, Sobre Nós) - SOLID BLACK & BLURRED BACKDROP ========== */
.dropdown {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: 40vh !important;
    background-color: #000000 !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7) !important;
    padding: 32px 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9998 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

/* Backdrop Blur Overlay - Cobre a tela abaixo do menu */
.dropdown::before {
    content: '';
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Invisible Bridge para Dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .dropdown::before {
    opacity: 1;
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    margin: 0 8px;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: none !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

/* Staggered Animation - Dropdown Links */
.has-dropdown:hover .dropdown-link:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.has-dropdown:hover .dropdown-link:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.has-dropdown:hover .dropdown-link:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.has-dropdown:hover .dropdown-link:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

/* ========== Ações (Direita) ========== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Seletor de Idioma */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #ffffff;
    background: rgba(122, 76, 255, 0.2);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Botão Entrar */
.navbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(122, 76, 255, 0.1);
    border: 1px solid rgba(122, 76, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-btn:hover {
    background: rgba(122, 76, 255, 0.2);
    border-color: rgba(122, 76, 255, 0.5);
    transform: translateY(-2px);
}

.navbar-btn i {
    font-size: 16px;
}

/* ========== Hamburger Mobile ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 24px;
    }

    .navbar-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }
}

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

    .navbar-actions {
        gap: 16px;
    }

    .navbar-btn span {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ========== Ajuste para Hero Section ========== */
body {
    padding-top: 70px;
}

#inicio {
    margin-top: -70px;
    padding-top: 70px;
    padding-top: 70px;
}
