:root {
  --radius: 12px;
  --transition: 0.25s ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9f9fb;
    --text-primary: #1e1e1e;
    --text-secondary: #555;
    --card-bg: #ffffff;
    --accent: #0078ff;
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --text-primary: #f2f2f2;
    --text-secondary: #aaa;
    --card-bg: #1b1c1e;
    --accent: #4aa8ff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  line-height: 1.7;
}

#hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.link-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: transparent;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin-left: 10px;
}

.link-button:hover {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

#search-bar {
  text-align: center;
  margin: 2rem auto;
}

#searchInput {
  width: min(90%, 500px);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

#project-listing ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.project-item {
  background: var(--card-bg);
  margin: 1rem auto;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.project-item a {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.project-item p {
  margin-top: 0.4rem;
  color: var(--text-secondary);
}

.tags {
  margin-top: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-right: 0.3rem;
  opacity: 0.9;
}

.tag.python { background: #3572A5; }
.tag.csharp { background: #178600; }
.tag.rust { background: #DEA584; color: black; }
.tag.cpp { background: #00599C; }
.tag.web { background: #F1C40F; color: black; }
.tag.bash { background: #4E4E4E; }
.tag.lua { background: #000080; }
.tag.discon { background: #7A7A7A; }

footer {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
