/* ============================================
   MOBILE FOOTER OPTIMIZATION
   Compact footer for mobile devices
   ============================================ */

@media (max-width: 768px) {

/* Footer Container - Keep dark theme like desktop, but optimized for mobile */
.footer,
.footer-modern {
  padding: 32px 16px 24px 16px !important; /* Compact padding */
  margin-top: 0 !important;
  background-color: #181a1f !important; /* Dark graphite like desktop */
  border-top: 3px solid #4a5568 !important;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.5) !important;
}

/* Override dark theme main content grid */
.footer-main-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important; /* Reduced gap for compactness */
  max-width: 100% !important;
  margin: 0 !important;
}

/* Footer Content */
.footer-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important; /* Reduced gap */
  max-width: 100% !important;
}

/* Footer Sections - Compact dark theme cards */
.footer-about,
.footer-navigation,
.footer-legal,
.footer-contact {
  background: #2d3748 !important; /* Dark card background */
  padding: 16px 12px !important; /* Reduced padding */
  border-radius: 8px !important; /* Smaller radius */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  grid-column: 1 !important;
  border: 1px solid #4a5568 !important; /* Subtle border */
}

/* Footer Brand - Removed (too much space) */
.footer-brand {
  display: none !important; /* Hide on mobile for compactness */
}

.footer-logo {
  height: 40px !important;
  width: auto !important;
  margin-bottom: 12px !important;
  filter: brightness(1.2) !important;
}

