/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent-color);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
  opacity: 0.3;
}

.footer .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-xl);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3xl);
  }
}

.footer__section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  padding: 4px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.footer__logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: transparent;
  transition: all var(--transition-base);
  padding: 8px;
}

.footer__logo {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  object-fit: scale-down;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 767px) {
  .footer__logo-container {
    width: 80px;
    height: 80px;
    padding: 6px;
  }
}

.footer__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer__subtitle {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
  text-align: left;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--spacing-base);
  font-size: var(--font-size-sm);
  text-align: left;
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  font-size: var(--font-size-sm);
}

.footer__social-link:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 60, 175, 0.3);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: flex-start;
  text-align: left;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  padding-left: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  text-align: left;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 50%;
  transform: translateY(50%);
  width: 0;
  height: 1px;
  background: var(--accent-pink);
  transition: width var(--transition-base);
}

.footer__link:hover {
  color: var(--white);
  padding-left: var(--spacing-sm);
}

.footer__link:hover::before {
  width: 16px;
}

/* ===== TECH TRUST SECTION ===== */
.footer__tech-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

.footer__tech-content {
  text-align: center;
}

.footer__tech-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .footer__tech-logos {
    gap: var(--spacing-base);
  }
}

.tech-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  font-size: 32px;
  transition: all var(--transition-base);
  cursor: pointer;
}

@media (max-width: 767px) {
  .tech-logo {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}

.tech-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-base) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xs);
  }
}

.footer__legal {
  display: flex;
  gap: var(--spacing-base);
  flex-wrap: wrap;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  z-index: var(--z-fixed);
  overflow: hidden;
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.back-to-top__icon {
  color: var(--white);
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.back-to-top:hover .back-to-top__icon {
  transform: translateY(-3px);
  animation: rocket-boost 0.6s ease-in-out;
}

.back-to-top__trail {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.3s ease;
}

.back-to-top:hover .back-to-top__trail {
  opacity: 1;
  height: 30px;
  animation: trail-glow 0.6s ease-in-out;
}