/* Beautiful Modern Footer Design */

.modern-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #1a1a2e 0%, 
    #16213e 25%, 
    #0f3460 50%, 
    #533483 75%, 
    #7209b7 100%);
  background-size: 400% 400%;
  animation: footerGradientShift 20s ease infinite;
  color: white;
  margin-top: 0;
}

@keyframes footerGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer Background Effects */
.footer-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating Particles in Footer */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.footer-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: footerParticleFloat 15s linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.footer-particle:nth-child(2) { left: 15%; animation-delay: 2s; }
.footer-particle:nth-child(3) { left: 25%; animation-delay: 4s; }
.footer-particle:nth-child(4) { left: 35%; animation-delay: 6s; }
.footer-particle:nth-child(5) { left: 45%; animation-delay: 8s; }
.footer-particle:nth-child(6) { left: 55%; animation-delay: 10s; }
.footer-particle:nth-child(7) { left: 65%; animation-delay: 12s; }
.footer-particle:nth-child(8) { left: 75%; animation-delay: 14s; }
.footer-particle:nth-child(9) { left: 85%; animation-delay: 16s; }
.footer-particle:nth-child(10) { left: 95%; animation-delay: 18s; }

@keyframes footerParticleFloat {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100%) rotate(360deg);
    opacity: 0;
  }
}

/* Geometric Shapes */
.footer-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.footer-shape {
  position: absolute;
  opacity: 0.1;
  animation: footerShapeFloat 25s ease-in-out infinite;
}

.footer-shape-circle {
  width: 80px;
  height: 80px;
  border: 3px solid #ff6b9d;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.footer-shape-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 60px solid #4facfe;
  top: 60%;
  right: 15%;
  animation-delay: 8s;
}

.footer-shape-hexagon {
  width: 60px;
  height: 34.64px;
  background: #43e97b;
  position: relative;
  top: 40%;
  right: 40%;
  animation-delay: 16s;
}

.footer-shape-hexagon:before,
.footer-shape-hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
}

.footer-shape-hexagon:before {
  bottom: 100%;
  border-bottom: 17.32px solid #43e97b;
}

.footer-shape-hexagon:after {
  top: 100%;
  border-top: 17.32px solid #43e97b;
}

@keyframes footerShapeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(20px) rotate(240deg) scale(0.9);
  }
}

/* Wave Effect at Top */
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, 
    #ff6b9d 0%, 
    #c44cf0 25%, 
    #4facfe 50%, 
    #43e97b 75%, 
    #ff6b9d 100%);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 40%);
  animation: footerWaveShimmer 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes footerWaveShimmer {
  0%, 100% {
    transform: translateX(0) scaleX(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateX(-10px) scaleX(1.02);
    filter: hue-rotate(30deg);
  }
}

/* Footer Content */
.modern-footer-content {
  position: relative;
  z-index: 3;
  padding: 4rem 0 2rem;
}

.modern-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.modern-footer-section {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.modern-footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 107, 157, 0.1) 0%, 
    rgba(196, 76, 240, 0.1) 50%, 
    rgba(79, 172, 254, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.modern-footer-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.modern-footer-section:hover::before {
  opacity: 1;
}

/* Logo Section Enhancement */
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-container img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.footer-logo-container:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6));
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #ff6b9d, #4facfe);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: footerTextShimmer 4s ease-in-out infinite;
}

@keyframes footerTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Section Headers */
.modern-footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.modern-footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #4facfe);
  border-radius: 2px;
  animation: footerUnderlineGlow 2s ease-in-out infinite alternate;
}

@keyframes footerUnderlineGlow {
  from { box-shadow: 0 0 5px rgba(255, 107, 157, 0.5); }
  to { box-shadow: 0 0 15px rgba(79, 172, 254, 0.8); }
}

/* Product List Enhancement */
.modern-footer-section ul {
  list-style: none;
  padding: 0;
}

.modern-footer-section ul li {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-left: 2rem;
  transition: all 0.3s ease;
}

.modern-footer-section ul li::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 0.5rem;
  animation: footerIconSpin 3s linear infinite;
}

.modern-footer-section ul li:hover {
  color: #ffffff;
  transform: translateX(10px);
}

@keyframes footerIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Contact Information Enhancement */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0;
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.footer-contact-item img {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(0.8);
  transition: all 0.3s ease;
}

.footer-contact-item:hover img {
  filter: invert(1) brightness(1.2) drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
  transform: scale(1.2);
}

/* Social Icons Enhancement */
.modern-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modern-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, rgba(255, 107, 157, 0.3), rgba(79, 172, 254, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.modern-social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.modern-social-icon:hover::before {
  left: 100%;
}

.modern-social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.modern-social-icon:nth-child(1):hover {
  background: linear-gradient(45deg, #25d366, #128c7e);
}

.modern-social-icon:nth-child(2):hover {
  background: linear-gradient(45deg, #e1306c, #fd1d1d);
}

.modern-social-icon:nth-child(3):hover {
  background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.modern-social-icon:nth-child(4):hover {
  background: linear-gradient(45deg, #1877f2, #42a5f5);
}

.modern-social-icon img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: all 0.3s ease;
}

.modern-social-icon:hover img {
  transform: scale(1.2);
}

/* Footer Bottom Enhancement */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  position: relative;
  z-index: 3;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #4facfe);
  transition: width 0.3s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff6b9d, #4facfe);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modern-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modern-footer-section {
    padding: 1.5rem;
  }
  
  .footer-logo-container {
    justify-content: center;
    text-align: center;
  }
  
  .footer-particles,
  .footer-shapes {
    display: none;
  }
  
  .modern-social-icons {
    justify-content: center;
  }
  
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .modern-footer,
  .footer-particle,
  .footer-shape,
  .footer-wave,
  .footer-logo-text {
    animation: none !important;
  }
  
  .modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #7209b7 100%);
  }
}

/* High Performance Mode */
.footer-particle,
.footer-shape {
  will-change: transform, opacity;
}

.modern-footer {
  will-change: background-position;
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
  .modern-footer-section {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
  }
}