/* General Styles */
:root {
  --primary-color: #d32f2f; /* Red accent */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --hover-bg: rgba(211, 47, 47, 0.1);
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-color-dark);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
  }
}
/* imports */
/* Navigation Bar */
.navbar {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--bg-light);
  border-bottom: 2px solid var(--primary-color);
  transition: background 0.3s ease;
  z-index: 1000;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .navbar {
    background-color: var(--bg-dark);
  }
}
.logo {
  height: 110%;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--text-color-dark);
}

@media (prefers-color-scheme: dark) {
  .logo a:hover {
    color: var(--text-color-light);
  }
}
/* Desktop Menu */
.desktop-menu {
  display: flex;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar-item a {
  text-decoration: none;
  color: var(--text-color-light);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

.navbar-item a:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
  text-shadow: 0 0 0px rgba(0, 0, 0, 0);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

.button_container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.button_container span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-light);
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 1rem;
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-item {
    margin-bottom: 10px;
  }
}
/* Mobile Menu Animation */
.button_container.open .top {
  transform: translateY(8px) rotate(45deg);
}

.button_container.open .middle {
  opacity: 0;
}

.button_container.open .bottom {
  transform: translateY(-8px) rotate(-45deg);
}

.modal {
  display: flex;
  justify-content: center;
}
.modal .modal-inner {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.link {
  position: absolute;
  width: 20px;
  height: 100px;
  background: linear-gradient(145deg, #bbb, #888);
  border-radius: 10px;
  transform-origin: 10px 10px;
}

.joint {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #000, #333);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  z-index: 10;
  transform-origin: 50% 50%;
}

.base {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #333, #666);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.robot {
  transform: rotate(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robot-container {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grip {
  position: absolute;
  width: 50px;
  height: 45px;
  background: linear-gradient(145deg, #666, #555);
  border-radius: 20%;
  z-index: 10;
  transform-origin: 20px 5px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  clip-path: polygon(50% 0%, 100% 57%, 62% 100%, 62% 85%, 88% 57%, 50% 14%, 13% 57%, 38% 86%, 38% 100%, 0% 57%, 50% 0%);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .grip div {
    background-color: var(--bg-dark);
  }
}
.title {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0) 90%, rgb(243, 244, 246)), url("https://cdn.pixabay.com/photo/2018/04/20/22/18/factory-3337207_960_720.jpg");
  background-size: cover;
  background-position: center;
  height: 120vh;
}
.title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5) 80%, rgb(243, 244, 246));
}
.title .title-inner {
  display: flex;
  position: relative;
  align-items: center;
  text-align: left;
  justify-content: center;
  width: 100%;
  height: 40%;
}
.title .title-inner h1 {
  font-size: 4rem;
  color: #eeeeee;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.title .title-inner h1 .lonesome {
  color: #ee0000;
}
.title .robot-container {
  height: 100%;
  align-items: end;
}

.content {
  margin: 0;
  background: rgb(243, 244, 246);
}

.ex-title {
  font-size: 2rem;
  padding: 1rem;
  color: #333;
}

.layered-list {
  list-style-type: none; /* Removes default bullets */
  padding-left: 20px; /* Adds indentation */
}
.layered-list li {
  font-weight: bold;
  margin-top: 5px;
}
.layered-list ul li {
  font-weight: normal;
  margin-left: 15px; /* Further indentation for sub-items */
  color: #666; /* Lighter color for emphasis */
}

.modal-line-container {
  width: 100%;
}
.modal-line-container > .modal {
  width: 100%;
}
.modal-line-container > .modal > .modal-inner {
  width: 100%;
}
.modal-line-container h3 {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.modal-line-container h3::after {
  content: "";
  display: block;
  fit-content: 100%;
  height: 3px;
  background-color: #ee0000;
}
