/* Footer - Modern & Clean with Improved Responsive Design */
.main-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Top */
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

/* Footer Brand */
.footer-brand {
  max-width: 300px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
}

.footer-list li a:hover {
  color: #3b82f6;
  transform: translateX(4px);
}

/* Footer Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.contact-item svg {
  color: #ffffff;
  flex-shrink: 0;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #3b82f6;
}

/* Footer Bottom */
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom-left p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-developer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  color: #94a3b8;
}

.footer-developer h1 {
  font-size: 0.85rem;
  margin: 0;
  font-weight: normal;
}

.footer-developer a {
  font-size: 1rem;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.footer-developer a:hover {
  color: #3b82f6;
  transform: translateY(-2px);
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive Design - IMPROVED */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
    column-gap: 30px;
  }

  .footer-column {
    align-items: flex-start;
  }

  .footer-title::after {
    left: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-top {
    padding: 40px 0 30px;
  }

  .footer-links {
    row-gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .footer-badges {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .main-footer {
    padding-bottom: 15px;
  }

  .footer-top {
    padding: 35px 0 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-list li a {
    text-align: center;
  }

  .footer-list li a:hover {
    transform: none;
  }

  .footer-contact .contact-item {
    flex-direction: row;
    justify-content: center;
  }

  .footer-developer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-developer a {
    font-size: 1.2rem;
  }

  .footer-bottom-left {
    text-align: center;
    width: 100%;
  }

  .footer-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 6px;
    margin-top: 5px;
  }

  .badge {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* Fix for extremely small screens */
@media (max-width: 360px) {
  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .badge {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}

/* Animations */
.footer-column {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-column:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-column:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-column:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.footer-column:hover .footer-title {
  color: #3b82f6;
}

.footer-column:hover .footer-title::after {
  width: 40px;
  transition: width 0.3s ease;
}

/* Performance Optimizations */
.main-footer {
  will-change: transform;
}

.social-link,
.footer-list li a {
  will-change: transform;
}

/* Print Styles */
@media print {
  .main-footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .footer-social,
  .footer-badges {
    display: none;
  }
}
