.footer-main {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-image {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.logo-glow-footer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.footer-brand-text {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
}

.footer-brand-name {
  color: var(--text-primary);
}

.footer-brand-accent {
  color: #667eea;
  margin-left: 2px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.footer-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  min-width: 80px;
}

.footer-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-stat .stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.footer-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 1px;
}

.footer-section-title i {
  color: #667eea;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(5px);
  padding-left: 0.5rem;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.footer-link:hover::before {
  transform: scaleY(1);
}

.footer-link i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  color: #667eea;
  transition: transform 0.3s ease;
}

.footer-link:hover i {
  transform: scale(1.1);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: white;
}

.social-link.twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  color: white;
}

.social-link.github {
  background: linear-gradient(135deg, #333, #24292e);
  color: white;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover .social-glow {
  opacity: 1;
}

.footer-legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.copyright-brand {
  font-weight: 700;
  color: #667eea;
}

.footer-heart {
  margin-left: 0.5rem;
  color: var(--text-secondary);
}

.footer-heart i {
  color: #ef4444;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.footer-badge i {
  color: #10b981;
  font-size: 0.9rem;
}

.footer-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  opacity: 0.6;
}

.footer-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.footer-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(102, 126, 234, 0.4);
  border-radius: 50%;
  animation: particleFloat 12s infinite linear;
}

.footer-particles .particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.footer-particles .particle:nth-child(2) {
  left: 30%;
  animation-delay: -4s;
}

.footer-particles .particle:nth-child(3) {
  left: 60%;
  animation-delay: -8s;
}

.footer-particles .particle:nth-child(4) {
  left: 85%;
  animation-delay: -12s;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  
  .footer-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 3rem 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    text-align: center;
    max-width: none;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 1.25rem;
  }
  
  .footer-description {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-stats {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .footer-stat {
    min-width: 70px;
    padding: 0.75rem;
    flex: 1;
    max-width: 100px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section-title {
    justify-content: center;
    margin-bottom: 1.25rem;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-link {
    justify-content: center;
    padding: 0.75rem 0;
  }
  
  .footer-social {
    justify-content: center;
    margin-bottom: 1.25rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-badges {
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 2rem 0.75rem 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-brand {
    text-align: center;
    max-width: none;
  }
  
  .footer-brand-text {
    font-size: 1.5rem;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 1.25rem;
  }
  
  .footer-logo-image {
    width: 40px;
    height: 40px;
  }
  
  .logo-img {
    width: 30px;
    height: 30px;
  }
  
  .footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .footer-stat {
    flex: 1;
    min-width: 60px;
    max-width: 90px;
    padding: 0.5rem;
  }
  
  .footer-stat .stat-number {
    font-size: 1.1rem;
  }
  
  .footer-stat .stat-label {
    font-size: 0.7rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    justify-content: center;
  }
  
  .footer-social {
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-badges {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .footer-badge {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-particles .particle {
    animation: none;
  }
  
  .logo-glow-footer {
    animation: none;
  }
  
  .footer-heart i {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .footer-main {
    background: rgba(0, 0, 0, 0.95);
    border-top-color: rgba(255, 255, 255, 0.3);
  }
  
  .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .footer-stat:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media print {
  .footer-bg-effects {
    display: none;
  }
  
  .footer-main {
    background: white !important;
    color: black !important;
  }
  
  .footer-link,
  .footer-description,
  .footer-copyright {
    color: black !important;
  }
}