/*-----------------------------------*\
  #style.css
\*-----------------------------------*/


/**
 * copyright 2022 @codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(240, 1%, 25%) 3%, 
    hsl(0, 0%, 19%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right, 
    hsla(240, 1%, 18%, 0.251) 0%, 
    hsla(240, 2%, 11%, 0) 100%
  ), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right, 
    #222224 0%, 
    hsla(36, 100%, 69%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg, 
    hsla(45, 100%, 71%, 0.251) 0%, 
    hsla(35, 100%, 68%, 0) 59.86%
  ), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 25%) 0%, 
    hsla(0, 0%, 25%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right, 
    #27548A, 
    #27548A
  );

  /* solid */

  --jet: hsl(0, 0%, 22%);
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(253, 100%, 72%);
  --vegas-gold: #27548A;
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /**
   * shadow
   */
  
  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

a { text-decoration: none; }

li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

:focus { outline-color: var(--orange-yellow-crayola); }

html { font-family: var(--ff-poppins); }

body { background: var(--smoky-black); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-2); }

.h4 { font-size: var(--fs-4); }

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px; /* for vertical scrollbar */
  height: 5px; /* for horizontal scrollbar */
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}





/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}





/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 405px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  width: 80px; /* Ukuran untuk perangkat kecil */
  height: 80px; /* Ukuran untuk perangkat kecil */
  border-radius: 50%; /* Membuat gambar bulat */
  overflow: hidden; /* Memastikan gambar tidak keluar dari batas */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0; /* Warna latar belakang jika gambar tidak ada */
  border: 2px solid rgb(255, 255, 255); /* Menambahkan garis kontur berwarna putih */
}

.avatar-box img {
  width: 100%; /* Memastikan gambar memenuhi wadah */
  height: auto; /* Mempertahankan rasio aspek */
  max-width: none; /* Menghindari gambar mengecil */
}

@media (min-width: 768px) {
  .avatar-box {
    width: 100px; /* Ukuran untuk perangkat lebih besar */
    height: 100px; /* Ukuran untuk perangkat lebih besar */
  }
}

@media (min-width: 1024px) {
  .avatar-box {
    width: 120px; /* Ukuran untuk perangkat desktop */
    height: 120px; /* Ukuran untuk perangkat desktop */
  }
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address { font-style: normal; }

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}


.social-item .social-link:hover { color: var(--light-gray); }





/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 1%, 17%, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus { color: var(--light-gray-70); }

.navbar-link.active { color: var(--orange-yellow-crayola); }





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title { margin-bottom: 15px; }

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.about-text p { margin-bottom: 15px; }



/**
 * #service 
 */

.service { margin-bottom: 35px; }

.service-title { margin-bottom: 20px; }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box { margin-bottom: 10px; }

.service-icon-box img { margin: auto; }

.service-content-box { text-align: center; }

.service-item-title { margin-bottom: 7px; }

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}


/**
 * #testimonials 
 */

.testimonials { margin-bottom: 30px; }

.testimonials-title { margin-bottom: 20px; }

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
}

.testimonials-avatar-box {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(15px, -25px);
  background: var(--bg-gradient-onyx);
  border-radius: 50%; /* Mengubah border-radius menjadi 50% untuk membuat gambar bulat */
  box-shadow: var(--shadow-1);
  border: 2px solid white; /* Menambahkan garis kontur berwarna putih */
}

.testimonials-item-title { margin-bottom: 7px; }

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/**
 * #testimonials-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}

.modal-container::-webkit-scrollbar { display: none; }

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;
  margin: 15px 12px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
}

.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.modal-close-btn:hover,
.modal-close-btn:focus { opacity: 1; }

.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper > img { display: none; }

.modal-title { margin-bottom: 4px; }

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}


/**
 * #clients 
 */

.clients { margin-bottom: 15px; }

.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}

.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}

.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}

.clients-item img:hover { filter: grayscale(0); }





/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }


/**
 * education 
 */

/* CSS untuk animasi panah ke Education */
.arrow-indicator {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  color: white; /* Tambahkan warna putih untuk teks */
  font-size: 1rem; /* Perbesar ukuran teks */
  animation: float 2s ease-in-out infinite; /* Tambahkan animasi mengambang */
  transition: text-shadow 0.3s ease; /* Tambahkan transisi untuk efek glow */
}

