/* R-B-Blog: Bougainvillea World styles + animations (ported from JSX). */

@keyframes petalFall {
  0% {
    transform: translateY(-70px) rotate(0deg) translateX(0px);
    opacity: 0;
  }
  6% {
    opacity: 0.88;
  }
  90% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(108vh) rotate(600deg) translateX(50px);
    opacity: 0;
  }
}

@keyframes petalSpin {
  0% {
    transform: translateY(-50px) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 0.7;
    transform: translateY(20px) rotate(90deg) scale(1);
  }
  92% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(106vh) rotate(-720deg) scale(0.4);
    opacity: 0;
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% {
    transform: translateY(-40px) translateX(20px) scale(1.07);
  }
  50% {
    transform: translateY(-15px) translateX(-25px) scale(0.96);
  }
  75% {
    transform: translateY(-55px) translateX(10px) scale(1.04);
  }
}

@keyframes floatOrbAlt {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(35px) translateX(-30px);
  }
  66% {
    transform: translateY(-20px) translateX(40px);
  }
}

@keyframes mandalaSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes mandalaSpinRev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes drawVine {
  from {
    stroke-dashoffset: 1200;
    opacity: 0.2;
  }
  20% {
    opacity: 0.6;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.18;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
}

@keyframes pulseRing2 {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.08;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGrad {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatLabel {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-14px);
    opacity: 0.78;
  }
}

@keyframes shimmerLine {
  0% {
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left;
  }
  45% {
    transform: scaleX(1);
    opacity: 1;
    transform-origin: left;
  }
  55% {
    transform: scaleX(1);
    opacity: 1;
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
    transform-origin: right;
  }
}

.bvl-petal {
  position: absolute;
  border-radius: 50% 0 50% 0;
  animation: petalFall linear infinite;
  pointer-events: none;
}
.bvl-petal2 {
  position: absolute;
  border-radius: 50%;
  animation: petalSpin ease-in-out infinite;
  pointer-events: none;
}

.bvl-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bvl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(194, 24, 91, 0.14) !important;
}

.bvl-btn-pri {
  transition: all 0.22s ease;
  cursor: pointer;
}
.bvl-btn-pri:hover {
  background: #880e4f !important;
  transform: translateY(-1px);
}

.bvl-nav-link {
  transition: color 0.2s;
  text-decoration: none;
}
.bvl-nav-link:hover {
  color: #c2185b !important;
}

.bvl-like:hover {
  color: #c2185b !important;
  border-color: #c2185b !important;
}
.bvl-like {
  transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #c2185b !important;
}

.bvl-am-card,
.bvl-in-card,
.bvl-intl-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  cursor: pointer;
}
.bvl-am-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.22) !important;
}
.bvl-in-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.22) !important;
}
.bvl-intl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(50, 200, 100, 0.22) !important;
}

@keyframes mandalaSpin3 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes mandalaSpin4 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes mandalaSpin5 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #fef8f0;
}
::-webkit-scrollbar-thumb {
  background: #c2185b;
  border-radius: 3px;
}

/* Mandalas and footer particles are injected by JS. */
.bvl-mandala,
.bvl-footer-mandala {
  position: absolute;
  pointer-events: none;
}

.bvl-mandala {
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  opacity: 0.9;
}

.bvl-footer-mandala {
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.85;
}

.bvl-footer-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Responsive overrides (inline grid styles need !important). */
@media (max-width: 1024px) {
  .bvl-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bvl-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bvl-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .bvl-grid-4,
  .bvl-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .bvl-grid-am-head {
    grid-template-columns: 1fr !important;
  }
}
