
    .projects-network {
        width: 100%;
        max-width: 1000px;
        height: 700px;
        border: 2px solid #89B4FA;
        border-radius: 15px;
        background: linear-gradient(145deg, #1E1E2E, #181825);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 998 !important;
        position: relative;
        flex: 1;
        overflow: visible;
    }

    .projects-network canvas {
        z-index: 998 !important;
        position: relative !important;
        overflow: visible !important;
        width: 100% !important;
        height: 100% !important;
    }

    @media (max-width: 768px) {
        .projects-network canvas {
            height: 500px !important;
            max-height: 500px !important;
            min-height: 500px !important;
        }
    }

    @media (max-width: 480px) {
        .projects-network canvas {
            height: 400px !important;
            max-height: 400px !important;
            min-height: 400px !important;
        }
    }

    .projects-network>div {
        z-index: 998 !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* Graph Controls */
    .graph-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        z-index: 999 !important;
        position: relative;
    }

    .controls-buttons {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* Graph Container */
    .graph-container {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
        justify-content: center;
        max-width: 1400px;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .graph-control-btn {
        background: linear-gradient(145deg, #a193e6, #8e7cc3);
        color: #11111b;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        transition: all 0.3s ease;
        z-index: 999 !important;
        position: relative;
        box-shadow: 0 4px 15px rgba(161, 147, 230, 0.3);
    }

    .graph-control-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(161, 147, 230, 0.4);
        background: linear-gradient(145deg, #8e7cc3, #a193e6);
    }

    .graph-tip {
        text-align: center;
        padding: 0.75rem 1.5rem;
        background: rgba(161, 147, 230, 0.1);
        border: 1px solid rgba(161, 147, 230, 0.3);
        border-radius: 12px;
        max-width: 350px;
    }

    .graph-tip p {
        color: #a193e6;
        font-size: 0.9rem;
        font-weight: 500;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .graph-tip i {
        font-size: 1rem;
        color: #a193e6;
    }

    .graph-legend {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: linear-gradient(145deg, #1E1E2E, #181825);
        padding: 1.5rem;
        border-radius: 15px;
        border: 2px solid #89B4FA;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        min-width: 250px;
        height: fit-content;
    }

    .legend-title {
        color: #89B4FA;
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
        text-align: center;
        font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        text-shadow: 0 2px 10px rgba(137, 180, 250, 0.3);
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        cursor: pointer;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        background: rgba(137, 180, 250, 0.1);
        border: 2px solid transparent;
        font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 500;
        color: #CDD6F4;
    }

    .legend-item:hover {
        background: rgba(137, 180, 250, 0.2);
        transform: translateY(-2px);
        border-color: rgba(137, 180, 250, 0.3);
        box-shadow: 0 4px 15px rgba(137, 180, 250, 0.2);
    }

    .legend-item.disabled {
        opacity: 0.4;
        background: rgba(88, 91, 112, 0.1);
        color: #585B70;
    }

    .legend-item.disabled .legend-color {
        filter: grayscale(80%);
    }

    .legend-item.disabled:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }

    .legend-color {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid white;
    }

    .web-color {
        background: #89B4FA;
    }

    .mobile-color {
        background: #F9E2AF;
    }

    .desktop-color {
        background: #F38BA8;
    }

    .ia-color {
        background: #CBA6F7;
    }

    .enterprise-color {
        background: #FAB387;
    }



    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999 !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(17, 17, 27, 0.85);
        backdrop-filter: blur(8px);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        background: linear-gradient(145deg, #313244, #1e1e2e);
        padding: 2.5rem;
        border-radius: 20px;
        max-width: 600px;
        width: 90%;
        border: 2px solid #cba6f7;
        animation: fadeIn 0.4s ease-out;
        box-shadow: 0 25px 80px rgba(203, 166, 247, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
    }

    .modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #cba6f7, #f9e2af, #f38ba8, #89b4fa, #cba6f7);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }

        100% {
            background-position: 200% 0;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-50px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .modal h3 {
        color: #cba6f7;
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
        font-weight: 600;
        text-shadow: 0 2px 10px rgba(203, 166, 247, 0.4);
    }

    .modal p {
        color: #cdd6f4;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }

    .modal-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin: 1.5rem 0;
        justify-content: center;
    }

    .modal-tag {
        background: linear-gradient(45deg, #cba6f7, #b4befe);
        color: #11111b;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(203, 166, 247, 0.3);
        transition: transform 0.2s ease;
    }

    .modal-tag:hover {
        transform: translateY(-2px);
    }

    .modal-links {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 2rem;
    }

    .modal-link {
        background: linear-gradient(45deg, #89b4fa, #74c7ec);
        color: #11111b;
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(137, 180, 250, 0.25);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .modal-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(137, 180, 250, 0.4);
        color: #11111b;
        text-decoration: none;
        background: linear-gradient(45deg, #74c7ec, #89b4fa);
    }

    .close-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(203, 166, 247, 0.1);
        border: none;
        color: #cba6f7;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-button:hover {
        background: rgba(203, 166, 247, 0.2);
        transform: scale(1.1);
        color: #b4befe;
    }

    /* Graph Loader Styles */
    .graph-loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 1000;
        color: #89B4FA;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #585B70;
        border-top: 4px solid #89B4FA;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 1rem;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .graph-loader p {
        margin: 0;
        font-size: 1.1rem;
        color: #CDD6F4;
    }

    @media (max-width: 768px) {
        .work.section {
            min-height: 100vh;
            padding: 2rem 0;
            overflow: visible !important;
        }

        .graph-container {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
            justify-content: center;
            max-width: 1400px;
            margin: 0 auto;
            flex-wrap: wrap;
            overflow: visible !important;
        }

        .graph-legend {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            background: linear-gradient(145deg, #1E1E2E, #181825);
            padding: 1.5rem;
            border-radius: 15px;
            border: 2px solid #89B4FA;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            min-width: 250px;
            height: fit-content;
            order: -1;
        }

        .projects-network {
            width: 100%;
            max-width: 1000px;
            height: 700px;
            border: 2px solid #89B4FA;
            border-radius: 15px;
            background: linear-gradient(145deg, #1E1E2E, #181825);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            z-index: 998 !important;
            position: relative;
            flex: 1;
            overflow: visible;
        }

        .projects-network canvas {
            width: 100% !important;
            height: 500px !important;
            max-width: 100% !important;
            max-height: 500px !important;
            min-height: 500px !important;
        }

        .graph-controls {
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 0 1rem;
            order: -2;
        }

        .controls-buttons {
            gap: 0.75rem;
            justify-content: center;
        }

        .graph-control-btn {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        .graph-tip {
            max-width: 100%;
            padding: 0.5rem 1rem;
        }

        .graph-tip p {
            font-size: 0.8rem;
        }

        .legend-item {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }

        .legend-title {
            font-size: 1.1rem;
        }
    }

    @media (max-width: 480px) {
        .work.section {
            min-height: 100vh;
            padding: 1rem 0;
            display: flex;
            flex-direction: column;
            overflow: visible !important;
        }

        .graph-container {
            padding: 0;
            gap: 0.75rem;
            overflow: visible !important;
            width: 100%;
            align-items: stretch;
        }

        .projects-network {
            height: 500px;
            width: 100%;
            position: relative;
            overflow: visible !important;
            margin: 0;
            z-index: 999 !important;
            border: 2px solid #89B4FA;
            border-radius: 15px;
            background: linear-gradient(145deg, #1E1E2E, #181825);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            flex: 1;
        }

        .projects-network canvas {
            width: 100% !important;
            height: 400px !important;
            max-width: 100% !important;
            max-height: 400px !important;
            min-height: 400px !important;
        }

        .graph-legend {
            max-width: 320px;
            padding: 0.5rem;
        }

        .graph-controls {
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            order: -2;
        }

        .controls-buttons {
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .graph-control-btn {
            padding: 0.5rem 0.8rem;
            font-size: 0.85rem;
            flex: 1;
            min-width: 140px;
        }

        .graph-tip {
            order: 2;
        }

        .modal-content {
            padding: 1.5rem;
            margin: 1rem;
            width: calc(100% - 2rem);
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal h3 {
            font-size: 1.5rem;
        }

        .modal p {
            font-size: 1rem;
        }

        .modal-links {
            flex-direction: column;
            gap: 0.75rem;
        }

        .modal-link {
            text-align: center;
        }
    }

    @media (max-width: 1200px) {
        .graph-container {
            flex-direction: column;
            gap: 1.5rem;
        }

        .graph-legend {
            min-width: auto;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            order: -1;
            /* Move legend above graph on tablets too */
        }

        .projects-network {
            order: 1;
            width: 100%;
        }
    }


    .vis-navigation {
        z-index: 99999 !important;
    }

    .vis-button {
        z-index: 100000 !important;
        pointer-events: auto !important;
    }

    .vis-up,
    .vis-down,
    .vis-left,
    .vis-right,
    .vis-zoomIn,
    .vis-zoomOut,
    .vis-zoomExtends {
        z-index: 100001 !important;
        pointer-events: auto !important;
    }



    .vis-button:active {
        transform: translateY(0px) !important;
        box-shadow: 0 2px 10px rgba(137, 180, 250, 0.4) !important;
    }

    /* Force visibility of navigation */
    .projects-network .vis-navigation {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

    .projects-network .vis-navigation .vis-button {
        z-index: 100000 !important;
        pointer-events: auto !important;
    }

    /* Specific button overrides */
    .projects-network .vis-button.vis-up,
    .projects-network .vis-button.vis-down,
    .projects-network .vis-button.vis-left,
    .projects-network .vis-button.vis-right,
    .projects-network .vis-button.vis-zoomIn,
    .projects-network .vis-button.vis-zoomOut,
    .projects-network .vis-button.vis-zoomExtends {
        z-index: 100001 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }


