/* Modern Footer Styles - Enhanced Design */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #ffffff;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  font-family: "Inter", -apple-system, sans-serif;
}

/* Animated Background Pattern */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(147, 51, 234, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(249, 115, 22, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

/* The Enhanced Rainbow Top Border */
.footer-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #9333ea 0%, #3b82f6 50%, #f97316 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 70px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

/* Brand Section - Enhanced */
.footer-brand {
  position: relative;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-brand__title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.footer-brand__title a {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-brand__title a:hover {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-2px);
}

.footer-brand__description {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 280px;
}

/* Socials - Enhanced Design */
.footer-socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 50%, #f97316 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.social-link:active {
  transform: translateY(-2px) scale(1.02);
}

/* Widgets & Links - Enhanced */
.footer-widgets-container {
  position: relative;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.widget-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #9333ea 0%, #f97316 100%);
  border-radius: 2px;
}

.footer-widgets ul,
.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets li,
.footer-nav-col li {
  margin-bottom: 16px;
  position: relative;
}

.footer-widgets a,
.footer-nav-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.footer-widgets a::before,
.footer-nav-col a::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea 0%, #f97316 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-widgets a:hover,
.footer-nav-col a:hover {
  color: #ffffff;
  padding-left: 16px;
  transform: translateX(4px);
}

.footer-widgets a:hover::before,
.footer-nav-col a:hover::before {
  opacity: 1;
  left: 0;
}

/* Newsletter Form - Enhanced */
.footer-newsletter {
  position: relative;
}

.footer-newsletter .widget-title {
  margin-bottom: 16px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.footer-newsletter-form:focus-within {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter-form input {
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.95);
  flex: 1;
  outline: none;
  font-size: 0.9375rem;
  font-family: inherit;
}

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

.footer-newsletter-form button {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 50%, #f97316 100%);
  background-size: 200% 100%;
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.4s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.footer-newsletter-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.footer-newsletter-form button:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.footer-newsletter-form button:hover::before {
  left: 100%;
}

.footer-newsletter-form button:active {
  transform: translateY(0);
}

/* Bottom Bar - Enhanced */
.site-footer__meta {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-meta-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-meta-nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.footer-meta-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #9333ea 0%, #f97316 100%);
  transition: width 0.3s ease;
}

.footer-meta-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
  .site-footer {
    padding: 80px 0 35px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-bottom: 50px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand__description {
    max-width: 100%;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
  }

  .footer-meta-nav ul {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .footer-newsletter-form {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .footer-newsletter-form input {
    padding: 12px 16px;
  }

  .footer-newsletter-form button {
    width: 100%;
    padding: 12px 24px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}
