/* =========================
   FOOTER - ENHANCED
========================= */
.ws-footer {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

/* Animated background pattern */
.ws-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 30%);
  pointer-events: none;
  animation: footerBgMove 20s ease-in-out infinite;
}

@keyframes footerBgMove {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* =========================
   BRAND SECTION
========================= */
.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.brand-hover {
  transition: all 0.3s ease;
}

.brand-hover:hover .footer-logo {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.footer-brand-text {
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.brand-hover:hover .footer-brand-text {
  transform: translateX(5px);
}

.text-muted-50 {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-desc {
  color: #475569;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
  border-left: 2px solid rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.footer-desc:hover {
  border-left-color: #2563eb;
  padding-left: 20px;
}

/* =========================
   SOCIAL ICONS
========================= */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.social-icon i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.social-icon:hover i {
  transform: rotate(360deg);
}

/* Individual social colors on hover */
.social-icon:nth-child(1):hover { background: #0077b5; } /* LinkedIn */
.social-icon:nth-child(2):hover { background: #000000; } /* X */
.social-icon:nth-child(3):hover { background: #1877f2; } /* Facebook */
.social-icon:nth-child(4):hover { background: #e4405f; } /* Instagram */
.social-icon:nth-child(5):hover { background: #ff0000; } /* YouTube */

/* =========================
   FOOTER HEADINGS
========================= */
.footer-heading {
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 12px;
  color: #0f172a;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.footer-heading:hover {
  transform: translateX(5px);
}

.footer-heading:hover::before {
  height: 22px;
  top: 2px;
}

/* =========================
   FOOTER LINKS
========================= */
.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.footer-links a {
  text-decoration: none;
  color: #334155;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links a i {
  color: #2563eb;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #2563eb;
  transform: translateX(8px);
}

.footer-links a:hover i {
  transform: scale(1.2);
  color: #7c3aed;
}

/* =========================
   FOOTER CARDS
========================= */
.footer-card {
  background: white;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.footer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.footer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 40px rgba(37, 99, 235, 0.15);
  border-color: transparent;
}

.footer-card:hover::before {
  transform: translateX(0);
}

/* Card icon wrapper */
.icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #eef6ff, #e0f2fe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-wrapper i {
  font-size: 1.8rem;
  color: #2563eb;
  transition: all 0.3s ease;
}

.footer-card:hover .icon-wrapper {
  background: #2563eb;
  transform: rotate(5deg);
}

.footer-card:hover .icon-wrapper i {
  color: white;
  transform: scale(1.1);
}

.support-email {
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.support-email:hover {
  color: #1d4ed8 !important;
  transform: scale(1.02);
}

/* =========================
   NEWSLETTER SECTION
========================= */
.newsletter-card {
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  padding: 30px;
  border-radius: 25px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
  transition: all 0.4s ease;
}

.newsletter-card:hover {
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

.newsletter-form .input-group {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: 2px solid transparent;
  padding: 14px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.newsletter-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.newsletter-form .btn-primary {
  padding: 14px 30px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.newsletter-form .btn-primary:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.newsletter-form .btn-primary:hover::before {
  left: 100%;
}

.newsletter-form .btn-primary i {
  transition: all 0.3s ease;
}

.newsletter-form .btn-primary:hover i {
  transform: translateX(5px);
}

/* =========================
   DIVIDER
========================= */
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  opacity: 0.5;
}

/* =========================
   BOTTOM LINKS
========================= */
.footer-mini-links {
  display: flex;
  gap: 20px;
}

.footer-mini-link {
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.footer-mini-link i {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-mini-link:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

.footer-mini-link:hover i {
  transform: scale(1.2);
  color: #7c3aed;
}

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

.copyright i.bi-heart-fill {
  animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.back-to-top i {
  font-size: 1.2rem;
  color: #2563eb;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  color: #2563eb;
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 991px) {
  .footer-heading {
    margin-top: 1rem;
  }
  
  .newsletter-card {
    padding: 25px;
  }
  
  .newsletter-form .btn-primary {
    padding: 14px 20px;
  }
}

@media (max-width: 768px) {
  .footer-desc {
    max-width: 100%;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-card {
    text-align: center;
  }
  
  .footer-card .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .icon-wrapper {
    margin-bottom: 10px;
  }
  
  .newsletter-card {
    text-align: center;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .newsletter-form .form-control,
  .newsletter-form .btn-primary {
    width: 100%;
    border-radius: 50px !important;
  }
  
  .footer-mini-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .copyright {
    text-align: center;
    line-height: 1.8;
  }
}

@media (max-width: 576px) {
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .social-icon i {
    font-size: 1rem;
  }
  
  .footer-mini-links {
    gap: 12px;
  }
  
  .footer-mini-link {
    font-size: 0.85rem;
  }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-card {
  animation: slideInUp 0.5s ease;
  animation-fill-mode: both;
}

.footer-card:nth-child(1) { animation-delay: 0.1s; }
.footer-card:nth-child(2) { animation-delay: 0.2s; }

/* Hover effect for footer columns */
.col-lg-2:hover .footer-heading {
  color: #2563eb;
}

/* Loading animation for subscribe button */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-primary.subscribing i {
  animation: spin 1s linear infinite;
}

/* =========================
   PRINT STYLES
========================= */
@media print {
  .ws-footer {
    background: none;
    border-top: 1px solid #ddd;
  }
  
  .social-icons,
  .newsletter-card,
  .back-to-top {
    display: none;
  }
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}