/* =============================================
   THE ICON! CREATIVE SERVICES – style.css
   Global styles – dipakai di semua halaman
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple:      #7B2FBE;
  --purple-bg:   #6A1FBE;
  --lime:        #C8F000;
  --pink:        #FF00A8;
  --dark:        #111111;
  --white:       #ffffff;
  --grid-purple: #8B3FCE;
  --container:   1100px;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  overflow-x: hidden;
}

body.is-loading {
  opacity: 0;
}
body {
  transition: opacity 0.2s ease;
}

.hide {display:none !important;}

/* =============================================
   CONTAINER UTILITY
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: absolute;
  top: 50px;
  left: 0px;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px calc((100% - var(--container)) / 2);
  gap: 16px;
}

.logo img {
  width: 130px;
}

.navbar__search input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  color: #fff;
  padding: 8px 18px 8px 36px;
  font-size: 18px;
  width: 400px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.navbar__search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.navbar__logo,
.navbar__cta {
  flex: 1;
}

.navbar__search {
  flex: 0 0 auto;
}

.navbar__cta {
  display: flex;
  justify-content: flex-end;  /* dorong btn-whatsapp ke kanan */
  cursor: pointer;
}

/* CTA Whatsapp Button */
.btn-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: 4px solid var(--purple);
  border-radius: 50px;
  padding: 10px 28px 10px 70px;
  text-decoration: none;
  gap: 2px;
  position: relative;
  min-width: 200px;
  box-shadow: 0 0 14px 4px rgba(123, 47, 190, 0.6),
              0 0 28px 8px rgba(123, 47, 190, 0.3);
}

.wa-icon {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.wa-label {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.wa-number {
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* WA Tooltip wrapper */
.floating-wa-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Tooltip box */
.wa-tooltip {
  position: absolute;
  right: -10px;
  bottom: 65px;
  background: #fff;
  border-radius: 0 12px 12px 12px; /* ← kiri atas, kanan atas, kanan bawah, kiri bawah */
  padding: 14px 18px 14px 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  white-space: nowrap;
  animation: tooltipFadeIn 0.3s ease;
  background: rgba(255, 102, 0, 0.85); /* orange transparan */
}

.wa-tooltip.hidden { display: none; }

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wa-tooltip__text {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* Panah di kanan bawah tooltip */
.wa-tooltip__arrow {
  position: absolute;
  right: 45px;    /* ← 10px dari tepi kanan */
  bottom: -8px;   /* ← tepat di bawah tooltip */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0 solid transparent;
  border-top: 8px solid #fff;  /* ← panah menghadap ke bawah */
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.06));
  border-top: 8px solid rgba(255, 102, 0, 0.85);
}


/* Tombol close pojok kiri atas */
.wa-tooltip__close {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}

.wa-tooltip__close:hover { background: var(--purple); }

/* Nav Links */
.nav-links {
  position: absolute;
  top: 150px;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 10px 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

/* Navbar sticky */
.navbar,
.nav-links {
  transition: top 0.3s ease, background 0.3s ease;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px calc((100% - var(--container)) / 2);
}

/* Sembunyikan CTA saat sticky */
.navbar.sticky .navbar__cta {
  display: none;
}

/* Search pindah ke kanan, ukuran lebih kecil */
.navbar.sticky .navbar__search {
  order: 3;   /* pindah ke paling kanan */
  flex: 0 0 220px;   /* fix lebar search */
}

/* Nav-links masuk ke dalam navbar saat sticky */
.navbar.sticky .navbar__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

/* Sembunyikan nav-links standalone saat sticky */
.nav-links.sticky-hidden {
  display: none;
}


/*
.nav-links.sticky {
  position: fixed;
  top: 120px;        
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
*/

.navbar__nav {
  display: none;  /* default tersembunyi */
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.navbar__nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}

.navbar__nav a.active { color: #fff; }

.navbar__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.navbar.sticky .navbar__search input {
  width: 220px;        /* ← override dari 400px */
  font-size: 18px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  border: none;
  outline: none;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn--purple  { background: var(--purple); color: #fff; }
.btn--pink  { background: var(--pink); color: #fff; }
.btn--lime    { background: var(--lime);   color: #111; }
.btn--dark    { background: var(--dark);   color: #fff; }
.btn--sm      { padding: 10px 22px; font-size: 13px; }

/* Floating buttons */
.floating-btns {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-btns.visible {
  opacity: 1;
  pointer-events: all;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, opacity 0.2s;
}

.floating-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.floating-btn--wa {
  background: #25D366;
}

.floating-btn--top {
  background: var(--purple);
  border: none;      /* ← hapus border default button */
  outline: none;     /* ← hapus outline default button */  
}

/* =============================================
   RESPONSIVE – GLOBAL
   ============================================= */
@media (max-width: 900px) {
  .navbar {
    padding: 14px 20px;
    top: 0;
    left: 0;
  }
  .navbar__search input {
    width: 200px;
    font-size: 14px;
  }
  .nav-links {
    gap: 20px;
    top: 100px;
  }
  .nav-links a {
    font-size: 14px;
  }
}


/* =============================================
   RESPONSIVE NAVBAR — tambahkan di style.css
   ============================================= */

/* Hamburger — default hidden di desktop */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animasi X saat open */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu — default hidden */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 150;
  background: rgba(10,10,20,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  padding-top: 80px; /* ruang untuk navbar */
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Nav links di mobile menu */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu__nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu__nav a:last-child {
  border-bottom: none; /* ← hapus garis bawah link terakhir */
}

.mobile-menu__nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.mobile-menu__nav a.active {
  color: var(--lime);
}

/* CTA di bawah menu */
.mobile-menu__cta {
  padding: 20px 28px 28px;
}

.mobile-menu__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 14px 4px rgba(123,47,190,0.4);
  cursor: pointer;
}

/* =============================================
   BREAKPOINT 768px — TABLET
   ============================================= */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    position: fixed !important; /* sticky dari awal di mobile */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: rgba(0,0,0,0.75) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 199;
  }

  /* Sembunyikan search, CTA, nav inline */
  .navbar__search,
  .navbar__cta,
  .navbar__nav,
  .nav-links {
    display: none !important;
  }

  /* Tampilkan hamburger */
  .navbar__hamburger {
    display: flex !important;
  }

  /* Tampilkan mobile menu saat open */
  .mobile-menu {
    display: flex;
  }

  /* Logo lebih kecil */
  .logo img {
    width: 100px;
  }
}

/* =============================================
   BREAKPOINT 480px — MOBILE
   ============================================= */
@media (max-width: 480px) {

  .navbar {
    padding: 12px 16px !important;
  }

  .logo img {
    width: 90px;
  }

  .mobile-menu__nav a {
    font-size: 16px;
    padding: 12px 20px;
  }
}
