.hero .achievement-hero {
  position: relative;
  min-height: 530px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 28px 32px rgba(66, 52, 125, 0.2));
  isolation: isolate;
}

.hero .achievement-hero::before {
  content: "";
  position: absolute;
  inset: 7% -5% 4% 7%;
  z-index: -1;
  display: block;
  border-radius: 46% 54% 44% 56% / 54% 40% 60% 46%;
  background: linear-gradient(
    145deg,
    rgba(85, 70, 232, 0.22),
    rgba(248, 183, 201, 0.4)
  );
  transform: rotate(5deg);
  animation: hero-aura-float 10s ease-in-out infinite alternate;
}

.hero .achievement-hero::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 3%;
  z-index: 3;
  display: block;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    var(--coral),
    #ffc65b,
    var(--cobalt),
    var(--coral)
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 9px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 0);
  pointer-events: none;
  animation: hero-orbit-spin 12s linear infinite;
}

.hero-image-carousel {
  height: 530px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 42% 58% 44% 56% / 32% 30% 70% 68%;
  background: #e9e6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: hero-mask-morph 14s cubic-bezier(0.45, 0, 0.55, 1) infinite
    alternate;
}

.achievement-photo-wrap,
.achievement-photo-wrap .carousel-item,
.hero .achievement-photo-wrap img {
  height: 100%;
  min-height: 0;
}

.hero .achievement-photo-wrap img {
  padding: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: scale(1.015);
  transform-origin: center;
  will-change: transform;
}

.hero .achievement-photo-wrap .carousel-item.active img {
  animation: hero-image-focus 6s ease-out both;
}

.hero-image-carousel::before {
  content: "";
  position: absolute;
  inset: -35% -80%;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 62%
  );
  pointer-events: none;
  transform: translateX(-34%) rotate(4deg);
  animation: hero-light-sweep 8s ease-in-out infinite;
}

.hero-image-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(14, 13, 29, 0.3));
  pointer-events: none;
}

.hero-image-carousel .carousel-indicators {
  z-index: 4;
  bottom: 1.7rem;
  margin-bottom: 0;
}

.hero-image-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  margin-inline: 5px;
  border: 0;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 0 1px rgba(14, 13, 29, 0.14);
  opacity: 0.6;
  transition:
    width 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hero-image-carousel .carousel-indicators .active {
  width: 28px;
  border-radius: 999px;
  opacity: 1;
  transform: scaleY(0.82);
}

.hero-image-carousel .carousel-control-prev,
.hero-image-carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(14, 13, 29, 0.18);
  opacity: 1;
  transform: translateY(-50%);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-image-carousel .carousel-control-prev:hover,
.hero-image-carousel .carousel-control-next:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 13, 29, 0.24);
  transform: translateY(-50%) scale(1.08);
}

.hero-image-carousel .carousel-control-prev {
  left: 1.25rem;
}

.hero-image-carousel .carousel-control-next {
  right: 1.25rem;
}

.hero-image-carousel .carousel-control-prev-icon,
.hero-image-carousel .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
  filter: invert(20%) sepia(17%) saturate(1147%) hue-rotate(204deg)
    brightness(86%);
}

.hero-gallery-label {
  position: absolute;
  left: 1.6rem;
  bottom: 2.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 25, 35, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: hero-label-float 4s ease-in-out infinite;
}

@keyframes hero-mask-morph {
  0% {
    border-radius: 42% 58% 44% 56% / 32% 30% 70% 68%;
  }

  50% {
    border-radius: 48% 52% 58% 42% / 38% 42% 58% 62%;
  }

  100% {
    border-radius: 55% 45% 50% 50% / 45% 34% 66% 55%;
  }
}

@keyframes hero-image-focus {
  from {
    transform: scale(1.015);
  }

  to {
    transform: scale(1.04);
  }
}

@keyframes hero-light-sweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-34%) rotate(4deg);
  }

  70% {
    opacity: 1;
  }

  88%,
  100% {
    opacity: 0;
    transform: translateX(34%) rotate(4deg);
  }
}

@keyframes hero-aura-float {
  from {
    border-radius: 46% 54% 44% 56% / 54% 40% 60% 46%;
    transform: rotate(5deg) translate3d(0, 0, 0);
  }

  to {
    border-radius: 54% 46% 58% 42% / 42% 54% 46% 58%;
    transform: rotate(1deg) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes hero-orbit-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes hero-label-float {
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 991.98px) {
  .hero .achievement-hero,
  .hero-image-carousel {
    min-height: 0;
    height: clamp(430px, 68vw, 620px);
  }
}

@media (max-width: 575.98px) {
  .hero .achievement-hero,
  .hero-image-carousel {
    height: 430px;
  }

  .hero-image-carousel {
    border-radius: 38% 62% 46% 54% / 25% 28% 72% 75%;
  }

  .hero .achievement-hero::before {
    inset: 5% 0 2% 4%;
  }

  .hero .achievement-hero::after {
    right: -1%;
    bottom: 2%;
    width: 60px;
  }

  .hero-image-carousel .carousel-control-prev,
  .hero-image-carousel .carousel-control-next {
    width: 38px;
    height: 38px;
  }

  .hero-gallery-label {
    left: 1.15rem;
    bottom: 2.35rem;
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .achievement-hero::before,
  .hero .achievement-hero::after,
  .hero-image-carousel,
  .hero-image-carousel::before,
  .hero .achievement-photo-wrap .carousel-item.active img,
  .hero-gallery-label {
    animation: none;
  }
}
