/* Footer Styles */
.footer {
  background: var(--card-bg-light);
  padding: 4rem 8% 2rem;
  border-top: 1px solid rgba(78, 205, 196, 0.1);
  margin-top: 4rem;
  backdrop-filter: blur(10px);
}

body.dark .footer {
  background: rgba(30, 41, 59, 0.7);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}

.footer-brand h3 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.footer-brand h6 {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  font-weight: 400;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
   margin-bottom: 1.2rem;
  max-width: 380px;
}

.cta-link {
color: #539EF3;
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}

.cta-link:hover {
color: #3268A2;
text-decoration: underline;
}


.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

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

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-column ul li a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 3px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.footer-social a:focus-visible {
outline: 3px solid var(--secondary);
outline-offset: 3px;
}

.footer-contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-info i {
  color: var(--primary);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}
.footer-bottom-links a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 3px;
}


.footer-bottom-links span {
  color: var(--text-muted);
}

/* ================= RESPONSIVE FOOTER ================= */
/* ================= LARGE DESKTOP ( ≤ 1024px) ================= */
@media (max-width: 1024px) {

  .footer-top {
    grid-template-columns:  1.2fr 1.8fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand h6,
  .footer-brand p {
    max-width: 100%;
  }

}

/*================= MOBILE LANDSCAPE (≤768px) ================= */
@media (max-width: 768px) {

  .footer {
    padding: 3rem 6% 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
  }

  .footer-column {
    text-align: center;
  }

  .footer-social {
    justify-content: center;

  }

  .footer-contact-info {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-brand h3 {
    font-size: 1.6rem;
  }

}

/*================= MOBILE PORTRAIT (480px - 600px) ================= */
@media (max-width: 600px) {
  .footer {
      padding: 3rem 5% 1.5rem;
  }
}

/*================= MOBILE PORTRAIT (480px) ================= */
@media (max-width: 480px) {

  .footer {
    padding: 2.5rem 5% 1.2rem;
  }

  .footer-links {
      grid-template-columns: 1fr;
  }

  .footer-brand h3 {
    font-size: 1.4rem;
  }

  .footer-brand h6 {
    font-size: 0.95rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 0.8rem;
  }

}

/* ================= EXTRA SMALL DEVICES (≤ 375px) ================= */
@media (max-width: 375px) {

  .footer {
    padding: 2rem 4% 1rem;
    margin-top: 3rem;
  }

  .footer-top {
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .footer-brand h3 {
    font-size: 1.25rem;
  }

  .footer-brand h6 {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cta-link {
    font-size: 0.85rem;
  }

  .footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .footer-column ul li {
    margin-bottom: 0.45rem;
  }

  .footer-column ul li a {
    font-size: 0.85rem;
  }

  .footer-social {
    gap: 0.7rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .footer-contact-info p {
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    gap: 0.6rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-bottom-links a {
    font-size: 0.75rem;
  }

}
