/* Video Overlay */
.video-overlay {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 350px;            /* ✅ narrower width for portrait */
  max-width: 80vw;
  max-height: 80vh;        /* ✅ never exceed viewport height */
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-overlay.active {
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%; /* ✅ take full overlay height */
}

.language-toggles {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2002;
  padding: 0 20px;
}
.lang-btn {
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.lang-btn:hover {
  background: rgba(54, 170, 81, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-btn.active {
  background: #36aa51;
  border-color: white;
  font-weight: bold;
}
#floatingVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* keeps your human centered */
  border: none;
  outline: none;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}
.close-video:hover {
  color: #36aa51;
}

/* Pulsing Icon */
.pulsing-icon {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
  background: transparent;
  overflow: hidden;       
}

.pulsing-icon:hover {
  transform: scale(1.1);
  background: #f0f0f0;
}
.pulsing-icon video {
  width: 125%;
  height: 125%;
  object-fit: cover;   /* fills the circle */
  border-radius: 50%;  /* keeps it circular */
  pointer-events: none; /* so clicks pass through to the pulsing icon div */
  display: block;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(54, 170, 81, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(54, 170, 81, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(54, 170, 81, 0);
  }
}

@media (min-width: 768px) {
  .video-overlay {
    width: 400px;
  }
}

@media (min-width: 1200px) {
  .video-overlay {
    width: 500px;
  }
}
