* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
html {
    scroll-behavior: smooth;
    margin: 0;
}
body {
    font-family: "inter Sans", sans-serif;
    background: #ffffff;
    color: #1d1d1d;
    margin: 0;
    cursor: url(/port/src/cursor3.png), auto;
}

body::-webkit-scrollbar {
    display: none;
}


body {
    background: #000;
    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}

a {
    cursor: url("/port/src/cursor4.png"), auto;
  }
  .cursor {
    position: absolute;
    background: white;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    z-index: 1;
    transition: 0.5s cubic-bezier(0.75, -1.27, 0.3, 2.33) transform,
        0.2s cubic-bezier(0.75, -1.27, 0.3, 2.33) opacity;
    user-select: none;
    pointer-events: none;
    transform: scale(0.8);
  }
  
  .cursor::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background-image: url("https://i.ibb.co.com/PxfSD4Z/Comp-1.gif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 100%;
    opacity: 0;
  }
  
  .cursor.active {
    opacity: 1;
    transform: scale(12);
  }
  
  .cursor.active::before {
    opacity: 1;
  }
  
  .cursor-follower {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    z-index: 1;
    transition: 0.6s cubic-bezier(0.75, -1.27, 0.3, 2.33) transform,
        0.4s cubic-bezier(0.75, -1.27, 0.3, 2.33) opacity;
    user-select: none;
    pointer-events: none;
    transform: translate(4px, 4px);
  }
  
  .cursor-follower.active {
    opacity: 0.3;
    transform: scale(0);
  }

header {
    font-family: "Questrial", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    background-color: #CBF43B;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  header h1 {
    color: #120030;
  }
  
  .header_pages {
    display: inline-flex;
    width: fit-content;
    justify-self: end;
    gap: 2rem;
    background-color: #120030;
    padding: 1rem 2rem;
    border-radius: 200rem;
  }
  
  .header_pages li {
    list-style-type: none;
  }
  
  .header_pages a {
    font-size: 20px;
    text-decoration: none;
    color: #CBF43B;
    padding: 10px;
    text-transform: uppercase;
    font-weight: 400;
    transition: 0.5s;
  }
  
  .header_pages a:hover {
    color: #fff;
    letter-spacing: 2px;
  }


/* =========================================
   SECTION
========================================= */

.video-portfolio {

    min-height: 100vh;

    padding:
        70px 30px
        100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    overflow: hidden;
}



/* =========================================
   TITLE
========================================= */

.portfolio-title {

    text-align: center;

    position: relative;

    z-index: 20;
}


.portfolio-title span {

    font-size: 16px;

    letter-spacing: 4px;

    opacity: 0.5;
}


.portfolio-title h1 {

    margin-top: 18px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    font-size:
        clamp(34px, 4vw, 58px);

    line-height: 0.95;

    letter-spacing: -2px;
}



/* =========================================
   CAROUSEL
========================================= */

.video-carousel {

    width: 100%;

    max-width: 1200px;

    height: 500px;

    margin-top: 55px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}


.video-track {

    width: 100%;

    height: 100%;

    position: relative;
}



/* =========================================
   CARD
========================================= */

.video-card {

    width: 190px;

    height: 300px;

    position: absolute;

    top: 50%;
    left: 50%;

    margin-left: -95px;
    margin-top: -150px;

    border-radius: 18px;

    overflow: hidden;

    background: #111;

    cursor: pointer;

    transition:
        transform 0.55s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity 0.4s ease,
        filter 0.4s ease;

    border:
        1px solid
        rgba(255,255,255,0.12);

    box-shadow:
        0 30px 60px
        rgba(0,0,0,0.5);
}



/* =========================================
   THUMBNAIL
========================================= */

.video-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}



/* =========================================
   CARD POSITIONS
========================================= */

.video-card.active {

    transform:
        translateX(0)
        scale(1.08)
        rotate(0deg);

    z-index: 10;

    filter: brightness(1);

    opacity: 1;
}


.video-card.left-1 {

    transform:
        translateX(-215px)
        rotate(-5deg)
        scale(0.96);

    z-index: 5;

    filter: brightness(0.8);

    opacity: 1;
}


.video-card.left-2 {

    transform:
        translateX(-410px)
        rotate(-9deg)
        scale(0.9);

    z-index: 2;

    filter: brightness(0.65);

    opacity: 0.8;
}


.video-card.right-1 {

    transform:
        translateX(215px)
        rotate(5deg)
        scale(0.96);

    z-index: 5;

    filter: brightness(0.8);

    opacity: 1;
}


.video-card.right-2 {

    transform:
        translateX(410px)
        rotate(9deg)
        scale(0.9);

    z-index: 2;

    filter: brightness(0.65);

    opacity: 0.8;
}


.video-card.hidden-card {

    transform:
        translateX(0)
        scale(0.5);

    opacity: 0;

    pointer-events: none;

    z-index: 0;
}



/* =========================================
   HOVER
========================================= */

.video-card:not(.active):hover {

    filter:
        brightness(1);

}


.video-card:hover img {

    transform:
        scale(1.05);
}



/* =========================================
   OVERLAY
========================================= */

.thumbnail-overlay {

    position: absolute;

    inset: 0;

    padding: 18px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            transparent 40%,
            rgba(0,0,0,0.7)
        );

    pointer-events: none;
}


.thumbnail-overlay span {

    font-size: 10px;

    letter-spacing: 2px;

    opacity: 0.7;
}


.thumbnail-overlay p {

    font-family: "Questrial", sans-serif;

    font-size: 17px;

    line-height: 1.05;
}



