:root {
  --bg: #0f1b2d;
  --bg-elevated: #14233a;
  --grid-line: rgba(255, 255, 255, 0.04);
  --accent: #5eb3f5;
  --text-primary: #e8eef5;
  --text-secondary: #9db4cc;
  --border: #22364d;
  --sidebar-width: 260px;
  --font-sans: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

a { color: var(--accent); }

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: 2.2rem; }
h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
h3 { font-size: 1.1rem; }

.section { padding: 3rem 2.5rem; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }

.accent { color: var(--accent); }
.tagline { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; }
.profile-text { max-width: 640px; line-height: 1.6; }
.subheading { color: var(--accent); font-size: 0.9rem; margin: 0.2rem 0 0.6rem; }

.social-icons { margin-top: 1.5rem; display: flex; gap: 1rem; }
.social-icons a { text-decoration: none; font-size: 0.85rem; border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 4px; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-header { padding: 2rem 1.5rem 1rem; text-align: center; }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.profile-name { margin-top: 0.75rem; font-weight: 700; }
.lang-toggle {
  display: block;
  margin: 0.75rem auto 0;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.75rem;
}
.nav-links { list-style: none; margin: 0; padding: 1rem 0; flex: 1; }
.nav-links a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(94, 179, 245, 0.08); }

.nav-burger { display: none; }

.main-content { margin-left: var(--sidebar-width); }

/* Experience / education items */
.resume-item { display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.resume-content { flex: 1; }
.resume-date { color: var(--text-secondary); white-space: nowrap; font-size: 0.85rem; }
.resume-bullets { margin: 0.4rem 0 0; padding-left: 1.1rem; line-height: 1.6; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.project-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; }
.project-stack { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.75rem; background: rgba(94, 179, 245, 0.12); color: var(--accent); padding: 0.15rem 0.5rem; border-radius: 3px; }
.project-links { margin-top: 0.75rem; font-size: 0.85rem; }
.project-links a { margin-right: 0.5rem; }

/* Skills */
.skill-category { margin-bottom: 1.25rem; }
.skill-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-items li { background: var(--bg-elevated); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.85rem; }

/* Certifications */
.certifications-list { list-style: none; margin: 0; padding: 0; }
.certifications-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.certifications-list li.award { color: var(--accent); }
.cert-name { font-weight: 700; }

/* Languages */
.language-item { margin-bottom: 1rem; }
.language-item p { color: var(--text-secondary); margin: 0.2rem 0 0; }

/* Footer / contact */
.references-note { color: var(--text-secondary); font-size: 0.85rem; }

@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    overflow: visible;
    z-index: 20;
  }
  .sidebar-header { display: none; }
  .lang-toggle {
    display: inline-block;
    margin: 0 0 0 auto;
  }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-burger span { display: block; height: 2px; background: var(--text-primary); border-radius: 1px; }

  .nav-links {
    position: fixed;
    top: 56px; left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: var(--bg-elevated);
    padding: 0;
    transition: height 0.2s ease;
  }
  .sidebar.open .nav-links { height: calc(100vh - 56px); overflow-y: auto; padding: 1rem 0; }

  .main-content { margin-left: 0; margin-top: 56px; }
  .section { padding: 2rem 1.25rem; scroll-margin-top: 56px; }
  .resume-item { flex-direction: column; }
}
