:root {
            color-scheme: dark;
        }

        body {
            background:
                radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.16), transparent 32%),
                radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.12), transparent 38%),
                radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.08), transparent 40%),
                #05070d;
            min-height: 100vh;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
            background-size: 30px 30px;
            mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
            pointer-events: none;
            z-index: -2;
        }

        .glass {
            background: rgba(15, 23, 42, 0.72);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .terminal::before {
            content: ">_";
            color: #14b8a6;
            margin-right: 8px;
        }

        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }

        .reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .chip {
            border: 1px solid rgba(148, 163, 184, 0.4);
            color: #cbd5e1;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 0.8rem;
            transition: all 0.25s ease;
        }

        .chip:hover {
            border-color: rgba(20, 184, 166, 0.9);
            color: #f8fafc;
        }

        .chip.active {
            border-color: transparent;
            background: linear-gradient(120deg, rgba(20, 184, 166, 0.3), rgba(245, 158, 11, 0.3));
            color: #f8fafc;
        }

        .project-card {
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }

        .project-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 24px 45px rgba(2, 6, 23, 0.45);
            border-color: rgba(20, 184, 166, 0.5);
        }

        .project-card button {
            cursor: pointer;
        }

        .project-card button:hover {
            transform: translateX(2px);
            transition: all 0.2s ease;
        }

        /* ── Project Modal Overlay ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }

        .modal-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

        .modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 18, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .modal-container {
            position: relative;
            width: 94%;
            max-width: 960px;
            max-height: 90vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            border-radius: 20px;
            border: 1px solid rgba(20, 184, 166, 0.25);
            background: linear-gradient(168deg, rgba(15, 23, 42, 0.97), rgba(8, 12, 28, 0.98));
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(20, 184, 166, 0.08);
            transform: scale(0.92) translateY(24px);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-overlay.is-open .modal-container {
            transform: scale(1) translateY(0);
        }

        .modal-container::-webkit-scrollbar {
            width: 6px;
        }

        .modal-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .modal-container::-webkit-scrollbar-thumb {
            background: rgba(20, 184, 166, 0.3);
            border-radius: 3px;
        }

        .modal-hero-img {
            width: 100%;
            max-height: 420px;
            object-fit: cover;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.12);
        }

        .modal-hero-video {
            width: 100%;
            max-height: 420px;
            object-fit: cover;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.12);
        }

        .modal-close-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(15, 23, 42, 0.6);
            color: #94a3b8;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .modal-close-btn:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.5);
            color: #f87171;
        }

        .modal-info-card {
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(148, 163, 184, 0.12);
            border-radius: 14px;
            padding: 20px;
            transition: border-color 0.25s ease;
        }

        .modal-info-card:hover {
            border-color: rgba(20, 184, 166, 0.35);
        }

        .modal-gallery-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.1);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .modal-gallery-img:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
        }

        body.modal-open {
            overflow: hidden;
        }

        @media (max-width: 768px) {
            .modal-container {
                width: 100%;
                max-height: 100vh;
                border-radius: 0;
                max-width: 100%;
            }

            .modal-hero-img,
            .modal-hero-video {
                max-height: 240px;
                border-radius: 10px;
            }

            .modal-gallery-img {
                height: 160px;
            }
        }

        .lang-switch-btn.active {
            background: rgba(20, 184, 166, 0.35);
            color: #ffffff;
        }

        #cursor-glow {
            position: fixed;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, rgba(20, 184, 166, 0.04) 35%, rgba(20, 184, 166, 0) 70%);
            pointer-events: none;
            z-index: -1;
            transform: translate(-50%, -50%);
            transition: transform 0.07s linear;
        }

        .floating-orb {
            position: fixed;
            border-radius: 999px;
            filter: blur(60px);
            opacity: 0.4;
            pointer-events: none;
            z-index: -1;
            animation: floatOrb 12s ease-in-out infinite;
        }

        .floating-orb.one {
            width: 240px;
            height: 240px;
            background: rgba(20, 184, 166, 0.35);
            top: 18%;
            left: 10%;
        }

        .floating-orb.two {
            width: 200px;
            height: 200px;
            background: rgba(245, 158, 11, 0.28);
            right: 10%;
            bottom: 10%;
            animation-duration: 14s;
        }

        @keyframes floatOrb {
            0%,
            100% {
                transform: translate(0, 0);
            }

            50% {
                transform: translate(20px, -22px);
            }
        }

        .counter-value {
            font-variant-numeric: tabular-nums;
        }

        #insight-media-gallery figure {
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 200px;
        }

        #insight-media-gallery figure img {
            transition: transform 0.3s ease;
            max-width: 100%;
            height: auto;
        }

        #insight-media-gallery figure:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(20, 184, 166, 0.15);
        }

        #insight-media-gallery figure:hover img {
            transform: scale(1.02);
        }

        #nav-items.mobile-open {
            display: flex;
            position: absolute;
            top: 72px;
            left: 24px;
            right: 24px;
            flex-direction: column;
            gap: 12px;
            padding: 16px;
            border-radius: 14px;
            background: rgba(10, 16, 31, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.3);
            box-shadow: 0 20px 40px rgba(2, 6, 23, 0.5);
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation: none !important;
                transition: none !important;
                scroll-behavior: auto !important;
            }
        }
