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

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: #fff;
  padding: 20px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2.4px);
  background-color: #0000000a;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-select: none;
}

header .icon {
  font-size: 24px;
  text-shadow: 2px 2px 5px #080808;
  width: 40px; /* Adjust the size of the icon as needed */
  height: 40px;
  pointer-events: none;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Concert One', sans-serif;
  font-size: 18px;
  text-shadow: 2px 2px 5px #080808;
}

/* fun fact  */
.icon-container {
  position: relative;
  display: flex;
  align-items: center;
}

.fun-fact {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.3s ease;
  font-size: 14px;
  color: #fff;
  font-family: 'Arial', sans-serif;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 4px;
}

.icon-container:hover .fun-fact {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

.icon-container .icon {
  cursor: copy;
}

/* -----  */

#home {
  position: relative;
  height: 100vh;
  background-color: hsl(48, 100%, 5%);
  overflow: hidden;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

#home.shake {
  animation: shake 0.4s ease-in-out; /* The shake effect duration */
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(80%);
}

.text-container {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  margin-top: 30vh;
  text-shadow: 2px 2px 5px #080808;
  cursor: default;
  user-select: none;
}

.text-container h1 {
  font-size: 50px;
}

.section h2 {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 60px;
  font-family: 'Concert One', sans-serif;
  font-size: 40px;
  cursor: default;
  user-select: none;
  color: #fff;
}

/* features */

#features {
  background-color: #0e0e0e;
  padding: 5% 0;
  color: #fff;
  width: 100%;
}

#features-boxes {
  display: flex;
  flex-direction: column;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
}

.features-item:nth-child(even) {
  flex-direction: row-reverse;
}

.features-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.features-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.features-image img:hover {
  transform: scale(1.05);
}

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

.features-content h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.features-content p {
  font-size: 16px;
  line-height: 1.5;
}

/* ---------------- Tech stack -------------------*/
/* Main container styling */
#commands {
  background-color: #14120d; /* Dark brown background */
  padding: 5% 0;
  width: 100%;
}

/* Categories styling */
#category-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Category buttons */
.category-btn {
  padding: 10px 20px;
  background-color: #3a3321;
  color: #ffda77; /* Gold accent */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.category-btn.active {
  background-color: #52462e; /* Darker gold for active state */
}

/* Commands container */
/* Commands container */
#commands-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 15px;
  padding: 30px;
}

/* Command boxes */
.command-box {
  display: flex;
  align-items: center;
  background-color: #3a3321; /* Dark brown background */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for command boxes */
.command-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Command title with gold accent */
.command-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffda0a; /* Bright gold color */
}

/* Command description */
.command-desc {
  font-size: 14px;
  color: #d4c5a1; /* Light gold text for description */
  margin-top: 5px;
}

/* ------------ Status ------------------ */

#status h2 {
  color: #000;
}

/* General Section and Status Wrapper */
.section {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  padding: 30px;
}

.status-wrapper {
  /* margin: 0 auto; */
  padding: 10px;
  background-color: white;
  border-radius: 10px;
}

/* Legend Section */
.legend-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.legend {
  display: flex;
  align-items: center;
  font-size: 1rem;
  /* margin-left: 10px; */
}

.legend .legend-marker {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border-radius: 50%;
}

.legend.success .legend-marker {
  background-color: #2ecc71; /* Green */
}

.legend.warning .legend-marker {
  background-color: #f39c12; /* Yellow */
}

.legend.error .legend-marker {
  background-color: #e74c3c; /* Red */
}

/* Styling for the Shard Container */
#shards-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of shard boxes */
  gap: 20px; /* Adds space between the shard boxes */
  margin-top: 20px;
  justify-content: center; /* Aligns the boxes to the left */
}

.shard-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #414549;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  min-width: 100px; /* Sets a minimum width for each box */
  max-width: 170px; /* Sets a maximum width for each box */
  box-sizing: border-box; /* Prevents overflow */
  position: relative;
  cursor: pointer;
}

.shard-box span {
  font-weight: bold;
}

.shard-name {
  font-size: 18px;
  margin-right: 20px;
}

.shard-info {
  font-size: 16px;
}

/* Optional - Responsiveness */
@media (max-width: 768px) {
  #shards-container {
    justify-content: center; /* Center align the boxes on small screens */
    padding: 0 10px; /* Reduce the left/right padding for small screens */
  }

  .shard-box {
    min-width: 100px; /* Smaller boxes for smaller screens */
    max-width: 150px; /* Limit the maximum width for small screens */
  }
}

.tooltip-content {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  z-index: 1000;
}

.shard-box:hover .tooltip-content {
  opacity: 0.9;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Arrow for the tooltip */
.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* ---------------- About -------------------*/

#about {
  background-color: #000;
  color: #fff;
  padding: 50px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
}

#about p {
  margin-bottom: 10px;
}

#about .social-icons a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

@keyframes beat {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1.1);
  }
}

#about p .heart {
  display: inline-block;
  animation: beat 1s infinite;
}

/* bar ---------------------------------------- */

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
  height: 12px; /* Height of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #627386; /* Color of the scrollbar thumb */
  border-radius: 16px; /* Roundness of the scrollbar thumb */

  background-clip: padding-box;
  border: 3px solid transparent;
}

::-webkit-scrollbar-track {
  background-color: hsl(193, 100%, 5%); /* Color of the scrollbar track */
}

/* --------------------------------------------------- */

.hamburger-menu {
  display: none;
  position: absolute;
  top: 30px; /* Adjust as needed */
  right: 20px; /* Adjust as needed */
  z-index: 10; /* Higher than nav */
}

@media (max-width: 810px) {
  .hamburger-menu {
    display: block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.438);
  }

  header nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    background-color: hsl(193, 100%, 5%);
    position: absolute; /* Position absolutely */
    top: 80px; /* Adjust this based on your layout */
    right: 0;
    width: 100%;
    text-align: center;
  }

  header nav.active {
    display: flex; /* Show when active */
  }

  header nav a {
    margin: 10px 0; /* Margin for links */
    color: #fff; /* Link color */
  }

  .fun-fact {
    font-size: 10px;
  }

  .features-box.expanded {
    max-width: 75%;
  }

  .experience {
    padding: 3px 7px;
    font-size: 10px;
  }
}
