/* --- Wave Divider --- */
.footer-wave {
  background: var(--bg-body); /* Matches your page background */
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -5px; /* Removes gap between wave and footer */
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.footer-wave .shape-fill {
  fill: #0f172a; /* Matches footer start gradient */
}

/* --- Footer Styles --- */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

/* Glassmorphism Overlay */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* 3-Column Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr; /* Balanced 3 columns */
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Headings */
.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 25px;
  font-family: "DM Sans", sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary); /* Green Underline */
  border-radius: 2px;
}

/* Footer Logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo .logo-img {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}
.footer-logo:hover .logo-img {
  filter: brightness(1) invert(0); /* Color on hover */
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #94a3b8;
}

/* Quick Links Styling */
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  position: relative;
  padding-left: 15px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Arrow before link */
.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 20px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* Contact Info Styling */
.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact-info .icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.footer-contact-info li:hover .icon-box {
  background: var(--secondary);
  color: white;
}

.footer-contact-info .text-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-info a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.5;
}

.footer-contact-info a:hover {
  color: var(--white);
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--accent); /* Orange hover */
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
  border-color: transparent;
}

/* Newsletter Form */
.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--white);
}
.footer-newsletter h4::after {
  display: none;
}

.newsletter-form {
  display: flex;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 20px;
  color: white;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-form button {
  background: var(--secondary);
  border: none;
  padding: 0 25px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-bottom a {
  color: var(--secondary-light);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Dark Mode Support */
body.dark-mode footer {
  background: #000000;
}

/* --- Responsive Footer --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack columns */
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-info li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .newsletter-form {
    max-width: 350px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