.arrow-indicator:hover {
  text-shadow: 0 0 8px rgba(206, 233, 255, 0.8), 0 0 20px rgba(255, 19, 19, 0.6); /* Efek glow saat disorot */
}

.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent; /* Perbesar ukuran panah */
  border-right: 5px solid transparent; /* Perbesar ukuran panah */
  border-top: 10px solid rgb(255, 255, 255); /* Perbesar ukuran panah */
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(5px);
  }
}

@keyframes float {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-5px); /* Mengambang ke atas */
  }
}

/* Education */
 .education {
  position: relative;
  padding: 20px;
  background-color: #222224; 
  /* border: 2px solid #1DA1F2;  */
  box-shadow: var(--shadow-2);
  transition: all 0.3s ease;
  margin-top: 20px; /* Spasi atas */
  border-radius: 10px; /* Menambahkan border-radius */
}

.education-title {
  font-size: 24px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: #66a4ce; /* Warna judul */
  margin-bottom: 10px; /* Spasi bawah judul */
}

.education-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #00f7ffe3; /* Garis bawah */
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
}

.education-title:hover::after {
  width: 100%; /* Garis bawah muncul saat disorot */
}

.education-details,
.education-description,
.education-skills,
.school-description,
.education-conclusion {
  color: #d5d5d5; /* Warna teks */
  margin-bottom: 15px; /* Spasi antar paragraf */
}

.education-list {
  list-style-type: none;
  padding: 0;
  margin: 0; /* Hapus margin default */
}

.school-name,
.education-list li {
  margin: 10px 0; /* Spasi antar item */
  position: relative;
  color: #d5d5d5; /* Warna teks daftar */
  display: flex;
  align-items: center; /* Vertically center the icon and text */
}

.education-list li svg {
  margin-right: 10px; /* Spasi antara ikon dan teks */
}

/* Readmore css */
.read-more {
  color: blue;
  text-decoration: none; /* Ubah menjadi none jika ingin tanpa underline */
  font-size: 0.8em;
  transition: transform 0.3s, color 0.3s;
  font-style: italic;
}

.read-more:hover {
  transform: scale(1.05);
  color: darkblue; /* Ubah warna saat di-hover */
}

/* Container for internship photos */
.pkl-container {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap onto the next line on smaller screens */
  justify-content: space-between;
  margin-top: 20px;
}

.pkl-item {
  position: relative;
  width: 45%; /* Adjust the width of the internship photos */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2), 
              0 0 0 3px #dbdbdb; /* Black border effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pkl-item:hover {
  transform: scale(1.02) rotate(-1deg); /* Slight zoom and rotation on hover */
  box-shadow: 0 8px 16px rgba(0,0,0,0.3),
              0 0 0 5px #0088ff; /* Brighter yellow border on hover */
}

.pkl-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
  border-radius: 8px; /* Optional: rounds the corners */
}

.pkl-description {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #333;
  background: #dbdbdb;
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.3s ease, color 0.3s ease;
}

.pkl-item:hover .pkl-description {
  background: rgba(0, 0, 0, 0.7);
  color: #dbdbdb;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
  .pkl-item {
    width: 100%; /* Full width for each item on small screens */
    margin-bottom: 20px; /* Space between stacked items */
  }

  .pkl-item:last-child {
    margin-bottom: 0; /* Remove margin from the last item */
  }
}



/* 
Ini Edukasi Yang Lama

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { position: relative; }

.timeline-item:not(:last-child) { margin-bottom: 20px; }

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
} */


/**
 * skills 
 */
/* 

/* INI ADALAH BAGIAN SKILLS */
.skills-card {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 20px; /* Spasi atas */
}

.dev-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: white; /* Menambahkan warna putih */
}

.dev-tools h2 {
  grid-column: span 3;
  text-align: center;
  margin-bottom: 20px;
}

.tool {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background-color: #222224;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform: rotateY(0deg);
  transition: transform 0.5s ease;
}

/* Initial Icon State */
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon img {
  width: 30px;
  height: 30px;
}

/* Hidden Text */
.tool-text {
  position: absolute;
  left: 100%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-20px);
}

.tool-name {
  font-weight: bold;
}

.tool-level {
  font-style: italic;
}

