/* Dark Mode (default) */

body {
  background-color: #0d0d0d;
  margin: 0;
  color: white;
  font-family: Arial, sans-serif;
}

#wrapper-canvas canvas {
  max-width: 100%;
}

.hero {
  text-align: center;
  padding: 100px 20px;
}

button {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.theme-button {
  background-color: 0d0d0d;
}

/* Modal Styling */

.about-section {
  width: 90%;
  max-width: 1200px;
  height: 700px;
  background: #1a1a1a;
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0);
  opacity: 0;
  pointer-events: none;
  display: flex;
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.x-icon {
  background: #666af6;
  background: #27292d;
  border-radius: 50%;
  position: absolute;
  width: 30px;
  height: 30px;
  right: 15px;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
}
img {
  vertical-align: middle;
  width: 50%;
}

.about-section.active {
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

/* Show backdrop when modal is active */
.modal-backdrop.active {
  display: block;
}

.x-icon:hover {
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.about-me {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  .about-me-text {
    width: 65%;
    margin: 0 auto;

    ul {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      list-style: none;
      padding: 0;
      margin-top: 20px;
      li {
        background-color: #1e1e1e;
        color: #fff;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 14px;
      }
    }

    .about-me-title {
      color: #1788ae;
      margin-bottom: 12px;
    }

    .mern {
      margin-bottom: 2.2em;
      margin-top: 2em;
      color: #1788ae;
    }

    .top-skills-icons {
      display: flex;
      margin-top: 1.5em;
      position: relative;

      h2 {
        margin-top: 0.5em;
      }

      .mongodb-icon .tooltip {
        background-color: #47a248;
        color: var(--light);
      }

      .express-icon .tooltip {
        background-color: var(--light);
      }

      .react-icon .tooltip {
        background-color: #61dafb;
      }

      .node-icon .tooltip {
        background-color: #8cc84b;
        margin-left: -2px;
      }
    }

    @media (max-width: 1000px) {
      .top-skills-icons {
        justify-content: center;
      }

      .about-me-title,
      .mern {
        text-align: center;
      }

      .about-me-detail {
        width: 90%;
        margin: 0 auto;
        text-align: justify;
        margin-bottom: 20px;
      }

      .about-me-detail + .about-me-detail {
        margin-top: 0.75em;
      }
    }

    @media (max-width: 400px) {
      .top-skills-icons {
        justify-content: center;
        font-size: 0.7em;

        svg {
          width: 35px;
          height: 35px;
        }
      }

      .about-me-title,
      .mern {
        text-align: center;
      }

      .mern {
        margin-top: 1em;
        margin-bottom: 1.5em;
      }

      .about-me-detail {
        width: 90%;
        margin: 0 auto;
        text-align: justify;
      }
    }

    .top-skills-icons div {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: context-menu;

      .tooltip {
        background-color: #8cc84b;
        color: var(--dark);
        padding: 0.5em 1.25em;
        font-weight: 600;
        border-radius: 50px;
        position: absolute;
        margin-bottom: 2em;
        top: -1.25em;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: top 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
          opacity 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      }

      .tooltip::after {
        content: "";
        width: 12px;
        height: 12px;
        background: inherit;
        transform: rotate(45deg);
        position: absolute;
        bottom: -6px;
      }
    }

    .top-skills-icons div:hover .tooltip {
      opacity: 1;
      top: -3.25em;
    }

    .top-skills-icons div + div {
      margin-left: 2em;
    }
  }
}

@media (max-width: 370px) {
  .about-me {
    zoom: 90%;
  }
}

@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    align-items: center;
  }
}
.dotted-circle {
  width: 515px; /* adjust size as needed */
  height: 515px;
  border: 4px dotted #ffffff; /* white dotted border */
  border-radius: 50%;
  padding: 5px; /* space between image and border */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* or your background color */
}

.illustration {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;

  .coder-img {
    width: 150%;
    max-width: 500px;
    height: auto;
  }

  @media (max-width: 1000px) {
    .coder-img {
      width: 60%;
      min-width: 270px;
    }
  }
}

@media (max-width: 760px) {
  .illustration {
    display: none;
  }
}

/* .contact-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.contact-image-container img {
  max-width: 400px;
  width: 100%;
  height: auto;
} */
