/* ===========================
   GLOBAL VARIABLES
=========================== */
:root {
  --color-primary: #03a791;
  --color-primary-hover: #078094;
  --color-dark: #333333;
  --color-muted: #6c757d;
}

/* ===========================
   MAIN FOOTER / FROSTED GLASS
=========================== */
.main-footer {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  padding: 30px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "Arial", sans-serif;
  color: var(--color-dark);
  transition: background 0.25s ease;
}

/* Footer container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* ===========================
   LEFT SECTION (COPYRIGHT)
=========================== */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-left p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

/* ===========================
   CENTER LINKS
=========================== */
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.18s ease-in-out;
}

.footer-links a:hover {
  color: var(--color-primary-hover);
  transform: scale(1.05);
}

/* ===========================
   RIGHT: SOCIAL ICONS
=========================== */
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-social a i {
  font-size: 20px;
  color: var(--color-primary);
  transition: transform 0.18s ease-in-out, color 0.25s ease;
}

.footer-social a:hover i {
  transform: scale(1.08);
  color: var(--color-primary-hover);
}

/* ===========================
   BACK TO TOP BUTTON
=========================== */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(3, 167, 145, 0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1300;
  transition: background 0.2s ease, transform 0.18s ease-in-out;
  backdrop-filter: blur(4px);
}

#backToTop:hover {
  background: var(--color-primary-hover);
  transform: scale(1.08);
}

#backToTop i {
  font-size: 20px;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  /* Center links at top */
  .footer-links {
    width: 100%;
    justify-content: center;
    order: 1; /* top section */
  }

  /* Social icons in middle */
  .footer-social {
    justify-content: center;
    order: 2; /* middle section */
  }

  /* Copyright at bottom */
  .footer-left {
    margin-top: auto; /* pushes it to bottom */
    width: 100%;
    order: 3; /* bottom section */
  }

  .footer-left p {
    margin: 0 auto;
  }
}
