.footer {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 3rem 0 0;
  margin-top: 2rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
  margin-right: 1rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #4a90e2;
  border-radius: 2px;
}

.footer-section p {
  color: #b3b3b3;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.9rem;
}

.footer-section a {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: 400;
}

.footer-section a:hover {
  color: #4a90e2;
  transform: translateX(3px);
}

.footer-section .social-links {
  display: flex;
  margin-top: 1.5rem;
  justify-content: center;
}

.footer-section .social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  margin-right: 1rem;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transform-origin: center;
}

.footer-section .social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-section .social-icon.email {
  background: #ea4335;
}

.footer-section .social-icon.youtube {
  background: #ff0000;
}

.footer-section .social-icon.discord {
  background: #5865F2;
}

.footer-section .social-links a i {
  margin-right: 0;
}

.footer-section .icon-text {
  font-weight: bold;
  font-size: 0.75rem;
  margin: 0;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 1.8rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
  color: #b3b3b3;
  letter-spacing: 0.5px;
}

.security-grade {
  margin-top: 1rem;
  text-align: center;
}

.security-grade img {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.security-grade img:hover {
  opacity: 1;
}

.no-top-margin {
  margin-top: 0;
  padding-top: 0;
}

.footer.no-top-margin {
  margin-top: 0;
  padding-top: 3rem;
}

/* Enhanced Mobile Footer */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-8) 0 0;
  }
  
  .footer-content {
    flex-direction: column;
    padding: 0 var(--space-4);
    gap: var(--space-4);
  }
  
  .footer-section {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-3);
  }
  
  .footer-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
  }
  
  .footer-section ul li {
    margin-bottom: var(--space-2);
  }
  
  .footer-section .social-links {
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }
  
  .footer-section .social-links a {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-right: 0;
  }
  
  .footer-bottom {
    padding: var(--space-4) 0;
    margin-top: var(--space-6);
  }
  
  .footer-bottom p {
    font-size: 0.875rem;
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-6) 0 0;
  }
  
  .footer-content {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }
  
  .footer-section {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
  }
  
  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: var(--space-2);
  }
  
  .footer-section p {
    font-size: 0.875rem;
    margin-bottom: var(--space-2);
  }
  
  .footer-section .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
  
  .footer-bottom {
    padding: var(--space-3) 0;
    margin-top: var(--space-4);
  }
  
  .footer-bottom p {
    font-size: 0.8125rem;
    padding: 0 var(--space-3);
  }
}