/* ======================================================
   FOOTER — CINEMATIC END CREDITS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Inspired by film end-credits and high-end studio pages.
   A slow, atmospheric closing that leaves an impression.
====================================================== */

.site-footer {
  position: relative;
  display: block;
  align-items: initial;
  justify-content: initial;
  gap: 0;
  color: rgb(var(--theme-text-rgb));
  background: rgb(var(--theme-bg-deep-rgb));
  border-top: 0;
  text-align: left;
  overflow: hidden;
  padding: 0;
}

/* ── Atmospheric Glow ── */
.footer-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-atmosphere::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgb(var(--theme-primary-rgb) / 0.08) 0%,
    rgb(var(--theme-primary-rgb) / 0.03) 40%,
    transparent 70%
  );
  filter: blur(60px);
}

.footer-atmosphere::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--theme-primary-rgb) / 0.4),
    transparent
  );
}

/* ── Noise Grain Overlay ── */
.footer-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ── Top Divider ── */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgb(var(--theme-text-rgb) / 0.06) 50%,
    transparent 95%
  );
}

/* ── Main Content ── */
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 60px 80px;
}

/* ── Brand Signature ── */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  margin-left: -12px;
  margin-bottom: 30px;
  color: rgb(var(--theme-text-rgb));
  text-decoration: none;
}

.footer-brand__logo {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 12px rgb(var(--theme-primary-rgb) / 0.24));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.footer-brand__name {
  font-family: var(--font-outfit);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand:hover .footer-brand__logo {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 24px rgb(var(--theme-primary-rgb) / 0.55));
}

.footer-brand:focus-visible {
  outline: 2px solid rgb(var(--theme-primary-rgb));
  outline-offset: 10px;
}

/* ── Three-Column Grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.footer-col-title {
  font-family: var(--font-outfit);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(var(--theme-text-rgb) / 0.3);
  margin-bottom: 28px;
}

/* ── Navigation Column ── */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 14px;
}

.footer-nav-list a {
  color: rgb(var(--theme-text-rgb) / 0.45);
  text-decoration: none;
  font-family: var(--font-inter);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: all 0.35s ease;
  display: inline-block;
}

.footer-nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-list a:hover {
  color: rgb(var(--theme-text-rgb));
  transform: translateX(8px);
}

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

/* ── Contact / Availability Column ── */
.footer-availability {
  color: rgb(var(--theme-text-rgb) / 0.4);
  font-family: var(--font-inter);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-email {
  display: inline-block;
  margin-top: 20px;
  color: rgb(var(--theme-text-rgb));
  text-decoration: none;
  font-family: var(--font-outfit);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s ease;
}

.footer-email::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-email:hover {
  color: var(--purple-light);
}

.footer-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Socials Column ── */
.footer-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min-content;
}

.footer-social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgb(var(--theme-text-rgb) / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--theme-text-rgb) / 0.35);
  text-decoration: none;
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgb(var(--theme-text-rgb) / 0.02);
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer-social-link:hover {
  color: rgb(var(--theme-text-rgb));
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgb(var(--theme-primary-rgb) / 0.25),
    0 0 0 1px rgb(var(--theme-primary-rgb) / 0.3);
}

.footer-social-link:hover::before {
  opacity: 0.15;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

/* ── Bottom Bar ── */
.footer-bottom-bar {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgb(var(--theme-text-rgb) / 0.04);
}

.footer-copyright {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  color: rgb(var(--theme-text-rgb) / 0.2);
  letter-spacing: 0.06em;
}

.footer-signature {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  color: rgb(var(--theme-text-rgb) / 0.15);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── Back-to-Top Pulse ── */
.footer-back-top {
  position: absolute;
  right: 60px;
  bottom: 50px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgb(var(--theme-text-rgb) / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--theme-text-rgb) / 0.3);
  text-decoration: none;
  z-index: 3;
  transition: all 0.4s ease;
  background: rgb(var(--theme-text-rgb) / 0.02);
}

.footer-back-top:hover {
  border-color: var(--purple);
  color: rgb(var(--theme-text-rgb));
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgb(var(--theme-primary-rgb) / 0.2);
}

.footer-back-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.footer-back-top:hover svg {
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-content {
    padding: 80px 30px 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-bottom-bar {
    padding: 30px 30px 40px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-back-top {
    right: 30px;
    bottom: 40px;
  }
}

@media (max-width: 640px) {
  .footer-content {
    padding: 60px 20px 40px;
  }
  .footer-brand {
    gap: 10px;
    margin-left: -6px;
    margin-bottom: 28px;
  }
  .footer-brand__logo {
    width: 32px;
  }
  .footer-brand__name {
    font-size: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .footer-name {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .footer-back-top {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 30px auto 0;
  }
}
