/* Shared, lightweight motion system for ISTAR pages. */
:root {
  --istar-motion-green: #4caf50;
  --istar-motion-ease: cubic-bezier(.2, .75, .25, 1);
}

/* Neutral industrial glass navigation with a solid green accent line. */
body #ftco-navbar.ftco-navbar-light {
  position: fixed;
  z-index: 1030;
  top: 18px;
  left: 2.5%;
  right: 2.5%;
  width: 95%;
  padding: 8px 18px;
  overflow: visible;
  background: rgba(225, 230, 227, .78) !important;
  border: 1px solid rgba(108, 122, 113, .28);
  border-radius: 20px;
  box-shadow:
    0 18px 46px rgba(44, 62, 51, .17),
    0 5px 18px rgba(55, 153, 66, .08),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  transition:
    top .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

body #ftco-navbar.ftco-navbar-light::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -2px;
  left: 22px;
  height: 3px;
  pointer-events: none;
  border-radius: 999px;
  background: #48ad52;
  box-shadow: 0 2px 9px rgba(60, 166, 72, .34);
}

body #ftco-navbar.ftco-navbar-light.scrolled {
  top: 10px;
  left: 2.5%;
  right: 2.5%;
  width: 95%;
  background: rgba(218, 224, 220, .91) !important;
  border-color: rgba(86, 108, 93, .34);
  box-shadow:
    0 14px 38px rgba(35, 53, 41, .20),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

body #ftco-navbar.ftco-navbar-light .navbar-nav .nav-link {
  color: #505b54 !important;
  font-weight: 600;
  transition: color .25s ease, transform .25s ease;
}

body #ftco-navbar.ftco-navbar-light .navbar-nav .nav-link:hover,
body #ftco-navbar.ftco-navbar-light .navbar-nav .nav-item.active .nav-link {
  color: #3fa648 !important;
  transform: translateY(-1px);
}

body #ftco-navbar.ftco-navbar-light .navbar-toggler {
  color: #4f5d54 !important;
  border: 1px solid rgba(76, 175, 80, .32);
  border-radius: 11px;
  background: rgba(255, 255, 255, .38);
}

/* Shared virtual engineer assistant. */
.istar-assistant {
  position: fixed;
  z-index: 9997;
  left: 18px;
  bottom: 10px;
  font-family: Montserrat, sans-serif;
}

.assistant-character {
  position: relative;
  width: 142px;
  height: 205px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 16px rgba(29, 55, 39, .24));
  transform-origin: center bottom;
}

.assistant-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.assistant-character:hover {
  filter: drop-shadow(0 18px 20px rgba(48, 135, 68, .32));
}

.assistant-greeting {
  position: absolute;
  left: 105px;
  bottom: 158px;
  width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 175, 80, .24);
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .96);
  color: #344039;
  box-shadow: 0 12px 32px rgba(34, 56, 42, .16);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: .28s ease;
  pointer-events: none;
}

