:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 920px;
  margin: auto;
  padding: 2rem 1.25rem 4rem;
}

.header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
}

.tagline {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.resume-actions {
  margin-top: 1.3rem;
}

.download-btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

section h2 {
  color: var(--accent);
  margin-top: 0;
}

.item h3 {
  margin-bottom: 0.25rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

ul {
  padding-left: 1.2rem;
}

.skills {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.skills li {
  background: rgba(37, 99, 235, 0.1);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

[data-theme="dark"] .skills li {
  background: rgba(56, 189, 248, 0.15);
}

.footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2.2rem;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .header h1 {
    font-size: 2.1rem;
  }
}
