body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.factory-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.factory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parallelogram area styles */
.parallelogram-area {
  position: absolute;
  cursor: pointer;
  background-color: rgba(57, 47, 197, 0); /* Semi-transparent for debugging */
  transition: background-color 0.3s;
  z-index: 1;
}

.parallelogram-area:hover {
  background-color: rgba(106, 156, 119, 0); /* Highlight on hover */
}

/* Building 1 */
.building-1 {
  top: 39%;
  left: 2%;
  width: 25%;
  height: 32%;
  clip-path: polygon(50% 0%, 100% 0%, 73% 47%, 75% 100%, 4% 100%, 0% 50%);
}

/* Building 2 */
.building-2 {
  top: 42%;
  left: 24%;
  width: 20%;
  height: 27%;
  clip-path: polygon(9% 0%, 100% 0%, 100% 23%, 100% 100%, 0% 100%, 0% 21%);
}

/* Building 3 */
.building-3 {
  top: 45%;
  left: 47%;
  width: 15%;
  height: 27%;
  /* clip-path: polygon(9% 0%, 100% 0%, 100% 23%, 100% 100%, 0% 100%, 0% 21%); */
}

/* Building 3 */
.building-4 {
  top: 54%;
  left: 65%;
  width: 10%;
  height: 18%;
  clip-path: polygon(0% 0%, 68% 0%, 100% 60%, 100% 100%, 20% 100%);
}

.building-5 {
  top: 40%;
  left: 70%;
  width: 28%;
  height: 32%;
  clip-path: polygon(0% 0%, 64% 0%, 100% 62%, 100% 100%, 32% 100%, 20% 65%);
}

/* Building title inside each area */
.building-title {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none; /* Prevent title from interfering with clicks */
}

/* Wrapper for dots and titles */
.dot-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Title above each dot */
.dot-title {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  color: #fff;
  background-color: rgba(
    0,
    0,
    0,
    0.7
  ); /* Semi-transparent background for readability */
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 5px; /* Space between title and dot */
  display: inline-block;
}

/* Dot styles */
.dot {
  position: relative;
  width: 30px;
  height: 30px;
  background-color: rgb(100%, 100%, 100%);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, 0);
  box-shadow: 0 0 10px rgba(100%, 100%, 100%, 0.8);
  animation: glow 1.5s infinite;
  z-index: 10;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(100%, 100%, 100%, 0.8);
  }
  50% {
    box-shadow: 0 0 20px rgba(100%, 100%, 100%, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(100%, 100%, 100%, 0.8);
  }
}

/* Adding outward circle animation */
.dot::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: rgba(100%, 100%, 100%, 0.5);
  border-radius: 50%;
  animation: circle-expand 1.5s infinite;
}

@keyframes circle-expand {
  0% {
    width: 30px;
    height: 30px;
    opacity: 1;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out; /* Smooth fade-in animation */
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Scale for subtle animation */
  background: linear-gradient(
    135deg,
    #ffffff,
    #f8f9fa
  ); /* Elegant gradient background */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Fancy shadow for depth */
  border-radius: 15px;
  text-align: left;
  width: 50%;
  max-width: 600px;
  padding: 30px;
  opacity: 0; /* Hidden initially */
  animation: slideUp 0.5s ease-in-out forwards; /* Slide up with opacity fade-in */
}

.modal-content h2 {
  text-align: center;
  font-family: "Playfair Display", serif; /* Elegant serif font */
  font-size: 28px;
  color: #333;
  margin: 0;
  padding-bottom: 10px;
  /* border-bottom: 1px solid #ddd; Subtle divider */
}

.modal-content p {
  text-align: left;
  font-family: "Roboto", sans-serif; /* Clean sans-serif font */
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-top: 20px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000; /* Darker on hover */
}

/* Animations */
@keyframes fadeIn {
  0% {
    background-color: rgba(0, 0, 0, 0);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.4);
  }
}

@keyframes slideUp {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
