:root {
    --animation-duration: 0.8s;
    --animation-delay-step: 0.1s;
}

/* Animacje wejścia */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Animacje dla elementów przy scrollowaniu */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Efekty hover dla przycisków */
.primary-button, .secondary-button, .demo-button, .submit-button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover, .demo-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.3);
}

.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.primary-button::after, .demo-button::after, .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.primary-button:hover::after, .demo-button:hover::after, .submit-button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Efekty dla kart */
.feature-card, .benefit, .tech-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .benefit:hover, .tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 200, 255, 0.2);
}

/* Animacja dla logo */
.logo {
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.logo:hover::before {
    opacity: 0.2;
}

.logo:hover {
    animation: pulse 1s infinite;
}

/* Animacja dla ikon w feature-card */
.feature-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Animacja dla demo-image */
.demo-image {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.demo-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 200, 255, 0.25);
}

/* Animacja dla social-links */
.social-links a {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(5deg);
}

/* Animacja dla hero-content */
.hero-content h1, .hero-content .subtitle, .hero-content .cta-group {
    animation: fadeInUp var(--animation-duration) forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content .subtitle {
    animation-delay: 0.4s;
}

.hero-content .cta-group {
    animation-delay: 0.6s;
}

/* Animacja dla sekcji */
.features h2, .benefits h2, .technology h2, .demo h2, .contact h2 {
    animation: fadeIn 1s forwards;
    opacity: 0;
}

/* Floating animation for some elements */
.floating {
    animation: float 3s ease-in-out infinite;
}