:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #7c3aed;
}
[data-theme='dark'] {
  --bg: #0f1724;
  --card: #111827;
  --text: #e6eef8;
  --muted: #9ca3af;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 960px;
  margin: 48px auto;
  padding: 24px;
}
.card {
  background: var(--card);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.1);
  transition: all 0.3s ease;
}
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  flex: 0 0 120px;
  background: linear-gradient(135deg, #0ea5a8, var(--accent));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 28px;
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-top: 22px;
}
.section {
  background: rgba(0, 0, 0, 0.02);
  padding: 16px;
  border-radius: 12px;
  transition: background 0.3s;
}
[data-theme='dark'] .section {
  background: rgba(255, 255, 255, 0.03);
}
.skill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-weight: 600;
  margin: 4px 4px 0 0;
  transition: all 0.2s ease;
}
.skill:hover {
  background: var(--accent);
  color: white;
}
.icon-links a {
  color: var(--muted);
  font-size: 22px;
  margin-right: 16px;
  transition: color 0.3s ease;
}
.icon-links a:hover {
  color: var(--accent);
}
#theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--card);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: var(--accent);
  transition: all 0.3s ease;
}
#theme-toggle:hover {
  transform: scale(1.1);
}
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media(max-width:880px) {
  .grid { grid-template-columns: 1fr; }
  .avatar { width: 96px; height: 96px; }
}
