html, body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
}

.topbar {
  width: 100%;
  border-bottom: 1px solid #e3e3e3;
  background: #ffffff;
  box-sizing: border-box;
  padding: 18px 40px;
}

.topbar-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.topbar-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 0.98rem;
}

.topbar-nav a:hover {
  text-decoration: underline;
}

.main-layout {
  display: grid;
  grid-template-columns: 25% 75%;
  min-height: 0;
  height: 100%;
}

.sidebar {
  background: #f7f7f7;
  border-right: 1px solid #dddddd;
  min-height: 0;
}

.sidebar-inner {
  height: 100%;
  padding: 36px 24px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-photo {
  width: 100%;
  max-width: 210px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.subtitle {
  margin: 0 0 18px 0;
  color: #666666;
  font-weight: 600;
  font-size: 0.96rem;
}

.sidebar-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  align-items: center;
  justify-content: center;
}

.icon-link {
  width: 40px;
  height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003366;
  text-decoration: none;
  background: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
  background: #f1f5f9;
  border-color: #bfc9d4;
  transform: translateY(-1px);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.content {
  overflow-y: auto;
  padding: 50px 60px;
  box-sizing: border-box;
  min-height: 0;
}

section {
  margin-bottom: 70px;
  max-width: 760px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 8px;
}

.welcome-heading {
  font-size: 2rem;
  margin-bottom: 24px;
  border-bottom: none;
  padding-bottom: 0;
}

h3 {
  margin-bottom: 8px;
}

.front-page p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.front-block {
  margin-top: 32px;
}

.front-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.clean-list,
.education-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.clean-list li,
.education-list li {
  margin-bottom: 12px;
}

.education-list li {
  line-height: 1.5;
}

.project {
  margin-bottom: 28px;
}

a {
  color: #003366;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 20px;
}

@media (max-width: 900px) {
  html, body {
    height: auto;
  }

  body {
    overflow: auto;
    display: block;
  }

  .topbar {
    padding: 16px 20px;
  }

  .topbar-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #dddddd;
  }

  .sidebar-inner {
    height: auto;
    padding: 28px 20px;
  }

  .content {
    overflow: visible;
    padding: 30px 20px;
  }

  .profile-photo {
    max-width: 160px;
  }
}