/* ===== Custom Styles for Pokolenie AI ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for cards */
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Timeline connector */
.timeline-line {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #06b6d4);
  z-index: 0;
}

/* Badge pulse animation */
.badge-pulse {
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

/* Hero sparkles */
.sparkle {
  position: absolute;
  opacity: 0;
  animation: sparkle-twinkle 4s ease-in-out infinite;
  pointer-events: none;
}

.sparkle-1  { width: 16px; top: 8%;  left: 5%;  animation-delay: 0s;    animation-duration: 3.5s; }
.sparkle-2  { width: 10px; top: 15%; left: 25%; animation-delay: 0.8s;  animation-duration: 4.2s; }
.sparkle-3  { width: 14px; top: 22%; left: 70%; animation-delay: 1.5s;  animation-duration: 3.8s; }
.sparkle-4  { width: 8px;  top: 35%; left: 90%; animation-delay: 0.3s;  animation-duration: 5s; }
.sparkle-5  { width: 12px; top: 50%; left: 15%; animation-delay: 2.1s;  animation-duration: 4s; }
.sparkle-6  { width: 18px; top: 12%; left: 50%; animation-delay: 1.2s;  animation-duration: 3.2s; }
.sparkle-7  { width: 9px;  top: 65%; left: 80%; animation-delay: 0.6s;  animation-duration: 4.5s; }
.sparkle-8  { width: 11px; top: 75%; left: 40%; animation-delay: 2.8s;  animation-duration: 3.6s; }
.sparkle-9  { width: 15px; top: 40%; left: 60%; animation-delay: 1.8s;  animation-duration: 4.8s; }
.sparkle-10 { width: 7px;  top: 85%; left: 10%; animation-delay: 3.2s;  animation-duration: 3.4s; }
.sparkle-11 { width: 13px; top: 28%; left: 35%; animation-delay: 0.5s;  animation-duration: 5.2s; }
.sparkle-12 { width: 10px; top: 55%; left: 95%; animation-delay: 2.4s;  animation-duration: 3.9s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1) rotate(180deg); }
}

/* Hero floating animation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

/* Form focus styles */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
  border-color: #7c3aed;
}

/* Button gradient */
.btn-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* Stat card number animation */
.stat-number {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider wave */
.wave-divider {
  position: relative;
}

.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d28d9, #2563eb);
}

/* Tom Select — dopasowanie do formularza */
.ts-wrapper.single .ts-control {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
  box-shadow: none;
  transition: all 0.2s;
}
.ts-wrapper.single .ts-control:hover {
  border-color: #c4b5fd;
}
.ts-wrapper.single.focus .ts-control {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.ts-wrapper .ts-control input {
  color: #1f2937;
}
.ts-wrapper .ts-control input::placeholder {
  color: #9ca3af;
}
.ts-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
}
.ts-dropdown .option {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.ts-dropdown .active {
  background-color: #f5f3ff;
  color: #7c3aed;
}
