* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: #f6f8fa;
  color: #24292e;
}

/* Header */

header {
  text-align: center;
  padding: 60px 20px 30px;
}

header h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 10px;
}

header p {
  font-size: 18px;
  color: #586069;
}

/* Search */

.search {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.search input {
  width: 420px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  outline: none;
}

.search input:focus {
  border-color: #0969da;
}

/* Portfolio grid */

.portfolio-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
  padding: 20px;
}

/* Cards */

.card {
  background: white;
  border-radius: 12px;
  border: 1px solid #d0d7de;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Screenshot */

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eee;
}

/* Card content */

.card-content {
  padding: 16px;
}

.card-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card-content p {
  margin: 0;
  color: #57606a;
  font-size: 14px;
}

/* Footer */

footer {
  text-align: center;
  margin: 60px 0 30px;
  color: #57606a;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.controls input,
.controls select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 14px;
}

/* Alphabet filter */

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 25px;
}

.alphabet-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.alphabet-btn:hover {
  background: #f3f4f6;
}

.alphabet-btn.active {
  background: #0969da;
  color: white;
  border-color: #0969da;
}

#site-description strong {
  color: #0969da;
}
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.github-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  text-decoration: none;
  font-size: 14px;
  color: #24292e;
  background: white;
}

.github-btn:hover {
  background: #f3f4f6;
}

footer a {
  color: #0969da;
  text-decoration: none;
}