/*==========================================
  Floating Decorative Icons (custom)
==========================================*/
.hk-float-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(6, 49, 115, 0.12);
}

.hk-float-icon i {
  display: block;
}

/* Size variants */
.hk-float-icon--sm {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.hk-float-icon--md {
  width: 62px;
  height: 62px;
  font-size: 25px;
}

.hk-float-icon--lg {
  width: 78px;
  height: 78px;
  font-size: 32px;
}

/* Color variants */
.hk-float-icon--yellow {
  background-color: #fff4d6;
  color: #f0a800;
}

.hk-float-icon--blue {
  background-color: #e4f3fd;
  color: #40a6e8;
}

.hk-float-icon--green {
  background-color: #eef7e2;
  color: #8cbf41;
}

.hk-float-icon--purple {
  background-color: #efe9fb;
  color: #8a63d2;
}

.hk-float-icon--orange {
  background-color: #fff0dc;
  color: #fd9f0e;
}

.hk-float-icon--pink {
  background-color: #fce6ef;
  color: #e2387d;
}

.hk-float-icon--teal {
  background-color: #e0f4f3;
  color: #059c99;
}

/* Animations */
@keyframes hkFloatY {

  0%,
  100% {
    transform: translateY(0) rotate(var(--hk-rot, 0deg));
  }

  50% {
    transform: translateY(-16px) rotate(var(--hk-rot, 0deg));
  }
}

@keyframes hkBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.06);
  }
}

@keyframes hkWiggle {

  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

@keyframes hkSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes hkPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.hk-anim-float {
  animation: hkFloatY 4.5s ease-in-out infinite;
}

.hk-anim-bounce {
  animation: hkBounce 2.6s ease-in-out infinite;
}

.hk-anim-wiggle {
  animation: hkWiggle 2.2s ease-in-out infinite;
}

.hk-anim-spin {
  animation: hkSpin 7s linear infinite;
}

.hk-anim-pulse {
  animation: hkPulse 2.4s ease-in-out infinite;
}

/* Stagger delays so icons don't move in sync */
.hk-delay-1 {
  animation-delay: 0.3s;
}

.hk-delay-2 {
  animation-delay: 0.8s;
}

.hk-delay-3 {
  animation-delay: 1.3s;
}

.hk-delay-4 {
  animation-delay: 1.8s;
}

@media (prefers-reduced-motion: reduce) {

  .hk-anim-float,
  .hk-anim-bounce,
  .hk-anim-wiggle,
  .hk-anim-spin,
  .hk-anim-pulse {
    animation: none;
  }
}

@media (max-width: 767px) {
  .hk-float-icon--lg {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .hk-float-icon--md {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .hk-float-icon--sm {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }
}

@media (max-width: 575px) {

  /* Hide the smallest decorative icons on very small screens to avoid clutter */
  .hk-float-icon--hide-xs {
    display: none;
  }
}

/*==========================================
  Per-section icon positions
==========================================*/
.hk-hero {
  position: relative;
}

.hk-hero .hk-float-icon--pos1 {
  top: 70px;
  left: 4%;
}

.hk-hero .hk-float-icon--pos2 {
  top: 40%;
  left: 1%;
}

.hk-hero .hk-float-icon--pos3 {
  top: 90px;
  right: 46%;
}

.hk-hero .hk-float-icon--pos4 {
  bottom: 210px;
  left: 34%;
}

.hk-about {
  position: relative;
}

.hk-about .hk-float-icon--pos1 {
  top: 6%;
  right: 4%;
}

.hk-about .hk-float-icon--pos2 {
  bottom: 8%;
  right: 8%;
}

.hk-about .hk-float-icon--pos3 {
  top: 46%;
  left: 2%;
}

.hk-why {
  position: relative;
}

.hk-why .hk-float-icon--pos1 {
  top: 0;
  left: 6%;
}

.hk-why .hk-float-icon--pos2 {
  top: 4%;
  right: 6%;
}

.hk-why .hk-float-icon--pos3 {
  bottom: 4%;
  left: 3%;
}

.hk-why .hk-float-icon--pos4 {
  bottom: 10%;
  right: 3%;
}

@media (max-width: 991px) {

  .hk-hero .hk-float-icon,
  .hk-about .hk-float-icon,
  .hk-why .hk-float-icon {
    opacity: 0.7;
  }
}

@media (max-width: 575px) {

  .hk-hero .hk-float-icon--pos2,
  .hk-hero .hk-float-icon--pos4,
  .hk-about .hk-float-icon--pos3,
  .hk-why .hk-float-icon--pos3,
  .hk-why .hk-float-icon--pos4 {
    display: none;
  }
}
