html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 160px; }
.nav-blur { backdrop-filter: blur(8px); }

/* Smooth scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.7s ease-out forwards;
}

/* Video thumbnail overlay */
.video-thumbnail-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.video-thumbnail-container:hover::before {
  opacity: 1;
}

/* When video is playing, disable overlay and allow iframe clicks */
.video-thumbnail-container.video-playing::before {
  display: none;
}

.video-thumbnail-container.video-playing {
  cursor: default;
}

.video-thumbnail-container iframe {
  z-index: 2;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(23, 35, 34, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s;
}

.video-thumbnail-container:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin-left: 4px;
}
