/* Niscala Eksotika - Parallax & Animation Styles */
/* ==========================================================================
   NISCALA EKSOTIKA — ANIMATIONS & PARALLAX
   Project : Single Landing Page
   Domain  : https://niscala.abpeworks.com

   Principles:
   - Native CSS animations only
   - Transform + opacity for better performance
   - Parallax values are supplied through CSS variables from main.js
   - Motion remains subtle, premium, and mobile-friendly
   ========================================================================== */


/* ==========================================================================
   01. ANIMATION TOKENS
   ========================================================================== */

:root {
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce-soft: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 320ms;
  --duration-base: 640ms;
  --duration-slow: 900ms;
  --duration-slower: 1200ms;

  --reveal-distance: 34px;
  --reveal-scale: 0.96;
}


/* ==========================================================================
   02. PAGE INTRO
   ========================================================================== */

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  color: var(--color-white);
  background:
    radial-gradient(circle at center, rgba(23, 71, 166, 0.22), transparent 38%),
    var(--color-navy);
  transition:
    opacity 700ms var(--ease-luxury),
    visibility 700ms var(--ease-luxury);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: grid;
  place-items: center;
  gap: var(--space-5);
}

.page-loader__mark {
  position: relative;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.page-loader__mark::before,
.page-loader__mark::after {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  content: "";
}

.page-loader__mark::before {
  border: 2px solid transparent;
  border-top-color: var(--color-accent);
  border-right-color: var(--color-accent);
  animation: loaderSpin 1.2s linear infinite;
}

.page-loader__mark::after {
  inset: 24px;
  background: var(--color-accent);
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.42);
  animation: loaderPulse 1.6s var(--ease-soft) infinite;
}

.page-loader__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes loaderSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==========================================================================
   03. HERO ENTRANCE SEQUENCE
   ========================================================================== */

.hero__badge,
.hero__title,
.hero__description,
.hero__actions,
.hero__trust,
.hero__visual {
  opacity: 0;
}

body.is-ready .hero__badge {
  animation: heroRevealUp 760ms var(--ease-luxury) 120ms forwards;
}

body.is-ready .hero__title {
  animation: heroRevealUp 900ms var(--ease-luxury) 220ms forwards;
}

body.is-ready .hero__description {
  animation: heroRevealUp 900ms var(--ease-luxury) 360ms forwards;
}

body.is-ready .hero__actions {
  animation: heroRevealUp 860ms var(--ease-luxury) 500ms forwards;
}

body.is-ready .hero__trust {
  animation: heroRevealUp 820ms var(--ease-luxury) 620ms forwards;
}

body.is-ready .hero__visual {
  animation: heroVisualReveal 1150ms var(--ease-luxury) 260ms forwards;
}

