/* projects.css - Self-contained styles for the Projects section */

.project-section {
  position: relative;
  z-index: 9;
  padding: 120px 20px;
  background: #f6f3ef;
  min-height: 60vh;
}

.project-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.project-header h2 {
  font-family: 'Zen Old Mincho', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.project-header p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Wide project card that spans 3 columns but maintains same height */
.project-card-wide {
  grid-column: span 3;
}

.project-card-wide .project-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.project-card-wide .project-image {
  flex: 0 0 40%;
  max-width: 300px;
}

.project-card-wide .project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .project-card-wide {
    grid-column: span 2;
  }
  
  .project-card-wide .project-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-card-wide .project-image {
    flex: none;
    max-width: none;
  }
}

@media (max-width: 800px) {
  .project-card-wide {
    grid-column: span 1;
  }
}

.project-card {
  background: #fffaf7;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(109,76,61,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: project-fade-in 0.8s forwards;
}

@keyframes project-fade-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.25s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.55s; }

.project-image {
  padding: 1rem;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #e9eaf0;
}

.project-content {
  padding: 1.5rem 1.3rem 1.2rem 1.3rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Zen Old Mincho', serif;
}

.project-desc {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  flex: 1 1 auto;
  opacity: 50%;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.project-date {
  font-size: 0.95rem;
  color: #b89b7b;
  font-family: 'Inter', sans-serif;
}

.project-github {
  display: inline-flex;
  align-items: center;
  background: #6d4c3d;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 0.7rem;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 2px 8px 0 rgba(30,40,90,0.07);
}

.project-github:hover {
  background: #8a614b;
}

.project-github i {
  margin-right: 0.5em;
  font-size: 1.1em;
}

@media (max-width: 700px) {
  .project-header h2 {
    font-size: 2rem;
  }
  .project-grid {
    gap: 1.2rem;
  }
  .project-content {
    padding: 1.1rem 0.9rem 1rem 0.9rem;
  }
}