/* FORSA cinematic hero + splash */

/* Hide legacy Enfold slideshow on homepage */
.forsa-home .avia-fullwidth-slider,
.forsa-home .avia-slideshow.av-slideshow-full,
.forsa-home .av_slideshow_full,
.forsa-home .avia-slideshow-container.av-slideshow-fullsize {
  display: none !important;
}

body.forsa-splash-active {
  overflow: hidden;
}

/* ── Splash screen ── */
.forsa-splash {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030508;
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.9s;
}

.forsa-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.forsa-splash__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.forsa-splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.forsa-splash__logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.forsa-splash__logo-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #efbb20 0%, #fff 50%, #efbb20 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: forsaSplashShimmer 2s ease-in-out infinite, forsaSplashPop 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  filter: drop-shadow(0 0 30px rgba(239, 187, 32, 0.5));
}

.forsa-splash__logo-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-top-color: #efbb20;
  border-right-color: rgba(239, 187, 32, 0.3);
  border-radius: 50%;
  animation: forsaSplashSpin 1.4s linear infinite;
}

.forsa-splash__tagline {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: forsaSplashFade 0.8s ease 0.4s forwards;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 2rem;
}

.forsa-splash__progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  opacity: 0;
  animation: forsaSplashFade 0.5s ease 0.6s forwards;
}

.forsa-splash__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #efbb20, #fff);
  border-radius: 2px;
  animation: forsaSplashLoad 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.forsa-splash__skip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: forsaSplashFade 0.5s ease 1s forwards;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.forsa-splash__skip:hover {
  border-color: #efbb20;
  color: #efbb20;
  background: rgba(239, 187, 32, 0.08);
}

/* ── Hero slider ── */
.forsa-hero-landing {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.forsa-hero-cine {
  position: relative;
  min-height: clamp(520px, 88vh, 900px);
  overflow: hidden;
  background: #030508;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.forsa-hero-landing.is-ready .forsa-hero-cine {
  opacity: 1;
  transform: scale(1);
}

.forsa-hero-cine__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.forsa-hero-cine__slides {
  position: relative;
  min-height: inherit;
  z-index: 2;
  perspective: 1400px;
}

.forsa-hero-cine__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(12deg) translateZ(-120px) scale(0.92);
  transition:
    opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.9s;
  pointer-events: none;
}

.forsa-hero-cine__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateZ(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.forsa-hero-cine__slide.is-exit {
  opacity: 0;
  transform: rotateY(-10deg) translateZ(-80px) scale(0.95);
}

.forsa-hero-cine__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.forsa-hero-cine__mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 70% 55% at 25% 70%, var(--slide-c1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 20%, var(--slide-c2) 0%, transparent 50%),
    linear-gradient(165deg, var(--slide-c3) 0%, #0a0e18 100%);
  animation: forsaHeroMesh 14s ease-in-out infinite alternate;
}

.forsa-hero-cine__grid-floor {
  position: absolute;
  bottom: -20%;
  left: -20%;
  right: -20%;
  height: 60%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, black 20%, transparent 80%);
  opacity: 0.5;
  animation: forsaGridScroll 8s linear infinite;
}

/* ── 3D scene ── */
.forsa-hero-cine__scene3d {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  transform: translateY(-50%);
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 1;
  pointer-events: none;
}

.forsa-hero-cine__orbit {
  position: absolute;
  inset: 10%;
  transform-style: preserve-3d;
  animation: forsaOrbitSpin 24s linear infinite;
}

.forsa-hero-cine__float {
  position: absolute;
  width: 72px;
  height: 72px;
  color: var(--slide-c1);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--slide-c1) 60%, transparent));
  transform-style: preserve-3d;
}

.forsa-hero-cine__float svg {
  width: 100%;
  height: 100%;
}

.forsa-hero-cine__float--1 { top: 0; left: 50%; transform: translateX(-50%) translateZ(140px); animation: forsaFloatBob 4s ease-in-out infinite; }
.forsa-hero-cine__float--2 { top: 50%; right: 0; transform: translateY(-50%) translateZ(100px) rotateY(90deg); animation: forsaFloatBob 4.5s ease-in-out -1s infinite; }
.forsa-hero-cine__float--3 { bottom: 0; left: 50%; transform: translateX(-50%) translateZ(120px) rotateY(180deg); animation: forsaFloatBob 5s ease-in-out -2s infinite; }
.forsa-hero-cine__float--4 { top: 50%; left: 0; transform: translateY(-50%) translateZ(110px) rotateY(-90deg); animation: forsaFloatBob 4.2s ease-in-out -0.5s infinite; }

.forsa-hero-cine__ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--slide-c1) 35%, transparent);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.forsa-hero-cine__ring--1 {
  inset: 5%;
  animation: forsaRingTilt 10s ease-in-out infinite alternate;
  border-color: color-mix(in srgb, var(--slide-c1) 50%, transparent);
}

.forsa-hero-cine__ring--2 {
  inset: 20%;
  animation: forsaRingTilt 8s ease-in-out infinite alternate-reverse;
  border-style: dashed;
  opacity: 0.5;
}

.forsa-hero-cine__cube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  transform-style: preserve-3d;
  animation: forsaCubeSpin 12s linear infinite;
}

.forsa-hero-cine__cube::before,
.forsa-hero-cine__cube::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid color-mix(in srgb, var(--slide-c2) 60%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--slide-c1) 8%, transparent);
  backdrop-filter: blur(4px);
}

.forsa-hero-cine__cube::after {
  transform: rotateX(90deg) translateZ(30px);
  opacity: 0.6;
}

/* ── Content ── */
.forsa-hero-cine__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
  color: #fff;
}

