/* ===================================
   NOWOCZESNE ANIMACJE I EFEKTY
   =================================== */

/* Animowane tło dla Hero */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Zakomentowano aby użyć własnego zdjęcia tła
.hero-background {
    background: linear-gradient(-45deg, #558B2F, #7CB342, #689F38, #9CCC65) !important;
    background-size: 400% 400% !important;
    animation: gradient-shift 15s ease infinite;
}
*/

/* Efekt parallax dla sekcji */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.05) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effect dla kart usług */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 179, 66, 0.06), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(124, 179, 66, 0.2);
}

/* Animacja liczników */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: count-up 0.6s ease-out;
}

/* Pulsujący efekt dla ważnych przycisków */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.5);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(124, 179, 66, 0);
    }
}

.btn-primary:hover {
    animation: pulse-glow 1.5s infinite;
}

/* Hover dla mini kart w Hero */
.service-mini-card {
    transition: all 0.3s ease;
    position: relative;
}

.service-mini-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #7CB342, #9CCC65);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.service-mini-card:hover::after {
    width: 80%;
}

.service-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.15);
}

/* Animowany gradient dla przycisków */
.btn-hero-primary {
    background: linear-gradient(-45deg, #7CB342, #689F38, #7CB342) !important;
    background-size: 200% 200% !important;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.35);
}

/* Efekt ripple dla przycisków */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Floating animation dla ikon */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card .service-icon i,
.feature-icon i {
    animation: float 3s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon i {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .service-icon i {
    animation-delay: 1s;
}

.service-card:nth-child(4) .service-icon i {
    animation-delay: 1.5s;
}

.service-card:nth-child(5) .service-icon i {
    animation-delay: 2s;
}

.service-card:nth-child(6) .service-icon i {
    animation-delay: 2.5s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism dla kart cenowych */
.pricing-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
}

.pricing-card:hover {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.03) 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* Animowany border dla inputów */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7CB342;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
    position: relative;
}

/* Smooth scroll indicator */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Shimmer effect dla nagłówków */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer-text {
    background: linear-gradient(90deg, #7CB342 0%, #9CCC65 50%, #7CB342 100%);
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

/* Card flip effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Staggered fade-in dla list */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-features li {
    animation: fadeInUp 0.5s ease-out backwards;
}

.pricing-features li:nth-child(1) { animation-delay: 0.1s; }
.pricing-features li:nth-child(2) { animation-delay: 0.2s; }
.pricing-features li:nth-child(3) { animation-delay: 0.3s; }
.pricing-features li:nth-child(4) { animation-delay: 0.4s; }
.pricing-features li:nth-child(5) { animation-delay: 0.5s; }
.pricing-features li:nth-child(6) { animation-delay: 0.6s; }

/* Hover glow dla service-mini-card icons */
.service-mini-card .mini-card-icon {
    transition: all 0.3s ease;
}

.service-mini-card:hover .mini-card-icon {
    color: #7CB342;
    text-shadow: 0 0 20px rgba(124, 179, 66, 0.4);
    transform: scale(1.1) rotate(5deg);
}

/* Progress bar animation */
@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #7CB342, #9CCC65);
    animation: progressBar 2s ease-out;
}

/* Navbar scroll effect enhancement */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(124, 179, 66, 0.08);
    transition: all 0.3s ease;
}

/* Two Services Grid hover effects */
.service-office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(124, 179, 66, 0.15);
}

.service-office-card .office-icon {
    transition: transform 0.3s ease;
}

.service-office-card:hover .office-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Conference Pricing hover */
.conference-price-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(124, 179, 66, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .pricing-card:hover {
        transform: scale(1.02) translateY(-5px);
    }
    
    /* Disable some heavy animations on mobile */
    .parallax-section::before {
        animation: none;
    }
    
    .hero-background {
        animation-duration: 20s;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
