/* Premium SaaS-Style Footer Styling */
.site-footer {
  /* Rich Gradient Background */
  background: linear-gradient(135deg, #050816 0%, #07152B 35%, #0F3D91 70%, #2563EB 85%, #050816 100%);
  background-size: 300% 300%;
  animation: footerBgShift 16s ease-in-out infinite;
  
  /* Rounded Corners and Double Border Layout */
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -15px 40px rgba(5, 8, 22, 0.5);
  
  padding: 100px 24px 32px 24px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* Blurred Radial Glow Circles (GPU Accelerated) */
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatRadial1 14s ease-in-out infinite;
  will-change: transform;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: 15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: floatRadial2 12s ease-in-out infinite;
  will-change: transform;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.03);
}

.footer-logo svg {
  width: 42px;
  height: 42px;
  fill: #3f80ff;
  filter: drop-shadow(0 2px 10px rgba(63, 128, 255, 0.5));
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

/* Social Media Channels with Spring Hovers & Ripping */
.footer-socials {
  display: flex;
  gap: 14px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-btn:hover {
  transform: scale(1.18) rotate(8deg);
  color: #ffffff;
}

/* Branded hover backgrounds & glows */
.social-icon-btn.facebook:hover {
  background-color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.55);
}

.social-icon-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(220, 39, 67, 0.55);
}

.social-icon-btn.twitter:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.55);
}

.social-icon-btn.linkedin:hover {
  background-color: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.55);
}

/* Typography headers */
.footer-column h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: #ffffff;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Link underline slides & shifts */
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3f80ff;
  box-shadow: 0 0 8px rgba(63, 128, 255, 0.8);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(6px);
  text-shadow: 0 0 8px rgba(63, 128, 255, 0.6);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Footer Bottom Bar & Copyrights */
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Thin moving gradient divider line */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 128, 255, 0) 0%, rgba(63, 128, 255, 0.8) 50%, rgba(63, 128, 255, 0) 100%);
  background-size: 200% 100%;
  animation: dividerGlowShift 6s linear infinite;
  margin-bottom: 24px;
  border: none;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #64748b;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: #3f80ff;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #3f80ff;
}

/* Floating Circular Back to Top Button */
.back-to-top-btn {
  background: #0f62fe;
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(15, 98, 254, 0.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: buttonFloat 3s ease-in-out infinite;
}

.back-to-top-btn:hover {
  background: #3f80ff;
  box-shadow: 0 0 25px #0f62fe;
  transform: scale(1.15) translateY(-3px);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Keyframe Animations (GPU Friendly) */
@keyframes footerBgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes dividerGlowShift {
  0% { background-position: -200% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes floatRadial1 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  50% { transform: translateY(-25px) translateX(15px) scale(1.08); }
}

@keyframes floatRadial2 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  50% { transform: translateY(25px) translateX(-15px) scale(1.08); }
}

@keyframes buttonFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-logo-col {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-logo-col {
    grid-column: span 1;
    text-align: center;
    align-items: center;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-links a:hover {
    transform: translateX(0); /* Remove slide shift on mobile screens */
  }
}
