/* Footer */
.footer {
  background: var(--body-bg);
  padding: 60px 20px 40px;
  position: relative;
  overflow: hidden;
}

.footer .shape {
  position: absolute;
  width: 100%;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

/* Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Section: logo, links, socials */
.footer-top {
  display: flex;
  flex-direction: column;      /* stack on mobile */
  align-items: center;         /* center all items */
  gap: 32px;                   /* space between logo, links, socials */
  padding-bottom: 80px;        /* extra space so content doesn't overlap absolute bottom */
  text-align: center;
  width: 100%;
}

.footer-logo img {
  max-width: 120px;
}

.footer-logo p {
  color: var(--text-secondary-invert);
  max-width: 280px;
  font-size: 14px;
  margin-top: 8px;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary-invert);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Social icons */
.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Bottom section: copyright */
.footer-bottom {
  position: absolute;        /* absolute inside footer */
  left: 50%;                 /* center horizontally */
  bottom: 0;                 /* stick to footer bottom */
  transform: translateX(-50%); /* center perfectly */
  
  text-align: center;
  color: var(--gray-100);
  font-size: clamp(0.6rem, 1.2vw, 1rem);
  border-top: 1px solid var(--subtext);
  width: 100%;               /* optional: full width for border */
  padding: 16px 0;
  background: transparent;    /* keep footer bg */
  z-index: 10;               /* above shapes if any */
}

/* Responsive Layout */
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;           /* logo, links, socials in a row */
    justify-content: space-between; /* space evenly */
    align-items: flex-start;        /* top align */
    text-align: left;
    padding-bottom: 120px;         /* keep enough space from bottom */
    gap: 40px;
  }

  .footer-logo p {
    margin-top: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-socials {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .footer-top {
    gap: 60px;
  }
}

