/* =========================
   PROJECTS PAGE STYLES
   ========================= */

/* Hero/Intro Section */
.projects-hero {
  padding: 100px 20px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text, #1a1a1a);
  line-height: 1.2;
}

.projects-hero .hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--text-soft, #666);
  max-width: 900px;
  margin: 0 auto 50px;
}

.projects-partners {
  margin-top: 60px;
}

.projects-partners-text {
  font-size: 16px;
  color: var(--text-soft, #666);
  margin-bottom: 32px;
  font-weight: 500;
}

.projects-partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.7;
}

.projects-partners-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.projects-partners-logos img:hover {
  opacity: 1;
}

/* Projects Grid Section */
.projects-grid {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid-intro {
  text-align: center;
  margin-bottom: 60px;
}

.projects-grid-intro h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text, #1a1a1a);
}

.projects-grid-intro p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--text-soft, #666);
  max-width: 800px;
  margin: 0 auto;
}

.projects-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft, #f5f5f5);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text, #1a1a1a);
  line-height: 1.3;
}

.project-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft, #666);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  color: var(--brand, #0a84ff);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.project-card__link:hover {
  color: var(--brand-dark, #1b5e20);
  gap: 8px;
}

.project-card__link::after {
  content: '›';
  margin-left: 6px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.project-card__link:hover::after {
  transform: translateX(4px);
}

/* Bottom CTA Section */
.projects-cta {
  background-color: var(--bg-soft, #f8f9fa);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-cta h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text, #1a1a1a);
}

.projects-cta p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--text-soft, #666);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.projects-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-cta .btn-primary,
.projects-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.projects-cta .btn-primary {
  background-color: var(--brand, #0a84ff);
  color: white;
  border: none;
}

.projects-cta .btn-primary:hover {
  background-color: var(--brand-dark, #1b5e20);
  transform: translateY(-2px);
}

.projects-cta .btn-secondary {
  background-color: white;
  color: var(--brand, #0a84ff);
  border: 2px solid var(--brand, #0a84ff);
}

.projects-cta .btn-secondary:hover {
  background-color: var(--brand, #0a84ff);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-hero {
    padding: 60px 20px 50px;
  }

  .projects-partners-logos {
    gap: 24px;
  }

  .projects-partners-logos img {
    height: 48px;
  }

  .projects-grid {
    padding: 60px 20px;
  }

  .projects-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card__content {
    padding: 24px;
  }

  .projects-cta {
    padding: 60px 20px;
  }

  .projects-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-cta .btn-primary,
  .projects-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .projects-hero h1 {
    font-size: 28px;
  }

  .projects-hero .hero-subtitle {
    font-size: 16px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .project-card p {
    font-size: 15px;
  }
}