/* Hover Effects */
.tool:hover {
  transform: rotateY(180deg);
}

.tool:hover .tool-text {
  opacity: 1;
  transform: translateX(0);
}

.tool-icon:hover {
    transform: rotate(100deg);
}



/*-----------------------------------*\_
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { display: none; }

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon { transform: rotate(0.5turn); }

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover { --eerie-black-2: hsl(240, 2%, 20%); }

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-item { display: none; }

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.project-item > a { width: 100%; }

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-img::before { background: hsla(0, 0%, 0%, 0.5); }

.project-item-icon-box {
  --scale: 0.8;

  background: var(--jet);
  color: var(--orange-yellow-crayola);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon { --ionicon-stroke-width: 50px; }

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.project-item > a:hover img { transform: scale(1.1); }

.project-title,
.project-category { margin-left: 10px; }

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/* Bagian Likes Project */
.pop {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2); /* Perbesar skala menjadi 1.3 */
  }
  100% {
      transform: scale(1);
  }
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-posts { margin-bottom: 10px; }

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.blog-post-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.blog-banner-box {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff6b6b;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  z-index: 1;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-banner-box img { transform: scale(1.1); }

.blog-content { padding: 15px; }

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-item-title { color: var(--orange-yellow-crayola); }

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}





/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure { height: 100%; }

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder { font-weight: var(--fw-500); }

.form-input:focus { border-color: var(--orange-yellow-crayola); }

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }

.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }





/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {

  /**
   * client
   */

  .clients-item { min-width: calc(33.33% - 10px); }



  /**
   * #PORTFOLIO, BLOG 
   */

  .project-img,
  .blog-banner-box { height: auto; }

}

/* Circular Cursor */
html, button, a, input {
  cursor: none; /* Menghilangkan icon tangan */
}

#cursor-inner,
#cursor-outer {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s; /* Perubahan durasi menjadi 1s */
  z-index: 12000;
}


#cursor-inner {
  width: 8px;
  height: 8px;
  background-color: #dcdcdc;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s; /* Perubahan durasi menjadi 1s */
}

#cursor-outer {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.629);
  mix-blend-mode: difference;
}

  #particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #161515; /* Sesuaikan warna latar belakang */
  }



/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;

  }



  /**
   * #REUSED STYLE
   */

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }



  /**
   * #MAIN
   */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }



  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active { max-height: 584px; }

  .sidebar-info { gap: 25px; }

  .avatar-box {
    border-radius: 30px;
    border: 2px solid white; /* Menambahkan garis kontur berwarna putih */
  }

  .avatar-box img { width: 120px; }

  .info-content .name { margin-bottom: 15px; }

  .info-content .title { padding: 5px 18px; }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon { display: none; }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }



  /**
   * #NAVBAR
   */

  .navbar { border-radius: 20px 20px 0 0; }

  .navbar-list { gap: 20px; }

  .navbar-link { --fs-8: 14px; }



  /**
   * #ABOUT
   */

  .about .article-title { margin-bottom: 20px; }

  .about-text { margin-bottom: 40px; }

  /* service */

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box { text-align: left; }

  /* testimonials */

  .testimonials-title { margin-bottom: 25px; }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 50%; /* Mengubah border-radius menjadi 50% untuk membuat gambar bulat */
    border: 2px solid white; /* Menambahkan garis kontur berwarna putih */
  }

  .testimonials-avatar-box img { width: 80px; }

  .testimonials-item-title {
    margin-bottom: 10px;
    margin-left: 95px;
  }

  .testimonials-text {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  /* testimonials modal */

  .modal-container { padding: 20px; }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img { width: 65px; }

  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  /* clients */

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item { min-width: calc(33.33% - 35px); }



  /**
   * #RESUME
   */

  .timeline-list { margin-left: 65px; }

  .timeline-item:not(:last-child)::before { left: -40px; }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) { margin-bottom: 25px; }



  /**
   * #PORTFOLIO, BLOG
   */

  .project-img, .blog-banner-box { border-radius: 16px; }

  .blog-posts-list { gap: 30px; }

  .blog-content { padding: 25px; }



  /**
   * #CONTACT
   */

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input { padding: 15px 20px; }

  textarea.form-input { margin-bottom: 30px; }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon { font-size: 18px; }

}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

