/* Styles specific to dla-malych-firm.html */

/* Animation delay utility */
.animation-delay-1s {
    animation-delay: 1s;
}

/* Float animation for floating cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float {
        animation: none;
    }
}

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

/* Fallback for browsers that don't support scroll-behavior */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Unique styles for ROI Calculator */
.result-card {
    background: linear-gradient(135deg, #2d5f3f 0%, #16a34a 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px -10px rgba(45, 95, 63, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Add text shadow for better contrast on gradient */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.result-card:hover::before {
    left: 100%;
}

.result-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 48px -10px rgba(45, 95, 63, 0.4);
}

.result-card > * {
    position: relative;
    z-index: 1;
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Skeleton screen for images */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* Image loading placeholder */
img[loading="lazy"] {
    background-color: #f3f4f6;
    min-height: 200px;
}

/* Respect reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
    .animate-spin,
    .skeleton {
        animation: none;
    }
    
    img[loading="lazy"] {
        background-color: transparent;
    }
}

