/* Footer Styles */
.footer {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  margin-top: auto;
}

/* Footer Top Section */
.footer-top {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Footer Brand */
.footer-brand {
  position: relative;
  z-index: 1;
}

.footer-logo {
  transition: transform 0.3s ease;
}

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

.footer-brand-text {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Social Icons */
.social-icon {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.bg-primary:hover {
  background: #3b82f6 !important;
}

.social-icon.bg-info:hover {
  background: #0ea5e9 !important;
}

.social-icon.bg-danger:hover {
  background: #ef4444 !important;
}

.social-icon.bg-success:hover {
  background: #22c55e !important;
}

/* Footer Title */
.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

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

/* Footer Links */
.footer-link {
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(5px);
}

.footer-link i {
  transition: transform 0.3s ease;
}

.footer-link:hover i {
  transform: translateX(3px);
}

/* Newsletter Form */
.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 16px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.newsletter-form .btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Contact Info */
.contact-icon {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-icon:hover {
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Payment Methods */
.payment-icon {
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-top {
    padding: 40px 0 30px;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  .footer-brand-text {
    font-size: 1.3rem;
  }

  .social-icon {
    width: 35px !important;
    height: 35px !important;
  }

  .contact-info .contact-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 576px) {
  .footer-top {
    padding: 30px 0 20px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .payment-icon i {
    font-size: 20px !important;
  }
}

/* Dark Mode Enhancement */
.dark-mode .footer {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand,
.footer-links,
.footer-title,
.newsletter-form,
.contact-info {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-brand { animation-delay: 0.1s; }
.footer-links { animation-delay: 0.2s; }
.footer-title { animation-delay: 0.3s; }
.newsletter-form { animation-delay: 0.4s; }
.contact-info { animation-delay: 0.5s; }

/* Gradient Border Effect */
.footer-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.5) 20%, 
    rgba(139, 92, 246, 0.5) 50%, 
    rgba(59, 130, 246, 0.5) 80%, 
    transparent 100%
  );
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}
