/* --- A Celestial Voyage: footer.css --- */

:root {
  --font-footer-heading: 'Quesha', cursive;
  --font-footer-body: 'Bricolage Grotesque', sans-serif;
  --footer-bg: linear-gradient(to top, var(--color-bg-void), var(--color-bg-deep-space));
  --footer-text: var(--color-text-secondary);
  --footer-heading-color: var(--color-text-primary);
  --footer-link-hover: var(--color-text-primary);
  --footer-border: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.2), transparent);
  --footer-social-bg: rgba(148, 163, 184, 0.1);
  --footer-social-border: rgba(148, 163, 184, 0.2);
  --footer-social-hover-bg: var(--color-primary-glow);
}

html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; padding: 8rem 0 4rem; position: relative; overflow: hidden; background: var(--footer-bg); border-top: 1px solid rgba(148, 163, 184, 0.1); }

/* Starry Background */
.sparkle-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sparkle {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity; /* Performance optimization */
}

/* Footer Structure */
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid;
  border-image: var(--footer-border) 1;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.footer-logo:hover { transform: scale(1.03); }
.footer-logo img { height: 50px; }
.footer-branding h2 {
  font-family: var(--font-footer-heading);
  font-size: 2.5rem;
  color: var(--footer-heading-color);
  margin: 0;
}
.footer-branding p { margin: 0; color: var(--footer-text); }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}
.footer-section h4 {
  font-family: var(--font-footer-heading);
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--footer-heading-color);
  margin-bottom: 1.5rem;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.footer-section a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-section a:hover { color: var(--footer-link-hover); padding-left: 0.5rem; }
.footer-section a::before {
  content: '•';
  position: absolute;
  left: -0.5rem;
  color: var(--color-primary-glow);
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}
.footer-section a:hover::before { opacity: 1; left: -0.25rem; }
.contact-info li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info i { flex-shrink: 0; margin-top: 4px; color: var(--color-secondary-glow); transition: transform 0.3s ease; }
.contact-info a:hover, .contact-info li:hover i { transform: scale(1.1); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid;
  border-image: var(--footer-border) 1;
  color: var(--footer-text);
}

/* Social Icons */
.footer-socials { display: flex; gap: 1rem; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--footer-social-bg);
  color: var(--footer-text);
  border: 1px solid var(--footer-social-border);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.social-icon svg {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 1.5;
}
.social-icon:hover {
  background-color: var(--footer-social-hover-bg);
  border-color: var(--footer-social-hover-bg);
  color: var(--footer-link-hover);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  /* transform is now handled by GSAP */
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-top { flex-direction: column; align-items: center; gap: 1.5rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-section h4 { text-align: center; }
}