.glitch {
  animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: 'Raditya';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 5px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-1 2s linear infinite alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
  animation: glitch-anim-2 2s linear infinite alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(51px, 9999px, 28px, 0);
  }
  10% {
    clip: rect(33px, 9999px, 98px, 0);
  }
  20% {
    clip: rect(75px, 9999px, 26px, 0);
  }
  30% {
    clip: rect(82px, 9999px, 13px, 0);
  }
  40% {
    clip: rect(51px, 9999px, 63px, 0);
  }
  50% {
    clip: rect(41px, 9999px, 88px, 0);
  }
  60% {
    clip: rect(22px, 9999px, 91px, 0);
  }
  70% {
    clip: rect(46px, 9999px, 50px, 0);
  }
  80% {
    clip: rect(71px, 9999px, 20px, 0);
  }
  90% {
    clip: rect(57px, 9999px, 65px, 0);
  }
  100% {
    clip: rect(82px, 9999px, 31px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(14px, 9999px, 30px, 0);
  }
  10% {
    clip: rect(92px, 9999px, 76px, 0);
  }
  20% {
    clip: rect(67px, 9999px, 11px, 0);
  }
  30% {
    clip: rect(54px, 9999px, 84px, 0);
  }
  40% {
    clip: rect(37px, 9999px, 29px, 0);
  }
  50% {
    clip: rect(20px, 9999px, 68px, 0);
  }
  60% {
    clip: rect(79px, 9999px, 83px, 0);
  }
  70% {
    clip: rect(34px, 9999px, 14px, 0);
  }
  80% {
    clip: rect(87px, 9999px, 46px, 0);
  }
  90% {
    clip: rect(63px, 9999px, 94px, 0);
  }
  100% {
    clip: rect(48px, 9999px, 42px, 0);
  }
}





/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: 700px; }

  .has-scrollbar::-webkit-scrollbar-button { width: 100px; }



  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }



  /**
   * NAVBAR
   */

  .navbar-link { --fs-8: 15px; }



  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

  .modal-avatar-box img { width: 80px; }



  /**
   * PORTFOLIO
   */

  .article-title { padding-bottom: 20px; }

  .filter-select-box { display: none; }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { color: var(--light-gray-70); }

  .filter-item button.active { color: var(--orange-yellow-crayola); }

  /* portfolio and blog grid */

  .project-list, .blog-posts-list { grid-template-columns: 1fr 1fr; }



  /**
   * CONTACT
   */

  .input-wrapper { grid-template-columns: 1fr 1fr; }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }
  
}





/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);

  }



  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }



  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }



  /**
   * NAVBAR
   */

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link { font-weight: var(--fw-500); }



  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /* testimonials */

  .testimonials-item { min-width: calc(50% - 15px); }

  /* clients */

  .clients-item { min-width: calc(25% - 38px); }



  /**
   * PORTFOLIO
   */

  .project-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * BLOG
   */

  .blog-banner-box { height: 230px; }

}





/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

  body::-webkit-scrollbar-track { background: var(--smoky-black); }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
                inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, 0.15); }

  body::-webkit-scrollbar-button { height: 60px; }



  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }



  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }



  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info { flex-direction: column; }

  .avatar-box img { width: 150px; }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title { margin: auto; }

  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }



  /**
	 * RESUME
	 */

  .timeline-text { max-width: 700px; }

}

.name {
  display: flex;
  align-items: center;
}

.verified-badge {
  margin-left: 5px;
  margin-top: 5px;   /* Atur jarak atas sesuai kebutuhan */
}


.contact-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #25D366;
  border: none;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15),
              0 0 15px rgba(37, 211, 102, 0.5); /* Efek glow */
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animasi Pop */
@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Dots Animation */
@keyframes loading {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

/* Animasi tiga titik bergelombang */
@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-10px);
  }
}

.loading-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  display: inline-block;
  width: 5px; /* Perkecil lebar */
  height: 5px; /* Perkecil tinggi */
  margin: 0 1px; /* Perkecil margin */
  background-color: #fff;
  border-radius: 50%;
  animation: wave 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

/* CSS untuk loading Website */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1; /* Tambahkan opacity */
  transition: opacity 0.5s ease; /* Tambahkan transisi untuk efek memundar */
}
.loading-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.loading-bar {
  width: 100%;
  height: 5px;
  background-color: #3498db;
  animation: loading 2s infinite;
}
@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

