/* ==========================================
   FOOTER STYLES
========================================== */
.footer {
  background-color: var(--white-color);
  padding-top: 5rem;
  border-top: 1px solid var(--bg-accent);
  color: var(--text-dark);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem; /* Increase icon size */
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  font-size: 1.5rem; /* Ensure icons inside links are larger */
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-5px);
}

.footer-links-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  left: 0;
  bottom: -8px;
  border-radius: var(--radius-full);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--bg-accent);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.copyright {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: var(--text-sm);
}

.footer-legal a {
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

.theme-toggle-wrapper {
  display: flex;
  justify-content: center;
}

.theme-toggle-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
  background-color: var(--bg-accent);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-normal);
}

.theme-toggle-footer:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.theme-toggle-footer i {
  font-size: var(--text-base);
}

/* Dark mode styles for footer */
html[data-theme="dark"] .theme-toggle-footer i.fa-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-footer i.fa-sun {
  display: inline-block;
}

html[data-theme="light"] .theme-toggle-footer i.fa-moon {
  display: inline-block;
}

html[data-theme="light"] .theme-toggle-footer i.fa-sun {
  display: none;
}

/* Dark mode text colors for footer */
html[data-theme="dark"] .footer {
  background-color: #121212;
  color: #f3f4f6; /* Light text on dark background */
  border-top: 1px solid #2d2d2d;
}

html[data-theme="dark"] .footer-description,
html[data-theme="dark"] .copyright,
html[data-theme="dark"] .footer-title {
  color: #f3f4f6;
}

html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-legal a {
  color: #9ca3af; /* Light muted color */
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-legal a:hover {
  color: #8b85ff; /* Primary color */
}

html[data-theme="dark"] .social-links a {
  background-color: #2d2d2d;
  color: #8b85ff;
}

html[data-theme="dark"] .social-links a:hover {
  background-color: #8b85ff;
  color: #121212;
}

html[data-theme="dark"] .footer-bottom {
  border-top: 1px solid #2d2d2d;
}

html[data-theme="dark"] .theme-toggle-footer {
  background-color: #2d2d2d;
  color: #f3f4f6;
}

html[data-theme="dark"] .theme-toggle-footer:hover {
  background-color: #8b85ff;
  color: #121212;
}

@media (min-width: 768px) {
  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .footer-content {
    flex-direction: row;
  }
  
  .footer-links-container {
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
  }
}

/* Override Instagram icon color and remove underline */
.social-links a[href*="instagram"] {
  color: black !important;
  text-decoration: none !important;
}

.social-links a[href*="instagram"]:hover {
  color: white !important;
  text-decoration: none !important;
}

/* Footer contact list item icon and text alignment */
.footer-links ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links ul li i {
  min-width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
  /* Remove continuous animation */
  animation: none;
  /* Fix icon position to prevent movement */
  flex-shrink: 0;
}

/* Remove keyframes for envelope-bounce */
/* Remove hover effect on icon */
.footer-links ul li:hover i,
.footer-links ul li a:hover i {
  transform: none;
  transition: none;
}

/* Add hover effect to move email text right on hover */
.footer-links ul li a:hover {
  display: inline-block;
  transform: none;
  padding-left: 0.5rem;
  transition: padding-left 0.3s ease;
}
