.bg {
  background-image: url("../asset/background.jpg");
  background-size: cover;          /* scale to cover entire screen */
  background-repeat: repeat;    /* prevent tiling */
  background-position: center top;  /* makes it stay in place while scrolling */
    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: #006869;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-button:hover {
  background-color: #1f9ea0;
}

.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;
}

* {
  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: #006869;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.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 #43655a;
    border-radius: 30px;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    background-color: #c0c0c0;
}

.btn {
    border-radius: 30px;
    padding: 1.94vh 5vw;
    cursor: pointer;
    color: #43655a;
    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: 0.78vw;
}

.btn:hover {
    background-color: #43655a;
    color: white;
}

.btn.active {
    background-color: #43655a;
    color: white;
}

.content-img {
    display: flex;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    aspect-ratio: 5/2;
    width: 100%;
    border-radius: 12px; 
    overflow: hidden;
}

/* overlay text */
.content-img .tulisan {
  position: absolute;
  inset: 0;                  
  display: flex;
  flex-direction: column;     
  justify-content: center;  
  text-align: left;    
  padding: 1rem;              
  background: #000000a6;
  color: #77a696;
  z-index: 3;
  width: 40%;
  height: 100%;
  left: -40%;
  font-size: 1vw;
  transform-origin: left;
  transition: transform 0.5s;
}

.content-img:hover .tulisan {
    transform: translateX(100%);
    transition-duration: 0.5s;
}

.tulisan p {
    font-size: 1vw;
    color: white !important;
}


.img-wrapper {
    overflow: hidden;   
    border-radius: 12px;
    height: 100%;
    width: 100%;
}

.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 {
      transform: none;
      position: absolute;
      inset: 0;                  
      display: flex;
      flex-direction: column;     
      justify-content: center;  
      text-align: left;    
      padding: 1rem;              
      background: #000000a6;
      color: #77a696;
      z-index: 3;
      width: 40%;
      height: 100%;
      left: 0;
      font-size: 2vw;
      transform-origin: left;
      transition: transform 0.5s;
    }

    .content-img .img-wrapper img {
      transform: scale(1.3);
    }

    .content-img:hover .tulisan {
      transform: none
    }
    
    .tulisan p {
    font-size: 2vw;
    color: white !important;
    }
}


.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;
}

.text-base {
  font-size: 1.125rem;   /* text-lg */
  color: #fff;
  font-weight: 700;
  position: relative;     /* anchor underline absolute */
  display: inline-block;  
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}
.text-base:hover {
  transform: scale(1.1);
  color: #f2fff3ff;
  filter: drop-shadow(0 0 10px rgba(81, 255, 130, 0.8));
}

/* underline */
.underline-base {
  position: absolute;
  left: 0;
  bottom: -2px;                 
  width: 0;                     
  height: 2px;                  
  /*background-color: #00e642;*/
  background-image: linear-gradient(90deg, #60866bff, #ace2d2ff);
  transition: width 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* hover parent = melebar */
.text-base:hover .underline-base {
  width: 100%;
}

.text-active {
  color: #f2fff3ff;
  filter: drop-shadow(0 0 10px rgba(81, 255, 130, 0.8));
}

.underline-active {
  width: 100%;
  /* box-shadow: 0 0 8px rgba(0,230,66,0.8); */
  background-image: linear-gradient(90deg, #60866bff, #ace2d2ff);
  transition: width 0.3s ease-out, box-shadow 0.3s ease-out;
}

.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 10px 30px rgba(0,0,0,0.3));
}

/* The orbit container - does NOT rotate */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-width) * 2);
  height: calc(var(--orbit-height) * 2);
  transform: translate(-50%, -50%);
  /* NO animation here - orbit container is static */
}

/* Individual orbiting images - each follows oval path */
.orbit img {
  position: absolute;
  width: var(--image-size);
  height: var(--image-size);
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border: clamp(1px, 0.5vw, 4px) solid rgba(255,255,255,0.9);
  top: 50%;
  left: 50%;
  transform-origin: center;
}

/* Each image moves along the oval path individually */
.orbit img[style*="--i:0"] {
  animation: ovalPath0 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:1"] {
  animation: ovalPath1 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:2"] {
  animation: ovalPath2 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:3"] {
  animation: ovalPath3 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:4"] {
  animation: ovalPath4 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:5"] {
  animation: ovalPath5 var(--rotation-speed) linear infinite;
}

.orbit img[style*="--i:6"] {
  animation: ovalPath6 var(--rotation-speed) linear infinite;
}

/* Oval path animations - each starts at different position */
@keyframes ovalPath0 {
  0%   { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  100% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
}

@keyframes ovalPath1 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  85.71% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
}

@keyframes ovalPath2 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  71.425% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
}

@keyframes ovalPath3 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  57.14% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
}

@keyframes ovalPath4 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  42.855% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
}

@keyframes ovalPath5 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  14.285% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  28.57% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
}

@keyframes ovalPath6 {
  0%   { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
  14.285% { transform: translate(-50%, -50%) translate(var(--orbit-width), 0px); }
  28.57% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * -0.782)); }
  42.855% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * -0.975)); }
  57.14% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * -0.434)); }
  71.425% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.901), calc(var(--orbit-height) * 0.434)); }
  85.71% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * -0.223), calc(var(--orbit-height) * 0.975)); }
  100% { transform: translate(-50%, -50%) translate(calc(var(--orbit-width) * 0.623), calc(var(--orbit-height) * 0.782)); }
}

/* Responsive design */
@media (max-width: 1024px) {
  :root {
    --orbit-width: 300px;
    --orbit-height: 150px;
    --image-size: 80px;
  }
  
  .logo {
    max-width: 250px;
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --orbit-width: 250px;
    --orbit-height: 125px;
    --image-size: 70px;
  }
  
  .logo {
    max-width: 200px;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  :root {
    --orbit-width: 180px;
    --orbit-height: 90px;
    --image-size: 50px;
  }
  
  .logo {
    max-width: 150px;
    max-height: 150px;
  }
}

.orbit img {
  position: absolute !important;
  width: var(--image-size) !important;
  height: var(--image-size) !important;
}

.btn-glow:hover {
  transform: scale(1);
  color: #f2fff3ff;
  filter: drop-shadow(0 0 10px rgba(81, 255, 130, 0.8));
}
@media (max-width: 640px) {
  .btn-glow:hover {
    filter: none;
  }
}
.active-btn {
  background-color: #43655a;
}