.youtube-btn {
  display: block;
  align-items: center;
  gap: 8px;
  margin: 40px auto 0;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 500;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #2a5c91;
  background-size: 300% 300%;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(55, 117, 185, 0.25);
  position: relative;
  overflow: hidden;
  animation: gradientShift 6s ease infinite, bounce 2s infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.youtube-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(55, 117, 185, 0.45);
}


.youtube-btn .play-icon {
  font-size: 14px;
}

/* modal */
.youtube-modal {
  display: flex; /* always flex, visibility controlled with opacity */
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);

  opacity: 0; /* start hidden */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.youtube-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.youtube-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.youtube-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.youtube-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s;
}

.youtube-close:hover {
  transform: scale(1.1);
}

