/* Global Styles */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Arial", sans-serif;
}

/* Canvas Background */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Main Container */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Main Title */
.main-title {
  font-size: 5vw;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin: 3vh 0;
  text-align: center;
}

/* Hexagon Containers */
.hexagon-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2vh 0;
}

.top-row,
.bottom-row {
  display: flex;
  justify-content: center;
  gap: 2vw;
}

/* Hexagon Items */
.hexagon-item {
  text-decoration: none;
  color: white;
  margin: 0 1vw;
  transition: all 0.3s ease;
}

.hexagon {
  position: relative;
  width: 10vw;
  height: 8.66vw; /* height = width * 0.866 */
  background-color: rgba(255, 255, 255, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hexagon-content {
  text-align: center;
}

.hexagon-content i {
  font-size: 2.5vw;
  margin-bottom: 0.5vh;
}

.hexagon-content span {
  display: block;
  font-size: 1vw;
}

.hexagon-item:hover .hexagon,
.hexagon-item:focus .hexagon {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Dock Component */
.dock-container {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.dock {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1vh 1vw;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-item {
  position: relative;
  width: 3vw;
  height: 3vw;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0.5vw;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dock-item i {
  font-size: 1.2vw;
  color: white;
}

.dock-item:hover,
.dock-item:focus {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.dock-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5vh 1vw;
  border-radius: 5px;
  font-size: 0.8vw;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.dock-item:hover::after,
.dock-item:focus::after {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .main-title {
    font-size: 8vw;
  }

  .hexagon {
    width: 15vw;
    height: 13vw;
  }

  .hexagon-content i {
    font-size: 4vw;
  }

  .hexagon-content span {
    font-size: 1.5vw;
  }

  .dock-item {
    width: 5vw;
    height: 5vw;
  }

  .dock-item i {
    font-size: 2vw;
  }

  .dock-item::after {
    font-size: 1.2vw;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 10vw;
  }

  .top-row,
  .bottom-row {
    gap: 3vw;
  }

  .hexagon {
    width: 18vw;
    height: 15.6vw;
  }

  .hexagon-content i {
    font-size: 5vw;
  }

  .hexagon-content span {
    font-size: 2vw;
  }

  .dock {
    padding: 1vh 2vw;
  }

  .dock-item {
    width: 8vw;
    height: 8vw;
    margin: 0 1vw;
  }

  .dock-item i {
    font-size: 3vw;
  }

  .dock-item::after {
    font-size: 2vw;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 12vw;
    margin: 2vh 0;
  }

  .top-row,
  .bottom-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4vw;
  }

  .hexagon {
    width: 25vw;
    height: 21.65vw;
  }

  .hexagon-content i {
    font-size: 7vw;
  }

  .hexagon-content span {
    font-size: 2.5vw;
  }

  .dock {
    flex-wrap: wrap;
    justify-content: center;
    width: 80vw;
  }

  .dock-item {
    width: 10vw;
    height: 10vw;
    margin: 1vw;
  }

  .dock-item i {
    font-size: 4vw;
  }

  .dock-item::after {
    font-size: 3vw;
  }
}

