header {
  margin-bottom: 3rem;
}

.back-nav {
  margin-top: 1rem;
}

.back-nav a {
  color: #555;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-nav a:hover {
  color: #000;
}

.projects-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

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

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

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #000;
}

.project-link.inactive {
  background: #ccc;
  cursor: default;
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .projects-container {
    padding: 0 1rem;
    gap: 2rem;
    grid-template-columns: 1fr;
  }
  
  .project-card {
    min-height: auto;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
  
  .project-links {
    gap: 0.5rem;
  }
  
  .project-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  .projects-container {
    padding: 0 1rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-content h3 {
    font-size: 1.1rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
}
