/* ═══════════════════════════════════════════════════════════════
   FOOTER — ZAJEBISTY DESIGN
   Premium dark glassmorphism with animated accents
   ═══════════════════════════════════════════════════════════════ */

/* Main Footer Container */
.footer {
  background: linear-gradient(180deg,
      #0a0a0a 0%,
      #050505 50%,
      #000 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-5xl) 0 var(--space-3xl);
}

/* Animated gradient border at top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      #0a3d91,
      #2d7dd2,
      #97d8c4,
      #2d7dd2,
      #0a3d91);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

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

  50% {
    background-position: 100% 50%;
  }
}

/* Decorative orbs */
.footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 61, 145, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Grid Layout */
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-4xl);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

@media (max-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   BRAND SECTION
   ───────────────────────────────────────────────────────────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.footer__brand .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__brand .logo:hover {
  transform: none;
}

.footer__brand .logo__img {
  height: 160px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .footer__brand .logo {
    justify-content: center;
  }
}

.footer__tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .footer__tagline {
    max-width: none;
    margin: 0 auto;
  }
}

/* Social Icons */
.footer__socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

@media (max-width: 640px) {
  .footer__socials {
    justify-content: center;
  }
}

.footer__social {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 125, 210, 0.2) 0%, rgba(151, 216, 196, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer__social:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(45, 125, 210, 0.5);
  color: #fff;
  box-shadow:
    0 20px 40px -10px rgba(10, 61, 145, 0.5),
    0 0 20px rgba(45, 125, 210, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer__social:hover::before {
  opacity: 1;
}

.footer__social svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.footer__social:hover svg {
  transform: scale(1.15);
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION COLUMNS
   ───────────────────────────────────────────────────────────── */
.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__heading::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2d7dd2, #97d8c4);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(45, 125, 210, 0.5);
}

@media (max-width: 640px) {
  .footer__heading {
    justify-content: center;
  }
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 10px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__link::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  margin-right: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__link:hover {
  color: #fff;
  padding-left: 8px;
}

.footer__link:hover::before {
  opacity: 1;
  transform: translateX(0);
  margin-right: 8px;
  color: #2d7dd2;
}

@media (max-width: 640px) {
  .footer__link {
    margin: 0 auto;
  }
}

/* Contact Item */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__contact-item:hover {
  background: rgba(45, 125, 210, 0.08);
  border-color: rgba(45, 125, 210, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(10, 61, 145, 0.3);
}

@media (max-width: 640px) {
  .footer__contact-item {
    justify-content: center;
    text-align: left;
  }
}

.footer__contact-item svg {
  width: 20px;
  height: 20px;
  color: #2d7dd2;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(45, 125, 210, 0.5));
}

/* ─────────────────────────────────────────────────────────────
   FOOTER BOTTOM
   ───────────────────────────────────────────────────────────── */
.footer__bottom {
  margin-top: var(--space-5xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

/* Glowing center accent */
.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 125, 210, 0.6), transparent);
  box-shadow: 0 0 15px rgba(45, 125, 210, 0.4);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em;
}

.footer__legal {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 640px) {
  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }
}

.footer__legal-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer__legal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #2d7dd2;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__legal-link:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER CTA SECTION (Above footer)
   ───────────────────────────────────────────────────────────── */
.footer-cta {
  background: linear-gradient(135deg,
      rgba(10, 61, 145, 0.2) 0%,
      rgba(45, 125, 210, 0.15) 50%,
      rgba(10, 61, 145, 0.2) 100%);
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(45, 125, 210, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(151, 216, 196, 0.1) 0%, transparent 50%);
}

/* Top glow line */
.footer-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 125, 210, 0.5), transparent);
}

.footer-cta__headline {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.footer-cta .cta-group {
  justify-content: center;
  position: relative;
  z-index: 1;
  gap: var(--space-lg);
}

.footer-cta .btn {
  box-shadow:
    0 15px 50px -15px rgba(10, 61, 145, 0.6),
    0 0 30px rgba(45, 125, 210, 0.2);
}

.footer-cta .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 20px 60px -15px rgba(10, 61, 145, 0.7),
    0 0 40px rgba(45, 125, 210, 0.3);
}