/* New Footer Design Styles */
.new-footer {
  background-color: var(--theme-footer-bg);
  padding: 50px 0 60px;
  color: var(--theme-footer-text);
  font-size: 14px;
  width: 100%;
  font-family: 'Manrope', sans-serif;
}

/* Logo Row */
.footer-logo-row {
  width: 94%;
  margin: 0 auto 40px;
}

.footer-logo-img {
  width: 100%;
  display: block;
}

html[data-theme="dark"] .footer-logo-img {
  filter: invert(1);
}

/* Sponsor Row — Daytona Startup Grid attribution */
.footer-sponsor-row {
  width: 94%;
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
}

.footer-sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
  font-family: 'Manrope', sans-serif;
}

.footer-sponsor-link:hover {
  border-color: #2ECC71;
  transform: translateY(-1px);
}

.footer-sponsor-label {
  color: var(--theme-footer-text);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.footer-sponsor-logo {
  height: 18px;
  width: auto;
  display: block;
}

/* Daytona logo ships as near-black; invert it on dark backgrounds so it stays visible. */
html[data-theme="dark"] .footer-sponsor-logo {
  filter: invert(1);
}

.footer-sponsor-text {
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 400;
}

/* Content Row */
.footer-content-row {
  display: flex;
  flex-wrap: wrap;
  width: 94%;
  margin: 0 auto;
  gap: 3%;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}

/* Column Widths */
.footer-col.copyright-col {
  width: 35%;
}

.footer-col.services-col,
.footer-col.projects-col {
  width: 20%;
}

.footer-col.about-col {
  width: 15%;
}

/* Column Styles */
.footer-col h4 {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 10px;
}

/*
 * Subheading inside the same column (used to stack Work + Lab links
 * under one footer column without splitting the column-grid layout).
 */
.footer-col h4.footer-subheading {
  margin-top: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 5px;
}

.footer-col a {
  color: var(--theme-footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  font-weight: 300;  
}

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

.copyright-col p {
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-content-row {
    flex-direction: column;
  }
  
  .footer-col.copyright-col,
  .footer-col.services-col,
  .footer-col.projects-col,
  .footer-col.about-col {
    width: 100%;
    margin-bottom: 30px;
  }
}

/* Mobile Footer Adjustments for screens < 600px */
@media (max-width: 599.98px) {
  .new-footer .footer-col.services-col,
  .new-footer .footer-col.projects-col {
    display: none; /* 1. Hide Services and Projects columns */
  }

  .new-footer .footer-col.about-col ul {
    display: flex; /* 2. Make li items in About column behave like inline columns */
    justify-content: space-around; /* Distribute items */
    padding: 0; 
    text-align: center; 
  }

  .new-footer .footer-col.about-col ul li {
    margin-bottom: 0; 
    /* flex-basis: 30%; */ /* Optional: for equal space */
  }
  
  .new-footer .footer-col.copyright-col {
    text-align: center; /* 3. Center text in Copyright column */
    width: 100%; 
    margin-bottom: 20px; /* Space below copyright */
    order: 1; /* Copyright appears first */
  }

  .new-footer .footer-col.about-col {
    width: 100%;
    order: 2; /* About column appears after copyright */
  }
  
  .new-footer .footer-content-row {
    flex-direction: column; 
    align-items: center; /* Center the columns themselves */
  }
}
