/* --- INIT ---= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---= NAVBAR ---= */
header {
  background: rgba(0, 0, 0, 0.200);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  max-width: 1250px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Context for absolute centering */
}

/* Brand Group */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Brand Text Styling - Gagah & Tegak */
.brand-text {
  font-family: 'Oswald', 'Arial', sans-serif;
  /* Strong font stack */
  font-weight: 800;
  /* Extra Bold */
  font-size: 1.35rem;
  /* Large enough to be readable */
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  /*text-shadow: 0 2px 4px rgba(0,0,0,0.3);*/
  white-space: nowrap;
}

header.scrolled {
  background: #0f172a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.navbar ul a:hover {
  background: rgba(255, 127, 0, 1);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  -webkit-backdrop-filter: blur(10px);
}

.navbar li a {
  color: #fff;
  font-weight: 500;
  padding: 5px 10px;
}

.btn-primary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.144);
  /* warna transparan */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(2px);
  /*border: 1px solid rgba(255, 255, 255, 0.35);*/
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.45);
}

/* ---= MOBILE MENU ---= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1002;
    /* Ensure above everything */
  }

  /* Centered Brand on Mobile */
  .brand-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    /* Compact for mobile */
    width: max-content;
    text-align: center;
    z-index: 1001;
  }

  .navbar-brand img {
    /* Ensure logo stays manageable */
    height: 35px;
    width: auto;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar ul.active {
    display: flex;
  }
}

/* ---= HERO ---= */
.hero {
  color: #fff;
  height: 90vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ---= SLIDER STYLES =--- */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Gabungan Parallax Scroll (Y) dan Mouse (X) */
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1.2);
  filter: blur(var(--parallax-blur, 0px));
  will-change: transform, filter;
  z-index: -1;
}

/* Overlay gradient agar text terbaca */
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0f172a99, rgba(0, 0, 0, .3));
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
  /* Parallax Content (berlawanan arah sedikit dengan BG) */
  transform: translate(var(--parallax-content-x, 0), var(--parallax-content-y, 0));
  opacity: var(--parallax-opacity, 1);
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
  align-content: center;
  justify-content: center;

  /* Animasi masuk saat slide berubah */
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Efek geser konten saat slide aktif */
.slide:not(.active) .hero-content {
  /*transform: translateX(50px);
      opacity: 0;*/


  /* Efek geser konten saat slide aktif */
}

.slide.active .hero-content {
  /* Reset transform handled by parallax logic via JS, 
         but we need initial state animation. 
         Conflict: JS sets transform directly. 
         Solution: We animate opacity mostly, and let JS handle position.
      */
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin: 0 auto 25px auto;
  max-width: 600px;
}

/* ---= SLIDER CONTROLS =--- */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  /* Agar klik tembus ke tengah */
}

.section-title h2 {
  text-align: center;
  color: #0b1f4d;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(5px);
  pointer-events: auto;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ---= SECTION ---= */
section {
  padding: 80px 20px;
  min-height: 95vh;
}


/* ---= SERVICES ZIG-ZAG LAYOUT ---= */
section#services {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

section#services>.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

section#services .section-title {
  text-align: center;
}

section .section-title p {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 10px;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---= SERVICES ZIG-ZAG LAYOUT REFACTORED =--- */
.services-zigzag {
  display: flex !important;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

/* Service Block - Container */
.service-block {
  display: flex !important;
  flex-direction: row;
  /* Default Desktop */
  align-items: stretch;
  background: #fff;
  border-radius: 5px;
  /* Slightly tighter radius */
  border: 1px solid #cbd5e1;
  /* Visible Border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #94a3b8;
}

/* Service Image Box */
.service-image {
  flex: 0 0 50%;
  /* STRICT 50% width */
  width: 50%;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  min-height: 300px;
  /* Safety height */
}

/* Image styling */
.service-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  /* Force cover */
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-block:hover .service-image img {
  transform: scale(1.1);
}

/* Service Text Box */
.service-text {
  flex: 0 0 50%;
  /* STRICT 50% width */
  width: 50%;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Left align text */
}

.service-text h3 {
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
}

/* H3 Underline Decoration */
.service-text h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #f97316, #fb923c);
  margin-top: 12px;
}

.service-text p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

/* Reverse Modifier (Image Right) */
.service-block.reverse {
  flex-direction: row-reverse !important;
}

/* --- SCROLL ANIMATION --- */
.service-block.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-block.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .service-block {
    min-height: auto;
    flex-direction: column !important;
    /* Force stack on smaller screens */
  }

  .service-block.reverse {
    flex-direction: column !important;
  }

  .service-image {
    flex: none;
    width: 100%;
    height: 250px;
    /* Fixed height for image */
  }

  .service-text {
    flex: none;
    width: 100%;
    padding: 30px;
  }

  .service-text h3 {
    font-size: 1.5rem;
  }
}

/* ---= WHY US ---= */
.why-us {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.why-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---= CLIENTS =--- */
#clients {
  position: relative;
  background: #f8fafc;
  min-height: 95vh;
  overflow: hidden;
}

.clients-perspective {
  position: relative;
  /* inset: -5%;*/
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  z-index: 1;
  mask-image: radial-gradient(circle, black 70%, transparent 105%);
  -webkit-mask-image: radial-gradient(circle, black 70%, transparent 105%);

}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  padding: 0 5%;
  transform: rotateX(30deg) rotateY(0deg) rotateZ(0deg);
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #clients {
    min-height: auto;
  }

  .clients-perspective {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .clients-grid {
    transform: none;
    margin-top: 0;
    translate: none;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-content: center;
    justify-content: center;
    text-align: center;
  }
}

.client-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.client-item img {
  max-width: 70%;
  max-height: 70%;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: 0.3s;
}

.client-item:hover {
  transform: translateZ(40px) scale(1.2);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 10;
  border-color: #cbd5e1;
}

.client-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Content overlay for Clients section */
#clients .container {
  position: relative;
  z-index: 2;
}




/* ---= CTA ---= */
.cta {
  background: #0f172a;
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin-bottom: 15px;
}

/* ---= FORM STYLES =--- */
#inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 25px auto 0;
}

#inquiry-form button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  padding: 12px 15px;
}

#inquiry-form input,
#inquiry-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#inquiry-form input:focus,
#inquiry-form textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

/* ---= NOTIFICATIONS =--- */
#notification-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 900px;
  z-index: 9999;
  pointer-events: none;
}

.notification {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.notification.error {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.95;
}

.notification-debug {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
  word-break: break-all;
}

/* ---= FOOTER ---= */
footer {
  background: #020617;
  color: #cbd5f5;
  padding: 40px 20px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

footer h4 {
  margin-bottom: 15px;
  color: #fff;
}

footer p,
footer li {
  font-size: 14px;
  margin-bottom: 8px;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  opacity: 0.7;
}

.navbar-logo {
  width: 32px;
  height: auto;
}

/* ---= SCROLL REVEAL ANIMATION ---= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  transition-delay: 0.2s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}