/* Projects Page Styles */

/* Hero Section - Reusing similar styles to About Us */
.projects-hero-section {
  position: relative;
  width: calc(100% - 40px);
  margin: 20px auto 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  /* Removed flex styles to allow absolute positioning of wrapper from styles.css */
}

.projects-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.projects-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
}

/* Page-specific overrides for hero content are removed in favor of global .hero- classes */

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  /* Spacing between cards */
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  will-change: opacity, transform;
}

.project-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
  /* Fixed height for consistency */
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding-top: var(--spacing-sm);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 90%;
}

@media (max-width: 1024px) {
  .projects-hero-section {
    padding: 100px 20px 40px 20px;
    align-items: flex-end;
  }
}

/* Maintain 2 columns on mobile but with reduced sizes */
@media (max-width: 768px) {
  .projects-hero-section {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    min-height: 60vh;
    border-radius: 16px;
  }

  .projects-grid-section {
    padding: 40px 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-image-wrapper {
    height: 200px;
  }
}

/* Single column for very small screens */
@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid-section {
    padding: 40px 16px;
  }

  .project-image-wrapper {
    height: 250px;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-description {
    font-size: 0.85rem;
  }
}
