/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; -webkit-font-smoothing: antialiased; }

/* Color variables */
:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --card: #f8fafc;
  --glass: rgba(37,99,235,0.06);
}

body.dark-mode {
  --bg: #0b1220;
  --text: #e6eef8;
  --muted: #9aa6b2;
  --accent: #60a5fa;
  --card: #07122a;
  --glass: rgba(96,165,250,0.08);
}

body {
  background: linear-gradient(180deg, var(--bg), var(--card));
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 3rem;
}

/* Header / Navbar */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); z-index: 40; }
body.dark-mode .site-header { background: rgba(6,10,18,0.6); }

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin-left: auto;
  align-items: center;
}

.nav-list a {
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { background: var(--glass); color: var(--accent); }

.nav-right { margin-left: 0.5rem; }

.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}

.theme-toggle:focus, .nav-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.4rem;
  border-radius: 6px;
}
.hamburger {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Main container */
.container {
  max-width: 1100px;
  margin: 1.25rem auto;
  padding: 1rem;
}

/* Hero / profile */
.header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(12, 20, 30, 0.06);
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--glass);
}

.header h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.subtitle { color: var(--muted); margin-bottom: 0.6rem; }

.social { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.btn {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
}
.btn:hover { background: var(--glass); color: var(--accent); }

/* Info cards */
.info-cards {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.info-card {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem;
  background: transparent;
  border-radius: 10px;
  min-width: 160px;
}
.info-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border-radius: 8px;
  color: var(--accent);
}
.info-card .title { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.info-card .value { font-weight: 600; }

/* Sections */
.section { margin-top: 1.25rem; padding: 1rem; background: transparent; border-radius: 10px; }
.section h2 { margin-bottom: 0.6rem; font-size: 1.1rem; }

.skill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.skill-list li {
  background: var(--card);
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Job / education */
.job, .education-item { background: var(--card); padding: 0.8rem; border-radius: 10px; margin-top: 0.6rem; }
.meta { color: var(--muted); margin-bottom: 0.4rem; }

/* Footer */
.site-footer { max-width: 1100px; margin: 2rem auto 0; padding: 0 1rem; color: var(--muted); }

/* Responsive */
@media (max-width: 800px) {
  .header { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
  .info-cards { justify-content: center; flex-wrap: wrap; }
  .nav-list { position: absolute; top: 64px; left: 0; right: 0; background: var(--card); display: none; flex-direction: column; gap: 0; padding: 0.5rem; }
  .nav-list.open { display: flex; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-list a { padding: 0.75rem 1rem; }
}
