.bubbles {
  position: absolute;
  /* top: 0;
      left: 0; */
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  background: rgba(66, 81, 200, 0.1);
  border-radius: 50%;
  opacity: 0.6;
  animation: float linear infinite;
  filter: blur(1px);
  transform: scale(1);
}

/* Randomized sizes, positions, and speeds */
.bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 10%;
  animation-duration: 5s;
  transform: scale(1.2);
}

.bubble:nth-child(2) {
  width: 30px;
  height: 30px;
  top: 70%;
  left: 20%;
  animation-duration: 8s;
  transform: scale(0.8);
}

.bubble:nth-child(3) {
  width: 80px;
  height: 80px;
  top: 25%;
  left: 50%;
  animation-duration: 4s;
  transform: scale(1.5);
}

.bubble:nth-child(4) {
  width: 25px;
  height: 25px;
  top: 60%;
  left: 75%;
  animation-duration: 5s;
  transform: scale(0.7);
}

.bubble:nth-child(5) {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 35%;
  animation-duration: 06s;
  transform: scale(1);
}

.bubble:nth-child(6) {
  width: 15px;
  height: 15px;
  top: 80%;
  left: 60%;
  animation-duration: 4s;
  transform: scale(0.6);
}

.bubble:nth-child(7) {
  width: 70px;
  height: 70px;
  top: 20%;
  left: 80%;
  animation-duration: 8s;
  transform: scale(1.3);
}

.bubble:nth-child(8) {
  width: 35px;
  height: 35px;
  top: 55%;
  left: 15%;
  animation-duration: 4s;
  transform: scale(0.9);
}

.bubble:nth-child(9) {
  width: 45px;
  height: 45px;
  top: 30%;
  left: 65%;
  animation-duration: 5s;
  transform: scale(1);
}

.bubble:nth-child(10) {
  width: 20px;
  height: 20px;
  top: 75%;
  left: 40%;
  animation-duration: 19s;
  transform: scale(0.7);
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(var(--scale, 1));
    opacity: 0.6;
  }

  50% {
    transform: translateY(-40px) translateX(20px) scale(var(--scale, 1.1));
    opacity: 0.8;
  }

  100% {
    transform: translateY(0) translateX(0) scale(var(--scale, 1));
    opacity: 0.6;
  }
}


.team-section {
  min-height: 600px;
  display: flex;
  /* Enable flexbox */
  justify-content: center;
  /* Horizontal center */
  align-items: center;
  /* Vertical center */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-wrapper {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  /* Ensure it stays centered */
  text-align: center;
}


.team-heading {
  font-size: 36px;
  font-weight: bold;
  color: #4251C8;
  margin-bottom: 10px;
}

.team-subheading {
  font-size: 25px;
  color: #555;
  margin-bottom: 30px;
}

svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Base effect */

svg image {
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.35));
  max-width: 100%;
}
svg image:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0px 16px 28px rgba(0, 0, 0, 0.55));
}




 
svg polygon {
  transition: fill 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
 
svg polygon:hover {
  transform: translateY(-6px);  /* Lift effect */
  fill: #4251C8;
  fill-opacity: 0.9;
}
polygon:hover {
  fill-opacity: 0.8;
  cursor: pointer;
}

text {
  font-family: 'Inter', sans-serif;
  
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 2rem;
 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
 
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
 
/* Wrapper */
.popup-wrapper {
  position: relative;
  display: inline-block;
   display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;   /* full screen */
  padding: 2rem;       /* default padding */
  box-sizing: border-box;
}
 


/* Popup Card */
.popup-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;   /* increased width */
  width: 100%;
  max-height: 90vh;   /* prevents overflow on small screens */
  padding: 2rem;      /* increased padding */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: left;

  transform: scale(0.8); /* slightly larger on open */
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
  opacity: 1;
}
 
/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #111;
}
 
/* Image Box above the card, left-aligned */
.popup-img-box {
  position: absolute;
  top: 50%;
  left: -90px;
  /* push more left since image is bigger */
  transform: translateY(-50%);
  width: 180px;
  /* ✅ increased size */
  height: 180px;
  /* ✅ increased size */
  border-radius: 16px;
  /* smooth corners */
  overflow: hidden;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 10;
}
 
.popup-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
 
/* Content Box */
.popup-content-box {
  margin-left: 100px;
  /* space for image */
}
 
.popup-content-box h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}
 
.popup-designation {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  /* less opacity look */
  font-weight: 500;
}
 
.popup-content-box p {
  margin: 0.3rem 0;
  line-height: 1.5;
}
 
 
/* Scrollable Description */
.popup-desc-box {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
  line-height: 1.5;
}
 
.popup-desc-box::-webkit-scrollbar {
  width: 6px;
}
 
.popup-desc-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
 
.popup-desc-box::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .popup-content {
    max-width: 100%;      /* even smaller for tiny screens */
    padding: 1rem;
  }
 
  .popup-img-box {
    width: 100px;
    height: 100px;
    left: -50px;
  }
 
  .popup-content-box h3 {
    font-size: 1rem;
  }
 
  .popup-designation {
    font-size: 0.85rem;
  }
 
  .popup-desc-box {
    max-height: 120px;
  }
  .popup-content-box {
  margin-left: 55px;
  /* space for image */
}
}




