/* ========== NAVIGATION ========== */
.navbar {
    position: relative;
    z-index: 20;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Transparent navbar when inside hero section */
.hero-section .navbar {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand img {
    height: 64px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, #00b0b0, #00d4d4);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #00d4d4;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 200px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: #00d4d4;
    background: rgba(0, 176, 176, 0.1);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 2px solid rgba(0, 176, 176, 0.3);
    border-radius: 10px;
    background: rgba(0, 176, 176, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.navbar-toggle:hover {
    background: rgba(0, 176, 176, 0.2);
    border-color: rgba(0, 212, 212, 0.6);
    transform: scale(1.05);
}

.navbar-toggle:active {
    transform: scale(0.95);
}

.navbar-toggle span {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #00d4d4;
    transition: all 0.3s ease;
    display: block;
}

/* Animated hamburger to X */
.navbar-menu.active ~ .navbar-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-menu.active ~ .navbar-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-menu.active ~ .navbar-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Close button - hidden on desktop */
.navbar-close {
    display: none;
}

/* ========== CALL BUTTON ========== */
.call-button {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, rgba(0, 176, 176, 0.2), rgba(0, 212, 212, 0.15));
    color: #e9ffff;
    border: 1px solid rgba(0, 212, 212, 0.5);
    transition: all 0.3s ease;
    font-weight: 700;
}

.call-button:hover,
.call-button:focus-visible {
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.3), rgba(0, 247, 247, 0.2));
    color: #ffffff;
    border-color: #00d4d4;
    box-shadow: 0 8px 24px rgba(0, 212, 212, 0.4);
    transform: translateY(-1px);
}

.call-button:active {
    transform: translateY(0);
}

/* ========== RESPONSIVE NAVIGATION ========== */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(0, 176, 176, 0.1);
        border: 2px solid rgba(0, 176, 176, 0.3);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 100;
    }

    .navbar-close span {
        font-size: 32px;
        color: #00d4d4;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-weight: 300;
    }

    .navbar-close:hover {
        background: rgba(0, 176, 176, 0.2);
        border-color: rgba(0, 212, 212, 0.6);
        transform: rotate(90deg);
    }

    .navbar-close:active {
        transform: rotate(90deg) scale(0.9);
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
        z-index: 30;
        overflow-y: auto;
    }

    .navbar-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 176, 176, 0.5), transparent);
    }

    .navbar-menu.active {
        right: 0;
    }

    /* Backdrop overlay */
    .navbar-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 320px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: -1;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 176, 176, 0.1);
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 0.9rem;
    }

    .nav-link:hover {
        padding-left: 8px;
        color: #00d4d4;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: rgba(0, 176, 176, 0.05);
        margin-top: 8px;
        border-radius: 8px;
    }

    .dropdown-item {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .dropdown-item:hover {
        padding-left: 24px;
    }

    .call-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
        margin-top: 12px;
    }
}
