/* Modern Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 4rem 0 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Main Footer Content */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  font-size: 2rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Navigation Section */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-title {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  position: relative;
}

.footer-nav-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 1px;
}

.footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.25rem 0;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-link:hover::before {
  width: 1rem;
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
}

.footer-contact-icon {
  font-size: 18px;
  color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-contact-link:hover .footer-contact-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.footer-links-row a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.footer-links-row a:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.footer-links-row a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.footer-links-row a:hover::after {
  width: 80%;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

.footer-contact-item a:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.footer-contact-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.footer-contact-item a:hover::after {
  width: 80%;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.footer-bottom-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom-link:hover {
  color: var(--primary-color);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon {
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-content {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 0;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-main {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    gap: 1.5rem;
  }
}

@media (max-width: 360px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-content {
    padding: 0 var(--container-padding);
  }

  .footer-section h3 {
    font-size: 1.125rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.875rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }
}

/* Footer Animation */
.footer-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

/* Footer Links Hover Effects */
.footer-links a::before {
  content: "→";
  margin-right: 0.5rem;
  opacity: 0;
  transition: var(--transition-fast);
  transform: translateX(-10px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Contact Hover Effects */
.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.1);
  background: var(--white);
  color: var(--primary-color);
}

/* Social Links Animation */
.social-link {
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-slow);
}

.social-link:hover::before {
  left: 100%;
}

/* Footer Bottom Animation */
.footer-bottom {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Focus States */
.footer-links a:focus,
.social-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading State */
.footer.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Footer Theme Variations */
.footer.theme-dark {
  background: var(--text-color);
}

.footer.theme-light {
  background: var(--background-color);
  color: var(--text-color);
}

.footer.theme-light .footer-section h3 {
  color: var(--primary-color);
}

.footer.theme-light .footer-section p,
.footer.theme-light .footer-section a {
  color: var(--light-text);
}

.footer.theme-light .footer-section a:hover {
  color: var(--primary-color);
}

.footer.theme-light .social-link {
  background: rgba(139, 69, 19, 0.1);
  color: var(--primary-color);
}

.footer.theme-light .social-link:hover {
  background: var(--primary-color);
  color: var(--white);
}
