.bg {
  background-image: url("../asset/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 62%;
  background-attachment: fixed;
  width: 100%;
}

.citycenter .grid,
.urban .grid {
  grid-template-columns: repeat(12, 1fr) !important;
}

.project-container:hover .name-container {
  display: flex;
  position: absolute;
}

.citycenter .grid .project-container,
.urban .grid .project-container {
  grid-column: span 6;
}

.citycenter .grid .project-container:last-child:nth-child(2n - 1),
.urban .grid .project-container:last-child:nth-child(2n - 1) {
  grid-column: span 6;
  grid-column-end: -4;
}

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup {
  max-width: 100%;
  max-height: 100%;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.popup-content {
  height: 80%;
}

.close-button {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #8078C5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-button:hover {
  background-color: #6b63b5;
}

.fit-content {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('../asset/fonts/LemonMilk.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins Black';
  src: url('../asset/fonts/Poppins-Black.ttf') format('truetype');
  font-weight: 900; 
  font-style: normal;
}

@font-face {
  font-family: 'Poppins SemiBold';
  src: url('../asset/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Lemon Milk';
  box-sizing: border-box;
  letter-spacing: 2px;
}

@keyframes circlingGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

.glow {
  animation: circlingGlow 2s ease-in-out infinite;
}

.shadow-white {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Styles for the loading animation */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #8078C5;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}


.content {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.gallery-karya{
    z-index: 1;
    width: 100%;
    margin-bottom: 15vh;
}

#btn-gallery-container{
    width: 100%;
    margin-top: 8.91vh;
    margin-bottom: 5.67vh;
}

.bates{
    border: 2px solid #8078C5;
    border-radius: 30px;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    background-color: rgba(128,120,197,0.2);
}

.btn {
    border-radius: 30px;
    padding: 1.94vh 5vw;
    cursor: pointer;
    color: white;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 2.75vh;
}

.btn:nth-of-type(1),
.btn:nth-of-type(2),
.btn:nth-of-type(3){
    margin-right: 0vw;
}

.content-img {
    display: flex;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    aspect-ratio: 2/1;
    width: 100%;
    border-radius: 60px; 
    overflow: hidden;
}

@media (max-width: 768px) {
  .content-img {
    border-radius: 20px;
  }
}

/* overlay text */
.content-img .tulisan {
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: calc(50% + 2px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  padding: 1rem 1.6rem 6%;
  gap: 0.15rem;
  background: rgba(224, 219, 255, 0.8);
  color: #6357AB;
  font-family: 'Poppins SemiBold', sans-serif;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}
.content-img:hover .tulisan {
  opacity: 1;
  transform: translateX(0);
}

.content-img .tulisan .nomor,
.content-img .tulisan .nama,
.content-img .tulisan .karya {
  color: #6357AB !important;
  margin: 0;
  font-family: 'Poppins SemiBold', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.content-img .tulisan .nomor {
  font-size: clamp(1.1rem, 1.7vw, 1.8rem);
}

.content-img .tulisan .nama {
  font-size: 1vw;
}

.content-img .tulisan .karya {
  font-size: clamp(1.1rem, 1.7vw, 1.8rem);
}


.img-wrapper {
    overflow: hidden;   
    border-radius: 60px;
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
  .img-wrapper {
    border-radius: 20px;
  }
}

.img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.1);         
    transition: transform 0.5s ease; 
    will-change: transform;         
}

.content-img:hover .img-wrapper img {
    transform: scale(1.3) translateX(10%); 
}

@media (max-width: 768px) {
  .content-img .tulisan {
    width: calc(50% + 2px);
    padding: 0.8rem 1.2rem 10%;
    opacity: 0;
    transform: translateX(-8px);
  }

  .content-img:hover .tulisan {
    opacity: 1;
    transform: translateX(0);
  }

  .content-img .tulisan .nomor {
    font-size: clamp(0.75rem, 2.4vw, 1rem);
  }

  .content-img .tulisan .nama {
    font-size: 2vw;
  }

  .content-img .tulisan .karya {
    font-size: clamp(0.75rem, 2.4vw, 1rem);
  }
}

.row{
    width: 76%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.row,
.row > .column {
  padding: 8px;
}

.row:after {
    content: "";
    display: flex;
    clear: both;
}

.column {
  display: none; 
}
.column.show {
  display: block; 
}

/* CSS Variables for the oval orbit path */
:root {
  /* Orbit size adapts to screen */
  --orbit-width: clamp(300px, 70vw, 600px);   /* min 300px, scales up to 70% viewport width, max 900px */
  --orbit-height: calc(var(--orbit-width) / 2); /* keep elliptical shape (half of width) */

  /* Image size responsive to screen */
  --image-size: clamp(80px, 15vw, 150px);     /* min 80px, scales, max 200px */

  /* Speed scales with number of images */
  --rotation-speed: calc(8s * var(--total-images)); 
  --total-images: 7;
}

/* Container styling */
.logo-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Main orbit container */
.logo-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central logo styling */
.logo {
  position: relative;
  z-index: 10;
  object-fit: contain;
  filter: drop-shadow(0 8px 4px rgba(0,0,0,0.5));
}



/* Responsive design */
@media (max-width: 1024px) {
  :root {
    --orbit-width: 300px;
    --orbit-height: 150px;
    --image-size: 80px;
  }
  
  .logo {
    max-width: 70vw;
    max-height: 50vh;
    /* max-height: 250px; */
  }

  .logo-container {
    max-height: 50vh;
  }

  #btn-gallery-container{
    width: 100%;
    margin-top: 3vh;
    margin-bottom: 5.67vh;
  }
}

@media (max-width: 768px) {
  :root {
    --orbit-width: 250px;
    --orbit-height: 125px;
    --image-size: 70px;
  }
  
  .logo {
    max-width: 400px;
    max-height: 200px;
  }

  #btn-gallery-container{
    width: 100%;
    margin-top: 1vh;
    margin-bottom: 5.67vh;
  }
}

@media (max-width: 480px) {
  :root {
    --orbit-width: 180px;
    --orbit-height: 90px;
    --image-size: 50px;
  }
  
  .logo {
    max-width: 300px;
    max-height: 150px;
  }
}

.orbit img {
  position: absolute !important;
  width: var(--image-size) !important;
  height: var(--image-size) !important;
}

@media (max-width: 640px) {
  .btn-glow:hover {
    filter: none;
  }
}
.active-btn {
  background-color: transparent !important; /* Let the highlight bar show */
  color: white;
  position: relative;
  z-index: 10;
}
#filter-bar button {
  min-width: 0;
  width: 33.3333%;
  text-align: center;
  border-radius: 9999px;
}

/* ========================================= */
/*             Cast Your Vote                */
/* ========================================= */

.cast-your-vote-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
}

.cast-your-vote-container {
  width: 91.666667%;
  border-radius: 150px;
  background-color: #8078c5; /* Warna solid sesuai permintaan */
  box-shadow: 0 0 30px #3c1b75aa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Pseudo-element untuk melapis gambar dengan warna background */
.cast-your-vote-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit; /* Supaya mengikuti lengkungan bungkus luarnya */
  background-image: url("../asset/projects/BG_CastYourVote.png");
  background-size: cover;
  /* Catatan: Untuk menggeser gambar naik-turun, atur persentase kedua. 0% itu paling atas, 50% itu tengah, 100% itu gambar paling bawah ditarik ke atas. Semakin kecil angkanya, gambar seolah ditarik ke atas */
  background-position: center 70%; 
  background-repeat: no-repeat;
  opacity: 0.65; /* transparansi gambar 90% (atau opacity 0.9) */
  z-index: 0; /* agar gambar berada di belakang teks tapi di atas warna solid */
  pointer-events: none;
}

/* Supaya wrapper gambar / teks tidak tertimpa image yang absolute, kita beri position relative */
.cast-your-vote-img-wrapper,
.cast-your-vote-content {
  position: relative;
  z-index: 10;
}

.cast-your-vote-img-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.cast-your-vote-img {
  width: 100%;
  max-width: 60vw;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.cast-your-vote-content {
  position: relative;
  z-index: 10;
  margin-top: -30px; /* Dorongan teks ke atas */
}

.cast-your-vote-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.225;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.cast-your-vote-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.cast-your-vote-btn,
.cast-your-vote-btn-link {
  font-family: 'Poppins', sans-serif;
  background-color: #2D1656;
  color: #c4bbff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px; /* Tinggi round-nya */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: none;
}

.cast-your-vote-btn:hover,
.cast-your-vote-btn-link:hover {
  background-color: #1f0f3c;
  transform: scale(1.05);
}

/* Cast Your Vote - Modal Overlay */
.cast-your-vote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cast-your-vote-modal-overlay.hidden {
  display: none;
}

.cast-your-vote-modal-overlay.opacity-100 {
  opacity: 1;
}

.cast-your-vote-modal-box {
  background-color: #c4bbff;
  background-image: url("../asset/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  padding: 2rem;
  max-width: 24rem;
  width: 91.666667%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border: 4px solid #8078c5;
}

.cast-your-vote-modal-box.scale-100 {
  transform: scale(1);
}

.cast-your-vote-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  background-color: #8078c5;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.cast-your-vote-modal-desc {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.cast-your-vote-modal-qr-wrapper {
  background-color: #f3f4f6;
  padding: 1rem;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.cast-your-vote-modal-qr {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cast-your-vote-modal-close {
  background-color: #2D1656;
  color: #c4bbff;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
}

.cast-your-vote-modal-close:hover {
  background-color: #1f0f3c;
}

/* Cast Your Vote - Media Queries */
@media (max-width: 639px) {
  /* Khusus tampilan hape (layar kecil) */
  .cast-your-vote-container {
    width: 85%;
    border-radius: 40px; /* Di HP jangan terlalu bulat biar tidak jadi lingkaran */
    padding: 2rem 1.5rem;
  }

  .cast-your-vote-img {
    max-width: 65vw;
  }

  .cast-your-vote-content {
    margin-top: -25px; /* Dorongan teks untuk hape */
  }

  .cast-your-vote-text {
    font-size: 0.75rem; /* Font dikecilkan agar pas */
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .cast-your-vote-btn,
  .cast-your-vote-btn-link {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    width: 100%;
    max-width: 250px;
  }

  .cast-your-vote-modal-box {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .cast-your-vote-modal-qr {
    width: 10rem;
    height: 10rem;
  }
}

@media (min-width: 640px) {
  /* Media query specific for Cast Your Vote */
  .cast-your-vote-img {
    max-width: 320px;
  }
  .cast-your-vote-content {
    margin-top: -20px; /* Dorongan teks ke atas untuk layar besar */
  }
  .cast-your-vote-buttons {
    flex-direction: row;
    gap: 1.2rem;
  }
  .cast-your-vote-btn,
  .cast-your-vote-btn-link {
    width: auto;
  }
  .cast-your-vote-modal-qr {
    width: 14rem;
    height: 14rem;
  }
  .cast-your-vote-container {
    width: 75%;
    max-width: 56rem;
    border-radius: 170px;
    padding: 5rem 4rem;
  }
  .cast-your-vote-text {
    font-size: 0.7rem;
  }

  .cast-your-vote-btn,
  .cast-your-vote-btn-link {
    padding: 0.75rem 2rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) {
  /* Media query specific for Cast Your Vote */
  .cast-your-vote-content {
    margin-top: -20px; /* Dorongan teks ke atas untuk layar besar */
  }
  .cast-your-vote-container {
    width: 75%;
    max-width: 56rem;
    padding: 5rem 5.6rem;
    border-radius: 170px;
  }
  .cast-your-vote-text {
    font-size: 0.9rem;
  }
}


/*========================CAST YOUR VOTE=======================================*/

@media (max-width: 768px) {
  #filter-bar {
    height: auto !important;
    padding: 0.5rem 0.25rem;
  }

  .btn {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.75rem !important;
  }
}

#highlight-bar {
  pointer-events: none;
}

/* New text highlight component */
.btn-highlight-text {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.5em 1.5em;
  background-color: transparent;
  transition: background 0.2s;
}

#filter-bar button:hover .btn-highlight-text {
  background-color: #8078C5cc;
}
