:root {
  --bg-primary: #f8f8f8;
  --bg-secondary: #fff;
  --text-primary: #111;
  --text-secondary: #333;
  --border-color: #ddd;
  --border-light: #ccc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --border-color: #444;
    --border-light: #555;
  }
}

html[data-theme="light"] {
  --bg-primary: #f8f8f8;
  --bg-secondary: #fff;
  --text-primary: #111;
  --text-secondary: #333;
  --border-color: #ddd;
  --border-light: #ccc;
}

html[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #e8e8e8;
  --text-secondary: #b8b8b8;
  --border-color: #444;
  --border-light: #555;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
  margin-bottom: 24px;
  padding-bottom: 8px;var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  margin-right: 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-sivar(--text-secondary)1rem;
  padding: 4px 8px;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.7
  text-decoration: underline;
}

header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

header p {
  margin: 0 0 24px;
  color: var(--text-primary);
}

h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
}

p {
  line-height: 1.6;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-secondary);
}


.project-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-gallery img {
  flex: 1;
  min-width: 250px;
  max-width: calc(50% - 0.5rem);
  height: auto;
  border-radius: 8px;
}