/* Enhanced Modern Footer Styles - Professional & Beautiful */
:root {
  --footer-bg: #0f172a;
  --footer-gradient-start: #0a0e27;
  --footer-gradient-mid: #1e1b4b;
  --footer-gradient-end: #312e81;
  --footer-primary: #6366f1;
  --footer-secondary: #8b5cf6;
  --footer-accent: #ec4899;
  --footer-text: #e2e8f0;
  --footer-text-muted: #94a3b8;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-hover: #ffffff;
  --footer-input-bg: rgba(255, 255, 255, 0.05);
  --footer-input-border: rgba(255, 255, 255, 0.15);
}

/* Footer Container */
.site-footer {
  background: linear-gradient(135deg, var(--footer-gradient-start) 0%, var(--footer-gradient-mid) 50%, var(--footer-gradient-end) 100%);
  color: var(--footer-text);
  padding: 5rem 0 2rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--footer-primary) 20%,
    var(--footer-secondary) 50%,
    var(--footer-accent) 80%,
    transparent 100%);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.6);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* Brand Section */
.site-footer .brand {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 50%, var(--footer-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.site-footer .brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--footer-primary), var(--footer-secondary));
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5);
}

.site-footer p,
.site-footer .small,
.site-footer .footer-description {
  color: var(--footer-text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Section Headings */
.site-footer h5,
.site-footer h6 {
  color: var(--footer-hover);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.875rem;
  font-family: 'Poppins', sans-serif;
}

.site-footer h5::after,
.site-footer h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, var(--footer-primary), var(--footer-secondary), var(--footer-accent));
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Links */
.site-footer a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  font-weight: 500;
}

.site-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--footer-primary), var(--footer-secondary));
  transition: width 0.3s ease;
}

.site-footer a:hover {
  color: var(--footer-hover);
  transform: translateX(4px);
}

.site-footer a:hover::after {
  width: 100%;
}

/* Link List */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.75rem;
}

.link-list li a {
  display: flex;
  align-items: center;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.link-list li a::before {
  content: '→';
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--footer-primary), var(--footer-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.link-list li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--footer-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.social-link:hover {
  color: var(--footer-hover);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
  border-color: transparent;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* .social-link:hover svg {
  transform: scale(1.1) rotate(5deg);
} */

/* Contact Section */
.footer-contact {
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--footer-text);
  font-weight: 500;
  border-bottom: 1px dashed var(--footer-border);
  padding-bottom: 2px;
}

.footer-contact a:hover {
  color: var(--footer-primary);
  border-bottom-color: var(--footer-primary);
  transform: none;
}

.copy-link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-link:active {
  transform: scale(0.95);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  margin-top: 3.5rem;
  padding-top: 2rem;
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-link {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.footer-bottom .footer-link::after {
  display: none;
}

.footer-bottom .footer-link:hover {
  color: var(--footer-primary);
  transform: none;
}

.footer-bottom strong {
  color: var(--footer-hover);
  font-weight: 700;
  background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Newsletter Form */
.newsletter-form {
  max-width: 100%;
}

.newsletter-form .input-group {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: var(--footer-text);
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.newsletter-form .form-control::placeholder {
  color: var(--footer-text-muted);
  opacity: 0.8;
}

.newsletter-form .btn {
  border-radius: 0;
  min-width: 120px;
  background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.newsletter-form .btn::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;
}

.newsletter-form .btn:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.newsletter-form .btn:hover::before {
  left: 100%;
}

.newsletter-form .form-text {
  color: var(--footer-text-muted);
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .site-footer::after {
    width: 400px;
    height: 400px;
    top: -20%;
    right: -10%;
  }

  .site-footer .brand {
    font-size: 1.5rem;
  }

  .site-footer h5,
  .site-footer h6 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .newsletter-form .btn {
    min-width: 100px;
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .site-footer::after {
    width: 300px;
    height: 300px;
    opacity: 0.5;
  }

  .site-footer .brand {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .site-footer .brand::after {
    width: 45px;
  }

  .site-footer h5,
  .site-footer h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
  }

  .site-footer h5::after,
  .site-footer h6::after {
    width: 35px;
    height: 2px;
  }

  .site-footer p,
  .site-footer .footer-description {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .link-list li {
    margin-bottom: 0.5rem;
  }

  .link-list li a {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }

  .social-links {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form .form-control {
    border-radius: 12px 12px 0 0 !important;
    padding: 0.75rem 1rem;
  }

  .newsletter-form .btn {
    border-radius: 0 0 12px 12px !important;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    align-items: center;
    font-size: 0.8125rem;
  }

  .footer-contact {
    font-size: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    padding: 2rem 0 1.25rem;
  }

  .site-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer .brand {
    font-size: 1.25rem;
  }

  .site-footer h5,
  .site-footer h6 {
    font-size: 0.95rem;
  }

  .site-footer p,
  .site-footer .footer-description {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .link-list li a {
    font-size: 0.8125rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.75rem;
  }

  /* Stack newsletter section last on very small screens */
  .site-footer .row > div:last-child {
    order: 4;
  }
}

/* Focus Styles for Accessibility */
.site-footer a:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--footer-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer .row > div {
  animation: fadeInUp 0.6s ease-out backwards;
}

.site-footer .row > div:nth-child(1) {
  animation-delay: 0.1s;
}

.site-footer .row > div:nth-child(2) {
  animation-delay: 0.2s;
}

.site-footer .row > div:nth-child(3) {
  animation-delay: 0.3s;
}

.site-footer .row > div:nth-child(4) {
  animation-delay: 0.4s;
}