.username {
  font-size: 14px; /* Ukuran font untuk username */
  color: #888; /* Warna teks untuk username */
  margin-top: -5px; /* Jarak antara nama dan username */
  display: block; /* Membuat elemen menjadi block untuk margin */
}

/* Kelas untuk mengatur posisi di Android */
.position-left {
  text-align: left; /* Mengatur teks ke kiri */
  margin-left: -2.4px; /* Mengatur margin kiri negatif */
}

/* Kelas untuk mengatur posisi di Windows */
@media (min-width: 768px) {
  .username {
    text-align: center; /* Mengatur teks agar berada di tengah */
    margin-left: 0; /* Mengatur margin kiri menjadi 0 */
  }
}

/* Bagian Hastag */
.hashtag-container {
    display: flex; /* Mengatur kontainer sebagai flexbox */
    gap: 10px; /* Jarak antar elemen */
    justify-content: center; /* Menyusun elemen di tengah */
    flex-wrap: wrap; /* Membungkus elemen jika diperlukan */
    margin-top: 40px; /* Jarak atas yang ditambahkan */
}

.hashtag-card {
    background-color: #222224; /* Warna latar belakang */
    padding: 5px; /* Jarak dalam */
    border-radius: 5px; /* Sudut melengkung */
    transition: background-color 0.3s; /* Efek transisi saat hover */
    box-shadow: var(--shadow-2); 
}

.hashtag-card:hover {
  background-color: #a2a2a281; /* Warna latar belakang */
}

.hashtag {
    font-size: 14px; /* Ukuran font */
    color: #d5d5d5; /* Warna teks */
    font-weight: 500; /* Ketebalan font */
}
/* Bagian Hastag End */

/* BAGIAN PLAY AUDIO */
#audio-controls {
  display: flex;
  align-items: center;
  background-color: rgba(65, 65, 65, 0.231); /* Ubah menjadi transparan */
  backdrop-filter: blur(2px); /* Tambahkan efek blur */
  border-radius: 20px;
  padding: 10px;
  position: fixed;
  right: 5px;
  bottom: 70px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite; /* Tambahkan efek animasi melayang */
  opacity: 1; /* Pastikan kontrol audio terlihat saat dimunculkan */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Tambahkan transisi untuk memudar dan bergerak */
}

@keyframes float {
  0% { transform: translatey(0); }
  50% { transform: translatey(-5px); } /* Mengangkat sedikit */
  100% { transform: translatey(0); }
}

#audio-controls.audio-hidden {
  opacity: 0;
  transform: translateX(100%); /* Menggeser ke kanan */
}

#audio-controls.audio-visible {
  opacity: 1;
  transform: translateX(0); /* Kembali ke posisi awal */
}

/* Efek animasi putaran pada song-image */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.song-image {
  width: 50px;
  height: 50px;
  background-color: #aaf8e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  margin: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  border: 2px solid #464645;
  transition: transform 0.3s ease-in-out; /* Menambahkan transisi untuk animasi */
}

/* Tambahkan kelas untuk mengaktifkan animasi putaran */
.song-image.playing {
  animation: spin 1s linear infinite; /* Menambahkan animasi putar */
}

.audio-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5656561e;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  margin: 0 5px;
  transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Efek melayang */
