.footer {
  margin: 0;
  margin-top: 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5); 
  font-family: "DM Sans", sans-serif;
  color: var(--light);
  background:
  radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
  radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
  radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    #667eea 20%,
    #764ba2 50%,
    #667eea 80%,
    transparent
  );
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-10px);
  }
  50% {
    opacity: 1;
    transform: translateX(10px);
  }
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer.visible {
  margin-left: -2vw;
  width: 102%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  margin-left: 13vw;
}

.footer-text {
  text-align: center;
}

.footer-title {
  background: linear-gradient(135deg, #89a4f4 0%, #b794f6 50%, #f687b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(137, 164, 244, 0.3));
}

.footer-title::after {
  content: '✨';
  position: absolute;
  right: -40px;
  top: 0;
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.footer-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(137, 164, 244, 0.4) 0%, transparent 70%);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.footer-link:hover::before {
  width: 150px;
  height: 150px;
}

.footer-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(137, 164, 244, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(137, 164, 244, 0.4);
}

.footer-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-link:hover .footer-icon {
  transform: rotate(360deg) scale(1.2);
}

/* Futuristic Gradient Portfolio Button */
.portfolio-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2, #f687b3);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite, pulseGlow 3s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(118, 75, 162, 0.5);
  transition: all 0.3s ease;
  width: 12vw;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(118, 75, 162, 0.5); }
  50% { box-shadow: 0 0 40px rgba(118, 75, 162, 0.8); }
}

.portfolio-button i {
  transition: transform 0.4s ease;
}

.portfolio-button:hover i {
  transform: rotate(-20deg) translateY(-2px);
}

.portfolio-button span {
  position: relative;
  display: inline-block;
}

.portfolio-button span::after {
  content: "";
  position: absolute;
  right: -25px;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-button:hover span::after {
  right: -15px;
  opacity: 1;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.7);
  }
}

.portfolio-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.portfolio-button:hover::before {
  left: 100%;
}

.portfolio-button::after {
  content: '→';
  position: absolute;
  right: 35px;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-button:hover::after {
  right: 20px;
  opacity: 1;
}

.portfolio-button:hover {
  transform: translateY(-3px) scale(1.05);
  padding-right: 50px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 20px 60px rgba(118, 75, 162, 0.8);
  animation: none;
}

.portfolio-button:hover i {
  transform: rotate(360deg);
}

.portfolio-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  color: white;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
  border-color: transparent;
}

.social-link i {
  position: relative;
  z-index: 1;
}

/* Discord pill effect */
.social-link.discord {
  width: 50px;
  height: 50px;
  padding: 0 12px;
  gap: 8px;
  justify-content: flex-start;
  overflow: hidden;
  transition: width 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  margin-top: -20px;
}

.social-link.discord:hover {
  width: 150px;
  transform: translateY(-3px);
  border-radius: 26px;
}

.social-link.discord .discord-username {
  opacity: 0;
  transform: translateX(-6px);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
  position: relative;
  z-index: 1;
}

.social-link.discord:hover .discord-username {
  opacity: 1;
  transform: translateX(0);
}

.social-link.discord::before {
  border-radius: 999px;
}

/* Copyright */
.copyright {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  width: 100%;
}

.copyright a {
  color: #89a4f4;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.copyright a:hover {
  color: #b794f6;
  text-shadow: 0 0 15px rgba(183, 148, 246, 0.6);
}

/* Decorative elements */
.footer-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  /* animation: float 10s ease-in-out infinite; */
}

.footer-decoration:nth-child(1) {
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.footer-decoration:nth-child(2) {
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 30px;
  }

  .footer-content {
    padding: 0 20px;
    margin-left: 5vw;
  }

  .footer-title {
    font-size: 1.8rem;
  }

  .footer-title::after {
    right: -30px;
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .footer-link {
    width: 68%;
    justify-content: center;
  }

  .portfolio-button {
    width: 42%;
    justify-content: center;
    padding: 16px 30px;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-title {
    font-size: 1.5rem;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .portfolio-button {
    font-size: 1rem;
    padding: 14px 25px;
  }
}