#home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.text-wrapper{
    width: 100%;
    height: 85%;
    display: flex;
    align-items: center;
    border-radius: 20px;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* agar teks tetap terbaca */
}

.text-wrapper h1 {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.375rem, 5vw, 3.563rem); /* ≈ 22px - 57px */
    line-height: clamp(1.875rem, 6vw, 4.5rem); /* ≈ 30px - 72px */
    text-align: center;
}

.text-wrapper p{
    font-size: clamp(0.75rem, 1.5vw, 1rem); /* ≈ 12px - 16px */
}

.build-now {
    display: inline-flex; /* Gunakan inline-flex supaya tidak lebarkan blok penuh */
    justify-content: center;
    align-items: center;
    font-weight: lighter;
    font-size: clamp(0.75rem, 2.2vw, 1rem); /* ≈ 12px - 16px */
    padding: 10px clamp(2rem, 8vw, 3.75rem); /* responsif padding horizontal */
    gap: clamp(0.3rem, 1vw, 1rem); /* responsif gap */
    transition: gap 0.4s ease-in-out, color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, font-weight 0.3s ease;
    color: white;
    opacity: 0.8;
    font-weight: 300;
    border-radius: 8px;
    border: 0.2px solid white;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.03); /* sangat tipis dan bening */
    backdrop-filter: blur(4px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* agar teks tetap terbaca */
}

.build-now i {
    opacity: 0.6; /* arrow tampak lebih ringan */
    font-size: clamp(0.75rem, 1.8vw, 1rem); /* ≈ 12px - 16px */
    transform: translateX(clamp(1px, 0.5vw, 2px));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.build-now:hover {
    gap: 1rem;
    border: 1px solid var(--primary-color);
    font-weight: bold;
    color: white;
    opacity: 1;
}

.build-now:hover i {
    opacity: 1;
    transform: translateX(clamp(4px, 1.5vw, 6px));
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* semi transparan */
    z-index: 0;
}

/* Tablet */
@media (max-width: 992px) {
  #home {
    height: 60vh;
  }

  .content-wrapper {
    height: 45vh;
  }

  .text-wrapper {
    flex-direction: column;
    padding: 0 1.5rem;
    text-align: center;
  }

  .text-wrapper h1 {
    font-size: 42px;
    line-height: 54px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #home {
    height: 55vh;
  }

  .content-wrapper {
    height: 40vh;
    padding: 0 1rem;
  }

  .text-wrapper {
    height: auto;
    margin-top: 30px;
    padding: 1rem;
    border-radius: 16px;
  }

  .text-wrapper h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .build-now {
    font-size: 14px;
  }

  .build-now i {
    font-size: 14px;
  }
}

/* Extra Small Devices (≤ 400px) */
@media (max-width: 400px) {
  #home {
    height: 50vh;
  }

  .content-wrapper {
    height: 35vh;
    padding: 0 0.5rem;
  }

  .text-wrapper {
    height: auto;
    padding: 0.75rem;
    margin-top: 152px;
    border-radius: 12px;
    flex-direction: column;
  }

  .text-wrapper h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .build-now {
    font-size: 13px;
    gap: 0.3rem;
  }

  .build-now i {
    font-size: 13px;
  }
}

/* Extra Extra Small Devices (≤ 320px) */
@media (max-width: 320px) {
  #home {
    height: 48vh;
  }

  .content-wrapper {
    height: 32vh;
    padding: 0 0.5rem;
  }

  .text-wrapper {
    height: auto;
    padding: 0.6rem;
    margin-top: 95px;
    border-radius: 10px;
    flex-direction: column;
  }

  .text-wrapper h1 {
    font-size: 18px;
    line-height: 26px;
  }

  .build-now {
    font-size: 12px;
    gap: 0.2rem;
  }

  .build-now i {
    font-size: 12px;
    transform: translateX(1px);
  }

  .build-now:hover i {
    transform: translateX(4px);
  }
}

@media (max-width: 600px) {
  #home {
    padding-top: 80px;
  }
}

.cta-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.rotating-text-wrapper {
  display: inline-block;
  transition: width 0.4s ease; /* width akan transisi halus */
  white-space: nowrap;
}

.rotating-text {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
  white-space: nowrap;
}

/* Animasi keluar */
.rotating-text.slide-out {
  transform: translateY(-100%);
  opacity: 0;
}

/* Animasi masuk */
.rotating-text.slide-in {
  transform: translateY(100%);
  opacity: 0;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    background: linear-gradient(to top, #151519 0%, #1B1B22 100%);
    border-radius: 30px;
    padding: 10px 14px;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    white-space: nowrap;
    max-width: 56px; /* width of icon only */
    transition: max-width 0.4s ease, padding-right 0.4s ease;
}

.whatsapp-icon.show {
    opacity: 1;
    pointer-events: auto;
}

.whatsapp-icon:hover {
    max-width: 200px;
    padding-right: 20px;
}

.whatsapp-text {
    color: rgba(255, 255, 255, .8);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

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

