/* ===== QUANTUM FOOTER ===== */

.quantum-footer {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0a0a0a 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 4rem 0 0 0;
  margin-top: 4rem;
}

/* ===== QUANTUM BACKGROUND ===== */

.footer-quantum-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.footer-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 50px 50px, #00d4ff, transparent),
    radial-gradient(2px 2px at 150px 30px, #ff00ff, transparent),
    radial-gradient(1px 1px at 250px 80px, #00ff88, transparent),
    radial-gradient(1px 1px at 350px 20px, #00d4ff, transparent),
    radial-gradient(2px 2px at 450px 60px, #ff00ff, transparent);
  background-repeat: repeat;
  background-size: 500px 500px;
  animation: footerParticleFloat 25s linear infinite;
  opacity: 0.4;
}

.footer-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 1000px 400px at 20% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 800px 300px at 80% 20%, rgba(255, 0, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 600px 250px at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  animation: footerWaveMotion 20s ease-in-out infinite;
}

.footer-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: footerGridPulse 12s ease-in-out infinite;
  opacity: 0.3;
}

.footer-energy-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(0, 212, 255, 0.08) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 0, 255, 0.06) 55%, transparent 65%);
  animation: footerEnergyFlow 15s linear infinite;
}

/* ===== MAIN FOOTER CONTENT ===== */

.footer-main-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

/* ===== BRAND SECTION ===== */

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quantum-brand {
  width: 100%;
}

.brand-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-quantum-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  animation: logoQuantumRotate 20s linear infinite;
}

.logo-energy-field {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoEnergyPulse 6s ease-in-out infinite;
}

.footer-logo {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.logo-pulse-ring {
  position: absolute;
  width: 120%;
  height: 120%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  animation: logoPulseRing 4s ease-in-out infinite;
}

.brand-content {
  text-align: center;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  text-align: center;
}

.title-main {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.title-highlight {
  background: linear-gradient(135deg, #00d4ff, #ff00ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00d4ff, #ff00ff, #00ff88);
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
  animation: brandTitleGlow 4s ease-in-out infinite;
}

.brand-tagline {
  font-size: 1rem;
  color: #a3a3a3;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* ===== NETWORK STATS ===== */

.network-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateX(5px);
}

.stat-item .stat-icon {
  font-size: 20px;
  color: #00d4ff;
  width: 24px;
  text-align: center;
  animation: statIconPulse 3s ease-in-out infinite;
}

.stat-item .stat-content {
  display: flex;
  flex-direction: column;
}

.stat-item .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00ff88;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LINKS GRID ===== */

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.link-column {
  display: flex;
  flex-direction: column;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.column-header .header-icon {
  font-size: 18px;
  color: #00d4ff;
  width: 20px;
  text-align: center;
}

.column-header .column-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantum-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #a3a3a3;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  font-size: 0.875rem;
}

.quantum-link:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(8px);
}

.quantum-link i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.quantum-link:hover i {
  color: #00d4ff;
  transform: scale(1.1);
}

.link-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.quantum-link:hover .link-glow {
  left: 100%;
}

/* ===== NEWSLETTER SECTION ===== */

.footer-newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-container {
  width: 100%;
  max-width: 400px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter-icon {
  font-size: 2rem;
  color: #00d4ff;
  margin-bottom: 1rem;
  animation: newsletterIconPulse 4s ease-in-out infinite;
}

.newsletter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.newsletter-subtitle {
  font-size: 0.875rem;
  color: #a3a3a3;
  margin: 0;
  line-height: 1.4;
}

.quantum-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-container {
  display: flex;
  gap: 0.75rem;
}

.input-container {
  position: relative;
  flex: 1;
}

.input-container input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.input-container input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.input-container input::placeholder {
  color: #666666;
}

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.input-container input:focus + .input-glow {
  opacity: 1;
}

.quantum-subscribe-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  border: none;
  border-radius: 12px;
  color: #000000;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.quantum-subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-energy {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnEnergyFlow 3s ease-in-out infinite;
}

.form-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a3a3a3;
}

.feature-item i {
  color: #00ff88;
  font-size: 10px;
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom-section {
  position: relative;
  z-index: 2;
}

.footer-divider {
  position: relative;
  height: 1px;
  margin-bottom: 2rem;
}

.divider-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.divider-glow {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  filter: blur(3px);
}

.footer-bottom-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.copyright-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright-text {
  font-size: 0.875rem;
  color: #a3a3a3;
}

.copyright-text .highlight {
  color: #00d4ff;
  font-weight: 600;
}

.build-info {
  font-size: 0.75rem;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quantum-heart {
  color: #ff00ff;
  animation: heartBeat 2s ease-in-out infinite;
}

.legal-section {
  display: flex;
  justify-content: center;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-link {
  font-size: 0.875rem;
  color: #a3a3a3;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-link:hover {
  color: #00d4ff;
}

.back-to-top-section {
  display: flex;
  justify-content: flex-end;
}

.back-to-top-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  overflow: hidden;
}

.back-to-top-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-3px);
}

.back-to-top-btn i {
  font-size: 16px;
  margin-bottom: 0.25rem;
}

.btn-quantum-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.back-to-top-btn:hover .btn-quantum-glow {
  left: 100%;
}

/* ===== ANIMATIONS ===== */

@keyframes footerParticleFloat {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-5px); }
  75% { transform: translateY(-30px) translateX(15px); }
}

