/* Hero 5: Text left with background, Image right, PLAY button */
.hero5 {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
  background-image: url("../images/img27pc.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero5-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero5-content {
  flex: 1;
  max-width: 600px;
}

.hero5-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  line-height: 1.2;
  font-family: Arial, sans-serif;
}

.hero5-subtitle {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 30px 0;
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

.hero5-button {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(
    135deg,
    var(--button-bg-start) 0%,
    var(--button-bg-end) 100%
  );
  color: var(--button-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--button-glow), 0 0 20px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
  border: 2px solid transparent;
}

.hero5-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.hero5-button:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-start) 0%,
    var(--button-hover-end) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--button-glow), 0 0 40px rgba(118, 75, 162, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero5-button:hover::before {
  left: 100%;
}

.hero5-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--button-glow);
}

.hero5-image {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero5-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 450px;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4))
    drop-shadow(0 0 40px rgba(118, 75, 162, 0.3));
  animation: floatGlow 3s ease-in-out infinite;
  transition: all 0.5s ease;
}

.hero5-image img:hover {
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6))
    drop-shadow(0 0 60px rgba(118, 75, 162, 0.5))
    drop-shadow(0 0 80px rgba(155, 89, 182, 0.3));
  transform: scale(1.05);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0px);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4))
      drop-shadow(0 0 40px rgba(118, 75, 162, 0.3));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5))
      drop-shadow(0 0 50px rgba(118, 75, 162, 0.4));
  }
}

@media (max-width: 768px) {
  .hero5 {
    height: auto;
    min-height: 500px;
    padding: 100px 20px 40px;
    background-image: url("../images/img27pc.webp");
  }

  .hero5-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero5-content {
    max-width: 100%;
  }

  .hero5-title {
    font-size: 36px;
  }

  .hero5-subtitle {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .hero5-button {
    font-size: 18px;
    padding: 12px 40px;
  }

  .hero5-image {
    max-width: 100%;
  }

  .hero5-image img {
    max-height: 300px;
  }
}
