/* Footer Modern Layout */
#main-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
  position: relative;
}

#main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-purple-alt)
  );
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--brand-lime-alt);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--white);
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand-lime-alt);
  transform: translateX(5px);
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.newsletter-box {
  position: relative;
}

.newsletter-box input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--white);
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-box input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-primary);
}

.newsletter-box button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 25px;
  background: var(--brand-primary);
  border: none;
  border-radius: 50px;
  color: var(--white);
  font-weight: 700;
  transition: all 0.3s ease;
}

.newsletter-box button:hover {
  background: var(--white);
  color: var(--brand-primary-alt);
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--brand-lime-alt);
  color: var(--brand-primary-dark);
  transform: translateY(-5px);
  border-color: var(--brand-lime-alt);
}

/* Compact Layout Classes */
.footer-grid-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand-section {
  flex: 1;
  max-width: 400px;
}

.footer-links-container {
  display: flex;
  gap: 40px;
  flex: 2;
  justify-content: flex-end;
}

.footer-link-group {
  min-width: 250px;
}

.footer-link-group.contact-info {
  min-width: 400px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: normal;
}

.footer-links a i {
  width: 20px;
  color: var(--brand-primary);
  margin-right: 8px;
}

/* Bottom Bar */
.footer-bottom {
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--brand-primary);
}

.designer-credit {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.designer-credit a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.designer-credit a:hover {
  color: var(--brand-lime-alt);
}

/* =============================================
   MOBILE STYLES - 991px and below
============================================= */
@media (max-width: 991px) {
  .footer-grid-layout {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links-container {
    justify-content: flex-start;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-brand-section {
    max-width: 100%;
  }
}

/* =============================================
   MOBILE STYLES - 768px and below
============================================= */
@media (max-width: 768px) {
  #main-footer {
    padding: 40px 15px 100px !important;
  }

  .footer-brand-section {
    text-align: center;
  }

  .footer-brand-section .footer-logo img {
    width: 160px;
  }

  .footer-desc {
    max-width: 100%;
    margin: 10px auto 15px;
    font-size: 0.8rem !important;
  }

  .footer-socials {
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .footer-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    padding: 0;
  }

  .footer-link-group,
  .footer-link-group.contact-info {
    min-width: unset !important;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .footer-title::after {
    bottom: -5px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-links a i {
    width: 18px;
    font-size: 0.8rem;
  }

  /* FOOTER BOTTOM - MOBILE */
  .footer-bottom {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    padding: 30px 15px 50px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px 20px 0 0;
  }

  .copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-bottom-links a:hover {
    background: var(--brand-primary);
    color: white;
  }

  .designer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
}

/* =============================================
   EXTRA SMALL MOBILE - 480px and below
============================================= */
@media (max-width: 480px) {
  #main-footer {
    padding: 30px 10px 10px !important;
  }

  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    text-align: center;
  }

  .footer-bottom {
    padding: 25px 10px 10px;
  }

  .footer-bottom-links {
    gap: 10px;
  }

  .footer-bottom-links a {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .copyright,
  .designer-credit {
    font-size: 0.8rem;
  }
}
