/* Existing CSS */

/* ... (your current CSS styles) ... */
   #cursor-bg {
       position: absolute;
       width: 70px;
       height: 70px;
       background: #45B0DF;
       border-radius: 50%;
       filter: blur(80px);
       pointer-events: none;
       /* Agar tidak mengganggu klik */
       opacity: 0;
       /* Awalnya tersembunyi */
       transition: opacity 0.2s ease-in-out;
   }

   body {
       font-family: Arial, sans-serif;
       margin: 0;
       padding: 0;
       background-color: #0f172a;
       display: flex;
   }

   .sidebar {
       width: 20%;
       background-color: #0f172a;
       color: white;
       padding: 80px;
       height: 100vh;
       position: fixed;
       left: 0;
       top: 0;
   }

   .content {
       margin-left: 42%;
       width: 80%;
       overflow-y: auto;

   }

   .section {
       padding: 80px;
       box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   }

   .project {
       display: flex;
       gap: 20px;
       padding-left: 20px;
       padding-bottom: 90px;
       color: white;
   }


   .listProject {
       display: flex;
       gap: 20px;
       padding-left: 20px;
       padding-right: 20px;
       padding-bottom: 40px;
       color: white;
   }

   .cardProject {
       /* Add shadows to create the "card" effect */
       padding-top: 10px;
       margin-top: 50px;

       height: 150px;
       background: rgba(255, 255, 255, 0);
       /* Awalnya transparan sepenuhnya */
       box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0);
       transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
       /* Awalnya tidak terlihat */
       border-radius: 5px;
   }

   /* On mouse-over, add a deeper shadow */
   .cardProject:hover {
       opacity: 1;
       /* Muncul saat dihover */
       background: #24344d;
       /* Warna putih transparan */
       box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
       /* Tambahkan shadow */
   }

   .cardProject:hover a span {
       color: #5EEAD4 !important;
       text-decoration: none !important;
   }

   .cardProject:hover .inline-block {
       transform: translateY(0);
   }

   .project img {
       width: 100px;
       height: 100px;
       object-fit: cover;
   }

   .text-4xl {
       font-size: 2.25rem;
       line-height: 2.5rem;
       color: #E2E8F0;

   }

   a {
       color: #E2E8F0;
       text-decoration: inherit
   }

   .mt-3 {
       margin-top: .75rem;
       color: #E2E8F0;
       font-size: 20px;
   }

   .mt-4 {
       font-size: 16px;
       color: #94A3B8;
       margin-top: 16px;
       margin-bottom: 85px;
   }

   p {
       font-size: 16px;
       color: #94A3B8;
       margin-top: 16px;
   }

   .linkCss {
       font-size: 16px;
       color: #94A3B8;

   }

   .nav-item {
       display: flex;
       align-items: center;
       gap: 10px;
       position: relative;
       padding: 10px 0;
   }

   .nav-item::before {
       content: "";
       width: 30px;
       height: 2px;
       background: #94A3B8;
       transition: background 0.3s ease-in-out, width 0.3s ease-in-out;
   }

   .nav-item:hover::before {
       width: 50px;
       background: #E2E8F0;
   }

   .nav-item a {
       font-size: 14px;
       /* Sesuaikan dengan ukuran yang diinginkan */
       color: #94A3B8;
       text-decoration: none;
       font-weight: bold;
       text-transform: uppercase;
       letter-spacing: 1px;
       transition: color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
   }

   .nav-item:hover a {
       color: #E2E8F0;
       font-weight: bold;
   }

   .nav-item.active::before {
       width: 50px;
       background: #E2E8F0;
   }

   .nav-item.active a {
       color: #E2E8F0;
       font-weight: bold;
   }

   .card {
       /* Add shadows to create the "card" effect */
       padding-top: 10px;
       height: 150px;
       background: rgba(255, 255, 255, 0);
       /* Awalnya transparan sepenuhnya */
       box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0);
       transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
       /* Awalnya tidak terlihat */
       border-radius: 5px;
   }

   /* On mouse-over, add a deeper shadow */
   .card:hover {
       opacity: 1;
       /* Muncul saat dihover */
       background: #24344d;
       /* Warna putih transparan */
       box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
       /* Tambahkan shadow */
   }

   .card:hover a span {
       color: #5EEAD4 !important;
       text-decoration: none !important;
   }

   .card:hover .inline-block {
       transform: translateY(0);
   }

   .inline-block {
       display: inline-block;
       transform: translateY(5px);
       /* Panah turun di posisi awal */
       transition: transform 0.1s ease-in-out;
       /* Efek halus */
   }

   .h-4 {
       height: 1rem
   }

   .w-4 {
       width: 1rem
   }

   .z-10 {
       z-index: 10
   }

   .-mt-1 {
       margin-top: -.25rem
   }

   .mt-2 {
       margin-top: .5rem
   }

   .mb-2 {
       margin-bottom: .5rem
   }

   .mb-4 {
       margin-bottom: 1rem
   }

   .uppercase {
       text-transform: uppercase
   }

   .tahun {
       color: #64748B;
       margin: 4px 0px 8px;
       font-size: 12px;
       font-weight: bold;

   }

   .role-exper {
       padding-left: 50px;
       text-transform: capitalize;
       font-size: 16px;
       font-weight: bold;
       color: #E2E8F0
   }

   .role-exper2 {
       padding-left: 80px;
       text-transform: capitalize;
       font-size: 16px;
       font-weight: bold;
       color: #E2E8F0
   }

   .text-sm {
       font-size: .875rem;
       line-height: 1.25rem;
       padding-left: 148px;
   }

   .text-prj {
       font-size: .875rem;
       line-height: 1.25rem;
       align-items: flex-start;
       /* teks rata kiri */
       text-align: left;
   }

   .leading-normal {
       line-height: 1.5
   }

   .flex {
       display: flex
   }

   .flex-wrap {
       flex-wrap: wrap
   }

   .items-center {
       align-items: center
   }

   .tech-stack {
       display: flex;
       gap: 10px;
   }

   .badge {
       background-color: #0F172A;
       /* Warna background */
       color: #38BDF8;
       /* Warna teks */
       font-weight: bold;
       padding: 8px 16px;
       border-radius: 20px;
       /* Membuat bentuk oval */
       font-size: 14px;
       display: inline-flex;
       align-items: center;
       text-transform: capitalize;
       box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
       transition: all 0.3s ease-in-out;
   }

   .badge:hover {
       background-color: #1E293B;
       /* Warna lebih terang saat hover */
       transform: translateY(-2px);
       /* Efek hover naik sedikit */
   }

   .flex-project-item {
       display: flex;
       align-items: flex-start;
       /* sejajarkan atas */
       gap: 10px;
       /* jarak antara gambar dan teks */
   }

   .text-project-content {
       display: flex;
       font-weight: bold;
       flex-direction: column;
       align-items: flex-start;
       /* teks rata kiri */
       text-align: left;
       flex: 1;

       font-size: 16px;
       color: #E2E8F0
   }

   .modal {
       display: none;
       position: fixed;
       z-index: 1000;
       padding-top: 60px;
       left: 0;
       top: 0;
       width: 100%;
       height: 100%;
       overflow: hidden;
       background-color: rgba(0, 0, 0, 0.9);
   }

   .modal-slider {
       position: relative;
       margin: auto;
       max-width: 80%;
       height: auto;
       text-align: center;
   }

   .slide {
       display: none;
       width: 100%;
       max-height: 80vh;
       object-fit: contain;
   }

   .close {
       position: absolute;
       top: 30px;
       right: 45px;
       color: white;
       font-size: 40px;
       font-weight: bold;
       cursor: pointer;
   }

   .prev,
   .next {
       cursor: pointer;
       position: absolute;
       top: 50%;
       font-size: 40px;
       color: white;
       padding: 16px;
       user-select: none;
       transform: translateY(-50%);
   }

   .prev {
       left: 0;
   }

   .next {
       right: 0;
   }

   .projects-title {
       font-size: 2rem;
       font-weight: bold;
       text-align: left;
       margin-top: 40px;
       margin-bottom: 10px;
       color: #E2E8F0;
   }

   .projects-subtitle {
       font-size: 1rem;
       text-align: left;
       margin-bottom: 30px;
       color: #E2E8F0;
   }

   .mobile-nav {
        display: none;
    }





