.footer {
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.9), rgba(44, 82, 130, 0.8)),
              url('https://www.transparenttextures.com/patterns/diamond-sky.png');
  background-size: cover;
  background-position: center;
  color: #f7fafc;
  padding: 2rem 1rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  gap: 1.2rem;
  text-align: center;
}

.footer h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #e2e8f0;
  margin: 0.2rem 0;
  line-height: 1.4;
}

.footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer a:hover {
  text-decoration: underline;
  transform: scale(1.05);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-info p,
.contact-info a {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-info a:hover {
  color: #f6ad55;
  transform: scale(1.05);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  font-size: 1.4rem;
  color: #f7fafc;
  transition: color 0.3s, transform 0.2s;
}

.social-icons a:hover {
  color: #f6ad55;
  transform: scale(1.15);
}

.newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.subscribe-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
}

.subscribe-form input[type="email"] {
  padding: 0.5rem 0.75rem;
  width: clamp(140px, 60%, 280px); /* Responsive width */
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  flex-shrink: 1;
}

.subscribe-form button {
  padding: 0.5rem 0.8rem;
  background-color: #f6ad55;
  color: #1a202c;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.subscribe-form button:hover {
  background-color: #ed8936;
}

.footer-bottom {
  text-align: center;
  color: #cbd5e0;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  margin-top: 1rem;
  width: 100%;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.arrow-up {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.progress-ring {
  transform: rotate(-90deg);
  position: absolute;
}

.progress-ring__bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3;
}

.progress-ring__circle {
  fill: none;
  stroke: #007BFF;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .footer-top {
    gap: 1rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-icons a {
    font-size: 1.2rem;
  }

  .subscribe-form input[type="email"] {
    width: 55%;
    min-width: 140px;
  }

  .subscribe-form button {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
  }
}
