/* Footer Section */
.footer {
  width: 100vw;
  min-height: 120px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b0f1a 0%, #1a1f2a 50%, #0f1419 100%);
  border-top: 1px solid rgba(161,127,224,0.1);
}

/* Lightning gradient border effect */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #59c173 15%,
    #38f9d7 25%,
    #a17fe0 50%,
    #5d26c1 75%,
    #59c173 85%,
    transparent 100%
  );
  animation: lightning 3s ease-in-out infinite;
  filter: blur(1px);
  box-shadow: 0 0 20px rgba(161,127,224,0.6);
}

/* Lightning animation */
@keyframes lightning {
  0%, 100% {
    opacity: 0.5;
    filter: blur(1px);
    box-shadow: 0 0 20px rgba(161,127,224,0.6);
  }
  50% {
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 0 40px rgba(161,127,224,0.8);
  }
}

/* Footer content container */
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Copyright text */
.footer-copyright {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #808080;
  text-align: left;
  grid-column: 1;
  letter-spacing: 0.5px;
}

/* Footer logo */
.footer-logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(161,127,224,0.3));
  transition: all 0.3s ease;
}

.footer-logo img:hover {
  filter: drop-shadow(0 6px 20px rgba(161,127,224,0.5));
  transform: scale(1.05);
}

/* Glow effect behind logo */
.footer-logo::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle,
    rgba(161,127,224,0.3) 0%,
    rgba(93,38,193,0.2) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Empty right column for balance */
.footer-spacer {
  grid-column: 3;
}

/* Lightning particles effect */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(161,127,224,0.8), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(89,193,115,0.6), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(56,249,215,0.7), transparent),
    radial-gradient(1px 1px at 60% 10%, rgba(93,38,193,0.8), transparent),
    radial-gradient(2px 2px at 80% 80%, rgba(161,127,224,0.6), transparent);
  animation: particles 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particles {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer {
    min-height: 100px;
    margin-top: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    gap: 16px;
    padding: 24px 16px 20px 16px;
  }

  .footer-logo {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .footer-copyright {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    order: 2;
    font-size: 0.9rem;
  }

  .footer-spacer {
    display: none;
  }

  .footer-logo img {
    height: 56px;
  }

  .footer-logo::before {
    width: 100px;
    height: 100px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .footer {
    min-height: 80px;
    margin-top: 0;
  }

  .footer-content {
    padding: 20px 12px 16px 12px;
  }

  .footer-copyright {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .footer-logo img {
    height: 48px;
  }

  .footer-logo::before {
    width: 80px;
    height: 80px;
  }
}
