/* ===== Base ===== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #2f2f2f;
  background-color: #fdfdfd;
}

body {
  min-height: 100vh;
}

/* ===== Sidebar ===== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #353535;
  color: #ffffff;
  padding: 32px 22px;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.site-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a.active {
  color: #ffffff;
  border-left-color: #ffffff;
  font-weight: 600;
}

/* ===== Main content ===== */

.content {
  margin-left: 220px;
  padding: 40px 36px;
}

.content-inner {
  max-width: 860px;
}

.content h1 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
  line-height: 1.2;
  color: #222222;
}

.content h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #2a2a2a;
}

.content p {
  margin: 0 0 18px 0;
  line-height: 1.75;
  text-align: justify;
}

.content ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.content li {
  margin-bottom: 12px;
  line-height: 1.7;
  text-align: justify;
}

.content a {
  color: #267cb9;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.profile-photo {
  width: 200px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 28px auto;
}

.project-links,
.contact-links {
  text-align: left;
}

.project-links span,
.contact-links span {
  color: #7a7a7a;
  margin: 0 6px;
}

/* ===== Mobile menu button ===== */

.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 6px;
  background-color: #353535;
  padding: 10px;
  cursor: pointer;
  z-index: 1200;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
}

/* ===== Responsive ===== */

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 220px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 80px 22px 32px 22px;
  }

  .content-inner {
    max-width: 100%;
  }

  .content h1 {
    font-size: 1.75rem;
  }

  .profile-photo {
    width: 180px;
  }
}