/* Z.W. DUET - Visual Booster CSS */
/* Dodaj ten plik do strony po głównym style.css */

/* ===== Ulepszenia ogólne ===== */
:root {
  /* Rozszerzona paleta kolorów */
  --primary-transparent: rgba(26, 58, 95, 0.8);
  --secondary-transparent: rgba(255, 107, 0, 0.8);
  --accent-color: #2c85ff;
  --success-color: #28a745;
  --light-blue: #e9f0f7;
}

body {
  overflow-x: hidden;
}

/* Subtelne animacje dla wszystkich przycisków */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* ===== Ulepszenia nagłówka ===== */
.header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Ukrywanie header na pierwszej sekcji w trybie mobilnym */
@media (max-width: 768px) {
  .header {
    background-color: transparent;
    box-shadow: none;
  }
  
  .header.transparent {
    background-color: transparent;
    box-shadow: none;
  }
  
  .header.visible {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Odwróć kolorystykę dla lepszej widoczności na hero section */
  .header.transparent .logo,
  .header.transparent .nav-link,
  .header.transparent .mobile-toggle span {
    color: white;
  }
  
  .header.transparent .mobile-toggle span {
    background-color: white;
  }
  
  /* Przywróć normalny kolor po przewinięciu */
  .header.visible .logo,
  .header.visible .nav-link {
    color: var(--primary);
  }
  
  .header.visible .mobile-toggle span {
    background-color: var(--primary);
  }
}

.logo {
  position: relative;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

/* Animacja dla menu nawigacji */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: 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;
}

.nav-link::after {
  display: none;
}

/* ===== Ulepszenia sekcji hero ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-badge {
  position: relative;
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.6s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.9s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Ulepszenia kart usług i produktów ===== */
.service-card, .product-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card::after, .product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::after, .product-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover .service-icon, .product-card:hover .product-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon, .product-meta-item i {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-img::before, .product-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-img::before, .product-card:hover .product-img::before {
  opacity: 1;
}

/* Efekt podświetlenia dla funkcji w kartach usług */
.service-features li, .about-feature {
  position: relative;
  transition: transform 0.3s ease;
}

.service-features li:hover, .about-feature:hover {
  transform: translateX(5px);
}

/* ===== Efekt karty dla testimonials ===== */
.testimonial-card {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-15px) rotateZ(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img {
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-author-img {
  transform: scale(1.1);
}

/* ===== Ulepszenia sekcji FAQ ===== */
.faq-item {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-left: 0px solid var(--secondary);
}

.faq-item:hover {
  border-left: 5px solid var(--secondary);
}

.faq-question {
  position: relative;
  transition: all 0.3s ease;
}

.faq-icon {
  transition: all 0.4s ease;
}

.faq-item.active .faq-question {
  background-color: rgba(26, 58, 95, 0.05);
}

/* Animacja dla przejścia rozwijania FAQ */
.faq-answer {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== Ulepszenia sekcji kontaktowej ===== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  background-color: #f9f9f9;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(26, 58, 95, 0.1);
  transform: translateY(-3px);
}

.form-submit .btn {
  position: relative;
  overflow: hidden;
}

.form-submit .btn::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 300px;
  background: rgba(255, 255, 255, 0.5);
  top: -150px;
  left: -50px;
  transform: rotate(35deg);
  transition: all 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
}

.form-submit .btn:hover::after {
  left: 120%;
  opacity: 0.8;
}

.contact-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-icon:hover {
  transform: scale(1.1) translateY(-5px);
}

/* ===== Efekty dla liczników na stronie ===== */
.counter {
  display: inline-block;
  position: relative;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.counter::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  opacity: 0.5;
  transition: width 0.3s ease;
}

.counter-item:hover .counter::after {
  width: 100%;
}

/* ===== Ulepszenia przycisków filtrów ===== */
.filter-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-transparent), transparent);
  z-index: -1;
  transition: width 0.3s ease;
}

