*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*Yellow (Hexagon with cloud icon):*/
/*HEX: #F7D400*/
/*RGB: rgb(247, 212, 0)*/
/*Blue (Hexagon with water drop icon):*/
/*HEX: #00A9E0*/
/*RGB: rgb(0, 169, 224)*/
/*Red (Hexagon with atom icon):*/
/*HEX: #F25C54*/
/*RGB: rgb(242, 92, 84)*/
/*Green:*/
/*RGB: rgb(0, 105, 60)*/
/*HEX: #00693C*/

:root {
    --bg-color: rgb(0, 0, 0);
    --text-color: #e6e6e6;
    --contact-color: rgb(255, 255, 255);
    --header-color: rgb(255, 255, 255);
    --header-bg-color: rgb(0, 169, 224);
    --h-color: rgb(0, 169, 224);
    --link-color: rgb(0, 169, 224, 0.7);
    --link-hover: rgb(247, 212, 0);
    --border-color: rgb(0, 169, 224);
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: rgb(0, 0, 0);
    --contact-color: rgb(0, 0, 0);
    --header-bg-color: #e6e6e6;
    --header-color: rgb(0, 0, 0);
    --h-color: rgb(242, 92, 84);
    --border-color: rgb(242, 92, 84);
    --link-color: rgba(242, 92, 84,.7);
}
body {
    font-family: 'Lato', sans-serif;
      min-height: 100vh;
      background: var(--bg-color);
      color: var(--text-color);
      transition: background 0.3s, color 0.3s;
    margin: 1em;
}

header {
    color: var(--header-color);
    background: var(--header-bg-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

p {
    color: var(--text-color);
    margin-bottom: .7em;
}

article {
    margin-left: 1em;
}
.topnav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    justify-content: flex-start;
}
/*.topnav .logo‑link {*/
/*  margin-right: auto;*/
/*}*/
/*.topnav .logo-img {*/
/*  height: 40px;*/
/*  width: auto;*/
/*}*/
.topnav a {
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.5s;
    color: var(--header-color);
}
.topnav a:hover {
    color: var(--link-hover);
}

.theme-icon {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding-left: 15px;
    align-self: center;
    transition: color 0.5s;
}

/*.lang-button {*/
/*    border: none;*/
/*    background: none;*/
/*    color: white;*/
/*    cursor: pointer;*/
/*    margin-left: auto;*/
/*    padding-left: 15px;*/
/*    align-self: center;*/
/*    transition: color 0.3s;*/
/*}*/

.container {
  display: flex;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 20px 10px;
  color: var(--text-color);
  border-right: 3px solid var(--border-color);
    margin-right: 2em;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
  border: 3px solid var(--border-color);
}

.contact-info p,
.contact-info a {
  font-size: 14px;
  color: var(--contact-color);
  margin-bottom: 6px;
  text-decoration: none;
  text-align: center;
}

.contact-info a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding-left: 20px;
}

section {
  margin-bottom: 40px;
}

h1 {
  color: var(--h-color);
  margin-bottom: 10px;
}

h2 {
    color: var(--h-color);
  position: relative;
  margin-bottom: 1em;
    /*text-decoration: underline;*/
    text-decoration-thickness: .07em;
    text-underline-offset: .3em;
}

.content ul {
  list-style: none;
  padding-left: 0;
}

.content ul li {
  margin-bottom: 8px;
}


/* Hide sidebar by default on mobile */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -220px;  /* hide sidebar to the left */
    height: 100vh;
    width: 220px;
    background-color: inherit; /* keep sidebar bg */
    padding-top: 60px; /* space for nav */
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.show {
    left: 0; /* show sidebar */
  }

  /* Show hamburger button */
  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
  }


  /* Optional: dim background when sidebar open */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
}

mjx-container {
  font-family: inherit !important;
  font-size: 1em !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}
