/* --- FOOTER STYLES (Material 3 Inspired with Direct Color Codes) --- */
.main-footer {
  background-color: #1a1d24; /* --dark-bg */
  color: #bdc3c7; /* --text-muted-color */
  padding: 80px 20px 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  position: relative;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 45px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.footer-column .footer-logo {
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-column .footer-about {
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-column h4 {
  color: #ecf0f1; /* --text-color */
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --- FOOTER LINKS & CONTACT (M3 Style) --- */
.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
}

.footer-links a,
.footer-contact a {
  color: #bdc3c7; /* --text-muted-color */
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 100px; /* Pill shape */
  margin: -8px -12px;
}

.footer-links a:hover {
  color: #a4e04b; /* --primary-hover-color */
  background-color: rgba(145, 198, 60, 0.1);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-contact i {
  color: #91c63c; /* --primary-color */
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.footer-contact a:hover {
  color: #a4e04b; /* --primary-hover-color */
}

/* --- SOCIAL MEDIA ICONS (M3 Style) --- */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ecf0f1; /* --text-color */
  border-radius: 16px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #91c63c; /* --primary-color */
  color: #1a1d24; /* --dark-bg */
  transform: translateY(-3px);
}

/* --- BACK TO TOP BUTTON (Material FAB Style) --- */
.back-to-top {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #91c63c; /* --primary-color */
  color: #1a1d24; /* --dark-bg */
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #a4e04b; /* --primary-hover-color */
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 16px rgba(145, 198, 60, 0.3);
}

/* --- COPYRIGHT SECTION --- */
.copyright {
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive adjustment for the back-to-top button on mobile */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}