@keyframes heroRevealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroVisualReveal {
  from {
    opacity: 0;
    transform: translate3d(36px, 18px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}


/* ==========================================================================
   04. SCROLL REVEAL SYSTEM
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity var(--duration-slow) var(--ease-luxury),
    transform var(--duration-slow) var(--ease-luxury),
    filter var(--duration-slow) var(--ease-luxury);
}

[data-reveal="up"] {
  transform: translate3d(0, var(--reveal-distance), 0);
}

[data-reveal="down"] {
  transform: translate3d(0, calc(var(--reveal-distance) * -1), 0);
}

[data-reveal="left"] {
  transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(var(--reveal-distance), 0, 0);
}

[data-reveal="scale"] {
  transform: scale(var(--reveal-scale));
}

[data-reveal="blur"] {
  filter: blur(14px);
  transform: translate3d(0, 18px, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

[data-delay="100"] {
  transition-delay: 100ms;
}

[data-delay="200"] {
  transition-delay: 200ms;
}

[data-delay="300"] {
  transition-delay: 300ms;
}

[data-delay="400"] {
  transition-delay: 400ms;
}

[data-delay="500"] {
  transition-delay: 500ms;
}

[data-delay="600"] {
  transition-delay: 600ms;
}

[data-delay="700"] {
  transition-delay: 700ms;
}


/* ==========================================================================
   05. STAGGERED REVEALS
   ========================================================================== */

[data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 760ms var(--ease-luxury),
    transform 760ms var(--ease-luxury);
}

[data-stagger].is-visible > *:nth-child(1) {
  transition-delay: 80ms;
}

[data-stagger].is-visible > *:nth-child(2) {
  transition-delay: 160ms;
}

[data-stagger].is-visible > *:nth-child(3) {
  transition-delay: 240ms;
}

[data-stagger].is-visible > *:nth-child(4) {
  transition-delay: 320ms;
}

[data-stagger].is-visible > *:nth-child(5) {
  transition-delay: 400ms;
}

[data-stagger].is-visible > *:nth-child(6) {
  transition-delay: 480ms;
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}


/* ==========================================================================
   06. HERO PARALLAX LAYERS
   ========================================================================== */

[data-parallax] {
  will-change: transform;
  transition: transform 120ms linear;
}

[data-parallax="slow"] {
  transform: translate3d(
    calc(var(--parallax-x) * 0.28),
    calc(var(--parallax-y) * 0.28),
    0
  );
}

[data-parallax="medium"] {
  transform: translate3d(
    calc(var(--parallax-x) * 0.52),
    calc(var(--parallax-y) * 0.52),
    0
  );
}

[data-parallax="fast"] {
  transform: translate3d(
    calc(var(--parallax-x) * 0.78),
    calc(var(--parallax-y) * 0.78),
    0
  );
}

[data-parallax="reverse"] {
  transform: translate3d(
    calc(var(--parallax-x) * -0.42),
    calc(var(--parallax-y) * -0.42),
    0
  );
}

.hero__visual-frame {
  animation: frameBreath 8s var(--ease-smooth) infinite;
}

.hero__product {
  animation:
    bottleFloat 6.8s var(--ease-smooth) infinite,
    bottleGlow 7.4s var(--ease-smooth) infinite;
}

.hero__orb--blue {
  animation:
    orbDriftBlue 10s var(--ease-smooth) infinite,
    orbPulse 6s var(--ease-soft) infinite;
}

.hero__orb--gold {
  animation:
    orbDriftGold 8.5s var(--ease-smooth) infinite,
    orbPulse 5s var(--ease-soft) infinite reverse;
}

.hero__floating-card--top {
  animation: floatCardTop 7s var(--ease-smooth) infinite;
}

.hero__floating-card--bottom {
  animation: floatCardBottom 7.8s var(--ease-smooth) infinite;
}

@keyframes frameBreath {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.018);
  }
}

@keyframes bottleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -18px, 0) rotate(1.2deg);
  }
}

@keyframes bottleGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 38px 45px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 0 rgba(245, 197, 24, 0));
  }

  50% {
    filter:
      drop-shadow(0 38px 45px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 24px rgba(245, 197, 24, 0.22));
  }
}

@keyframes orbDriftBlue {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-24px, 18px, 0) scale(1.08);
  }
}

@keyframes orbDriftGold {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -16px, 0) scale(1.12);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes floatCardTop {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(1deg);
  }
}

@keyframes floatCardBottom {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, 14px, 0) rotate(-1deg);
  }
}


/* ==========================================================================
   07. HERO LIGHT SWEEP
   ========================================================================== */

.hero__visual-frame::after {
  position: absolute;
  inset: -20%;
  z-index: 2;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  transform: translateX(-180%) rotate(8deg);
  animation: lightSweep 7.5s ease-in-out 1.5s infinite;
  pointer-events: none;
  content: "";
}

@keyframes lightSweep {
  0%,
  55% {
    transform: translateX(-180%) rotate(8deg);
  }

  78%,
  100% {
    transform: translateX(360%) rotate(8deg);
  }
}


/* ==========================================================================
   08. BUTTON MICRO-INTERACTIONS
   ========================================================================== */

.btn {
  isolation: isolate;
}

.btn__icon {
  position: relative;
  overflow: hidden;
}

.btn__icon::after {
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-fast) var(--ease-bounce-soft);
  content: "";
}

.btn:hover .btn__icon::after {
  opacity: 0.28;
  transform: scale(1);
}

.btn--accent {
  animation: accentButtonPulse 4.8s var(--ease-soft) infinite;
}

@keyframes accentButtonPulse {
  0%,
  100% {
    box-shadow: var(--shadow-accent);
  }

  50% {
    box-shadow:
      0 22px 54px rgba(245, 197, 24, 0.3),
      0 0 0 8px rgba(245, 197, 24, 0.06);
  }
}


/* ==========================================================================
   09. CARD INTERACTIONS
   ========================================================================== */

