/*------------- Back to top button -------------- */

.floating-home {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: none;
}

.floating-wrapper {
  position: relative;
}

.progress-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.ring-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 2;
}

.ring-progress {
  fill: none;
  stroke: #6366f1;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.home-btn {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  position: relative;
  z-index: 2;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: all 0.3s ease;
}

.home-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.home-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

/* ICON */
.home-btn svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* TOOLTIP */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.75rem;

  background: #111827;
  color: #ffffff;
  font-size: 0.875rem;

  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;

  opacity: 0;
  pointer-events: none;
  white-space: nowrap;

  transition: opacity 0.3s ease;
}

.floating-wrapper:hover .tooltip {
  opacity: 1;
}

.tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #111827;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #818cf8;
  opacity: 0.2;
  animation: pulse 2s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.25;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===========================
           FOOTER STYLES
        =========================== */
.footer {
  background-color: #202632;
  color: white;
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Logo and Social Section */
.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 64px;
  width: auto;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: white;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-link i {
  width: 20px;
  height: 20px;
}

/* Footer Columns */
.footer-column h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .footer-copyright {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Footer End */
