/* Enhanced Footer Styles */
.footer {
  background: linear-gradient(135deg, 
    var(--bg-tertiary) 0%, 
    rgba(15, 15, 25, 0.95) 50%, 
    var(--bg-secondary) 100%);
  padding: 60px 0 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

/* Animated Background */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(48, 209, 88, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 159, 10, 0.1) 0%, transparent 50%);
  animation: particlesFloat 20s ease-in-out infinite;
}

.footer-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  animation: gridPulse 4s ease-in-out infinite;
}

.footer-glow-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: orbFloat 15s ease-in-out infinite;
}

.glow-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.glow-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: 30%;
  left: 50%;
  animation-delay: 10s;
}

/* Floating Tech Elements */
.footer-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.floating-tech-element {
  position: absolute;
  font-size: 24px;
  opacity: 0.3;
  animation: techFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-tech-element:nth-child(1) { top: 15%; left: 10%; }
.floating-tech-element:nth-child(2) { top: 25%; right: 20%; }
.floating-tech-element:nth-child(3) { bottom: 40%; left: 25%; }
.floating-tech-element:nth-child(4) { bottom: 20%; right: 15%; }

/* Main Footer Content */
.footer-main {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-bottom: 40px;
}

/* Brand Section */
.footer-brand-section {
  max-width: 600px;
}

.footer-brand-header {
  margin-bottom: 32px;
}

.footer-logo-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 8px;
}

.footer-logo .logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .logo-domain {
  color: var(--accent);
  margin-left: 2px;
}

.footer-badge {
  display: inline-block;
}

.footer-badge .badge-text {
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.footer-mission {
  margin-bottom: 40px;
}

.mission-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 18px;
  margin: 0;
}

.highlight-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.highlight-accent {
  color: var(--accent);
  font-weight: 600;
}

/* Enhanced Stats Grid */
.footer-stats-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.stat-card-footer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-footer:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.stat-card-footer:hover::before {
  opacity: 1;
}

.stat-card-footer .stat-icon {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.stat-card-footer .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-card-footer .stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Navigation Grid */
.footer-navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-nav-section {
  position: relative;
}

.footer-section-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section-title i {
  color: var(--primary);
  font-size: 14px;
}

/* Navigation Links */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.footer-nav-link i {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--primary);
}

.link-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.footer-nav-link:hover .link-glow {
  left: 100%;
}

/* Tech Stack List */
.footer-tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
}

.tech-item-footer i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--accent);
}

/* Enhanced Social Links */
.footer-social-enhanced {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-link-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link-enhanced:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-icon-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.social-icon-container i {
  font-size: 16px;
  z-index: 2;
}

.social-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.social-link-enhanced:hover .social-ripple {
  width: 100%;
  height: 100%;
}

.social-link-enhanced.linkedin:hover {
  border-color: #0a66c2;
}

.social-link-enhanced.linkedin:hover .social-icon-container {
  background: rgba(10, 102, 194, 0.2);
  color: #0a66c2;
}

.social-link-enhanced.discord:hover {
  border-color: #5865f2;
}

.social-link-enhanced.discord:hover .social-icon-container {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
}

.social-label {
  font-size: 14px;
  font-weight: 500;
}

/* Footer CTA */
.footer-cta {
  margin-top: 20px;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.cta-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-cta-button:hover .cta-glow {
  left: 100%;
}

/* Enhanced Footer Bottom */
.footer-bottom-enhanced {
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
  position: relative;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copyright-enhanced {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.copyright-year,
.copyright-name {
  font-weight: 600;
}

.copyright-name {
  color: var(--text-secondary);
}

.pulse {
  animation: heartbeat 1.5s ease-in-out infinite;
  color: #ff453a;
}

.build-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.build-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.build-tag i {
  color: var(--primary);
  font-size: 10px;
}

.footer-links-enhanced {
  display: flex;
  gap: 24px;
}

.footer-link-enhanced {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 6px 8px;
  border-radius: 6px;
}

.footer-link-enhanced:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.footer-link-enhanced i {
  font-size: 12px;
  color: var(--primary);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
}

.modal-header h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  color: var(--text-secondary);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(80vh - 120px);
}

.modal-body h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 16px 0;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-body ul {
  color: var(--text-secondary);
  margin: 16px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.modal-body a {
  color: var(--primary);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.sitemap-section h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
}

.sitemap-section li {
  margin-bottom: 8px;
}

.sitemap-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sitemap-section a:hover {
  color: var(--primary);
}

.sitemap-footer {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  font-size: 14px;
}

.sitemap-footer p {
  margin-bottom: 8px;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .footer-navigation-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 80px 0 0;
    margin-top: 60px;
  }
  
  .footer-main {
    gap: 50px;
    margin-bottom: 50px;
  }
  
  .footer-logo {
    font-size: 28px;
  }
  
  .mission-text {
    font-size: 16px;
  }
  
  .footer-stats-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .footer-navigation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-nav-list {
    align-items: center;
  }
  
  .footer-social-enhanced {
    align-items: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-links-enhanced {
    justify-content: center;
    gap: 16px;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-header,
  .modal-body {
    padding: 24px;
  }
  
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 60px 0 0;
  }
  
  .footer-logo {
    font-size: 24px;
  }
  
  .footer-stats-enhanced {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .floating-tech-element {
    font-size: 18px;
  }
  
  .footer-cta-button {
    width: 100%;
    justify-content: center;
  }
}