.card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
      rgba(23, 71, 166, 0.11),
      transparent 34%
    );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-soft);
  pointer-events: none;
  content: "";
}

.card:hover::after {
  opacity: 1;
}

.service-card .card__icon,
.advantage-item__icon,
.contact-card__icon {
  transition:
    color var(--duration-fast) var(--ease-soft),
    background-color var(--duration-fast) var(--ease-soft),
    transform var(--duration-base) var(--ease-bounce-soft),
    box-shadow var(--duration-base) var(--ease-soft);
}

.service-card:hover .card__icon {
  color: var(--color-navy);
  background: var(--color-accent);
  box-shadow: 0 12px 28px rgba(245, 197, 24, 0.22);
  transform: translateY(-4px) rotate(-4deg);
}

.advantage-item:hover .advantage-item__icon,
.contact-card:hover .contact-card__icon {
  transform: scale(1.08) rotate(4deg);
}


/* ==========================================================================
   10. PORTFOLIO IMAGE MOTION
   ========================================================================== */

.portfolio-card__image {
  transform-origin: center;
}

.portfolio-card:hover .portfolio-card__content {
  transform: translate3d(0, -4px, 0);
}

.portfolio-card__content {
  transition: transform var(--duration-base) var(--ease-luxury);
}

.portfolio-card::before {
  position: absolute;
  inset: -10%;
  z-index: 1;
  background:
    linear-gradient(
      115deg,
      transparent 18%,
      rgba(255, 255, 255, 0.1) 44%,
      transparent 70%
    );
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity var(--duration-base) var(--ease-soft),
    transform 950ms var(--ease-luxury);
  pointer-events: none;
  content: "";
}

.portfolio-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}


/* ==========================================================================
   11. SECTION DECORATIVE MOTION
   ========================================================================== */

.services::before {
  animation: sectionBlobFloat 14s var(--ease-smooth) infinite;
}

.contact-cta__shell::before {
  animation: ringOrbit 18s linear infinite;
}

@keyframes sectionBlobFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(42px, 26px, 0) scale(1.08);
  }
}

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

  to {
    transform: rotate(1turn);
  }
}


/* ==========================================================================
   12. WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
  animation: whatsappFloat 4.6s var(--ease-smooth) infinite;
}

.whatsapp-float::before {
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(31, 157, 90, 0.34);
  border-radius: inherit;
  opacity: 0;
  animation: whatsappRing 2.8s ease-out infinite;
  content: "";
}

@keyframes whatsappFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes whatsappRing {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  30% {
    opacity: 0.5;
  }

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


/* ==========================================================================
   13. NAVIGATION MOTION
   ========================================================================== */

.site-nav__link {
  transition:
    color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-fast) var(--ease-soft);
}

.site-nav__link:hover {
  transform: translateY(-1px);
}

.site-header.is-scrolled {
  animation: headerDrop 420ms var(--ease-luxury) both;
}

@keyframes headerDrop {
  from {
    transform: translateY(-10px);
  }

  to {
    transform: translateY(0);
  }
}


/* ==========================================================================
   14. TEXT HIGHLIGHT MOTION
   ========================================================================== */

.text-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.text-highlight::after {
  position: absolute;
  right: -0.02em;
  bottom: 0.08em;
  left: -0.02em;
  z-index: -1;
  height: 0.22em;
  border-radius: var(--radius-pill);
  background: rgba(245, 197, 24, 0.72);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 820ms var(--ease-luxury);
  content: "";
}

.text-highlight.is-visible::after,
.is-visible .text-highlight::after {
  transform: scaleX(1);
}


/* ==========================================================================
   15. COUNTER / NUMBER MOTION
   ========================================================================== */

