/* Animacje dla elementów strony */

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animacje dla sekcji */
.section {
    animation: fadeIn 1s ease-out;
}

/* Animacja dla kart usług */
.service-card {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

/* Animacja dla przycisków */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

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

/* Animacja dla tła hero */
.hero {
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
}

/* Animacja dla nagłówków */
h1, h2, h3 {
    animation: fadeIn 1s ease-out;
}

/* Animacja dla formularza */
.contact-form {
    animation: fadeIn 1s ease-out;
}


/* Animacja dla linków nawigacji */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Animacja dla pól formularza */
.form-group input:focus,
.form-group textarea:focus {
    animation: pulse 0.3s ease-out;
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Animacja dla stopki */
.footer {
    animation: fadeIn 1s ease-out;
} 