/* =========================================
   PLAY ICON
========================================= */

.play-icon {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 48px;
    height: 48px;

    border:
        1px solid
        rgba(255,255,255,0.7);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

    padding-left: 3px;

    opacity: 0;

    background:
        rgba(0,0,0,0.25);

    backdrop-filter:
        blur(5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.video-card:hover .play-icon {

    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1.05);
}



/* =========================================
   NAVIGATION
========================================= */

.carousel-navigation {

    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 10px;

    position: relative;

    z-index: 30;
}


.nav-button {

    width: 45px;
    height: 45px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,0.3);

    background: transparent;

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.nav-button:hover {

    background: #fff;

    color: #000;
}


.carousel-counter {

    display: flex;

    gap: 8px;

    font-size: 11px;

    letter-spacing: 2px;

    opacity: 0.6;
}



/* =========================================
   MODAL
========================================= */

.video-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0,0,0,0.95);

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.video-modal.active {

    opacity: 1;

    visibility: visible;
}



/* =========================================
   MODAL CONTENT
========================================= */

.modal-content {

    width: 100%;

    max-width: 1100px;
}



/* =========================================
   YOUTUBE
========================================= */

.youtube-wrapper {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #050505;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,0.8);
}


.youtube-wrapper iframe {

    width: 100%;

    height: 100%;

    display: block;
}



/* =========================================
   MODAL INFO
========================================= */

.modal-info {

    margin-top: 20px;
}


.modal-info span {

    font-size: 10px;

    letter-spacing: 3px;

    opacity: 0.5;
}


.modal-info h2 {

    margin-top: 7px;

    font-family: "Questrial", sans-serif;
    font-weight: 400;

    font-size: 30px;
}



/* =========================================
   CLOSE
========================================= */

.close-modal {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,0.3);

    background:
        rgba(255,255,255,0.08);

    color: #fff;

    font-size: 30px;

    font-weight: 200;

    cursor: pointer;

    z-index: 10;

    transition:
        0.3s ease;
}


.close-modal:hover {

    background: #fff;

    color: #000;

    transform:
        rotate(90deg);
}

.footer {
    background-color: #CBF43B;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
  }
  
  .footer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 10px;
    border: 4px solid #ddd;
  }
  
  .username {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .more-title {
    font-family: "Questrial", sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
  }
  
  .cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .card {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card img:hover {
    transform: scale(1.1);
  }
  
  .card a {
    cursor: zoom-in;
  }
  
  .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .view-profile {
    font-family: "Questrial", sans-serif;
    display: inline-block;
    padding: 10px 20px;
    color: #120030;
    text-decoration: none;
    border: 1px solid #120030;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .view-profile:hover {
    background-color: #120030;
    color: #fff;
  }
  
  .more-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .card {
    width: 190px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .card-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .view-profile {
    display: inline-block;
    padding: 10px 20px;
    color: #120030;
    text-decoration: none;
    border: 1px solid #120030;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .view-profile:hover {
    background-color: #120030;
    color: #fff;
  }

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    header {
        justify-content: center; /* Memusatkan konten dalam header */
        padding: 10px 20px;
      }
    
      header h1 {
        display: none; /* Menyembunyikan elemen h1 */
      }
    
      nav {
        display: flex;
        justify-content: center; /* Memusatkan navigasi */
        align-items: center;
      }
    
      .header_pages {
        gap: 1rem; /* Kurangi jarak antar menu jika perlu */
        padding: 0.5rem 1rem; /* Sesuaikan padding */
      }
    
      .header_pages a {
        font-size: 16px; /* Kurangi ukuran font untuk tampilan kecil */
      }

      .desk_pages {
        padding: 0 20px;
      }
    
      .desk h2 {
        font-size: 16px;
        padding: 0;
      }
      
      
      .grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 250px;
      }
    
      .grid-gallery .grid-item:nth-child(3n - 2) {
        grid-column: unset;
        grid-row: unset;
      }
    
      .cover {
        padding: 0;
      }
    
      .card {
        width: 80px;
        height: 102px;
        border-radius: 6px;
      }

    .video-portfolio {

        padding:
            60px 20px
            80px;
    }


    .portfolio-title h1 {

        font-size: 35px;

        letter-spacing: -1px;
    }


    .video-carousel {

        height: 390px;

        margin-top: 45px;
    }


    .video-card {

        width: 145px;

        height: 230px;

        margin-left: -72.5px;

        margin-top: -115px;

        border-radius: 15px;
    }


    .video-card.left-1 {

        transform:
            translateX(-115px)
            rotate(-7deg)
            scale(0.9);
    }


    .video-card.right-1 {

        transform:
            translateX(115px)
            rotate(7deg)
            scale(0.9);
    }


    .video-card.left-2 {

        transform:
            translateX(-200px)
            rotate(-12deg)
            scale(0.8);
    }


    .video-card.right-2 {

        transform:
            translateX(200px)
            rotate(12deg)
            scale(0.8);
    }


    .thumbnail-overlay {

        padding: 13px;
    }


    .thumbnail-overlay p {

        font-size: 13px;
    }


    .play-icon {

        width: 40px;
        height: 40px;

        font-size: 12px;
    }


    /* MODAL */

    .video-modal {

        padding:
            20px;
    }


    .youtube-wrapper {

        border-radius: 8px;
    }


    .modal-info h2 {

        font-size: 23px;
    }


    .close-modal {

        top: 15px;

        right: 15px;

        width: 42px;
        height: 42px;

        font-size: 25px;
    }

}