body {
  margin: 0;
  padding: 0;
  background: #0d0d0d;
  font-family: sans-serif;
}

.shrink-0 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main {
  position: relative;  
  width: 900px;
  height: 700px;
}

.section-title {
  font-size: 48px;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.tech-bubble {
  position: absolute;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #2e3537a0;
  padding: 0.5vw;
  border-radius: 100%;
  background: #141617;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 10;
}

.tech-bubble.hovered {
  border: 2px solid #ff6a00;
  box-shadow: 0 0 22px rgba(255, 106, 0, 0.7);
  transform: scale(1.1);
}

.tech-bubble img {
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: block;
  width: 5vw;
  height: 5vw;
  max-width: 64px;
  max-height: 64px;
}

/* Zoom for hovered bubble only */
.tech-bubble.hovered img {
  transform: scale(1.2);
}

/* Tooltip */
.tech-bubble::after {
  content: attr(data-name);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.tech-bubble.hovered::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Connection lines */
.connections {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.connection-line {
  stroke: #2e3537;
  stroke-width: 2;
  opacity: 0.7;
}

/* Bubble positions at desktop */
.tech-bubble[data-name="Angular"] { top: 580.33px; left: 260px; }
.tech-bubble[data-name="React"] { top: 253.54px; left: 499.63px; }
.tech-bubble[data-name="Vue"] { top: 382.44px; left: 460.08px; }
.tech-bubble[data-name="MySQL"] { top:440px; left: 680px; width: 48px; height: 48px; }
.tech-bubble[data-name="PHP"] { top: 440px; left: 100px;  width: 52px; height: 52px; }
.tech-bubble[data-name="Laravel"] { top: 400px; left: 280px; }
.tech-bubble[data-name="Google Cloud"] { top: 254.32px; left: 800px; width: 48px; height: 48px; }
.tech-bubble[data-name="AWS"] { top: 198.52px; left: 350.66px; }
.tech-bubble[data-name="Azure"] { top: 528.4px; left: 507.82px; }
.tech-bubble[data-name="Flutter"] { top: 230.35px; left: 170px; }
.tech-bubble[data-name="Node.js"] { top: 40px; left: 248.31px; width: 54px; height: 54px; }
.tech-bubble[data-name="C Language"] { top: 78.16px; left: 574.47px; }

/* --- Large Desktop (1440px and above) --- */
@media screen and (max-width: 1440px) and (min-width: 1025px) {
  .shrink-0 {
    width: 90vw;
    max-width: 1280px;
  }

  .main {
    width: 800px;
    height: 600px;
  }

  .tech-bubble img {
    width: 4vw;
    height: 4vw;
    max-width: 50px;
    max-height: 50px;
  }

  .section-title {
    font-size: 36px;
  }

  /* Adjusted positions */
  .tech-bubble[data-name="Angular"] { top: 500px; left: 220px; }
  .tech-bubble[data-name="React"] { top: 220px; left: 450px; }
  .tech-bubble[data-name="Vue"] { top: 350px; left: 400px; }
  .tech-bubble[data-name="MySQL"] { top: 400px; left: 600px; }
  .tech-bubble[data-name="PHP"] { top: 400px; left: 80px; }
  .tech-bubble[data-name="Laravel"] { top: 350px; left: 220px; }
  .tech-bubble[data-name="Google Cloud"] { top: 220px; left: 700px; }
  .tech-bubble[data-name="AWS"] { top: 170px; left: 300px; }
  .tech-bubble[data-name="Azure"] { top: 480px; left: 450px; }
  .tech-bubble[data-name="Flutter"] { top: 200px; left: 150px; }
  .tech-bubble[data-name="Node.js"] { top: 30px; left: 200px; }
  .tech-bubble[data-name="C Language"] { top: 70px; left: 500px; }
}

/* --- Enhanced Tablet Landscape (1024px to 768px) --- */
@media screen and (max-width: 1024px) and (min-width: 600px) {
  .shrink-0 {
    width: 95vw;
    height: auto;
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin: 40px auto;
    padding: 20px;
  }

  .main {
    width: 100%;
    height: 550px;
    margin: 0 auto;
    position: relative;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .tech-bubble {
    padding: 8px;
  }

  .tech-bubble img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }

  /* Reorganized positions in a circular layout to prevent overlap */
  .tech-bubble[data-name="Node.js"] { top: 10%; left: 50%; transform: translateX(-50%); }
  .tech-bubble[data-name="C Language"] { top: 15%; left: 20%; }
  .tech-bubble[data-name="React"] { top: 15%; left: 80%; }
  .tech-bubble[data-name="AWS"] { top: 30%; left: 30%; }
  .tech-bubble[data-name="Google Cloud"] { top: 30%; left: 70%; }
  .tech-bubble[data-name="Flutter"] { top: 45%; left: 20%; }
  .tech-bubble[data-name="Laravel"] { top: 45%; left: 50%; transform: translateX(-50%); }
  .tech-bubble[data-name="Vue"] { top: 45%; left: 80%; }
  .tech-bubble[data-name="PHP"] { top: 60%; left: 30%; }
  .tech-bubble[data-name="Azure"] { top: 60%; left: 70%; }
  .tech-bubble[data-name="Angular"] { top: 75%; left: 20%; }
  .tech-bubble[data-name="MySQL"] { top: 75%; left: 80%; }
}

/* --- Enhanced Mobile (600px and below) --- */
@media screen and (max-width: 600px) {
  .shrink-0 {
    width: 100%;
    margin: 20px auto;
    padding: 0 10px;
    position: relative;
    transform: none;
    top: auto;
    left: auto;
  }

  .main {
    height: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .tech-bubble {
    padding: 6px;
  }

  .tech-bubble img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }

  /* Grid-like layout for better organization on small screens */
  .tech-bubble[data-name="Node.js"] { top: 5%; left: 20%; }
  .tech-bubble[data-name="C Language"] { top: 5%; left: 80%; }
  .tech-bubble[data-name="React"] { top: 20%; left: 50%; transform: translateX(-50%); }
  .tech-bubble[data-name="AWS"] { top: 35%; left: 30%; }
  .tech-bubble[data-name="Google Cloud"] { top: 35%; left: 70%; }
  .tech-bubble[data-name="Flutter"] { top: 50%; left: 20%; }
  .tech-bubble[data-name="Laravel"] { top: 50%; left: 50%; transform: translateX(-50%); }
  .tech-bubble[data-name="Vue"] { top: 50%; left: 80%; }
  .tech-bubble[data-name="PHP"] { top: 65%; left: 30%; }
  .tech-bubble[data-name="Azure"] { top: 65%; left: 70%; }
  .tech-bubble[data-name="Angular"] { top: 80%; left: 20%; }
  .tech-bubble[data-name="MySQL"] { top: 80%; left: 80%; }
}

/* --- Small Mobile (390px and below) --- */
@media screen and (max-width: 390px) {
  .main {
    position: static; 
    width: 100%;
    display: flex;
    height: 90vh;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;  
    margin: 0 auto;
  }

  .shrink-0 {
    padding: 0;
    margin: 50px auto;
    height: auto;  
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
  }

  .section-title {
    padding: 16px;
    font-size: 32px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
  }

  .tech-bubble[data-name="Angular"] { top: 620px; left: 20px; padding:8px;  width: 52px; height: 52px;}
  .tech-bubble[data-name="React"] { top: 410px; left: 180px; padding:20px; width: 20px; height: 20px; }
  .tech-bubble[data-name="Vue"] { top: 500px; left: 280px; padding:8px;  width: 46px; height: 46px;}
  .tech-bubble[data-name="MySQL"] { top: 630px; left: 280px; padding:8px; width: 40px; height: 40px; }
  .tech-bubble[data-name="PHP"] { top: 690px; left: 140px; padding:8px;  width: 32px; height: 32px;}
  .tech-bubble[data-name="Laravel"] { top: 340px; left: 25px;padding:8px; width: 42px; height: 42px;  }
  .tech-bubble[data-name="Google Cloud"] { top: 360px; left: 290px; padding:20px;  width: 19px; height: 19px;}
  .tech-bubble[data-name="AWS"] { top: 280px; left: 150px; padding:8px; width: 54px; height: 54px; }
  .tech-bubble[data-name="Azure"] { top: 550px; left: 160px; padding:8px;  width: 38px; height: 38px; }
  .tech-bubble[data-name="Flutter"] { top: 480px; left: 60px; padding:8px;  width: 42px; height: 42px;}
  .tech-bubble[data-name="Node.js"] { top: 190px; left: 50px;padding:8px; width: 46px; height: 46px;}
  .tech-bubble[data-name="C Language"] { top: 230px; left: 280px; padding:8px; width: 40px; height: 40px;}

  .tech-bubble img {
    width: 40px;
    height: 40px;
    max-width: none;
    max-height: none;
  }
}