.istar-assistant.show-greeting .assistant-greeting {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.assistant-panel {
  position: absolute;
  left: 112px;
  bottom: 28px;
  width: min(310px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, .22);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 60px rgba(31, 55, 39, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom left;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.istar-assistant.is-open .assistant-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.assistant-head {
  position: relative;
  padding: 19px 46px 17px 20px;
  background: linear-gradient(135deg, #287b3b, #4caf50);
  color: #fff;
}

.assistant-head strong { display: block; font-size: 16px; }
.assistant-head span { display: block; margin-top: 5px; font-size: 11px; opacity: .88; }
.assistant-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.assistant-options { padding: 15px; }
.assistant-options p { margin: 0 0 11px; color: #657069; font-size: 12px; }
.assistant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(72, 94, 80, .10);
  border-radius: 12px;
  background: #f7faf7;
  color: #344039 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.assistant-option:hover { transform: translateX(3px); border-color: rgba(76, 175, 80, .30); background: #edf8ef; }
.assistant-option.whatsapp { background: #25d366; color: #fff !important; border-color: #25d366; }
button.assistant-option { width: 100%; font-family: inherit; cursor: pointer; }
.assistant-option.language-toggle { border-color: rgba(57, 139, 68, .22); background: #eef7ef; }
.assistant-language-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.assistant-language-copy small { color: #748078; font-size: 9px; font-weight: 500; }

/* Friendly cloud prompt attached to the virtual engineer. */
.assistant-character {
  animation: istarAssistantAttention 8s ease-in-out infinite !important;
}

.assistant-character::before {
  content: "Need Help?\A Click Me";
  position: absolute;
  z-index: 3;
  top: 20px;
  right: -88px;
  width: 112px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(55, 161, 66, .42);
  border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(220, 244, 223, .95));
  color: #318f3b;
  box-shadow:
    -10px -6px 0 -5px rgba(255, 255, 255, .96),
    10px -7px 0 -5px rgba(217, 242, 220, .96),
    0 10px 24px rgba(37, 91, 49, .20);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .35px;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
  animation: istarCloudAttention 8s ease-in-out infinite;
  transition: opacity .25s ease, visibility .25s ease;
}

html[data-language="id"] .assistant-character::before {
  content: "Butuh Bantuan?\A Klik Saya";
}

.assistant-character::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 63px;
  right: -15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(232, 248, 234, .98);
  box-shadow: -10px 11px 0 -3px rgba(232, 248, 234, .94);
  pointer-events: none;
  animation: istarCloudTail 8s ease-in-out infinite;
  transition: opacity .25s ease, visibility .25s ease;
}

.istar-assistant.is-open .assistant-character::before,
.istar-assistant.is-open .assistant-character::after,
.istar-assistant.show-greeting .assistant-character::before,
.istar-assistant.show-greeting .assistant-character::after {
  opacity: 0;
  visibility: hidden;
}

/* Contact email choices */
.contact-email-choice {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(79, 112, 87, .14);
}

.contact-email-label {
  display: block;
  margin-bottom: 10px;
  color: #667169;
  font-size: 12px;
  font-weight: 700;
}

.contact-email-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-email-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(67, 160, 78, .27);
  border-radius: 12px;
  background: rgba(233, 243, 235, .72);
  color: #3f4d43 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.contact-email-button:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 161, 70, .52);
  background: rgba(218, 239, 222, .9);
}

.contact-email-button i {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 14px;
  line-height: 34px;
  text-align: center;
}

.contact-email-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-email-button small {
  display: block;
  margin-bottom: 2px;
  color: #4ca957;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
}

@keyframes istarAssistantAttention {
  0%, 8%, 14%, 20%, 26%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  11% { transform: translate3d(0, -7px, 0) rotate(-.8deg); }
  17% { transform: translate3d(0, -7px, 0) rotate(.8deg); }
  23% { transform: translate3d(0, -7px, 0) rotate(-.5deg); }
}

@keyframes istarCloudAttention {
  0%, 8%, 14%, 20%, 26%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  11%, 17%, 23% { transform: translate3d(0, -8px, 0) scale(1.045); }
}

@keyframes istarCloudTail {
  0%, 8%, 14%, 20%, 26%, 100% { transform: translate3d(0, 0, 0); }
  11%, 17%, 23% { transform: translate3d(0, -6px, 0); }
}

.istar-motion-progress {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #3c9742, #8bd268);
  box-shadow: 0 0 12px rgba(76, 175, 80, .5);
  transition: width .08s linear;
}

.motion-ready .ftco-navbar-light,
.motion-ready .navbar,
.motion-ready header {
  animation: istarNavEnter .7s var(--istar-motion-ease) both;
}

.motion-ready .hero-wrap > .container,
.motion-ready .hero-wrap .slider-text,
.motion-ready .hero-wrap .hero-content {
  animation: istarHeroEnter .9s .12s var(--istar-motion-ease) both;
}

.istar-motion-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity .75s var(--istar-motion-ease),
    transform .75s var(--istar-motion-ease);
  will-change: opacity, transform;
}

.istar-motion-reveal.istar-motion-left {
  transform: translate3d(-30px, 0, 0);
}

.istar-motion-reveal.istar-motion-right {
  transform: translate3d(30px, 0, 0);
}

.istar-motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.istar-motion-image {
  overflow: hidden;
}

.istar-motion-image img {
  transform: scale(1.035);
  transition: transform 1.1s var(--istar-motion-ease);
}

.istar-motion-image.is-visible img,
.istar-motion-image:hover img {
  transform: scale(1);
}

@keyframes istarNavEnter {
  from { opacity: 0; transform: translate3d(0, -20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes istarHeroEnter {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 767.98px) {
  .istar-assistant { left: 7px; bottom: 4px; }
  .assistant-character { width: 96px; height: 140px; }
  .assistant-greeting { left: 76px; bottom: 108px; width: 165px; font-size: 10px; }
  .assistant-panel { left: 8px; bottom: 140px; width: min(300px, calc(100vw - 30px)); }

  body #ftco-navbar.ftco-navbar-light,
  body #ftco-navbar.ftco-navbar-light.scrolled {
    top: 10px;
    left: 3%;
    right: 3%;
    width: 94%;
    padding: 6px 13px;
    border-radius: 16px;
    background: rgba(221, 227, 223, .92) !important;
  }

  body #ftco-navbar.ftco-navbar-light .navbar-collapse {
    margin-top: 8px;
    padding: 8px 12px 12px;
    border-radius: 12px;
    background: rgba(248, 250, 248, .56);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .contact-email-actions {
    grid-template-columns: 1fr;
  }

  .assistant-character::before {
    top: 14px;
    right: -72px;
    width: 92px;
    min-width: 0;
    padding: 9px 7px;
    font-size: 8.5px;
  }

  .assistant-character::after {
    top: 49px;
    right: -12px;
    width: 10px;
    height: 10px;
  }

  .istar-motion-reveal,
  .istar-motion-reveal.istar-motion-left,
  .istar-motion-reveal.istar-motion-right {
    transform: translate3d(0, 22px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .ftco-navbar-light,
  .motion-ready .navbar,
  .motion-ready header,
  .motion-ready .hero-wrap > .container,
  .motion-ready .hero-wrap .slider-text,
  .motion-ready .hero-wrap .hero-content {
    animation: none !important;
  }

  .istar-motion-reveal,
  .istar-motion-reveal.istar-motion-left,
  .istar-motion-reveal.istar-motion-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .istar-motion-image img {
    transform: none !important;
    transition: none !important;
  }

  .assistant-character::before,
  .assistant-character::after {
    animation: none !important;
  }

  .assistant-character {
    animation: none !important;
  }
}
