/* =====================================================================
   FOOTER MODERN — PT. Integration Teknologi Visual
   ---------------------------------------------------------------------
   Dimuat SESUDAH styles.css + visual.css + header.css sehingga semua
   aturan di sini menimpa gaya footer bawaan tanpa mengubah file asli.

   Isi:
     1. Latar mesh + aurora bergerak
     2. Garis gradien atas (animasi, sinkron header)
     3. Grid kolom footer
     4. Blok brand (glass panel + ring gradien)
     5. Judul kolom + underline sweep
     6. Link list (slide + arrow + glow)
     7. Social pill + CTA
     8. Baris bawah + back-to-top
     9. Panel CTA mengambang
    10. Responsif
    11. Reduced motion
   ===================================================================== */

:root {
  --footer-pad: 64px;
}

/* ---------------------------------------------------------------
   1. Latar mesh + aurora
   --------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--footer-pad) 0 0;
  background:
    radial-gradient(1100px 480px at 10% -12%, rgba(31, 111, 235, .26), transparent 62%),
    radial-gradient(900px 420px at 92% -6%, rgba(124, 77, 255, .18), transparent 64%),
    radial-gradient(760px 400px at 48% 112%, rgba(0, 184, 217, .13), transparent 62%),
    linear-gradient(180deg, #061223 0%, #0a1c34 52%, #071527 100%);
  color: #93a9c8;
  font-size: .9rem;
}

/* Pola titik halus sebagai tekstur */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: .8;
}

/* Aurora bergerak (parallax lembut) */
.footer::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 184, 217, .18), transparent 68%);
  filter: blur(30px);
  animation: ftr-aurora 16s ease-in-out infinite;
}

@keyframes ftr-aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-46px, 34px, 0) scale(1.12); }
}

/* ---------------------------------------------------------------
   2. Garis gradien atas (animasi, sinkron header)
   --------------------------------------------------------------- */
.footer > .wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--footer-pad) * -1);
  height: 3px;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--blue), var(--cyan) 38%, var(--violet) 68%, var(--blue));
  background-size: 220% 100%;
  animation: ftr-line 9s linear infinite;
}

@keyframes ftr-line {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

/* Cahaya lembut di bawah garis */
.footer > .wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--footer-pad) * -1);
  height: 46px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 111, 235, .22), transparent);
  filter: blur(6px);
}

.footer .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------------
   3. Grid kolom footer
   --------------------------------------------------------------- */
.footer__top {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 38px 32px;
  align-items: start;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

/* ---------------------------------------------------------------
   4. Blok brand
   --------------------------------------------------------------- */
.footer__brand {
  position: relative;
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: transform .35s cubic-bezier(.2, .8, .25, 1), border-color .35s ease, box-shadow .35s ease;
}

.footer__brand:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 184, 217, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 22px 48px -24px rgba(0, 0, 0, .6);
}

/* Cincin gradien berputar di logo (sama seperti header) */
.footer__brand .brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  transition: transform .35s cubic-bezier(.2, .8, .25, 1);
}

.footer__brand .brand__mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  padding: 3px;
  border-radius: 15px;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(0, 184, 217, 0), var(--cyan), var(--blue), var(--violet), rgba(0, 184, 217, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  animation: ftr-spin 8s linear infinite;
}

@keyframes ftr-spin {
  to { transform: rotate(360deg); }
}

.footer__brand:hover .brand__mark {
  transform: translateY(-2px) scale(1.04);
}

.footer__brand:hover .brand__mark::after { opacity: 1; }

.footer__brand .brand__text > span {
  background-image: linear-gradient(100deg, #ffffff 0%, #bfe4ff 46%, var(--cyan) 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position .6s ease;
}

.footer__brand:hover .brand__text > span { background-position: 100% 0; }

.footer__brand .brand__text small { color: #7f95b4; }

.footer__brand p {
  margin: 0;
  color: #8fa5c4;
  line-height: 1.7;
}

/* ---------------------------------------------------------------
   5. Judul kolom + underline sweep
   --------------------------------------------------------------- */
.footer h4 {
  position: relative;
  padding-bottom: 10px;
  margin: 0 0 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--cyan), var(--blue));
  transform-origin: 0 50%;
  transition: width .35s cubic-bezier(.2, .8, .25, 1);
}

.footer > .wrap > .footer__top > div:hover h4::after { width: 54px; }

/* ---------------------------------------------------------------
   6. Link list — slide + arrow + glow
   --------------------------------------------------------------- */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  color: #9db2ce;
  text-decoration: none;
  transition: color .2s ease, transform .25s cubic-bezier(.2, .8, .25, 1);
}

/* Titik penanda yang membesar saat hover */
.footer ul a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: background-color .2s ease, transform .25s ease, box-shadow .25s ease;
}

.footer ul a:hover {
  color: #fff;
  padding-left: 0;
  transform: translateX(5px);
}

.footer ul a:hover::before {
  background: var(--cyan);
  transform: scale(1.45);
  box-shadow: 0 0 10px rgba(0, 184, 217, .7);
}

.footer ul a:active { transform: translateX(5px) scale(.98); }

/* ---------------------------------------------------------------
   7. Social pill + CTA
   --------------------------------------------------------------- */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #b9cbe4;
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1), color .22s ease,
              background-color .22s ease, border-color .22s ease, box-shadow .28s ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(140deg, rgba(31, 111, 235, .3), rgba(0, 184, 217, .22));
  border-color: rgba(0, 184, 217, .4);
  box-shadow: 0 12px 26px -10px rgba(0, 184, 217, .55);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: .87rem;
  text-decoration: none;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px -14px rgba(31, 111, 235, .8);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1), box-shadow .28s ease, filter .22s ease;
}

.footer__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px -14px rgba(0, 184, 217, .8);
  color: #fff;
}

.footer__cta i { transition: transform .28s ease; }
.footer__cta:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------------
   8. Baris bawah + back-to-top
   --------------------------------------------------------------- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  font-size: .82rem;
  color: #7f95b4;
}

.footer__bottom .footer__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom .footer__tagline i { color: var(--cyan); opacity: .8; }

.footer__to-top {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #b9cbe4;
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1), color .22s ease,
              background-color .22s ease, border-color .22s ease, box-shadow .28s ease;
}

.footer__to-top:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(140deg, rgba(31, 111, 235, .3), rgba(0, 184, 217, .22));
  border-color: rgba(0, 184, 217, .4);
  box-shadow: 0 12px 26px -10px rgba(0, 184, 217, .55);
}

/* ---------------------------------------------------------------
   9. Panel CTA mengambang (opsional, di atas footer__top)
   --------------------------------------------------------------- */
.footer__cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  padding: 26px 28px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(31, 111, 235, .22), rgba(124, 77, 255, .16)),
    rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.footer__cta-panel h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  color: #fff;
}

.footer__cta-panel p {
  margin: 0;
  color: #9db2ce;
  font-size: .9rem;
}

/* ---------------------------------------------------------------
   10. Responsif
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  :root { --footer-pad: 46px; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__cta-panel { padding: 22px 20px; }
  .footer__cta-panel h3 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { padding: 20px 18px; }
}

/* ---------------------------------------------------------------
   11. Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .footer::after,
  .footer > .wrap::before,
  .footer__brand .brand__mark::after { animation: none !important; }

  .footer__brand:hover,
  .footer ul a:hover,
  .footer__social a:hover,
  .footer__cta:hover,
  .footer__to-top:hover { transform: none; }
}
