/* Footer layout and visuals */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 96px;
  background: linear-gradient(180deg, rgba(13, 16, 31, 0.98), rgba(8, 11, 22, 0.99));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: radial-gradient(circle at 50% 120%, rgba(110, 87, 224, 0.18), transparent 55%);
  pointer-events: none;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.15;
  pointer-events: none;
}

.footer-waves {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 90px;
  border-radius: 0 0 50% 50%;
  filter: blur(2px);
}

.wave1 {
  top: -35px;
  background: linear-gradient(90deg, rgba(110, 87, 224, 0.18), rgba(0, 217, 181, 0.12));
}

.wave2 {
  top: 5px;
  background: linear-gradient(90deg, rgba(0, 217, 181, 0.12), rgba(110, 87, 224, 0.14));
}

.wave3 {
  top: 45px;
  background: linear-gradient(90deg, rgba(110, 87, 224, 0.1), rgba(0, 217, 181, 0.08));
}

.footer-top {
  position: relative;
  z-index: 2;
  padding: 96px 0 34px;
}

.footer-brand-section {
  margin-bottom: 34px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #6e57e0, #00d9b5);
  box-shadow: 0 10px 24px rgba(110, 87, 224, 0.28);
}

.footer-brand h3 {
  margin: 0 0 8px;
}

.brand-description {
  margin: 0 auto;
  max-width: 560px;
  color: var(--dark-text-secondary);
}

.social-links-section h4 {
  margin: 20px 0 14px;
}

.social-links {
  display: grid;
  gap: 14px;
  position: relative;
}

.social-links::before,
.social-links::after {
  content: none !important;
  display: none !important;
}

.social-group h6 {
  color: var(--dark-text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.social-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.social-group + .social-group {
  border-left: none;
}

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: rgba(110, 87, 224, 0.24);
  border-color: rgba(110, 87, 224, 0.45);
  color: #fff;
}

.footer-divider {
  margin: 26px 0 18px;
}

.footer-divider .divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
  row-gap: 20px;
}

.footer-info,
.footer-links,
.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-info:hover,
.footer-links:hover,
.footer-newsletter:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 87, 224, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.footer-info h4,
.footer-links h4,
.footer-newsletter h4 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(110, 87, 224, 0.22);
  flex-shrink: 0;
}

.contact-details h5 {
  margin: 2px 0 2px;
  font-size: 0.88rem;
}

.contact-details p {
  margin: 0;
  color: var(--dark-text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-details {
  min-width: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 0.86rem;
}

.link-item:hover {
  color: #fff;
  background: rgba(110, 87, 224, 0.22);
  border-color: rgba(110, 87, 224, 0.35);
}

.footer-newsletter p {
  color: var(--dark-text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-newsletter .input-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter .form-control {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.footer-newsletter .btn {
  border-radius: 0;
  min-width: 50px;
}

.newsletter-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--dark-text-secondary);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  background: rgba(5, 8, 16, 0.78);
}

.copyright p {
  margin: 0;
  color: var(--dark-text-secondary);
  font-size: 0.84rem;
}

.copyright .rights {
  margin-top: 4px;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(110, 87, 224, 0.38), rgba(0, 217, 181, 0.24));
  border: 1px solid rgba(110, 87, 224, 0.45);
  border-radius: 999px;
  padding: 9px 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(110, 87, 224, 0.5), rgba(0, 217, 181, 0.32));
}

@media (min-width: 992px) {
  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin: 0 auto;
  }

  .footer-content {
    align-items: stretch;
  }

  .footer-info,
  .footer-links,
  .footer-newsletter {
    min-height: 100%;
  }

  .footer-newsletter .input-group {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .footer-top {
    padding-top: 68px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .footer {
    margin-top: 56px;
  }

  .footer-top {
    padding-top: 58px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .footer-info,
  .footer-links,
  .footer-newsletter {
    padding: 15px;
  }

  .footer-info h4 {
    text-align: center;
    margin-bottom: 14px;
  }

  .contact-list {
    gap: 12px;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .contact-details h5 {
    font-size: 0.84rem;
  }

  .contact-details p {
    font-size: 0.82rem;
  }

  .copyright {
    text-align: center;
    margin-bottom: 10px;
  }
}
