        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0a0a0a;
            color: #ffffff;
            overflow-x: hidden;
            /* Sembunyikan kursor asli di desktop agar kursor dot yang terlihat */
            cursor: none;
        }

        /* Tampilkan kembali kursor asli di mobile */
        @media (max-width: 768px) {
            body {
                cursor: auto;
            }
        }

        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

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

        .animate-fade-in-up {
            animation: fadeInUp 1s ease-out forwards;
        }

        .navbar-blur {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            background: rgba(10, 10, 10, 0.8);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 7rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .project-card {
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.05);
            
            /* PENTING: FIXED HEIGHT & WIDTH */
            width: 100% !important;
            height: 480px !important;
            
            display: flex;
            flex-direction: column;
        }

                /* Biar image height tetap sama */
        .project-card .h-64 {
            height: 256px !important;
            flex-shrink: 0;
        }

        /* Biar content section flex */
        .project-card .p-6 {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 1.5rem;
        }

                /* Title - fixed height */
        .project-card h3 {
            min-height: 32px;
            max-height: 32px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Description - flexible tapi ada min height */
        .project-card .p-6 > p {
            flex: 1;
            min-height: 60px;
            max-height: 60px;
            overflow: hidden;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }

        /* Tech badges section */
        .project-card .p-6 > .flex.gap-2 {
            margin-bottom: 1rem;
            min-height: 32px;
        }

        /* Button tetap di bawah */
        .project-card .p-6 > button {
            margin-top: auto;
        }


        /* Biar description bisa grow tapi tetap rapi */
        .project-card .p-6 p {
            flex: 1;
            min-height: 40px; /* Tinggi minimum */
        }

        /* Button tetap di bawah */
        .project-card .p-6 button {
            margin-top: auto;
        }

        /* Mobile card height lebih kecil */
        @media (max-width: 640px) {
            .project-card {
                height: 380px !important;
            }
            
            .project-card .h-64 {
                height: 180px !important;
            }
            
            .project-card .p-6 {
                padding: 1rem !important;
            }
            
            .project-card h3 {
                font-size: 1rem !important;
                min-height: 24px;
                max-height: 24px;
            }
            
            .project-card .p-6 > p {
                font-size: 0.8rem !important;
                min-height: 48px;
                max-height: 48px;
                -webkit-line-clamp: 2;
            }
        }

        /* Extra small screens */
        @media (max-width: 375px) {
            .project-card {
                max-height: 380px;
            }
            
            .project-card .h-64 {
                height: 140px !important;
            }
            
            .project-card h3 {
                font-size: 0.9rem !important;
            }
            
            .project-card p {
                font-size: 0.65rem !important;
            }
        }

        .project-card:hover {
            transform: translateY(-8px);
            border-color: rgba(102, 126, 234, 0.3);
            background: rgba(30, 30, 30, 0.9);
        }

        .project-card:hover .project-image {
            transform: scale(1.05);
        }

        .project-image {
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-primary {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .tech-badge {
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tech-badge:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
            transform: translateY(-2px);
        }

        .section-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(10px);
            }
        }

        .scroll-indicator {
            animation: bounce 2s infinite;
        }

        .grid-bg {
            background-image:
                linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
        }

        .contact-card {
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

        .contact-card:hover {
            border-color: rgba(102, 126, 234, 0.3);
            background: rgba(30, 30, 30, 0.9);
            transform: translateY(-4px);
        }

        /* CSS Tambahan untuk Cursor agar transisi scale halus */
        .cursor-dot {
            transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
        }

        /* Carousel Styles */
        .carousel-container {
            position: relative;
            padding: 0 80px; /* Lebih lebar untuk button di luar */
            overflow: visible; /* Biar card samping keliatan */
        }

        @media (max-width: 768px) {
            .carousel-container {
                padding: 0 60px;
            }
        }

        @media (max-width: 480px) {
            .carousel-container {
                padding: 0 50px;
            }
        }

        .carousel-wrapper {
            overflow: hidden !important;
            padding: 20px 0; /* Padding atas bawah buat shadow */
            position: relative;
        }

        .carousel-track {
            display: flex;
            gap: 2rem; /* Desktop default */
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

        }

        .carousel-slide {
        /* PENTING: WIDTH FIXED BIAR SAMA SEMUA */
            width: calc(33.333% - 1.333rem) !important;
            min-width: calc(33.333% - 1.333rem) !important;
            max-width: calc(33.333% - 1.333rem) !important;
            flex-shrink: 0;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        /* Desktop: Scale effect untuk card di ujung */
        @media (min-width: 1024px) {
            .carousel-slide {
                transform: scale(0.90);
                opacity: 0.5;
            }
            
            /* 3 card tengah jadi besar dan terang */
            .carousel-slide:nth-child(n+1):nth-child(-n+3) {
                transform: scale(1);
                opacity: 1;
            }
        }

            @media (max-width: 1024px) {
        .carousel-slide {
            width: calc(50% - 1rem) !important;
            min-width: calc(50% - 1rem) !important;
            max-width: calc(50% - 1rem) !important;
        }
    }

        @media (max-width: 640px) {
        .carousel-slide {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            transform: scale(1) !important;
            opacity: 1 !important;
        }
        
        .carousel-track {
            gap: 1rem;
        }

         /* TAMBAHKAN INI - Penting biar ga kepotong */
        .carousel-container {
            padding: 0 60px; /* Beri ruang untuk button */
        }
        
        .carousel-wrapper {
            overflow: hidden; /* Sembunyikan card yang overflow */
            width: 100%; /* Full width */
        }
    }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 56px;
            height: 56px;
            background: rgba(102, 126, 234, 0.3);
            border: 2px solid rgba(102, 126, 234, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 100;
            backdrop-filter: blur(12px);
        }

        @media (max-width: 768px) {
            .carousel-btn {
                width: 44px;
                height: 44px;
            }
            
            .carousel-btn svg {
                width: 20px;
                height: 20px;
            }
            
            .carousel-btn.prev {
                left: 2px;
            }
            
            .carousel-btn.next {
                right: 2px;
            }
        }

        @media (max-width: 480px) {
            .carousel-btn {
                width: 40px; /* Lebih kecil lagi untuk layar sangat kecil */
                height: 40px;
            }
        }

        .carousel-btn:hover {
            background: rgba(102, 126, 234, 0.6);
            border-color: rgba(102, 126, 234, 0.8);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-btn.prev {
            left: -70px;
        }

        .carousel-btn.next {
            right: -70px;
        }

        @media (max-width: 1280px) {
            .carousel-btn.prev {
                left: 5px; /* Di layar lebih kecil, masuk lagi */
            }
            
            .carousel-btn.next {
                right: 5px;
            }
        }

        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 2rem;
        }

        @media (max-width: 640px) {
            .carousel-dots {
                margin-top: 1.5rem; /* Spacing lebih kecil di mobile */
            }
        }

        .carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-dot.active {
            background: #667eea;
            width: 24px;
            border-radius: 4px;
        }

        @media (max-width: 640px) {
            .carousel-dot {
                width: 6px; /* Dots lebih kecil di mobile */
                height: 6px;
            }
            
            .carousel-dot.active {
                width: 20px;
            }
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(8px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 2rem;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: rgba(20, 20, 20, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            position: relative;
            height: 300px;
            border-radius: 24px 24px 0 0;
            overflow: hidden;
        }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: white;
        }

        .modal-meta {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .modal-year {
            color: #667eea;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .modal-description {
            color: #9ca3af;
            line-height: 1.8;
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        .modal-tech {
            margin-bottom: 2rem;
        }

        .modal-tech h3 {
            color: white;
            font-size: 1.125rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .modal-tech-list {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .modal-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .modal-btn {
            padding: 0.875rem 2rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .modal-btn-primary {
            background: white;
            color: black;
        }

        .modal-btn-primary:hover {
            background: #e5e5e5;
            transform: translateY(-2px);
        }

        .modal-btn-secondary {
            background: transparent;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .modal-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .modal-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Scrollbar untuk modal */
        .modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
            border-radius: 4px;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.7);
        }

        /* Modal - Mobile Optimization */
        @media (max-width: 768px) {
            .modal-overlay {
                padding: 1rem;
            }
            
            .modal-header {
                height: 200px;
            }
            
            .modal-body {
                padding: 1.5rem;
            }
            
            .modal-title {
                font-size: 1.5rem;
            }
            
            .modal-description {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .modal-overlay {
                padding: 0.5rem;
            }
            
            .modal-header {
                height: 180px;
            }
            
            .modal-body {
                padding: 1.25rem;
            }
            
            .modal-title {
                font-size: 1.375rem;
            }
            
            .modal-buttons {
                flex-direction: column; /* Stack buttons vertically */
            }
            
            .modal-btn {
                width: 100%; /* Full width buttons di mobile */
                justify-content: center;
            }
        }