@keyframes footerWaveMotion {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(180deg); }
}

@keyframes footerGridPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

@keyframes footerEnergyFlow {
  0% { transform: translateX(-50px); }
  100% { transform: translateX(50px); }
}

@keyframes logoQuantumRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoEnergyPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

@keyframes logoPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes brandTitleGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

@keyframes statIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes newsletterIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes btnEnergyFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-brand-section {
    align-items: center;
    text-align: center;
  }
  
  .network-stats {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-item {
    flex-direction: column;
    text-align: center;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .quantum-footer {
    padding: 3rem 0 0 0;
    margin-top: 3rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .footer-main-content {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .brand-logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
  }
  
  .footer-logo {
    width: 50px;
    height: 50px;
  }
  
  .brand-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .brand-tagline {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .network-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-item {
    flex-direction: row;
    text-align: left;
    padding: 0.8rem;
    justify-content: space-between;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .footer-links-column {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .column-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .quantum-link {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .newsletter-container {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .newsletter-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .newsletter-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .form-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .newsletter-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .footer-bottom-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .legal-link {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  .back-to-top-section {
    justify-content: center;
  }
  
  .back-to-top-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .quantum-footer {
    padding: 2rem 0 0 0;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .footer-main-content {
    padding: 0 0.5rem;
  }
  
  .brand-title {
    font-size: 1.6rem;
  }
  
  .brand-tagline {
    font-size: 0.8rem;
  }
  
  .network-stats {
    gap: 0.8rem;
  }
  
  .stat-item {
    padding: 0.6rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .column-title {
    font-size: 1rem;
  }
  
  .quantum-link {
    padding: 0.5rem 0;
    font-size: 0.8rem;
  }
  
  .newsletter-container {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .newsletter-title {
    font-size: 1.2rem;
  }
  
  .newsletter-description {
    font-size: 0.85rem;
  }
  
  .newsletter-input {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  
  .newsletter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .footer-bottom-content {
    padding: 0 0.5rem;
  }
  
  .legal-link {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
  
  .back-to-top-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .brand-title {
    font-size: 1.4rem;
  }
  
  .brand-tagline {
    font-size: 0.75rem;
  }
  
  .newsletter-title {
    font-size: 1.1rem;
  }
  
  .column-title {
    font-size: 0.9rem;
  }
  
  .quantum-link {
    font-size: 0.75rem;
  }
}

/* ===== SCROLL BEHAVIOR ===== */

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn.hide {
  opacity: 0;
  visibility: hidden;
}

/* ===== SPECIAL EFFECTS ===== */

.quantum-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, #ff00ff, #00ff88, transparent);
  animation: topBorderGlow 8s ease-in-out infinite;
}

@keyframes topBorderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
