.footer-animated {
  background-color: #000000;
  color: #cbd5e1;
  animation: fadeInUp 1s ease-in-out;
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
}
 
.footer-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      var(--color-primary),
      transparent
  );
  animation: shimmer 2s infinite;
}

@media (min-width: 640px) {
  .footer-animated {
      padding: 3rem 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-animated {
      padding: 4rem 3rem;
  }
}

.footer-animated a:hover {
  color: var(--color-primary);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .footer-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 4rem;
      text-align: left;
      padding: 0 2rem;
  }
}

.footer-brand {
  grid-column: 1;
}

.footer-links-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .footer-links-container {
      flex-direction: row;
      justify-content: center;
      gap: 4rem;
      max-width: none;
  }
}

@media (min-width: 1000px) {
  .footer-links-container {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 3rem;
      margin: 0;
  }
}

.footer-links {
  grid-column: auto;
  width: 100%;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  padding-left: 0;
  list-style: none;
  min-width: -moz-max-content;
  min-width: max-content;
}

.footer-links a {
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 10px;
}

@media (min-width: 1000px) {
  .footer-links ul {
      text-align: left;
  }
}

.footer-brand h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.footer-brand h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-brand h3:hover::after {
  width: 100%;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid var(--color-primary);
  overflow: hidden;
}

.footer-contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: 1;
}

.footer-contact-btn:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.footer-contact-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-contact-btn span {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}
.footer-contact-btn:hover span {
  color: white;
}

.footer-contact-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.footer-contact-btn:hover svg {
  transform: translateX(5px);
  stroke: #ffffff;
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-links h4:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

@media (min-width: 1000px) {
  .footer-social {
      justify-content: flex-start;
  }
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  overflow: hidden;
}

.footer-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      var(--color-primary),
      var(--color-secondary)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-icon:hover::before {
  opacity: 1;
}

.footer-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.footer-icon:hover {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.footer-icon:hover svg {
  color: white;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #9ca3af;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  position: relative;
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-decoration: none;
}

.footer-mail svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.footer-mail span {
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .footer-mail {
      justify-content: flex-start;
  }
}

.footer-mail:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.footer-legal {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  position: relative;
}

.footer-legal::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      var(--color-primary),
      transparent
  );
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-legal-links {
      flex-direction: row;
      justify-content: center;
      gap: 1rem;
  }
}

.footer-legal-link {
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.footer-legal-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-legal-link:hover::after {
  width: 100%;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
      transform: translateX(-100%);
  }
  100% {
      transform: translateX(100%);
  }
}

/* Dark mode styles */
.dark-mode .footer-animated {
  background-color: var(--dark-bg);
}

.dark-mode .footer-icon {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .footer-mail:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1000px) {
  .footer-links h4 {
      text-align: left;
  }
}
@media (max-width: 480px) {
   .footer-animated{
    padding-bottom: 5rem;
   }
  .footer-contact-btn{
    padding: 6px 14px;
    gap: 8px;
  }
  .footer-contact-btn span{
font-size: 13px;
  }
  .footer-contact-btn svg {
    width: 1rem;
    height: 1rem;

}
.footer-copyright p {
font-size: 10px;
}
}
@media (max-width: 350px) {

   .footer-animated{
     padding: 0;
     padding-bottom: 5rem;
     padding-top: 3rem;
   }
   .footer-grid{
    padding: 0;
   }
   .footer-links h4{
    font-size: 12px;
   }
   .footer-links ul{
   gap: 3px;
   }
   .footer-links a{
    font-size: 10px;
   }
  .footer-contact-btn{
    padding: 6px 14px;
    gap: 8px;
  }
  .footer-contact-btn span{
font-size: 13px;
  }
  .footer-contact-btn svg {
    width: 1rem;
    height: 1rem;

}
.footer-copyright p {
font-size: 10px;
}
}

