/* Futuristic Footer Section Styles */

/* Background Elements */
.footer-bg-gradient {
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8), rgba(0, 0, 0, 1));
  position: relative;
  z-index: 0;
}

.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, transparent 80%);
  z-index: -1;
}

.footer-glow {
  position: absolute;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
  animation: footer-glow-float 15s ease-in-out infinite;
}

.footer-glow-1 {
  top: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation-delay: 0s;
}

.footer-glow-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  animation-delay: 5s;
}

.footer-glow-3 {
  bottom: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  animation-delay: 10s;
}

@keyframes footer-glow-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
}

/* Floating particles */
.footer-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.footer-particle {
  position: absolute;
  background-color: var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: footer-float-particle 15s linear infinite;
}

@keyframes footer-float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(0) translateX(20px);
    opacity: 0;
  }
}

/* Futuristic Logo */
.footer-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  overflow: hidden;
  z-index: 1;
}

.footer-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
  background-size: 400% 400%;
  animation: footer-gradient-shift 8s linear infinite;
  z-index: -1;
}

@keyframes footer-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  z-index: 1;
}

.footer-logo-glow {
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(10px);
  z-index: 0;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Futuristic Social Icons */
.footer-social-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-social-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.footer-social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-social-icon i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  transform: translateY(-5px);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-social-icon:hover::before {
  opacity: 1;
}

.footer-social-icon:hover i {
  transform: scale(1.2);
}

.footer-social-icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-social-icon:hover .footer-social-icon-glow {
  opacity: 0.5;
}

/* Futuristic Section Titles */
.footer-title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.footer-title-primary::after {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.footer-title-secondary::after {
  background: linear-gradient(90deg, var(--color-secondary), transparent);
}

.footer-title-accent::after {
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* Futuristic Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-link-bullet::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-link-bullet-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-link-item:hover .footer-link-bullet-glow {
  opacity: 0.7;
  animation: footer-bullet-pulse 1.5s infinite;
}

@keyframes footer-bullet-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

.footer-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transition: width 0.3s ease;
}

.footer-link-item:hover .footer-link {
  color: white;
  transform: translateX(5px);
}

.footer-link-item:hover .footer-link-bullet {
  background-color: white;
  box-shadow: 0 0 8px var(--color-primary);
}

.footer-link-item:hover .footer-link-bullet::before {
  opacity: 1;
}

.footer-link-item:hover .footer-link::after {
  width: 100%;
}

/* Futuristic Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.footer-contact-icon-container {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.footer-contact-item:hover .footer-contact-icon-container {
  background: rgba(99, 102, 241, 0.2);
}

.footer-contact-icon {
  font-size: 1rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
  z-index: 1;
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.1);
}

.footer-contact-icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon-glow {
  opacity: 0.3;
}

.footer-contact-content {
  flex: 1;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
}

.footer-contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-contact-link:hover {
  color: white;
}

.footer-contact-link:hover::after {
  width: 100%;
}

/* Futuristic Newsletter */
.footer-newsletter {
  position: relative;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 3rem;
}

.footer-newsletter:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.footer-newsletter-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-newsletter:hover .footer-newsletter-glow {
  opacity: 0.1;
}

.footer-newsletter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-newsletter-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-newsletter-form {
    flex-direction: row;
  }
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  color: white;
  transition: all 0.3s ease;
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.footer-newsletter-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.footer-newsletter-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-newsletter-button:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.footer-newsletter-button:hover::before {
  opacity: 1;
}

.footer-newsletter-button-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-newsletter-button-icon {
  transition: transform 0.3s ease;
}

.footer-newsletter-button:hover .footer-newsletter-button-icon {
  transform: translateX(3px);
}

/* Futuristic Copyright Section */
.footer-copyright {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-copyright {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-made-with {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-heart {
  color: #ef4444;
  font-size: 1.25rem;
  margin: 0 0.5rem;
  animation: footer-heart-beat 1.5s ease-in-out infinite;
}

@keyframes footer-heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.footer-tech-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.footer-tech-icon {
  transition: all 0.3s ease;
}

.footer-tech-icon:hover {
  transform: translateY(-3px);
}

.footer-nodejs-icon {
  color: #68a063;
}

.footer-js-icon {
  color: #f7df1e;
}

.footer-tailwind-icon {
  color: #38bdf8;
}

/* Back to Top Button */
.footer-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 50;
  overflow: hidden;
}

.footer-back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-back-to-top:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-back-to-top:hover::before {
  opacity: 1;
}

.footer-back-to-top-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.footer-back-to-top:hover .footer-back-to-top-icon {
  transform: translateY(-3px);
}

.footer-back-to-top-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-back-to-top:hover .footer-back-to-top-glow {
  opacity: 0.5;
}

/* Hover interaction effects */
.footer-hover-interaction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.footer-social-icon:hover .footer-hover-interaction,
.footer-contact-item:hover .footer-hover-interaction {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0.5;
}

/* Shine effect */
.footer-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0s;
  z-index: 2;
  pointer-events: none;
}

.footer-social-icon:hover .footer-shine,
.footer-contact-item:hover .footer-shine,
.footer-newsletter:hover .footer-shine {
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

/* Reveal Animation */
.footer-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