.audio-button:hover {
  background-color: #6565654c;
  transform: translateY(-5px) scale(1.05); /* Mengangkat dan sedikit memperbesar tombol saat disorot */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.audio-button:active {
  transform: scale(0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #4a4a4a00;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  position: fixed;
  right: -45px;
  bottom: 80px;
  z-index: 1001;
  transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 50px;
  animation: float 3s ease-in-out infinite; /* Tambahkan efek animasi melayang */
}

/* Efek melayang untuk toggle button */
.toggle-button:hover {
  background-color: #6565654c;
  transform: translateY(-5px) scale(1.05); /* Mengangkat dan sedikit memperbesar tombol saat disorot */
}

.toggle-button:active {
  transform: scale(0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-left: 5px; /* Spasi tambahan untuk panah kiri */
}

.toggle-button.hide-button {
  display: none;
  opacity: 0; /* Pastikan tombol tersembunyi */
  transform: translateX(100%); /* Menggeser ke kanan */
}

.toggle-button.show-button {
  display: flex;
  opacity: 1;
  transform: translateX(0); /* Kembali ke posisi awal */
}
/* BAGIAN END AUDIO */

/* INI ADALAH CHATBOT BISA ATUR DI SINI */
.card {
  width: 61vw; /* Ubah lebar menjadi 80vw untuk perangkat Android */
  height: 90vh; /* Tinggi tetap */
  background-color: #222224; /* Warna latar belakang */
  margin: 5vw auto;
  border-radius: 10px; /* Menambahkan border-radius */
  /* box-shadow: var(--shadow-2); */
  overflow: hidden; /* Menyembunyikan overflow */
  display: flex;
  flex-direction: column;
}

/* Media query untuk perangkat Android */
@media (max-width: 768px) {
  .card {
    width: 86vw; /* Lebar lebih besar untuk perangkat Android */
  }
}

/* Header */
#header {
  display: flex;
  justify-content: center; /* Menyelaraskan teks ke tengah */
  align-items: center;
  padding: 1vh;
  background-color: #2c2c2c;
  color: #fff;
  border-bottom: 1px solid #fff; /* Menambahkan garis bawah */
}

#header h1 {
  font-size: 2.5vh; /* Sesuaikan ukuran font */
  font-family: sans-serif;
  margin: 0;
}

/* Message Section */
#message-section {
  flex: 1;
  padding: 2vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #90a4ae #1e1e1e;
}

#message-section::-webkit-scrollbar {
  width: 10px;
}

#message-section::-webkit-scrollbar-track {
  background: #1e1e1e;
}

#message-section::-webkit-scrollbar-thumb {
  background-color: #90a4ae;
  border-radius: 6px;
  border: 3px solid #1e1e1e;
}

.message {
  position: relative; /* Tambahkan posisi relatif */
  margin: 1.5vh 0;
  padding: 1vh;
  border: 0.15vh solid #ababab;
  border-radius: 0 1.5vh 1.5vh 1.8vh;
  background-color: #2c2c2c; /* Warna latar belakang pesan */
  clear: both;
  max-width: 85%;
  word-wrap: break-word;
  color: #fff;
  animation: popIn 0.3s ease; /* Menambahkan animasi pop */
  display: flex; /* Tambahkan display flex */
  align-items: center; /* Posisikan item di tengah secara vertikal */
}

#user {
  float: right;
  border-radius: 1.5vh 0 1.5vh 1.8vh;
  border: 0.15vh solid #ababab;
  background-color: #3c3c3c; /* Warna latar belakang pesan pengguna */
  color: #fff;
  animation: popIn 0.3s ease; /* Menambahkan animasi pop */
}

.profile-pic {
  margin-right: 1vh; /* Tambahkan margin kanan */
}

.icon-container {
  display: none; /* Sembunyikan ikon secara default */
  position: absolute;
  bottom: -20px; /* Posisikan ikon di bawah pesan */
  right: 10px; /* Posisikan ikon di kanan */
}

.message:hover .icon-container {
  display: flex; /* Tampilkan ikon saat pesan disorot */
  gap: 5px; /* Jarak antara ikon */
}

.ChatBot-text {
  margin-right: 10px; /* Spasi antara ikon dan teks */
  color: #d5d5d5; /* Warna teks */
}

/* Input Section */
#input-section {
  display: flex;
  align-items: center;
  padding: 1vh; /* Sesuaikan padding */
  background-color: #2c2c2c; /* Warna latar belakang */
  border-top: 1px solid #fff; /* Menambahkan garis atas */
}

#input {
  flex: 1;
  height: 5vh; /* Sesuaikan tinggi */
  border: none;
  border-radius: 10px; /* Menambahkan border-radius */
  padding: 0.5vh; /* Menambahkan padding */
  outline: none;
  background-color: #3c3c3c; /* Warna latar belakang */
  color: #ffffff;
  font-size: 2vh; /* Sesuaikan ukuran font */
}

.send, .clear, .voice {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0 1vh;
  font-size: 2.5vh; /* Sesuaikan ukuran font */
  outline: none;
  color: #ffffff; /* Warna teks */
  transition: transform 0.1s ease; /* Menambahkan transisi untuk efek pop */
}

.send:active, .clear:active, .voice:active {
  transform: scale(0.9); /* Efek pop saat tombol diklik */
}

