body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 20px;
  padding-bottom: 60px;
  line-height: 1.6;
  min-height: 100vh;
}
header {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}
#toggle-theme {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 19px;
}
#toggle-theme:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}
body.dark #toggle-theme {
  border-color: #555;
  color: #eee;
}
body.dark #toggle-theme:hover {
  background: #333;
}

.github-button {
  position: absolute;
  right: 100px;
  top: 20px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
}

.github-button:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.github-button svg {
  width: 19px;
  height: 19px;
}

body.dark .github-button {
  border-color: #555;
  color: #eee;
}

body.dark .github-button:hover {
  background: #333;
}
h1 {
  font-size: 2.8em;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p {
  color: #555;
}
#search {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  font-size: 16px;
  margin: 20px auto;
  display: block;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
#search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}
body.dark #search {
  background: rgba(30,30,30,0.8);
  border-color: rgba(255,255,255,0.1);
  color: #f0f0f0;
}
#cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  padding: 0 250px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #333;
}
.card-desc {
  flex: 1;
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}
.card-link {
  text-align: center;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}
.card-link:hover {
  background: #2980b9;
}
#footer {
    margin-top: 80px;
    padding: 20px 0;
    font-size: 14px;
    color: #aaa;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
body.dark #footer {
  border-top-color: rgba(255,255,255,0.05);
}
:root {
  --bg-color: #dbdbdb;
  --text-color: #222;
  --card-bg: white;
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
}
body.dark {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-bg: #1e1e1e;
  --primary-color: #4895ef;
  --secondary-color: #4361ee;
}
body.dark p {
  color: #ccc;
}
body.dark .card-title {
  color: #f5f5f5;
}
body.dark .card-desc {
  color: #aaa;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}
.card {
  background-color: var(--card-bg);
  color: var(--text-color);
}