.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.projects-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #222;
  text-align: left; 
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.project-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.text-block {
  padding: 0 8px;
  text-align: left;
}

.project-name {
  margin: 0 0 8px;
  font-size: 1.6em;  
  color: #007acc;
}


.project-desc {
  margin: 0;
  line-height: 1.6;   
  color: #444;
  max-height: none;
  overflow: visible;
  text-overflow: clip;
}

@media (min-width: 600px) {
  .card-content {
    flex-direction: row;
  }
  .project-thumb {
    width: 40%;
    height: auto;
  }
  .text-block {
    width: 60%;
  }
}
