/* ---------- FOOTER ---------- */
footer {
  display: block;
  position: relative;
  z-index: 1;
}

.footer {
  --footer-bg-start: #111936;
  --footer-bg-end: #0b1022;
  --footer-surface: rgba(255, 255, 255, 0.08);
  --footer-surface-hover: rgba(255, 255, 255, 0.11);
  --footer-border: rgba(255, 255, 255, 0.09);
  --footer-text: #eef6ff;
  --footer-muted: rgba(226, 233, 255, 0.78);
  --footer-accent: #8fe7ff;
  --footer-accent-strong: #4fd7ff;
  --footer-accent-2: #16c7b8;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 1.25rem;
  text-align: center;
  color: var(--footer-text);
  background:
    radial-gradient(circle at top left, rgba(79, 215, 255, 0.16), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(22, 199, 184, 0.14), transparent 24%),
    linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer::before,
.footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.footer::before {
  width: 20rem;
  height: 20rem;
  top: -8rem;
  right: -9rem;
  background: radial-gradient(
    circle,
    rgba(79, 215, 255, 0.18) 0%,
    rgba(79, 215, 255, 0.08) 34%,
    rgba(79, 215, 255, 0) 70%
  );
}

.footer::after {
  width: 18rem;
  height: 18rem;
  left: -8rem;
  bottom: -9rem;
  background: radial-gradient(
    circle,
    rgba(22, 199, 184, 0.16) 0%,
    rgba(22, 199, 184, 0.08) 34%,
    rgba(22, 199, 184, 0) 70%
  );
}

.footer-logo-f,
.footer-about,
.footer-last-box {
  position: relative;
  z-index: 1;
}

/* ---------- Logo ---------- */
.footer-logo-f {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-logo-f img {
  width: clamp(170px, 26vw, 320px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.22));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.footer-logo-f img:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

/* ---------- Contact Info Boxes ---------- */
.footer-about {
  display: flex;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-about-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  width: min(1120px, 100%);
  align-items: stretch;
}

.footer-about-1box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  padding: 1.5rem 1.25rem 1.4rem;
  border-radius: 24px;
  border: 1px solid var(--footer-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 38px rgba(4, 10, 24, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.footer-about-1box::before {
  content: "";
  position: absolute;
  inset: auto -18% -36% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 215, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.footer-about-1box:hover,
.footer-about-1box:focus-within {
  transform: translateY(-6px);
  border-color: rgba(143, 231, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 48px rgba(4, 10, 24, 0.28);
}

.footer-about-1box > * {
  position: relative;
  z-index: 1;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(59, 189, 246, 0.18), rgba(22, 199, 184, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.footer-about-1box:hover .footer-icon,
.footer-about-1box:focus-within .footer-icon {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(79, 215, 255, 0.22), rgba(22, 199, 184, 0.24));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.footer-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0;
}

.f-heading {
  order: 2;
  margin: 0 0 0.65rem;
  color: var(--footer-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-about-1box a,
.footer-about-1box p {
  order: 3;
}

.footer-about-1box a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-about-1box a:hover,
.footer-about-1box a:focus-visible {
  transform: translateY(-1px);
}

.f-para {
  margin: 0;
  font-size: clamp(0.96rem, 1.6vw, 1.04rem);
  line-height: 1.7;
  color: var(--footer-text);
  word-break: break-word;
}

.footer-about-1box a:hover .f-para,
.footer-about-1box a:focus-visible .f-para {
  color: var(--footer-accent);
}

/* ---------- Copyright ---------- */
.footer-last-box {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-last {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-last p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-muted);
}

.footer-last p a {
  color: var(--footer-accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-last p a:hover,
.footer-last p a:focus-visible {
  color: #ffffff;
  opacity: 1;
}

/* ---------- Scroll to Top Button ---------- */
#scrollTopBtn {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.96), rgba(79, 215, 255, 0.9));
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 18px 36px rgba(7, 15, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    visibility 0s linear 0.25s;
  z-index: 1500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#scrollTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    visibility 0s;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus-visible {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, #6be4ff, #16c7b8);
  color: #071122;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 24px 48px rgba(7, 15, 35, 0.38),
    0 0 0 6px rgba(79, 215, 255, 0.12);
  outline: none;
}

#scrollTopBtn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(143, 231, 255, 0.28),
    0 24px 48px rgba(7, 15, 35, 0.38),
    0 0 0 8px rgba(79, 215, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-logo-f img {
    width: clamp(150px, 45vw, 220px);
  }

  .footer-about-box {
    grid-template-columns: 1fr;
  }

  .footer-about-1box {
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .footer-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .footer-icon img {
    width: 28px;
    height: 28px;
  }

  .footer-last-box {
    margin-top: 1.8rem;
  }

  .footer-last {
    padding-top: 0.95rem;
  }

  .footer-last p {
    font-size: 0.9rem;
  }

  #scrollTopBtn {
    width: 50px;
    height: 50px;
    right: 0.9rem;
    bottom: 0.9rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-logo-f {
    margin-bottom: 1rem;
  }

  .footer-logo-f img {
    width: 140px;
  }

  .footer-about {
    padding: 0 0.9rem;
  }

  .footer-about-box {
    gap: 0.9rem;
  }

  .footer-about-1box {
    border-radius: 20px;
    padding: 1.2rem 1rem 1.05rem;
  }

  .f-heading {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .f-para {
    font-size: 0.94rem;
  }

  .footer-last p {
    font-size: 0.84rem;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo-f img,
  .footer-about-1box,
  .footer-about-1box::before,
  .footer-icon,
  .footer-about-1box a,
  .footer-last p a,
  #scrollTopBtn {
    transition: none !important;
  }
}