.footer-brand-text {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.footer-description {
  font-size: 13px !important;
  color: #a0aec0 !important;
  line-height: 1.5 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Override desktop footer title - Dark theme */
.footer-title {
  color: #e2e8f0 !important; /* Light color for dark bg */
  font-size: 14px !important; /* Smaller for compactness */
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: block !important; /* Block instead of flex */
}

.footer-title i {
  display: none !important; /* Hide icons for compactness */
}

/* Override footer text colors - Dark theme */
.footer-text {
  color: #a0aec0 !important; /* Light grey for dark bg */
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* Footer nav links - Compact dark theme */
.footer-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important; /* Reduced gap */
}

.footer-nav .footer-link {
  color: #a0aec0 !important; /* Light grey */
  padding: 8px 0 !important; /* Less padding */
  font-size: 13px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  gap: 1.5rem !important;

}

.footer-nav .footer-link:hover,
.footer-nav .footer-link:active {
  color: #e2e8f0 !important; /* Brighter on tap */
  transform: translateX(2px) !important; /* Subtle shift */
}

/* Sign in links - Compact */
.stat-signIn {
  display: flex !important;
  flex-direction: row !important; /* Horizontal */
  gap: 8px !important;
  margin-top: 12px !important;
  justify-content: center !important;
}

.stat-signIn .footer-link {
  padding: 8px 16px !important;
  background: #4a5568 !important; /* Dark button */
  border-radius: 6px !important;
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  flex: 1 !important;
  justify-content: center !important;
}

.stat-signIn .footer-link:active {
  background: #4cb15c !important;
  color: white !important;
  transform: scale(0.95) !important;
}

/* Footer Links Grid - Hide (redundant with footer sections) */
.footer-links {
  display: none !important;
}

/* Social Links - Hide for compactness */
.footer-social {
  display: none !important;
}

.footer-social-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #212529 !important;
  text-align: center !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.social-link {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6c757d !important;
  font-size: 22px !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.social-link::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4cb15c 0%, #3a9b4a 100%) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.4s ease, height 0.4s ease !important;
}

.social-link i {
  position: relative !important;
  z-index: 1 !important;
  transition: color 0.3s ease !important;
}

.social-link:active {
  transform: scale(0.92) !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

.social-link:active::before {
  width: 100% !important;
  height: 100% !important;
}

.social-link:active i {
  color: white !important;
}

/* Specific social colors on active */
.social-link[href*="facebook"]:active::before {
  background: linear-gradient(135deg, #1877f2 0%, #0c5fcd 100%) !important;
}

.social-link[href*="twitter"]:active::before,
.social-link[href*="x.com"]:active::before {
  background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%) !important;
}

.social-link[href*="instagram"]:active::before {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 100%) !important;
}

.social-link[href*="linkedin"]:active::before {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%) !important;
}

/* Footer Extended section - Compact */
.footer-extended {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  border: none !important;
  grid-template-columns: 1fr !important;
}

/* Security section - Compact dark card */
.footer-security {
  background: #2d3748 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  margin: 0 !important;
  grid-column: 1 !important;
  align-self: stretch !important;
  border: 1px solid #4a5568 !important;
}

.security-title {
  color: #a0aec0 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}

.security-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.security-links a img {
  height: 18px !important; /* Smaller */
  filter: brightness(0.85) saturate(0.9) !important;
  opacity: 1 !important;
  transition: all 0.2s ease !important;
}

.security-links a:active img {
  filter: brightness(1.1) !important;
  transform: scale(1.05) !important;
}

/* Footer Bottom - Compact dark theme */
.footer-bottom {
  text-align: center !important;
  padding: 16px 12px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  border-top: 1px solid #4a5568 !important;
}

.footer-bottom-center {
  width: 100% !important;
}

.footer-copy {
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin-bottom: 8px !important;
}

.footer-info {
  color: #a0aec0 !important;
  font-size: 11px !important;
  margin-bottom: 0 !important;
}

.footer-copyright {
  font-size: 13px !important;
  color: #6c757d !important;
  margin-bottom: 16px !important;
  line-height: 1.6 !important;
}

.footer-copyright strong,
.footer-copyright b {
  color: #212529 !important;
  font-weight: 700 !important;
}

.footer-legal {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
}

.footer-legal-link {
  font-size: 13px !important;
  color: #6c757d !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 8px !important;
  background: #f8f9fa !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
}

.footer-legal-link:active {
  color: white !important;
  background: linear-gradient(135deg, #4cb15c 0%, #3a9b4a 100%) !important;
  transform: scale(0.95) !important;
}

.footer-legal-link i {
  margin-right: 6px !important;
  font-size: 14px !important;
}

/* Newsletter Signup - Hide for compactness */
.footer-newsletter {
  display: none !important;
}

.footer-newsletter::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%) !important;
  animation: pulse 3s ease-in-out infinite !important;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.newsletter-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: white !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  z-index: 1 !important;
}

.newsletter-description {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
  position: relative !important;
  z-index: 1 !important;
}

.newsletter-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.newsletter-input {
  flex: 1 !important;
  padding: 14px 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.2s ease !important;
}

.newsletter-input:focus {
  outline: none !important;
  border-color: white !important;
  background: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.newsletter-button {
  padding: 14px 24px !important;
  background: white !important;
  color: #4cb15c !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  min-height: 48px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.newsletter-button:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Contact Info - Compact version */
.footer-contact-title {
  display: none !important; /* Hide title for compactness */
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 25px !important;
  font-size: 13px !important;
  color: #a0aec0 !important;
  margin-bottom: 8px !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
}

.contact-item:last-child {
  margin-bottom: 0 !important;
}

.contact-item i {
  font-size: 14px !important;
  color: #4cb15c !important;
  width: 16px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.contact-item a {
  color: #a0aec0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.contact-item:active a {
  color: #e2e8f0 !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed !important;
  bottom: 100px !important;
  right: 16px !important;
  width: 35px !important;
  height: 35px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4cb15c 0%, #3a9b4a 100%) !important;
  color: white !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
  z-index: 1000 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.8) !important;
  cursor: pointer !important;
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.back-to-top:active {
  transform: scale(0.85) !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5) !important;
}

.back-to-top::before {
  content: '' !important;
  position: absolute !important;
  top: 70% !important;
  left: 70% !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: white !important;
  transform: translate(-50%, -50%) scale(0) !important;
  transition: transform 0.3s ease !important;
  opacity: 0.3 !important;
}

.back-to-top:active::before {
  transform: translate(-50%, -50%) scale(1.2) !important;
}

.back-to-top i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
  animation: bounce 2s ease-in-out infinite !important;
}

@keyframes bounce {
  0%, 100% { 
    transform: translate(-50%, -50%) translateY(0); 
  }
  50% { 
    transform: translate(-50%, -50%) translateY(-4px); 
  }
}

/* Hide extra elements for compactness */
.footer-divider,
.footer-app-badges,
.footer-trust-badges {
  display: none !important;
}

/* Responsive Adjustments for very small screens */
@media (max-width: 480px) {
  .footer {
    padding: 32px 12px 72px 12px !important;
  }
  
  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .footer-column {
    padding: 16px 12px !important;
  }
  
  .footer-social {
    gap: 10px !important;
    padding: 20px 12px !important;
  }
  
  .social-link {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
  
  .footer-brand {
    padding: 16px 12px !important;
  }
  
  .footer-logo {
    height: 42px !important;
  }
  
  .back-to-top {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
    bottom: 100px !important;
    right: 12px !important;
  }
  
  .footer-legal {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .footer-legal-link {
    width: 100% !important;
    justify-content: center !important;
  }
}


} /* End of @media (max-width: 768px) */