@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-light: #f8faf9;
  --bg-dark: #0f1412;

  --card-light: #ffffff;
  --card-dark: #161b19;

  --text-light: #1f2a24;
  --text-dark: #e6ece9;

  --accent: #2ecc71;
  --border: rgba(0,0,0,0.08);

  --radius: 10px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.75;
}

nav a:hover {
  opacity: 1;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 2.5rem 1.5rem;
}

section {
  background: transparent;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

h1, h2 {
  font-weight: 600;
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

#projects h2 {
  margin-top: 1.5rem;
}

.project-list {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto;
}

.project-list li {
  margin: 0.75rem 0;
}

.project-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: inherit;
}

.project-list a:hover {
  color: var(--accent);
}

.project-links {
  list-style: none;
  margin-top: 1rem;
}

.project-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.project-links img {
  width: 24px;
  height: 24px;
}

.project-links a {
  font-weight: 500;
}

.card-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card,
.project-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-light);
  color: inherit;
  transition: border var(--transition);
}

body.dark .card,
body.dark .project-card {
  background: var(--card-dark);
}

.card:hover,
.project-card:hover {
  border-color: var(--accent);
}

.card img,
.project-card img {
  width: 32px;
  height: 32px;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  font-weight: 500;
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 2rem 1.25rem;
  }
}

button.card {
  appearance: none;
  background: var(--card-light);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}

body.dark button.card {
  background: var(--card-dark);
}

button.card:hover {
  border-color: var(--accent);
}

.link {
  color: #0f73ff;
  text-decoration: none;
  transition: 0.2s;
}

.quote {
  border-left: 4px solid #444;
  padding: 0.5em 0.8em;
  margin: 0.5em 0;
  background: rgba(0, 0, 0, 0.05);
  font-style: italic;
}

.quote footer {
  margin-top: 0.4em;
  font-size: 0.9em;
  color: #666;
}
