/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        position: relative;
        cursor: pointer;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0;
        z-index: 1001;
        margin-left: auto;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s ease;
        left: 12px;
    }

    .menu-toggle span:nth-child(1) {
        top: 15px;
    }

    .menu-toggle span:nth-child(2) {
        top: 21px;
    }

    .menu-toggle span:nth-child(3) {
        top: 27px;
    }

    /* Hamburger to X animation */
    .menu-toggle.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    /* Container untuk tombol */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        position: relative;
    }

    .nav-menu {
        position: absolute;
        width: 100%;
        background: var(--bg-card);
        top: 100%;
        left: 0;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 8px 30px var(--shadow-hover);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 0;
        height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        pointer-events: none;
        transform: translateY(10px);
        display: flex;
    }

    .nav-menu.active {
        height: auto;
        opacity: 1;
        padding: 1rem;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-out;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu a {
        color: #1f2937;
        font-size: 1.1rem;
        text-decoration: none;
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        border-radius: 8px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: #06b6d4;
        background-color: #f3f4f6;
    }

    /* Fix untuk "Open to opportunities & collaborations" di mobile */
    .home-text-content .status-badge {
        border-radius: 50px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    /* Memastikan logo dan teks portfolio tetap terlihat */
    .logo-container {
        z-index: 1001;
        position: relative;
        display: flex;
        align-items: center;
    }
}
@media (max-width: 768px) {
    nav {
        overflow: visible !important;
    }
}