.clear svg {
  width: 2.5vh; /* Sesuaikan ukuran SVG */
  height: 2.5vh; /* Sesuaikan ukuran SVG */
  fill: #ffffff; /* Warna SVG */
}

/* Animasi popIn */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loading-dots {
    display: inline-block;
    font-size: 12px; /* Perkecil ukuran font */
}

.loading-dots span {
    animation: blink 1s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.profile-pic {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.user-pic svg {
    fill: #05daff; /* Warna untuk user */
}

.bot-pic img {
    vertical-align: middle;
}
/* INI ADALAH END CHATBOT BISA ATUR DI SINI */

/* Animasi Pop */
@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Dots Animation */
@keyframes loading {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

/* Animasi tiga titik bergelombang */
@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-5px); /* Perkecil tinggi gelombang */
  }
}

.loading-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  display: inline-block;
  width: 5px; /* Perkecil lebar */
  height: 5px; /* Perkecil tinggi */
  margin: 0 1px; /* Perkecil margin */
  background-color: #fff;
  border-radius: 50%;
  animation: wave 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

/* Ini Adalah Bagian Like Dan Views */
.counter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  color: white;
}

.like-container, .view-container {
  display: flex;
  align-items: center;
}

.like-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 5px;
}

.github-link {
  margin-left: auto;
  display: inline-block;
}

.github-link img {
  width: 23px;
  height: 23px;
}

.like-container img {
  width: 20px;
  height: 20px;
}

.view-container ion-icon {
  margin-right: 5px;
}

/* BAGIAN COMMENT */
#comments-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.comment-item {
  background-color: #222224; /* Ganti dengan warna gelap yang lebih elegan */
  color: #ecf0f1; /* Ubah teks menjadi warna terang */
  padding: 15px;
  margin: 10px 0; /* Menjaga jarak antara komentar */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border 0.3s ease; /* Untuk efek animasi */
  border: 2px solid transparent; /* Garis kontur awal tidak terlihat */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px; /* Minimum tinggi card komentar */
}

.comment-item:hover {
  transform: translateY(-8px); /* Efek mengangkat komentar saat disorot */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Efek bayangan lebih dalam */
  background-color: #5c646b75; /* Warna latar belakang lebih terang saat disorot */
  border: 2px solid #ecf0f1; /* Garis kontur saat disorot, warna kontur disesuaikan dengan warna teks */
}

/* Teks judul dan paragraf */
.comment-item strong {
  font-size: 18px;
  color: #ecf0f1; /* Warna judul yang terang */
  display: flex;
  align-items: center;
}

.comment-item svg {
  margin-left: 8px;
  color: #3498db; /* Warna biru untuk ikon verifikasi */
}

.comment-item p {
  margin-top: 10px;
  font-size: 16px;
  color: #bdc3c7; /* Teks komentar yang lebih terang */
  line-height: 1.5;
  flex: 1; /* Agar pesan komentar mengisi sisa ruang */
}

/* Tanggal dan waktu */
.comment-item em {
  font-size: 12px;
  color: #95a5a6;
  position: absolute;
  bottom: 10px;
  right: 10px;
  white-space: nowrap; /* Mencegah teks terpotong dan memaksa tetap dalam satu baris */
  overflow: hidden;
  text-overflow: ellipsis; /* Menambahkan elipsis jika teks terlalu panjang */
}

/* Responsive Design */
@media (max-width: 768px) {
  #comments-list {
      max-width: 100%;
  }
}

/* Animasi Fade In untuk komentar yang baru ditambahkan */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px); /* Muncul dari bawah */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Animasi Scroll Appear */
@keyframes scrollAppear {
  from {
    opacity: 0;
    transform: translateY(100px); /* Muncul dari bawah */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-appear {
  opacity: 0; /* Dimulai dengan tidak terlihat */
  animation: scrollAppear 0.6s forwards;
}

.comment-profile-pic {
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.comment-profile-pic {
  border-radius: 50%; /* Membuat gambar bulat */
  margin-right: 15px; /* Memberi jarak antara gambar dan teks */
  vertical-align: middle; /* Menyelaraskan gambar dengan teks */
  border: 2px solid white; /* Menambahkan garis kontur berwarna putih */
}
/* Bagian Selesaainya Comment */