:root {
  --bg: #0f172a;
  --fg: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --card: #020617;
  --border: #1e293b;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --fg: #020617;
  --muted: #475569;
  --accent: #0284c7;
  --card: #ffffff;
  --border: #cbd5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

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

header {
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-right: 1rem;
  font-weight: 500;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 3.5rem 1.5rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-weight: 400;
  color: var(--muted);
}

section {
  margin-top: 4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.icon-btn:hover {
  background: rgba(56,189,248,0.12);
}

.icon {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.socials a {
  padding: 0.4rem;
  border-radius: 6px;
}

.socials a:hover {
  background: rgba(56,189,248,0.12);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-weight: 500;
}

footer {
  margin-top: 5rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

