/* ╔═══════════════════════════════════════════════════════════════════
   ║  PRADUMNA_FX — UNIVERSAL LIQUID GLASS FOOTER
   ║  Design Language: Dark Cinematic UI / Liquid Water Glass
   ║  Scoped strictly to: .pfx-footer
   ║  120Hz-Ready / Zero Global Leakage
   ╚═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   1. MASTER FOOTER WRAPPER & ATMOSPHERIC LIGHTING
   ═══════════════════════════════════════════════════════ */
.pfx-footer {
  position: relative;
  width: 100%;
  margin-top: 80px;
  padding: 0 24px 40px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

/* Atmospheric subtle radial glow behind the glass shell */
.pfx-footer__ambient {
  position: absolute;
  inset: -40px 0 0 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 25%, rgba(100, 140, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 82% 65%, rgba(160, 100, 255, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 50% 10%, rgba(92, 225, 230, 0.05) 0%, transparent 35%);
  filter: blur(50px);
  opacity: 0.9;
}

/* Soft transition divider between page content and footer */
.pfx-footer__top-divider {
  width: 100%;
  max-width: 1380px;
  height: 1px;
  margin: 0 auto 36px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(165, 195, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(112, 162, 255, 0.25);
}

/* Optional AdSlot container above the glass shell */
.pfx-footer__ad-slot {
  width: 100%;
  max-width: 970px;
  margin: 0 auto 36px;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════
   2. LIQUID GLASS FOOTER SHELL
   ═══════════════════════════════════════════════════════ */
.pfx-footer__shell {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.022) 45%,
    rgba(120, 150, 255, 0.035) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.38),
    0 10px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(120, 150, 255, 0.05);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden;
  box-sizing: border-box;
}

/* Refractive top highlight hairline */
.pfx-footer__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 20%,
    rgba(170, 195, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.16) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════
   3. MULTI-COLUMN MAIN GRID
   ═══════════════════════════════════════════════════════ */
.pfx-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(140px, 0.85fr) minmax(150px, 0.9fr) minmax(130px, 0.8fr) minmax(250px, 1.15fr);
  gap: 36px;
  padding: 56px 44px 44px;
  align-items: start;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   4. BRAND AREA (COLUMN 1)
   ═══════════════════════════════════════════════════════ */
.pfx-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pfx-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
}

.pfx-footer__brand-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pfx-footer__brand-head:hover .pfx-footer__brand-logo-frame {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.50);
}

.pfx-footer__brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.pfx-footer__brand-title {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.pfx-footer__brand-accent {
  color: #70a2ff;
}

.pfx-footer__brand-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #9aa7c2;
  margin: 0;
  max-width: 320px;
}

/* Glass Pill Badges */
.pfx-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pfx-footer__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dbe4f5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pfx-footer__badge-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.20);
}

.pfx-footer__badge-icon {
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Compact Glass Stats Strip */
.pfx-footer__stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pfx-footer__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
  position: relative;
}

.pfx-footer__stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.pfx-footer__stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pfx-footer__stat-label {
  font-size: 0.72rem;
  color: #828ea8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   5. NAVIGATION COLUMNS (COLUMNS 2, 3, 4)
   ═══════════════════════════════════════════════════════ */
.pfx-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pfx-footer__col-title {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pfx-footer__col-title::after {
  content: "";
  height: 2px;
  width: 14px;
  border-radius: 2px;
  background: #70a2ff;
  opacity: 0.8;
}

.pfx-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pfx-footer__link {
  color: #9aa7c2;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
  width: fit-content;
}

.pfx-footer__link:hover {
  color: #ffffff;
  transform: translateX(3px);
  text-shadow: 0 0 12px rgba(112, 162, 255, 0.45);
}

.pfx-footer__link:focus-visible {
  outline: 2px solid #70a2ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Community / Social Rows */
.pfx-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfx-footer__social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #9aa7c2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.pfx-footer__social-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pfx-footer__social-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #70a2ff;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.pfx-footer__social-row:hover .pfx-footer__social-icon {
  transform: scale(1.1);
  color: #ffffff;
}

.pfx-footer__social-tag {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #828ea8;
}

/* ═══════════════════════════════════════════════════════
   6. DIRECT CONTACT CARD (COLUMN 5)
   ═══════════════════════════════════════════════════════ */
.pfx-footer__contact-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pfx-footer__contact-card {
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065) 0%,
    rgba(255, 255, 255, 0.025) 50%,
    rgba(112, 162, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease;
}

.pfx-footer__contact-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.pfx-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pfx-footer__contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #828ea8;
}

.pfx-footer__contact-val {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.pfx-footer__contact-val:hover {
  color: #70a2ff;
  text-decoration: underline;
}

.pfx-footer__response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.pfx-footer__response-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* ═══════════════════════════════════════════════════════
   7. CLEAN BOTTOM BAR
   ═══════════════════════════════════════════════════════ */
.pfx-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  color: #828ea8;
}

.pfx-footer__copyright {
  margin: 0;
}

.pfx-footer__tagline {
  margin: 0;
  color: #9aa7c2;
  font-weight: 500;
}

/* Back to Top Button */
.pfx-footer__back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.pfx-footer__back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(112, 162, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.pfx-footer__back-to-top:active {
  transform: translateY(0) scale(0.98);
}

.pfx-footer__back-to-top:focus-visible {
  outline: 2px solid #70a2ff;
  outline-offset: 2px;
}

.pfx-footer__back-to-top-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.pfx-footer__back-to-top:hover .pfx-footer__back-to-top-icon {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   8. RESPONSIVE DESIGN (TABLET & MOBILE)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .pfx-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 44px 32px 36px;
  }

  .pfx-footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .pfx-footer__brand-desc {
    max-width: 600px;
  }

  .pfx-footer__stats-strip {
    max-width: 480px;
  }
}

@media (max-width: 820px) {
  .pfx-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 36px 24px 30px;
  }

  .pfx-footer__brand {
    grid-column: 1 / -1;
  }

  .pfx-footer__contact-col {
    grid-column: 1 / -1;
  }

  .pfx-footer__bottom {
    padding: 20px 24px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .pfx-footer {
    padding: 0 12px 30px;
    margin-top: 50px;
  }

  .pfx-footer__shell {
    border-radius: 22px;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
  }

  .pfx-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 18px 24px;
  }

  .pfx-footer__stats-strip {
    width: 100%;
    max-width: 100%;
  }

  .pfx-footer__link {
    min-height: 44px; /* Touch target accessibility */
    display: flex;
    align-items: center;
  }

  .pfx-footer__social-row {
    min-height: 44px; /* Touch target accessibility */
  }

  .pfx-footer__bottom {
    padding: 18px 16px;
    flex-direction: column;
    gap: 14px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .pfx-footer *,
  .pfx-footer *::before,
  .pfx-footer *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
