/* ===== Theme Variables ===== */
:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
}

body.dark {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
}

/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== Top Bar ===== */
.top-bar {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visitor-counter {
  font-size: 14px;
  color: var(--muted);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

/* ===== Layout ===== */
.container {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 32px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== Header ===== */
.header {
  border-bottom: 2px solid #e5e7eb33;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

/* ===== Sections ===== */
section {
  margin-bottom: 28px;
}

section h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.item-header h3 {
  font-size: 16px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

ul {
  margin-top: 8px;
  padding-left: 20px;
}

ul li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ===== Skills ===== */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.skills span {
  background: rgba(100,116,139,0.12);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .header h1 {
    font-size: 26px;
  }
}
