* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #120030;
  cursor: url(/port/src/cursor3.png), auto;
}

img,
a {
  cursor: url(/port/src/cursor4.png), auto;
}

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: bold;
  transition: 0.5s;
}

.header_pages a:hover {
  font-weight: 400;
  letter-spacing: 2px;
}

/* =========================================
   SOCIAL MEDIA SHOWCASE
========================================= */

.social-showcase {

  min-height: 100vh;

  padding:
      80px 30px
      100px;

  background: #000;

  color: #fff;

  display: flex;

  flex-direction: column;

  align-items: center;

  overflow: hidden;
}



/* TITLE */

.social-title {

  text-align: center;

  z-index: 20;
}


.social-title span {

  font-size: 16px;

  letter-spacing: 4px;

  opacity: 0.5;
}


.social-title h1 {

  margin-top: 18px;

  font-family:
      Georgia,
      "Times New Roman",
      serif;

  font-size:
      clamp(34px, 4vw, 58px);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -2px;
}



/* =========================================
 CAROUSEL
========================================= */

.social-carousel {

  width: 100%;

  max-width: 1200px;

  height: 500px;

  margin-top: 60px;

  position: relative;
}


.social-track {

  width: 100%;

  height: 100%;

  position: relative;
}



/* =========================================
 CARD
========================================= */

.social-card {

  width: 220px;

  height: 300px;

  position: absolute;

  top: 50%;
  left: 50%;

  margin-left: -110px;
  margin-top: -150px;

  overflow: hidden;

  border-radius: 16px;

  cursor: pointer;

  background: #111;

  transition:
      transform 0.55s
      cubic-bezier(
          0.22,
          1,
          0.36,
          1
      ),

      opacity 0.4s ease,

      filter 0.4s ease;
}


.social-card img {

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  transition:
      transform 0.5s ease;
}



/* =========================================
 CENTER
========================================= */

.social-card.social-active {

  transform:
      translateX(0)
      scale(1.08)
      rotate(0deg);

  z-index: 10;

  opacity: 1;

  filter: brightness(1);
}



/* =========================================
 LEFT
========================================= */

.social-card.social-left-1 {

  transform:
      translateX(-245px)
      rotate(-5deg)
      scale(0.95);

  z-index: 5;

  opacity: 0.85;

  filter: brightness(0.75);
}


.social-card.social-left-2 {

  transform:
      translateX(-460px)
      rotate(-9deg)
      scale(0.88);

  z-index: 2;

  opacity: 0.65;

  filter: brightness(0.6);
}



/* =========================================
 RIGHT
========================================= */

.social-card.social-right-1 {

  transform:
      translateX(245px)
      rotate(5deg)
      scale(0.95);

  z-index: 5;

  opacity: 0.85;

  filter: brightness(0.75);
}


.social-card.social-right-2 {

  transform:
      translateX(460px)
      rotate(9deg)
      scale(0.88);

  z-index: 2;

  opacity: 0.65;

  filter: brightness(0.6);
}



/* =========================================
 HIDDEN
========================================= */

.social-card.social-hidden {

  transform:
      translateX(0)
      scale(0.5);

  opacity: 0;

  pointer-events: none;

  z-index: 0;
}



/* =========================================
 HOVER
========================================= */

.social-card:hover img {

  transform:
      scale(1.05);
}



/* =========================================
 NAVIGATION
========================================= */

.social-navigation {

  display: flex;

  align-items: center;

  gap: 25px;

  margin-top: 10px;

  z-index: 30;
}


.social-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;
}


.social-nav-button:hover {

  background: #fff;

  color: #000;
}


.social-counter {

  display: flex;

  gap: 8px;

  font-size: 11px;

  letter-spacing: 2px;

  opacity: 0.6;
}



/* =========================================
 IMAGE MODAL
========================================= */

.image-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;
}


.image-modal.active {

  opacity: 1;

  visibility: visible;
}



/* =========================================
 IMAGE
========================================= */

.image-modal-content {

  max-width: 90vw;

  max-height: 90vh;

  display: flex;

  align-items: center;

  justify-content: center;
}


.image-modal-content img {

  max-width: 100%;

  max-height: 85vh;

  width: auto;

  height: auto;

  display: block;

  border-radius: 8px;

  object-fit: contain;

  box-shadow:
      0 30px 100px
      rgba(0,0,0,0.8);
}



/* =========================================
 CLOSE
========================================= */

.image-close {

  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;

  cursor: pointer;

  z-index: 10;

  transition:
      0.3s ease;
}


.image-close:hover {

  background: #fff;

  color: #000;

  transform:
      rotate(90deg);
}



/* =========================================
 MOBILE
========================================= */

@media (max-width: 768px) {

  .social-showcase {

      padding:
          60px 20px
          80px;
  }


  .social-title h1 {

      font-size: 35px;

      letter-spacing: -1px;
  }


  .social-carousel {

      height: 390px;

      margin-top: 45px;
  }


  .social-card {

      width: 155px;

      height: 230px;

      margin-left: -77.5px;

      margin-top: -115px;

      border-radius: 13px;
  }


  .social-card.social-left-1 {

      transform:
          translateX(-120px)
          rotate(-7deg)
          scale(0.9);
  }


  .social-card.social-right-1 {

      transform:
          translateX(120px)
          rotate(7deg)
          scale(0.9);
  }


  .social-card.social-left-2 {

      transform:
          translateX(-205px)
          rotate(-12deg)
          scale(0.8);
  }


  .social-card.social-right-2 {

      transform:
          translateX(205px)
          rotate(12deg)
          scale(0.8);
  }


  .image-modal {

      padding: 20px;
  }


  .image-modal-content img {

      max-width: 95vw;

      max-height: 80vh;
  }


  .image-close {

      top: 15px;

      right: 15px;

      width: 42px;

      height: 42px;

      font-size: 25px;
  }

}

/* =========================================
   ORIGINAL IMAGE RATIO
========================================= */


/* Portrait */

.social-card.ratio-portrait {

  width: 220px;
  height: 300px;

  margin-left: -110px;
  margin-top: -150px;
}


/* Square */

.social-card.ratio-square {

  width: 280px;
  height: 280px;

  margin-left: -140px;
  margin-top: -140px;
}


/* Landscape */

.social-card.ratio-landscape {

  width: 320px;
  height: 200px;

  margin-left: -160px;
  margin-top: -100px;
}


.social-card img {

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.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;
}

/* Let's make it responsive */
@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 */
  }
  
  .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;
  }

  .desk_pages {
    padding: 0 20px;
  }

  .desk h2 {
    font-size: 16px;
    padding: 0;
  }

  .card {
    width: 80px;
    height: 102px;
    border-radius: 6px;
  }
}
