/* GENERAL STYLING & PALET WARNA */
:root {
  --warna-bg-gelap: #0d0d1e;
  --warna-kartu-gelap: rgba(22, 22, 43, 0.5);
  --warna-teks-utama: #ffffff;
  --warna-teks-subtle: rgba(235, 235, 255, 0.7);
  --gradient-utama: linear-gradient(90deg, #a755f7 0%, #30a0f5 100%);
  --warna-glow-1: #a755f7;
  --warna-glow-2: #30a0f5;
  --warna-border: rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--warna-bg-gelap);
  color: var(--warna-teks-utama);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 1. Atur pembungkusnya dengan Flexbox */
.logo span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo h2 {
  margin: 0;
  font-size: 1.6rem;
  
  /* --- TAMBAHKAN PROPERTI DI BAWAH INI --- */

  /* 1. Buat latar belakang gradien warna-warni */
  background: linear-gradient(
    90deg, 
    var(--warna-glow-1), 
    var(--warna-glow-2), 
    var(--warna-teks-utama),
    var(--warna-glow-1)
  );
  
  /* 2. Buat ukuran background 3x lebih lebar dari teksnya */
  background-size: 300% auto;
  
  /* 3. Potong background agar sesuai bentuk teks */
  background-clip: text;
  -webkit-background-clip: text; /* Untuk kompatibilitas browser lama */
  
  /* 4. Jadikan warna asli teks transparan */
  color: transparent;
  
  /* 5. Terapkan animasi untuk menggerakkan background */
  animation: running-text-color 4s linear infinite;
}

/* Tambahkan blok @keyframes ini di mana saja di file CSS Anda */
@keyframes running-text-color {
  from {
    /* Mulai dari posisi paling kiri */
    background-position: 0% center;
  }
  to {
    /* Pindah ke posisi paling kanan */
    background-position: -300% center;
  }
} 

/* EFEK GLOW AURORA */
.background-aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.background-aurora::before,
.background-aurora::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.3;
}
.background-aurora::before {
  background: radial-gradient(circle, var(--warna-glow-1), transparent 80%);
  top: -200px;
  left: -200px;
}
.background-aurora::after {
  background: radial-gradient(circle, var(--warna-glow-2), transparent 80%);
  bottom: -200px;
  right: -200px;
}

/* HEADER, NAVBAR, HERO, SECTIONS, KARTU, DLL. */
.main-header {
  background-color: rgba(13, 13, 30, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warna-border);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 0;
  align-items: center;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--warna-teks-utama);
}
.main-nav a {
  margin: 0 1.25rem;
  text-decoration: none;
  color: var(--warna-teks-subtle);
  font-weight: 500;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--warna-teks-utama);
}
.cta-button {
  background: var(--gradient-utama);
  color: var(--warna-teks-utama);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  
  /* Tampilan cahaya */
  background: #fff;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff;
  border-radius: 8px;
  
  /* Jalankan animasi keliling */
  animation: trace-border-line 4s linear infinite;
}

/* 3. Definisikan Animasi Keliling (mengubah posisi & bentuk) */
@keyframes trace-border-line {
  /* Mulai dari sisi atas, bergerak ke kanan */
  0% {
    width: 50px; height: 2px;
    top: 0; left: -50px; /* Mulai dari luar kiri */
  }
  25% {
    width: 50px; height: 2px;
    top: 0; left: 100%; /* Selesai di luar kanan */
  }

  /* Pindah ke sisi kanan, bergerak ke bawah */
  25.001% { /* Sedikit setelah 25% untuk "melompat" */
    width: 2px; height: 50px;
    top: -50px; left: calc(100% - 2px);
  }
  50% {
    width: 2px; height: 50px;
    top: 100%; left: calc(100% - 2px);
  }

  /* Pindah ke sisi bawah, bergerak ke kiri */
  50.001% {
    width: 50px; height: 2px;
    top: calc(100% - 2px); left: 100%;
  }
  75% {
    width: 50px; height: 2px;
    top: calc(100% - 2px); left: -50px;
  }

  /* Pindah ke sisi kiri, bergerak ke atas */
  75.001% {
    width: 2px; height: 50px;
    top: 100%; left: 0;
  }
  100% {
    width: 2px; height: 50px;
    top: -50px; left: 0;
  }
}


.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(167, 85, 247, 0.2);
}
.cta-button.large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.hero-section {
  position: relative;
  min-height: 20vh;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-content {
  text-align: center;
}
.hero-visual,
.hero-content {
  flex: 1;
}
.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-utama);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subheadline {
  font-size: 1.2rem;
  color: var(--warna-teks-subtle);
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.trusted-section,
.process-section,
.services-section,
.final-cta-section {
  padding: 6rem 2rem;
  background-color: transparent;
  position: relative;
  z-index: 2;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-utama);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--warna-teks-subtle);
}
.step-card,
.service-card {
  background-color: var(--warna-kartu-gelap);
  border: 1px solid var(--warna-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
   justify-content: flex-start;
}
.process-steps,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.step-icon,
.card-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  background: var(--gradient-utama);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.step-card h3,
.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--warna-teks-utama);
}
.step-card p,
.service-card p {
  color: var(--warna-teks-subtle);
}

