/* 
===============================================
Modern Footer - Dark Theme with Color Separation
===============================================
*/

.footer-modern {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #1d4ed8 100%);
  color: #f8fafc;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-top: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 20px rgba(30, 58, 138, 0.3);
  padding: 3rem 0 1rem;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.footer-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.02"/></pattern></defs><rect width="100" height="20" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.4;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 2.4;
  transition: all 0.3s ease;
  display: block;
  padding: 0.4rem 0;
  position: relative;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: none !important;
  transform: translateX(8px);
}

.footer-link:focus {
  text-decoration: none !important;
  outline: none;
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form .input-group {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-control {
  background: rgba(247, 250, 252, 0.1);
  border: 1px solid rgba(160, 174, 192, 0.2);
  color: #f7fafc;
  backdrop-filter: blur(15px);
  font-size: 0.875rem;
  padding: 0.75rem;
}

.newsletter-form .form-control::placeholder {
  color: #a0aec0;
}

.newsletter-form .form-control:focus {
  background: rgba(247, 250, 252, 0.15);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
  color: #f7fafc;
}

.footer-bottom {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-top: 2rem;
  padding: 1.5rem 0;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.4) 25%, rgba(6, 182, 212, 0.4) 75%, transparent 100%);
}

.security-badges .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 25px;
  border: 1px solid currentColor;
  backdrop-filter: blur(10px);
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand h5 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
}

.btn-floating {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  border: none;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  color: white;
}

.btn-floating:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
  background: var(--primary-blue-dark);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-modern .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 2rem;
  }
  
  .footer-bottom .row > div {
    text-align: center !important;
  }
  
  .footer-bottom .row > div:first-child {
    margin-bottom: 1.5rem;
  }
  
  .security-badges {
    justify-content: center;
    display: flex;
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .footer-title {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Remove all underlines from footer links */
.footer-modern a,
.footer-modern a:hover,
.footer-modern a:focus,
.footer-modern a:active,
.footer-modern a:visited {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Enhanced text contrast for better readability */
.footer-modern .text-muted {
  color: #94a3b8 !important;
}

.footer-modern .small,
.footer-modern small {
  color: #94a3b8 !important;
}

/* Button styling in footer */
.footer-modern .btn {
  text-decoration: none !important;
  border: none;
  transition: all 0.3s ease;
}

.footer-modern .btn:hover,
.footer-modern .btn:focus {
  text-decoration: none !important;
  transform: translateY(-2px);
}