:root {
  --footer-bg: var(--unified-bg);
  --footer-glass: var(--unified-glass);
  --footer-border: var(--unified-border);
  --footer-text: #e2e8f0;
  --footer-text-secondary: #94a3b8;
  --footer-accent: #3b82f6;
  --footer-accent-hover: #60a5fa;
  --footer-gradient: var(--unified-gradient);
  --footer-shadow: var(--unified-shadow);
  --footer-spacing-xs: 0.5rem;
  --footer-spacing-sm: 1rem;
  --footer-spacing-md: 2rem;
  --footer-spacing-lg: var(--unified-spacing-lg);
  --footer-border-radius: 16px;
  --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-modern {
  background: var(--footer-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--footer-border);
  position: relative;
  overflow: hidden;
  padding: var(--footer-spacing-lg) 0 0;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--footer-gradient);
  opacity: 0.3;
}

.footer-modern::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: footerPulse 8s ease-in-out infinite;
}

@keyframes footerPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: var(--footer-spacing-xl);
  padding: var(--footer-spacing-xl) 0;
  margin-bottom: var(--footer-spacing-lg);
  border-bottom: 1px solid var(--footer-border);
  align-items: start;
}

/* Improved footer flex layout for better responsiveness */
@media (max-width: 1024px) {
  .footer-main {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--footer-spacing-md);
  }
  
  .footer-brand {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--footer-spacing-md);
  }
  
  .footer-column {
    flex: 1 1 calc(33.333% - var(--footer-spacing-md));
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand,
  .footer-column {
    flex: 2 2 100%;
    max-width: 800%;
    margin-bottom: var(--footer-spacing-md);
  }
  
  .footer-column h4 {
    justify-content: center;
  }
  
  .footer-column ul {
    justify-content: center;
  }
}

.footer-brand {
  max-width: 400px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-sm);
  margin-bottom: var(--footer-spacing-md);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  position: relative;
}

.brand-logo i {
  font-size: 2.5rem;
  background: var(--footer-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoSpin 3s ease-in-out infinite;
}

@keyframes logoSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

.footer-description {
  color: var(--footer-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--footer-spacing-md);
  font-size: 1.1rem;
}

.gradient-text {
  background: var(--footer-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.footer-availability {
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  padding: var(--footer-spacing-sm);
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--footer-border-radius);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
  animation: availabilityPulse 2s ease-in-out infinite;
}

@keyframes availabilityPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  color: var(--footer-accent);
  font-weight: 500;
}

.availability-indicator i {
  color: #10b981;
  animation: indicatorBlink 1.5s ease-in-out infinite;
}

@keyframes indicatorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.footer-column h4 {
  color: var(--footer-text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--footer-spacing-md);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  letter-spacing: -0.01em;
  line-height: 1;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--footer-gradient);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 10;
  margin: 20px;
}

.footer-column li {
  margin-bottom: var(--footer-spacing-sm);
}

.footer-column a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--footer-transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  padding: var(--footer-spacing-xs) 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.footer-column a:focus {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-column a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--footer-gradient);
  transition: var(--footer-transition);
}

.footer-column a:hover {
  color: white;
  transform: translateX(8px);
}

.footer-column a:hover::before {
  width: 100%;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: var(--footer-spacing-md);
  padding: var(--footer-spacing-lg) 0;
  margin-bottom: var(--footer-spacing-lg);
  border-bottom: 1px solid var(--footer-border);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--footer-border);
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--footer-transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--footer-gradient);
  transition: var(--footer-transition);
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.social-link:hover::before {
  left: 0;
}

.social-icon {
  font-size: 1.5rem;
  transition: var(--footer-transition);
}

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

.footer-bottom {
  padding: var(--footer-spacing-lg) 0 var(--footer-spacing-md);
  text-align: center;
  position: relative;
  border-top: 1px solid var(--footer-border);
  margin-top: var(--footer-spacing-lg);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--footer-spacing-md);
}

.footer-copyright p {
  color: var(--footer-text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--footer-spacing-md);
}

.footer-bottom-links a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--footer-transition);
  position: relative;
}

.footer-bottom-links a::after {
  content: '•';
  margin-left: var(--footer-spacing-md);
  opacity: 0.5;
}

.footer-bottom-links a:last-child::after {
  content: '';
  margin-left: 0;
}

.footer-bottom-links a:hover {
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--footer-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--footer-transition);
  z-index: 1000;
  border: none;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: translateY(100px);
  animation: backToTopEntrance 0.6s ease-out forwards;
  animation-delay: 1s;
}

@keyframes backToTopEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.back-to-top i {
  font-size: 1.5rem;
  transition: var(--footer-transition);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

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

.particle {
  position: absolute;
  background: var(--footer-gradient);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 6s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.4;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--footer-spacing-md);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--footer-spacing-lg);
  }
  
  .contact-social {
    flex-wrap: wrap;
    gap: var(--footer-spacing-sm);
  }
  
  .social-link {
    width: 50px;
    height: 50px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .footer-modern {
    padding: var(--footer-spacing-md) 0 0;
  }
  
  .footer-main {
    padding: var(--footer-spacing-md) 0;
  }
  
  .brand-logo {
    font-size: 1.5rem;
  }
  
  .brand-logo i {
    font-size: 2rem;
  }
  
  .footer-description {
    font-size: 1rem;
  }
  
  .contact-social {
    gap: var(--footer-spacing-xs);
  }
  
  .social-link {
    width: 45px;
    height: 45px;
  }
  
  .social-icon {
    font-size: 1.2rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .footer-modern::after,
  .brand-logo i,
  .availability-indicator i,
  .social-link,
  .back-to-top,
  .particle {
    animation: none;
  }
  
  .footer-column a:hover,
  .social-link:hover,
  .back-to-top:hover {
    transform: none;
  }
}
/* Pastikan footer bisa jadi layer */
.footer-modern {
  position: relative;
  overflow: hidden;
}

/* Astronaut Background */
.footer-astronaut {
  position: absolute;
  left: 30%;
  bottom:   335px; /* bisa kamu atur naik turun */
  transform: translateX(-70%);
  width: 290px;
  opacity: 0.50;
  pointer-events: none;
  z-index: 0;
  animation: floatAstronaut 14s ease-in-out infinite;
   filter: drop-shadow(0 0 25px rgba(155, 64, 252, 0.6));
}
.footer-astronaut::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(155,64,252,0.4) 0%, transparent 70%);
  z-index: -1;
}
/* Supaya semua isi footer di atas astronaut */
.footer-modern .container {
  position: relative;
  z-index: 2;
}

/* Animasi Melayang */
@keyframes floatAstronaut {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-25px) rotate(-5deg); }
  50% { transform: translateY(20px) rotate(4deg); }
  75% { transform: translateY(-15px) rotate(-3deg); }
  100% { transform: translateY(0px) rotate(0deg); }

} 
@keyframes spaceFloat {
  0%   { transform: translate(-50%, 0px) rotate(0deg); }
  50%  { transform: translate(-50%, -25px) rotate(8deg); }
  100% { transform: translate(-50%, 0px) rotate(0deg); }
}

.footer-astronaut {
  animation: spaceFloat 16s ease-in-out infinite;
}