/* MEMBERI GAYA KARTU PADA SELURUH SECTION PORTOFOLIO */
#portofolio {
  background-color: var(--warna-kartu-gelap);
  border-radius: 20px;
  border-top: 1px solid var(--warna-border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  padding: 5rem 2rem;
}

/* 3D PORTFOLIO CAROUSEL */
.portfolio-carousel-scene {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: 5rem;
  perspective: 1500px;
}
.portfolio-carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotate-carousel 30s linear infinite;
}
.portfolio-carousel-scene:hover .portfolio-carousel {
  animation-play-state: paused;
}
.portfolio-carousel-item {
  position: absolute;
  left: calc(50% - 160px);
  top: 10px;
  width: 320px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--warna-border);
  overflow: hidden;
}
.portfolio-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-carousel-item .portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1rem;
  color: var(--warna-teks-utama);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}
.portfolio-carousel-item .portfolio-info h3 {
  font-size: 1.25rem;
  margin: 0;
}
.portfolio-carousel-item .portfolio-info span {
  font-size: 0.9rem;
  color: var(--warna-teks-subtle);
}
.portfolio-carousel-item:nth-child(1) {
  transform: rotateY(0deg) translateZ(360px);
}
.portfolio-carousel-item:nth-child(2) {
  transform: rotateY(60deg) translateZ(360px);
}
.portfolio-carousel-item:nth-child(3) {
  transform: rotateY(120deg) translateZ(360px);
}
.portfolio-carousel-item:nth-child(4) {
  transform: rotateY(180deg) translateZ(360px);
}
.portfolio-carousel-item:nth-child(5) {
  transform: rotateY(240deg) translateZ(360px);
}
.portfolio-carousel-item:nth-child(6) {
  transform: rotateY(300deg) translateZ(360px);
}
@keyframes rotate-carousel {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-360deg);
  }
}

/* Penampung Tombol Portofolio */
.portfolio-button-container {
  text-align: center;
  margin-top: 4rem;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* EFEK HOVER KARTU */
.step-card:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 25px rgba(167, 85, 247, 0.5);
}

.step-card,
.service-card {
  background-color: var(--warna-kartu-gelap);
  border: 1px solid var(--warna-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  height: 100%;
  align-items: center;
  display: flex;
  flex-direction: column;
   justify-content: flex-start;
}

/* FINAL CTA & FOOTER */
.final-cta-section {
  background: var(--warna-kartu-gelap);
  text-align: center;
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.main-footer {
  text-align: center;
  padding: 4rem 2rem 2rem 2rem;
  background-color: transparent;
  border-top: 1px solid var(--warna-border);
  color: var(--warna-teks-subtle);
  margin-top: 6rem;
}
.cta-content h2 {
  font-size: 2.5rem;
}
.cta-content p {
  color: var(--warna-teks-subtle);
}

/* Styling untuk CTA Button ketika dinonaktifkan */
/* Styling untuk CTA Button ketika dinonaktifkan */
.cta-button.disabled {
  opacity: 0.5;
  /* Properti pointer-events: none; sudah dihapus */
  cursor: not-allowed;
}



/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .process-steps,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 2;
    margin-top: 3rem;
  }
}

/* =========================================
   PENYESUAIAN UNTUK TAMPILAN HANDPHONE
   ========================================= */
/* Tombol Hamburger hanya muncul di layar kecil */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--warna-teks-utama);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  html {
    font-size: 85%;
  }



  .hero-section {
    min-height: 25vh;
    padding: 13px 15px;
  }

  .portfolio-carousel-scene {
    transform: scale(0.5);
    max-width: 100%;
    align-items: center; /* <-- KESALAHAN SUDAH DIPERBAIKI */
    height: 150px;
    margin-top: -1rem;
     margin-bottom: 2rem;
  }

  .portfolio-button-container {
    text-align: center;
    margin-top: 1rem;
   
  }

  .process-section,
  .services-section,
  .final-cta-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hamburger-menu {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: rgba(13, 13, 30, 0.7);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--warna-border);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
  }

  .main-nav.is-active {
    right: 0;
  }

  .main-nav .cta-button {
    padding: 0.75rem 3rem;
  }
}

/* PERSIAPAN UNTUK ANIMASI GSAP */
/* Menyembunyikan elemen agar bisa dianimasikan saat muncul */

/*
.logo,
.main-nav a,
.header-container > .cta-button,

.hero-headline,
.hero-subheadline,
.hero-cta-group,
.hero-visual,

.section-header h2,
.section-header p,
.step-card,
.service-card,

.final-cta-section .cta-content > * {
  visibility: hidden;
}
   */