/*! ======================== KEYFRAMES ======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*! ======================== HERO ANIMATIONS ======================== */
.hero-title {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/*! ======================== SHOW REEL SECTION ======================== */
.showreel-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 3rem;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.showreel-btn {
  padding: 12px 24px 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 10;
}

.showreel-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.video-circle {
  position: relative;
  flex-shrink: 0;
  height: 40px;
  width: 40px;
  z-index: 1;
}

.showreel-btn:hover .preview-video {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(1.25);
}

.preview-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-sizing: border-box;
}

.btn-text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/*! ======================== VIDEO MODAL ======================== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  pointer-events: all;
}

.expanding-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  clip-path: circle(20px at var(--click-x, 50%) var(--click-y, 50%));
  transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.video-modal.active .expanding-video {
  opacity: 1;
  pointer-events: all;
  clip-path: circle(150% at var(--click-x, 50%) var(--click-y, 50%));
}

.video-close-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.video-modal.active .video-close-btn {
  opacity: 1;
  pointer-events: all;
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

.video-close-btn svg {
  width: 20px;
  height: 20px;
}

/*! ======================== RESPONSIVE ======================== */
@media screen and (max-width: 768px) {
  .showreel-btn {
    padding: 10px 20px 10px 14px;
    font-size: 14px;
    gap: 12px;
  }

  .video-circle {
    width: 36px;
    height: 36px;
  }

  .showreel-btn:hover .video-circle {
    width: 48px;
    height: 48px;
  }

  .video-close-btn {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .video-close-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 480px) {
  .showreel-wrapper {
    margin-top: 2rem;
  }

  .showreel-btn {
    padding: 8px 18px 8px 12px;
    font-size: 13px;
    gap: 10px;
  }

  .video-circle {
    width: 32px;
    height: 32px;
  }

  .showreel-btn:hover .video-circle {
    width: 42px;
    height: 42px;
  }

  .video-close-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .video-close-btn svg {
    width: 16px;
    height: 16px;
  }
}
