:root {
  --bg: #fff;
  --fg: #111;
  --accent: #cc00cc;
  --card-bg: #f9f9f9;
}

[data-theme="dark"] {
  --bg: #111;
  --fg: #eee;
  --accent: #e066ff;
  --card-bg: #1a1a1a;
}

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

html {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  text-align: center;
  margin: 4rem 0 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

section {
  margin: 3rem 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 0.5rem;
}

#contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer {
  text-align: center;
  margin: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  color: var(--fg);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--fg);
}

.tags {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags .tag {
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.images img {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 4px;
}

.card {
  cursor: pointer;
}
