/* ======= FOOTER BASE ======= */
.site-footer {
  background: linear-gradient(135deg, #0d1f24 0%, #14363d 30%, #1a4d56 100%);
  color: #f9fbfd;
  padding: 10px 20px 5px;
  font-family: 'Open Sans', sans-serif;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(34, 185, 187, 0.3);
}

/* Forex-themed background pattern */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(34, 185, 187, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(34, 185, 187, 0.05) 0%, transparent 20%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(34, 185, 187, 0.03) 10px,
      rgba(34, 185, 187, 0.03) 20px
    );
  z-index: 0;
}

/* Animated forex numbers background */
.forex-numbers {
  position: absolute;
  color: rgba(34, 185, 187, 0.1);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.8rem;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  animation: floatNumbers 25s linear infinite;
}

@keyframes floatNumbers {
  0% {
    transform: translateY(100vh) translateX(-100px);
  }
  100% {
    transform: translateY(-100px) translateX(100px);
  }
}

/* Create multiple number elements */
.forex-numbers:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; }
.forex-numbers:nth-child(2) { left: 15%; top: 30%; animation-delay: 5s; animation-duration: 20s; }
.forex-numbers:nth-child(3) { left: 25%; top: 60%; animation-delay: 10s; animation-duration: 30s; }
.forex-numbers:nth-child(4) { left: 75%; top: 20%; animation-delay: 2s; animation-duration: 25s; }
.forex-numbers:nth-child(5) { left: 85%; top: 50%; animation-delay: 15s; animation-duration: 35s; }
.forex-numbers:nth-child(6) { left: 60%; top: 80%; animation-delay: 7s; animation-duration: 22s; }

/* ======= MAIN CONTENT ======= */
.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ======= SOCIAL MEDIA ======= */
.footer-social {
  margin: 30px 0 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.footer-social::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22b9bb, transparent);
}

.footer-social::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22b9bb, transparent);
}

/* Force correct Font Awesome font-family */
.fas, .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.fab {
  font-family: "Font Awesome 6 Brands" !important;
}

/* Social Icons - Trading Terminal Style */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #22b9bb !important;
  background: rgba(20, 54, 61, 0.9);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(34, 185, 187, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 185, 187, 0.2), rgba(34, 185, 187, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-social a::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 185, 187, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.footer-social a:hover {
  background: rgba(34, 185, 187, 0.15);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 16px rgba(34, 185, 187, 0.25);
  border-color: #22b9bb;
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a:hover::after {
  opacity: 1;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* ======= COPYRIGHT & CREDIT ======= */
.footer-info {
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.footer-info p {
  margin: 8px 0;
  color: rgba(249, 251, 253, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 1rem;
  color: #f9fbfd;
  font-weight: 400;
  margin-bottom: 15px;
}

.footer-credit {
  font-size: 0.85rem;
  margin-top: 15px;
  color: rgba(249, 251, 253, 0.7);
}

.footer-credit a {
  color: #22b9bb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(34, 185, 187, 0.1);
}

.footer-credit a:hover {
  color: #ffffff;
  background: rgba(34, 185, 187, 0.2);
  text-decoration: none;
}

/* Trading chart line animation */
.chart-line {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34, 185, 187, 0.2) 20%, 
    rgba(34, 185, 187, 0.4) 50%, 
    rgba(34, 185, 187, 0.2) 80%, 
    transparent 100%
  );
  z-index: 0;
  animation: chartLine 8s ease-in-out infinite;
}

@keyframes chartLine {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
  .site-footer {
    padding: 10px 15px 10px;
  }
  
  .forex-numbers {
    font-size: 1.2rem;
    animation-duration: 15s !important;
  }
  
  .footer-social {
    gap: 10px;
    margin: 30px 0;
  }
  
  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .footer-social::before,
  .footer-social::after {
    width: 150px;
  }
  
  .footer-info p {
    font-size: 0.9rem;
  }
  
  .footer-copyright {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer-social {
    gap: 8px;
  }
  
  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  
  .forex-numbers {
    font-size: 1rem;
  }
  
  .footer-social::before,
  .footer-social::after {
    width: 120px;
    top: -20px;
    bottom: -20px;
  }
}

/* Entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer-social a {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.footer-social a:nth-child(1) { animation-delay: 0.1s; }
.footer-social a:nth-child(2) { animation-delay: 0.15s; }
.footer-social a:nth-child(3) { animation-delay: 0.2s; }
.footer-social a:nth-child(4) { animation-delay: 0.25s; }
.footer-social a:nth-child(5) { animation-delay: 0.3s; }
.footer-social a:nth-child(6) { animation-delay: 0.35s; }
.footer-social a:nth-child(7) { animation-delay: 0.4s; }
.footer-social a:nth-child(8) { animation-delay: 0.45s; }

.footer-info {
  animation: fadeIn 0.8s ease 0.6s both;
}