[data-counter] {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.counter-pop {
  animation: counterPop 520ms var(--ease-bounce-soft);
}

@keyframes counterPop {
  0% {
    opacity: 0.35;
    transform: scale(0.84);
  }

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


/* ==========================================================================
   16. SCROLL INDICATOR
   ========================================================================== */

.hero__scroll {
  animation: scrollIndicatorFloat 2.6s var(--ease-smooth) infinite;
}

.hero__scroll-line {
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-100%);
  animation: scrollLineMove 2.2s ease-in-out infinite;
  content: "";
}

@keyframes scrollIndicatorFloat {
  0%,
  100% {
    transform: translate3d(-50%, 0, 0);
  }

  50% {
    transform: translate3d(-50%, 7px, 0);
  }
}

@keyframes scrollLineMove {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}


/* ==========================================================================
   17. DECORATIVE PARTICLES
   ========================================================================== */

.particle {
  position: absolute;
  width: var(--particle-size, 8px);
  height: var(--particle-size, 8px);
  border-radius: 50%;
  background: var(--particle-color, rgba(245, 197, 24, 0.48));
  box-shadow: 0 0 18px var(--particle-color, rgba(245, 197, 24, 0.34));
  opacity: var(--particle-opacity, 0.5);
  pointer-events: none;
  animation:
    particleFloat var(--particle-duration, 8s) var(--ease-smooth) infinite,
    particleFade calc(var(--particle-duration, 8s) * 0.85) ease-in-out infinite;
  animation-delay: var(--particle-delay, 0s);
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(
      var(--particle-shift-x, 16px),
      var(--particle-shift-y, -28px),
      0
    );
  }
}

@keyframes particleFade {
  0%,
  100% {
    opacity: calc(var(--particle-opacity, 0.5) * 0.45);
  }

  50% {
    opacity: var(--particle-opacity, 0.5);
  }
}


/* ==========================================================================
   18. UTILITY ANIMATION CLASSES
   ========================================================================== */

.animate-float {
  animation: utilityFloat 6s var(--ease-smooth) infinite;
}

.animate-float--slow {
  animation: utilityFloat 9s var(--ease-smooth) infinite;
}

.animate-pulse {
  animation: utilityPulse 3.6s var(--ease-soft) infinite;
}

.animate-spin-slow {
  animation: utilitySpin 16s linear infinite;
}

.animate-drift {
  animation: utilityDrift 8s var(--ease-smooth) infinite;
}

@keyframes utilityFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes utilityPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes utilitySpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes utilityDrift {
  0%,
  100% {
    transform: translate3d(-6px, 0, 0);
  }

  50% {
    transform: translate3d(12px, -8px, 0);
  }
}


/* ==========================================================================
   19. RESPONSIVE MOTION TUNING
   ========================================================================== */

@media (max-width: 900px) {
  .hero__visual-frame {
    animation-duration: 10s;
  }

  .hero__product {
    animation-duration: 8s, 9s;
  }

  .hero__floating-card--top,
  .hero__floating-card--bottom {
    animation-duration: 9s;
  }

  .services::before,
  .contact-cta__shell::before {
    animation-duration: 20s;
  }
}

@media (max-width: 768px) {
  [data-reveal] {
    --reveal-distance: 24px;
    transition-duration: 720ms;
  }

  .hero__orb--blue,
  .hero__orb--gold {
    opacity: 0.72;
  }

  .hero__visual-frame::after {
    animation-duration: 9s;
  }

  .btn--accent {
    animation: none;
  }

  .whatsapp-float {
    animation-duration: 5.8s;
  }
}

@media (max-width: 640px) {
  .hero__floating-card--top,
  .hero__floating-card--bottom {
    animation: none;
  }

  .particle:nth-of-type(n + 5) {
    display: none;
  }

  .portfolio-card::before {
    display: none;
  }
}


/* ==========================================================================
   20. TOUCH DEVICE BEHAVIOR
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  .card::after,
  .portfolio-card::before,
  .btn__icon::after {
    display: none;
  }

  .site-nav__link:hover,
  .portfolio-card:hover .portfolio-card__content {
    transform: none;
  }
}


/* ==========================================================================
   21. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .page-loader__mark::before,
  .page-loader__mark::after,
  .hero__visual-frame,
  .hero__product,
  .hero__orb,
  .hero__floating-card,
  .hero__visual-frame::after,
  .btn--accent,
  .services::before,
  .contact-cta__shell::before,
  .whatsapp-float,
  .whatsapp-float::before,
  .hero__scroll,
  .hero__scroll-line::after,
  .particle,
  .animate-float,
  .animate-float--slow,
  .animate-pulse,
  .animate-spin-slow,
  .animate-drift {
    animation: none !important;
  }

  .hero__badge,
  .hero__title,
  .hero__description,
  .hero__actions,
  .hero__trust,
  .hero__visual,
  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   END OF ANIMATIONS.CSS
   ========================================================================== */