/* Footer */
footer {
  background: var(--section-bg);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  animation: slideIn 0.5s ease-out;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.newsletter-form {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Montserrat Alternates", sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  animation: slideIn 0.5s ease-out;
}
.footer-bottom p {
  margin-bottom: 0;
  text-align: inherit;
}
.footer-bottom p a {
  text-decoration: none;
  color: var(--text-color);
}

/* ******** */
.social-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-media ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
}

.social-media ul li {
  position: relative;
  display: inline-block;
}
.social-media ul li a {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

/* Tooltip Styling */
.social-media ul li .social-media-tooltip {
  position: absolute;
  bottom: 120%; /* Position tooltip above the icon */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Filled background effect */
.social-media ul li .filled {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

/* Hover effect */
.social-media ul li:hover .social-media-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-media ul li:hover .filled {
  transform: scale(1);
  border-radius: 8px;
}

.social-media ul li:hover a {
  color: var(--text-color);
}

/* Change filled background color on hover */
.social-media ul li.instagram .filled,
.social-media ul li.instagram .social-media-tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.social-media ul li.X .filled,
.social-media ul li.X .social-media-tooltip {
  background-color: #24262a;
}
.social-media ul li.LinkedIn .filled,
.social-media ul li.LinkedIn .social-media-tooltip {
  background-color: #0274b3;
}
.social-media ul li.YouTube .filled,
.social-media ul li.YouTube .social-media-tooltip {
  background-color: #ff0000;
}
.social-media ul li.Email .filled,
.social-media ul li.Email .social-media-tooltip {
  background-color: #c8c4c4;
}

/* ******** */

/* Logo */
.footer-bottom img {
  width: 70px;
  height: auto;
  cursor: pointer;
  animation: slideIn 0.5s ease-out;
}

.footer-bottom img:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

/* Social Media Icons */
.footer-bottom .social-media ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom .social-media a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.footer-bottom .social-media a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.4rem;
  }
  .logo-svg {
    width: 30px;
    height: 30px;
  }
  footer .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    box-shadow: var(--shadow);
  }
  footer .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .theme-toggle-nav {
    margin: 1rem auto;
  }
}

@media (max-width: 480px) {
  .footer-section h3 {
    font-size: 1.25rem;
  }
  footer .container {
    padding: 0 15px;
  }

  .footer-bottom {
    grid-template-columns: 1fr; /* Stack items vertically */
    text-align: center;
    padding: 1rem;
  }

  .footer-bottom img {
    margin: 10px 0 30px 0;
  }

  .footer-bottom .social-media ul {
    justify-content: center;
  }

  .footer-bottom .social-media a {
    font-size: 1.2rem;
  }
}
