/**
 * CSS dla nowych typów bloków treści z animacjami
 * Zawiera wszystkie nowoczesne efekty i animacje
 */

/* ========================================
   ANIMACJE OGÓLNE
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flip {
  from {
    opacity: 0;
    transform: rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.8),
      0 0 30px rgba(13, 110, 253, 0.6);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ========================================
   SLIDER / CAROUSEL
   ======================================== */

.slider-block .carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.slider-block .carousel-item {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.slider-block .carousel-item img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Efekt zoom przy zmianie slajdu */
.slider-block .carousel-item.active img {
  animation: subtleZoom 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subtleZoom {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Płynniejsze fade */
.slider-block .carousel-item-next,
.slider-block .carousel-item-prev,
.slider-block .carousel-item.active {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ulepszone przyciski nawigacji */
.slider-block .carousel-control-prev,
.slider-block .carousel-control-next {
  width: 80px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-block:hover .carousel-control-prev,
.slider-block:hover .carousel-control-next {
  opacity: 1;
}

.slider-block .carousel-control-prev-icon,
.slider-block .carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-block .carousel-control-prev:hover .carousel-control-prev-icon,
.slider-block .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Ulepszone wskaźniki */
.slider-block .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
}

.slider-block .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.slider-block .carousel-indicators .active {
  width: 40px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Ulepszone napisy */
.slider-block .carousel-caption {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  padding: 30px;
  border-radius: 12px;
  bottom: 40px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 80%;
  backdrop-filter: blur(10px);
  animation: slideUpFade 0.8s ease 0.3s both;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.slider-block .carousel-caption h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-block .carousel-caption p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.slider-block .carousel-caption .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-block .carousel-caption .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .slider-block .carousel-control-prev,
  .slider-block .carousel-control-next {
    width: 50px;
  }

  .slider-block .carousel-control-prev-icon,
  .slider-block .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }

  .slider-block .carousel-caption {
    padding: 20px;
    bottom: 20px;
    max-width: 90%;
  }

  .slider-block .carousel-caption h3 {
    font-size: 1.75rem;
  }

  .slider-block .carousel-caption p {
    font-size: 1rem;
  }
}

/* ========================================
   HERO PARALLAX
   ======================================== */

.block-hero-parallax {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-hero-parallax .parallax-bg {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
}

.block-hero-parallax .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.block-hero-parallax .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in;
}

.block-hero-parallax .hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s 0.3s ease-in both;
}

.block-hero-parallax .hero-content .btn {
  animation: fadeIn 1s 0.6s ease-in both;
}

/* ========================================
   TEXT ANIMATED
   ======================================== */

.block-text-animated {
  opacity: 0;
  transition: all 0.8s ease;
}

.block-text-animated.animated {
  opacity: 1;
}

.block-text-animated.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.block-text-animated.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.block-text-animated.slide-left {
  animation: slideLeft 0.8s ease forwards;
}

.block-text-animated.slide-right {
  animation: slideRight 0.8s ease forwards;
}

.block-text-animated.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

.block-text-animated.flip {
  animation: flip 0.8s ease forwards;
}

/* ========================================
   CTA ANIMATED
   ======================================== */

.block-cta-animated {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.block-cta-animated.has-gradient {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
}

.block-cta-animated h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.block-cta-animated p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.block-cta-animated .btn.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.block-cta-animated .btn.shake {
  animation: shake 1s ease-in-out infinite;
}

.block-cta-animated .btn.bounce {
  animation: bounce 2s ease-in-out infinite;
}

.block-cta-animated .btn.glow {
  animation: glow 2s ease-in-out infinite;
}

/* ========================================
   FEATURES HOVER
   ======================================== */

/* Features Hover Block */
.block-features-hover .feature-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.block-features-hover .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.block-features-hover .feature-card:hover::before {
  transform: scaleX(1);
}

.block-features-hover .feature-card.effect-lift:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2);
  border-color: #0d6efd;
}

.block-features-hover .feature-card.effect-scale:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
  z-index: 1;
}

.block-features-hover .feature-card.effect-tilt:hover {
  transform: perspective(1000px) rotateX(8deg) rotateY(-8deg);
  box-shadow: 0 25px 50px rgba(13, 110, 253, 0.3);
  border-color: #0d6efd;
}

.block-features-hover .feature-card.effect-rotate:hover {
  transform: rotate(3deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
}

.block-features-hover .feature-card.effect-glow:hover {
  box-shadow: 0 0 30px rgba(13, 110, 253, 0.6), 0 0 60px rgba(13, 110, 253, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #0d6efd;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.block-features-hover .feature-icon {
  font-size: 4rem;
  color: #0d6efd;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e7f1ff 0%, #f0f7ff 100%);
  border-radius: 50%;
  position: relative;
}

.block-features-hover .feature-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.block-features-hover .feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  color: #0a58ca;
}

.block-features-hover .feature-card:hover .feature-icon::after {
  opacity: 1;
}

.block-features-hover .feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.block-features-hover .feature-card:hover .feature-title {
  color: #0d6efd;
}

.block-features-hover .feature-description {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.block-features-hover .feature-card:hover .feature-description {
  color: #495057;
}

/* Link styling */
.block-features-hover a.feature-card {
  text-decoration: none;
  color: inherit;
}

.block-features-hover a.feature-card:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .block-features-hover .feature-icon {
    font-size: 3rem;
    width: 100px;
    height: 100px;
  }

  .block-features-hover .feature-card {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   SLIDER 3D (SWIPER)
   ======================================== */

.block-slider-3d {
  padding: 60px 0;
}

.block-slider-3d .swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.block-slider-3d .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.block-slider-3d .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-slider-3d .swiper-slide-active {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.block-slider-3d .slide-caption {
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
}

.block-slider-3d .slide-caption h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.block-slider-3d .slide-caption p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Swiper navigation buttons */
.block-slider-3d .swiper-button-next,
.block-slider-3d .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.block-slider-3d .swiper-button-next:after,
.block-slider-3d .swiper-button-prev:after {
  font-size: 20px;
}

.block-slider-3d .swiper-button-next:hover,
.block-slider-3d .swiper-button-prev:hover {
  background: rgba(13, 110, 253, 0.9);
  transform: scale(1.1);
}

/* Swiper pagination */
.block-slider-3d .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.block-slider-3d .swiper-pagination-bullet-active {
  opacity: 1;
  background: #0d6efd;
  width: 30px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .block-slider-3d .swiper-slide {
    width: 250px;
    height: 350px;
  }

  .block-slider-3d .swiper-button-next,
  .block-slider-3d .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .block-slider-3d .swiper-button-next:after,
  .block-slider-3d .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* ========================================
   GALLERY MASONRY
   ======================================== */

/* Gallery Masonry Block */
.block-gallery-masonry .masonry-grid {
  column-gap: 20px;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
}

.block-gallery-masonry .masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  position: relative;
}

.block-gallery-masonry .masonry-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: #f8f9fa;
}

.block-gallery-masonry .masonry-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1) 0%,
    rgba(13, 202, 240, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.block-gallery-masonry .masonry-image-wrapper:hover::before {
  opacity: 1;
}

.block-gallery-masonry .masonry-image-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.block-gallery-masonry .masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.block-gallery-masonry .masonry-image-wrapper:hover img {
  transform: scale(1.1);
}

.block-gallery-masonry .masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.block-gallery-masonry .masonry-image-wrapper:hover .masonry-overlay {
  opacity: 1;
}

.block-gallery-masonry .masonry-overlay i {
  font-size: 3rem;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Lightbox effect on click (optional enhancement) */
.block-gallery-masonry .masonry-image-wrapper:active {
  transform: scale(0.98);
}

/* Simple Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 15px;
  }

  .lightbox-close {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    top: 15px;
    right: 15px;
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.block-testimonials .testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.block-testimonials .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.block-testimonials .testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #0d6efd;
}

.block-testimonials .testimonial-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.block-testimonials .testimonial-text {
  font-style: italic;
  color: #666;
  margin-bottom: 1.5rem;
}

.block-testimonials .testimonial-author {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.block-testimonials .testimonial-position {
  color: #999;
  font-size: 0.9rem;
}

/* Testimonials Slider (karuzela) */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-slider .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials-slider .testimonial-item {
  background: transparent;
  border-radius: 0;
  padding: 2.5rem;
  box-shadow: none;
  transition: none;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-slider .testimonial-item:hover {
  box-shadow: none;
}

.testimonials-slider .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  position: relative;
}

.testimonials-slider .lead::before {
  content: '"';
  font-size: 4rem;
  color: #0d6efd;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -30px;
  font-family: Georgia, serif;
}

.testimonials-slider .rating i {
  font-size: 1.2rem;
  margin: 0 2px;
}

.testimonials-slider .swiper-button-next,
.testimonials-slider .swiper-button-prev {
  color: #0d6efd;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonials-slider .swiper-button-next:after,
.testimonials-slider .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.testimonials-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #0d6efd;
  opacity: 0.3;
}

.testimonials-slider .swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/* Testimonials Grid (siatka) - tylko dla siatki, nie dla slidera */
.block-testimonials .row .testimonial-item.p-4 {
  background: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.block-testimonials .row .testimonial-item.p-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.block-testimonials .row .testimonial-item.p-4:hover::before {
  transform: scaleX(1);
}

.block-testimonials .row .testimonial-item.p-4:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TIMELINE
   ======================================== */

/* Timeline Vertical (pionowa) */
.block-timeline-vertical {
  position: relative;
  padding: 3rem 0;
}

.block-timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0d6efd, #0dcaf0);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.block-timeline-vertical .timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.block-timeline-vertical .timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.block-timeline-vertical .timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.block-timeline-vertical .timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.block-timeline-vertical .timeline-content {
  width: 45%;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s ease;
}

.block-timeline-vertical .timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.block-timeline-vertical .timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.block-timeline-vertical
  .timeline-item:nth-child(even)
  .timeline-content::before {
  right: -20px;
  border-left-color: white;
}

.block-timeline-vertical
  .timeline-item:nth-child(odd)
  .timeline-content::before {
  left: -20px;
  border-right-color: white;
}

.block-timeline-vertical .timeline-marker {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 5px solid white;
  box-shadow: 0 0 0 3px #0d6efd, 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.block-timeline-vertical .timeline-marker:hover {
  transform: translateX(-50%) scale(1.2);
}

.block-timeline-vertical .timeline-date {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.block-timeline-vertical .timeline-content h4 {
  color: #333;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.block-timeline-vertical .timeline-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Timeline Horizontal (pozioma) */
.block-timeline-horizontal {
  position: relative;
  padding: 3rem 0;
  overflow-x: auto;
}

.block-timeline-horizontal .timeline {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  position: relative;
  padding-top: 60px;
  min-width: max-content;
}

.block-timeline-horizontal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.block-timeline-horizontal .timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 280px;
}

.block-timeline-horizontal .timeline-marker {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  z-index: 2;
  border: 5px solid white;
  box-shadow: 0 0 0 3px #0d6efd, 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.block-timeline-horizontal .timeline-marker:hover {
  transform: scale(1.2);
}

.block-timeline-horizontal .timeline-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.4s ease;
  width: 100%;
}

.block-timeline-horizontal .timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.block-timeline-horizontal .timeline-date {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.block-timeline-horizontal .timeline-content h4 {
  color: #333;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.block-timeline-horizontal .timeline-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   PRICING TABLE
   ======================================== */

.block-pricing-table {
  padding: 4rem 0;
}

.block-pricing-table .pricing-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.block-pricing-table .pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.block-pricing-table .pricing-card.featured {
  border: 2px solid #0d6efd;
  transform: scale(1.05);
}

.block-pricing-table .pricing-card.featured::before {
  content: "POLECAMY";
  position: absolute;
  top: 15px;
  right: -30px;
  background: #0d6efd;
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.7rem;
  font-weight: 700;
}

.block-pricing-table .pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.block-pricing-table .pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 0.5rem;
}

.block-pricing-table .pricing-period {
  color: #999;
  margin-bottom: 2rem;
}

.block-pricing-table .pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.block-pricing-table .pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.block-pricing-table .pricing-features li:last-child {
  border-bottom: none;
}

/* ========================================
   COUNTERS
   ======================================== */

.block-counters {
  padding: 4rem 0;
  text-align: center;
}

.block-counters .counter-item {
  padding: 2.5rem;
  background: white;
  border-radius: 20px;

  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.block-counters .counter-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0, #20c997);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.block-counters .counter-item:hover::before {
  transform: scaleX(1);
}

.block-counters .counter-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.2);
}

.block-counters .counter-item i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.block-counters .counter-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

.block-counters .counter-value {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 50%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.block-counters .counter-value::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  border-radius: 2px;
}

.block-counters .counter-item p {
  font-size: 1.1rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Animacja pulsowania dla ikon */
@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.block-counters .counter-item:hover i {
  animation: pulse-icon 1s ease-in-out infinite;
}

/* Efekt świecenia */
.block-counters .counter-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
}

.block-counters .counter-item:hover::after {
  width: 300px;
  height: 300px;
}

/* ========================================
   TEAM GRID
   ======================================== */

.block-team-grid {
  padding: 4rem 0;
}

.block-team-grid .team-member {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.block-team-grid .team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.05) 0%,
    rgba(13, 202, 240, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.block-team-grid .team-member:hover::before {
  opacity: 1;
}

.block-team-grid .team-member:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.block-team-grid .team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.block-team-grid .team-member:hover img {
  border-color: #0d6efd;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.block-team-grid .team-member h4 {
  color: #212529;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.block-team-grid .team-member .text-primary {
  color: #0d6efd !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.block-team-grid .team-member .text-muted {
  color: #6c757d !important;
  line-height: 1.6;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.block-team-grid .social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.block-team-grid .social-links .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid #0d6efd;
  color: #0d6efd;
  background: white;
}

.block-team-grid .social-links .btn:hover {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Animacja wejścia dla karty zespołu */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block-team-grid .team-member {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   BEFORE/AFTER
   ======================================== */

.block-before-after {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.block-before-after .before-image,
.block-before-after .after-image {
  width: 100%;
  display: block;
}

.block-before-after .after-image {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 0 0 50%);
}

.block-before-after .slider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  cursor: ew-resize;
  z-index: 10;
}

.block-before-after .slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FLOATING CARDS
   ======================================== */

.block-floating-cards .card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.block-floating-cards .card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.block-floating-cards .card-body {
  padding: 2rem;
}

/* ========================================
   PARALLAX SECTION
   ======================================== */

.block-parallax-section {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.block-parallax-section .parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.block-parallax-section .parallax-layer.back {
  z-index: 1;
}

.block-parallax-section .parallax-layer.middle {
  z-index: 2;
}

.block-parallax-section .parallax-layer.front {
  z-index: 3;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .block-hero-parallax .hero-content h1 {
    font-size: 2rem;
  }

  .block-hero-parallax .hero-content p {
    font-size: 1rem;
  }

  /* Timeline Vertical - mobile */
  .block-timeline-vertical::before {
    left: 25px;
  }

  .block-timeline-vertical .timeline-item {
    flex-direction: row !important;
  }

  .block-timeline-vertical .timeline-content {
    width: calc(100% - 80px);
    margin-left: 70px;
    text-align: left !important;
  }

  .block-timeline-vertical .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }

  .block-timeline-vertical .timeline-marker {
    left: 25px;
    transform: translateX(-50%);
  }

  /* Timeline Horizontal - mobile scroll */
  .block-timeline-horizontal {
    padding: 2rem 0;
  }

  .block-timeline-horizontal .timeline {
    gap: 2rem;
  }

  .block-timeline-horizontal .timeline-item {
    min-width: 220px;
  }

  .block-timeline-horizontal .timeline-content {
    padding: 1.5rem;
  }

  .block-pricing-table .pricing-card.featured {
    transform: scale(1);
    margin-bottom: 2rem;
  }
}
