/* Subtle animations for Olsson Smart Shades - Premium feel, no distraction */

/* Logo animation - REMOVED per user request */

/* Staggered tile reveal - subtle fade-in on scroll */
@keyframes tile-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lx-tile, .lx-qtile {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.lx-tile.reveal, .lx-qtile.reveal {
  animation: tile-fade-in 0.6s ease-out forwards;
}

/* Staggered timing for tiles */
.lx-tile.reveal:nth-child(1), .lx-qtile.reveal:nth-child(1) { animation-delay: 0.0s; }
.lx-tile.reveal:nth-child(2), .lx-qtile.reveal:nth-child(2) { animation-delay: 0.1s; }
.lx-tile.reveal:nth-child(3), .lx-qtile.reveal:nth-child(3) { animation-delay: 0.2s; }
.lx-tile.reveal:nth-child(4), .lx-qtile.reveal:nth-child(4) { animation-delay: 0.3s; }

/* Page section fade-in on scroll */
@keyframes section-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lx-sec {
  will-change: opacity, transform;
}

.lx-sec.reveal {
  animation: section-fade-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Reactive button animations */
button, a.btn, .cta-button {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

button:hover, a.btn:hover, .cta-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

button:active, a.btn:active, .cta-button:active {
  transform: scale(0.98) translateY(0);
}

/* Tile hover effects - card lift */
.lx-tile, .lx-qtile {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lx-tile:hover, .lx-qtile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lx-tile img, .lx-qtile img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lx-tile:hover img, .lx-qtile:hover img {
  transform: scale(1.08);
}


/* Premium tile reveal timing */
.lx-tile.reveal, .lx-qtile.reveal {
  animation: tile-fade-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-animate {
    animation: none;
  }
  .lx-tile, .lx-qtile {
    opacity: 1;
    transform: none;
  }
  .lx-tile.reveal, .lx-qtile.reveal {
    animation: none;
  }
  button:hover, a.btn:hover, .cta-button:hover {
    transform: none;
    box-shadow: none;
  }
}
