/* Interactive Footer Styles */

.interactive-footer {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 14, 39, 0.95) 100%);
  border-top: 1.5px solid var(--border-light);
  color: var(--text-primary);
  padding: 1.25rem 1rem 0.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Main Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
  }

  .footer-section {
    align-items: center;
    text-align: center;
  }

  .footer-section ul {
    align-items: center;
  }

  .footer-section a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
  }

  .footer-section {
    align-items: center;
    text-align: center;
  }

  .footer-section ul {
    align-items: center;
  }

  .footer-section a {
    justify-content: center;
  }
}

/* Footer Section Styling */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.footer-section h3 {
  font-size: 1.05rem;
  text-transform: none;
  background: linear-gradient(135deg, var(--primary), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

/* About Section */
.footer-about {
  grid-column: 1;
}

.footer-about p {
  margin-bottom: 1rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(102, 126, 234, 0.1);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Footer Links */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Newsletter Section */
.footer-newsletter {
  background: rgba(102, 126, 234, 0.1);
  border: 1.5px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.newsletter-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.newsletter-content p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto 1rem;
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  background: var(--background);
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.newsletter-btn {
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, var(--primary), #667eea);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newsletter-btn:active {
  transform: translateY(0);
}

.newsletter-notice {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-left p,
.made-by {
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin: 0;
}

.footer-divider {
  color: var(--border-light);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-left {
    justify-content: center;
  }

  .footer-bottom-right {
    width: 100%;
  }
}

/* Footer Stats */
.footer-stats {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-stats {
    justify-content: center;
  }
}

.stat {
  color: var(--text-secondary);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #667eea);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  z-index: 99;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.1rem;
  }
}

/* Animation on scroll */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: slideUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

/* Hover effects for links */
.footer-section a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .interactive-footer {
    padding: 1.25rem 1rem 0.5rem;
    margin-top: 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .interactive-footer {
    padding: 1rem 0.75rem 0.5rem;
  }

  .footer-section h4 {
    font-size: 0.95rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-stats {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
  }
}

/* Dark mode compatibility (already dark) */
.interactive-footer {
  color-scheme: dark;
}
