/* ============ FOOTER ============ */

.footer {
  position: relative;
  background: var(--dark-surface);
  overflow: hidden;
}

/* Wave Separator */
.footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 120px;
}

/* Main Footer Content */
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Company Info Section */
.company-info .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.company-info .logo-icon {
  position: relative;
  width: 45px;
  height: 45px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-info .logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.company-info .logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 12px;
  animation: logoPulse 2s ease-in-out infinite;
}

.company-info .brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.company-info .brand-name span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(124, 92, 252, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover i {
  color: white;
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

/* Footer Sections */
.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a i {
  font-size: 10px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(8px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Newsletter Section */
.newsletter-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.newsletter-form {
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 14px 55px 14px 20px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.2);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.2);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-group button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.5);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-item i {
  width: 35px;
  height: 35px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Crypto Ticker */
.crypto-ticker {
  border-top: 1px solid rgba(124, 92, 252, 0.1);
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
  padding: 20px 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ticker-item i {
  font-size: 20px;
  color: var(--primary);
}

.ticker-item .fa-bitcoin {
  color: #F7931A;
}

.ticker-item .fa-ethereum {
  color: #627EEA;
}

.ticker-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.ticker-price {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.ticker-change {
  font-size: 13px;
  font-weight: 600;
}

.ticker-change.positive {
  color: var(--success);
}

.ticker-change.negative {
  color: var(--danger);
}

.ticker-change.neutral {
  color: var(--text-muted);
}

/* Footer Bottom */
.footer-bottom {
  padding-bottom: 30px;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.bottom-links a:hover {
  color: var(--primary);
}

.bottom-links .divider {
  color: rgba(124, 92, 252, 0.3);
}

.payment-methods {
  display: flex;
  gap: 15px;
  font-size: 24px;
  color: var(--text-muted);
}

.payment-methods i {
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-methods i:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--dark-card);
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.4);
  transform: translateY(-5px);
}

.progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  animation: ringRotate 2s linear infinite;
}

.back-to-top:hover .progress-ring {
  border-top-color: white;
}

/* ============ FOOTER ANIMATIONS ============ */
@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes ringRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .company-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 60px 30px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ticker-track {
    gap: 30px;
    animation-duration: 15s;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-social {
    flex-wrap: wrap;
  }

  .bottom-links {
    flex-direction: column;
    gap: 10px;
  }

  .divider {
    display: none;
  }

  .payment-methods {
    justify-content: center;
  }
}