/* Z.W. DUET - Dodatkowe efekty wizualne */
/* Dodaj ten plik do strony po visual-booster.css */

/* ===== Style dla animowanych liczników ===== */
.counter {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.counter.animated {
  animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    color: var(--secondary);
  }
}

/* ===== Style dla karuzeli opinii ===== */
.testimonials-carousel {
  position: relative;
  transition: all 0.5s ease;
  padding: 2rem 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* Dla ciemnego tła */
.testimonial-bg + .container .carousel-dot {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Style dla efektu cząsteczkowego ===== */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== Poprawki do efektu Tilt ===== */
.service-card,
.product-card,
.testimonial-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-content, 
.product-content,
.testimonial-content,
.service-icon,
.service-features,
.product-meta,
.testimonial-author {
  transform: translateZ(20px);
}

/* Dodanie subtelnego cienia dla lepszego efektu 3D */
.service-card:hover,
.product-card:hover,
.testimonial-card:hover {
  box-shadow: 
    0 20px 30px rgba(0, 0, 0, 0.1),
    0 10px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Dodatkowe efekty dla elementów portfolio ===== */
.hover-overlay {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ===== Style dla zaawansowanego przewijania menu ===== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link.active {
  color: var(--secondary);
  transform: translateY(-2px);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Responsywność dla nowych efektów ===== */
@media (max-width: 768px) {
  .carousel-controls {
    flex-wrap: wrap;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Wyłącz efekt tilt na małych ekranach */
  .service-card,
  .product-card,
  .testimonial-card {
    transform: none !important;
    perspective: none;
  }
  
  .service-content, 
  .product-content,
  .testimonial-content,
  .service-icon,
  .service-features,
  .product-meta,
  .testimonial-author {
    transform: none;
  }
}

/* ===== Dodatkowe ulepszenia dla strzałki przewijania ===== */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 2;
  animation: bounceArrow 2s infinite, fadeIn 1s forwards;
}

.scroll-arrow:hover {
  background: var(--secondary);
  transform: translateX(-50%) translateY(-5px);
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Poprawka dla menu mobilnego */
@media (max-width: 768px) {
  /* Upewnij się, że przycisk menu jest zawsze widoczny */
  .mobile-toggle {
    display: block;
    z-index: 1010;
  }
  
  /* Upewnij się, że paski w przycisku menu są zawsze widoczne */
  .header.transparent .mobile-toggle span {
    background-color: white;
  }
  
  .header.visible .mobile-toggle span,
  .header.scrolled .mobile-toggle span {
    background-color: var(--primary);
  }
  
  /* Gdy menu jest aktywne, przycisk zawsze powinien mieć ciemny kolor */
  .header .mobile-toggle.active span {
    background-color: var(--primary);
  }
  
  /* Gdy menu jest aktywne, header powinien mieć białe tło */
  .header.transparent.menu-open {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Poprawka dla pozycjonowania menu */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  /* Styl dla linków w menu mobilnym */
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu .nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--primary) !important;
    text-align: center;
    font-size: 1.1rem;
  }
}

/* Dodaj przejrzystość do nagłówka w trybie mobilnym */
.header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dodatkowa klasa gdy menu jest otwarte */
.header.menu-open {
  background-color: white !important;
}
/* Profesjonalne rozwiązanie dla sekcji hero na urządzeniach mobilnych */
@media (max-width: 768px) {
  /* Optymalizacja układu sekcji hero */
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 80px; /* Przestrzeń na dole dla strzałki */
  }
  
  /* Zoptymalizowane pozycjonowanie badge z doświadczeniem */
  .hero-badge {
    margin-top: 2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
  }
  
  /* Strzałka przewijania umieszczona absolutnie względem .hero */
  .scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  /* Udoskonalenie wyglądu strzałki */
  .scroll-arrow i {
    font-size: 1.2rem;
    color: white;
  }
  
  /* Responsywne odstępy dla różnych wysokości ekranu */
  @media (max-height: 700px) {
    .hero-content {
      padding-top: 60px;
      padding-bottom: 60px;
    }
    
    .hero h1 {
      font-size: 1.9rem;
      margin-bottom: 1rem;
    }
    
    .hero-text {
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
      gap: 0.7rem;
    }
    
    .hero-badge {
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
      margin-top: 1.5rem;
    }
    
    .scroll-arrow {
      bottom: 15px;
    }
  }
  
  /* Alternatywne rozwiązanie dla bardzo wąskich ekranów */
  @media (max-width: 360px) {
    .hero-badge {
      margin-top: 1rem;
      padding: 0.4rem 0.8rem;
      font-size: 0.85rem;
    }
    
    .hero-badge i {
      font-size: 1rem;
    }
    
    .scroll-arrow {
      width: 35px;
      height: 35px;
    }
  }
}