.forsa-hero-cine__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slide-c1);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--slide-c1) 35%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
}

.forsa-hero-cine__slide.is-active .forsa-hero-cine__eyebrow {
  animation: forsaHeroTextIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
}

.forsa-hero-cine__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 20%, var(--slide-c1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
}

.forsa-hero-cine__slide.is-active .forsa-hero-cine__title {
  animation: forsaHeroTextIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.25s forwards;
}

.forsa-hero-cine__text {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 2rem;
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
}

.forsa-hero-cine__slide.is-active .forsa-hero-cine__text {
  animation: forsaHeroTextIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

.forsa-hero-cine__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
}

.forsa-hero-cine__slide.is-active .forsa-hero-cine__actions {
  animation: forsaHeroTextIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.55s forwards;
}

.forsa-hero-cine__actions .forsa-btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
}

.forsa-hero-cine__actions .forsa-btn--outline:hover {
  border-color: var(--slide-c1);
  color: var(--slide-c1) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Navigation ── */
.forsa-hero-cine__ui {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
}

.forsa-hero-cine__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.forsa-hero-cine__nav:hover {
  border-color: #efbb20;
  background: rgba(239, 187, 32, 0.12);
  box-shadow: 0 0 24px rgba(239, 187, 32, 0.2);
  transform: scale(1.08);
}

.forsa-hero-cine__dots {
  display: flex;
  gap: 0.5rem;
}

.forsa-hero-cine__dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s, background 0.4s;
}

.forsa-hero-cine__dot.is-active {
  width: 48px;
  background: linear-gradient(90deg, #efbb20, #fff);
}

.forsa-hero-cine__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10;
  animation: forsaScrollPulse 2s ease-in-out infinite;
}

.forsa-hero-cine__scroll i {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* ── Responsive ── */
@media (max-width: 989px) {
  .forsa-hero-cine__scene3d {
    right: 50%;
    transform: translate(50%, -40%);
    opacity: 0.35;
    width: 70vw;
    height: 70vw;
  }

  .forsa-hero-cine__content {
    padding-top: 2rem;
    text-align: center;
    margin: 0 auto;
  }

  .forsa-hero-cine__actions {
    justify-content: center;
  }

  .forsa-hero-cine__text {
    margin-left: auto;
    margin-right: auto;
  }

  .forsa-hero-cine__scroll {
    display: none;
  }
}

@media (max-width: 479px) {
  .forsa-hero-cine {
    min-height: 520px;
  }

  .forsa-hero-cine__scene3d {
    display: none;
  }
}

html[dir="rtl"] .forsa-hero-cine__scene3d {
  right: auto;
  left: 8%;
}

html[dir="rtl"] .forsa-hero-cine__content {
  text-align: right;
}

@media (max-width: 989px) {
  html[dir="rtl"] .forsa-hero-cine__content {
    text-align: center;
  }
}

/* ── Keyframes ── */
@keyframes forsaSplashShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes forsaSplashPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes forsaSplashSpin {
  to { transform: rotate(360deg); }
}

@keyframes forsaSplashFade {
  to { opacity: 1; }
}

@keyframes forsaSplashLoad {
  to { width: 100%; }
}

@keyframes forsaHeroMesh {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.06); }
}

@keyframes forsaGridScroll {
  to { background-position: 0 60px; }
}

@keyframes forsaOrbitSpin {
  to { transform: rotateY(360deg); }
}

@keyframes forsaFloatBob {
  0%, 100% { transform: translateX(-50%) translateZ(140px) translateY(0); }
  50% { transform: translateX(-50%) translateZ(160px) translateY(-12px); }
}

.forsa-hero-cine__float--2 { animation-name: forsaFloatBob2; }
.forsa-hero-cine__float--3 { animation-name: forsaFloatBob3; }
.forsa-hero-cine__float--4 { animation-name: forsaFloatBob4; }

@keyframes forsaFloatBob2 {
  0%, 100% { transform: translateY(-50%) translateZ(100px) rotateY(90deg); }
  50% { transform: translateY(-50%) translateZ(130px) rotateY(90deg) translateY(-10px); }
}

@keyframes forsaFloatBob3 {
  0%, 100% { transform: translateX(-50%) translateZ(120px) rotateY(180deg); }
  50% { transform: translateX(-50%) translateZ(150px) rotateY(180deg) translateY(-8px); }
}

@keyframes forsaFloatBob4 {
  0%, 100% { transform: translateY(-50%) translateZ(110px) rotateY(-90deg); }
  50% { transform: translateY(-50%) translateZ(140px) rotateY(-90deg) translateY(-10px); }
}

@keyframes forsaRingTilt {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(75deg) rotateZ(30deg); }
}

@keyframes forsaCubeSpin {
  to { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes forsaHeroTextIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes forsaScrollPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .forsa-splash,
  .forsa-hero-cine,
  .forsa-hero-cine__slide,
  .forsa-hero-cine__orbit,
  .forsa-hero-cine__mesh,
  .forsa-hero-cine__grid-floor,
  .forsa-hero-cine__cube,
  .forsa-hero-cine__float {
    animation: none !important;
    transition: none !important;
  }

  .forsa-hero-landing .forsa-hero-cine,
  .forsa-hero-cine__slide.is-active .forsa-hero-cine__eyebrow,
  .forsa-hero-cine__slide.is-active .forsa-hero-cine__title,
  .forsa-hero-cine__slide.is-active .forsa-hero-cine__text,
  .forsa-hero-cine__slide.is-active .forsa-hero-cine__actions {
    opacity: 1;
    transform: none;
  }

  .forsa-splash { display: none; }
}