/* Responsive adjustments */

@media (max-width: 1024px) {
    .sidebar {
        width: 30%; /* Adjust sidebar width for medium screens */
        padding: 40px;
    }

    .content {
        margin-left: 30%; /* Adjust content margin */
        width: 70%;
    }

    .text-4xl {
        font-size: 1.8rem; /* Smaller font for headings */
    }

    .mt-3 {
        font-size: 18px;
    }

    .mt-4, p, .linkCss {
        font-size: 14px;
    }

    .nav-item a {
        font-size: 12px;
    }

    .project img {
        width: 80px;
        height: 80px;
    }

    .listProject .text-project-content {
        font-size: 14px;
    }

    .projects-title {
        font-size: 1.8rem;
    }

    .projects-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    

          .sidebar {
              position: relative !important;
              width: 100% !important;
              height: auto !important;
              padding: 20px !important;
              text-align: left !important;
              /* PENTING: biar rata kiri */
          } 
    
          .content {
              margin-left: 0 !important;
              width: 100% !important;
              padding: 20px !important;
              text-align: left !important;
              /* PENTING: konten juga rata kiri */
          }
    
          .section {
              padding: 20px !important;
          }
    
          /* Pastikan semua elemen text juga rata kiri */
          .text-project-content,
          .role-exper,
          .role-exper2,
          .text-sm,
          .text-prj,
          .tahun {
              text-align: left !important;
              padding-left: 0 !important;
          }
    
          .nav-item {
              justify-content: flex-start !important;
              /* Menu navigasi juga kiri */
          }

  

    .nav-item::before {
        display: none; /* Hide the decorative line */
    }

    .project, .listProject {
        flex-direction: column; /* Stack project items vertically */
        padding-left: 0;
        padding-right: 0;
    }

    /* Adjust image within project/listProject for better stacking */
    .project img, .flex-project-item img { /* Added .flex-project-item img for projects */
        width: 100%; /* Image takes full width */
        height: auto;
        max-width: 150px; /* Limit max width for smaller images */
        margin: 0 auto 10px auto; /* Center image and add bottom margin */
    }


    .flex-project-item {
        flex-direction: column; /* Stack image and text vertically in listProject */
        align-items: center; /* Center align items */
        text-align: center;
    }

    .text-project-content {
        text-align: center; /* Center text content */
        font-size: 15px;
    }

    .text-prj {
        text-align: center;
    }

    .tahun {
        text-align: center;
    }

    .role-exper, .role-exper2 {
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center align text */
    }

    .text-sm {
        padding-left: 0; /* Remove left padding */
        text-align: center; /* Center align text */
    }

    .tech-stack {
        justify-content: center; /* Center tech stack badges */
    }

    .cardProject, .card {
        padding: 15px;
        height: auto; /* Auto height for cards */
    }

    .projects-title, .projects-subtitle {
        text-align: center;
    }

    .modal-slider {
        max-width: 95%; /* Adjust modal width */
    }

    .close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .prev, .next {
        font-size: 30px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 15px;
    }

    .content {
        padding: 15px;
    }

    .text-4xl {
        font-size: 1.5rem;
    }

    .mt-3 {
        font-size: 16px;
    }

    .nav-item a {
        font-size: 11px;
    }

    .cardProject, .card {
        padding: 10px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .listProject .text-project-content {
        font-size: 13px;
    }

    .projects-title {
        font-size: 1.5rem;
    }

    .projects-subtitle {
        font-size: 0.8rem;
    }
}