.filter-btn:hover::before {
  width: 100%;
}

.filter-btn.active {
  box-shadow: 0 5px 15px rgba(26, 58, 95, 0.2);
}

/* ===== Efekt dla przycisku powrotu do góry ===== */
.back-to-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* ===== Animacje pojawienia się sekcji przy przewijaniu ===== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-down"] {
  transform: translateY(-50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ===== Efekt paralaksy dla tła ===== */
.hero, .testimonials, .cta {
  background-attachment: fixed;
}

/* ===== Efekty dla stopki ===== */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.footer-links a i {
  transition: transform 0.3s ease;
}

.footer-links a:hover i {
  transform: translateX(5px);
}

/* ===== Dodatkowe efekty dla elementów w tle ===== */
.bg-shape {
  transition: all 20s ease-in-out;
}

.bg-shape.shape-circle {
  animation: rotate 40s linear infinite;
}

.bg-shape.shape-dots {
  animation: floatShape 15s ease-in-out infinite alternate;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 30px);
  }
}

/* ===== Dodatkowe ulepszenia dla obrazów ===== */
.about-image img, .service-img img, .product-img img {
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ===== Dodatkowy efekt przewijania dla strzałki w dół ===== */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounceArrow 2s infinite;
  cursor: pointer;
  z-index: 2;
}

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

/* Dodanie efektu śledzenia kursora (subtle cursor tracking) */
.hero-content {
  transition: transform 0.2s ease-out;
}

/* ===== Stylizacja linków w stopce ===== */
.footer-bottom a {
  position: relative;
  display: inline-block;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* ===== Nowoczesny wygląd dla formularza ===== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  border-radius: 10px;
  padding: 12px 15px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Efekt glowing dla buttonów */
.btn:focus {
  animation: glowingButton 1.5s infinite;
}

@keyframes glowingButton {
  0% {
    box-shadow: 0 0 5px var(--secondary);
  }
  50% {
    box-shadow: 0 0 20px var(--secondary);
  }
  100% {
    box-shadow: 0 0 5px var(--secondary);
  }
}

/* ===== Dostosowania responsywne ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .contact-form input[type="text"]:focus,
  .contact-form input[type="email"]:focus,
  .contact-form input[type="tel"]:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    transform: none;
  }
  
  /* Lepsze menu mobilne */
  .nav-menu {
    padding-top: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0;
    text-align: center;
    font-size: 1.1rem;
  }
  
  .mobile-toggle span {
    height: 3px;
    border-radius: 3px;
  }
}

/* ===== Dodatkowe animacje przy ładowaniu strony ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s forwards;
}

/* Dodaj tę klasę do body gdy dokument jest załadowany */
.page-loaded {
  animation: fadeIn 0.5s forwards;
}

/* Dodaj funkcje do script.js aby aktywować te animacje */
/* 
document.addEventListener('DOMContentLoaded', function() {
  document.body.classList.add('page-loaded');
});

// Dodaj tę funkcję do śledzenia kursora
document.addEventListener('mousemove', function(e) {
  const heroContent = document.querySelector('.hero-content');
  if (heroContent) {
    const moveX = (e.clientX - window.innerWidth / 2) * 0.01;
    const moveY = (e.clientY - window.innerHeight / 2) * 0.01;
    heroContent.style.transform = `translate(${moveX}px, ${moveY}px)`;
  }
});
*/
/* Poprawienie pozycji strzałki w dół */
.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;
  /* Dodajemy większy margines od dołu, aby nie zasłaniać tekstu */
  bottom: 80px;
}

/* Możesz również dodać przezroczystość, aby nie zasłaniała tekstu */
.scroll-arrow {
  opacity: 0.8;
}

.scroll-arrow:hover {
  opacity: 1;
}

/* Alternatywnie, możesz zmienić pozycję hero-badge, aby był wyżej */
.hero-badge {
  margin-top: 4rem; /* Większy margines górny */
}