:root {
  --gap: 10px;
  --half-gap: calc(var(--gap) / 2);
  --sidebar-width: 300px;
}

/* MAIN LAYOUT */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: block;
}

body * {
  box-sizing: border-box;
  font-family: "Roboto", serif;
}

.container {
  display: block;
  width: 100%;
}

.sidebar {
  display: block;
  width: var(--sidebar-width);
  background: #e7e7e7;
  padding: var(--gap);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  height: 100vh;
  overflow: auto;
  left: -100%;
  /* Hidden by default */
  transition: left 0.3s ease;
  z-index: 10;
  /* Ensures it is above other content */
}

.sidebar.open {
  left: 0;
  /* Slide into view when open */
}

.overlay {
  position: fixed;
  display: block;
  width: 100%;
  height: 100vh;
  background-color: black;
  opacity: 0.03;
  left: -100%;
  transition: left 0.3s ease;
  z-index: 9;
}

.overlay.visible {
  left: 0;
}

.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: margin-left 0.3s ease;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

menu {
  margin: 0;
  display: block;
  position: sticky;
  top: 0;
  z-index: 8;
  background-color: white;
  padding: 10px 20px;
}

/* BURGER MENU */
.hamburger-menu {
  width: 25px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 2px;
}

.hamburger-menu span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
}

/* PROFILE */
.profile {
  text-align: center;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile h2 {
  margin: 10px 0;
  font-size: 24px;
  font-family: "Playfair Display", serif;
}

.profile p {
  font-size: 14px;
  color: #777;
  font-weight: bold;
}

/* MENU */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu>ul {
  list-style: none;
  padding: 0;
}

.menu>ul>li {
  position: relative;
}

.menu>ul>li>ul {
  display: none;
  /* Hidden by default */
  padding-left: 15px;
  list-style: none;
}

.menu>ul>li.open>ul {
  display: block;
  /* Show submenu when open */
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 5px 10px;
}

.menu-link:hover {
  color: #007BFF;
}

/* SESSION */
.section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;

  justify-content: center;
  align-items: center;

  padding: var(--gap);
  padding-top: 23px;
}

.section.row {
  flex-direction: row;
  gap: var(--gap);
}

.home-image {
  margin-left: calc(var(--gap) * -1);
}

.home-image img {
  max-height: 50vh;
  max-width: 33vw;
}

.section h1 {
  font-size: 36px;
  margin: 0;
  font-family: "Playfair Display", serif;
}

.section h3 {
  color: #777;
  margin: 0 0 30px 0;
}

.logo {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: row-reverse;
}

.logo img {
  width: 100px;
}

.skill-category {
  padding-top: 20px;
}

.skill-category h2 {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.skill-category p {
  margin-top: 0;
}

@media (min-width: 768px) {
  :root {
    --gap: 20px;
  }
  
  .sidebar {
    left: 0;
  }

  .overlay {
    display: none;
  }

  .content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }

  menu {
    display: none;
  }

  .home-image img {
    max-width: calc((100vw - var(--sidebar-width)) * .33);
  }
}
