* {
  box-sizing: border-box;
}

body {
  background-color: #4F5379;
  color: white;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background-color: #141629;
  color: #eee;
  text-align: center;
  padding: 4rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 1rem 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

header p {
  margin: 0 0 1rem 0;
  color: #aaa;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.intro-text {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.3rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-container {
  margin-bottom: 3rem;
  text-align: center;
}

#search-input {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

#search-input:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #4da6ff, #3d8bfe);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Card Grid Layout */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4da6ff, #3d8bfe);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-screenshot {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  flex: 0 0 200px;
}

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

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

.project-info {
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.project-creator {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  margin-left: 0.25rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.dev-icon:hover {
  opacity: 1;
}

.dev-icon.bb-dev {
  filter: hue-rotate(0deg);
}

.dev-icon.ublue-dev {
  filter: hue-rotate(0deg);
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-detail {
  display: flex;
  flex-direction: column;
}

.project-detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.project-detail-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.feedback-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.feedback-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.feedback-yes {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.feedback-no {
  background: linear-gradient(135deg, #f44336, #da190b);
  color: white;
}

.feedback-unknown {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4da6ff, #3d8bfe);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
}

.project-link:hover {
  background: linear-gradient(135deg, #3d8bfe, #4da6ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 166, 255, 0.4);
}

/* Description block */
.project-description-block {
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.55);
  padding: 0.6rem 0.75rem 0.7rem;
  border-radius: 8px;
  margin: 0 -0.25rem 0.9rem;
}
.project-section-header {
  font-size: 0.55rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #6b7b83;
  margin: 0 0 0.35rem;
  display: inline-block;
}
.project-description-block .project-description {
  margin: 0;
  max-height: none;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

/* ...existing code... */

footer {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 4rem;
  backdrop-filter: blur(10px);
}

footer p {
  margin: 0.5rem 0;
  color: #aaa;
}

footer a {
  color: #4ecdc4;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #45b7d1;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.github-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.github-icon {
  width: 32px;
  height: 32px;
  color: #aaa;
  transition: color 0.3s ease;
}

.github-link:hover .github-icon {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  .projects {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
  }
  
  .project-screenshot img {
    height: 150px;
  }
  
  .intro-text {
    font-size: 1.1rem;
  }
  
  #search-input {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
