/* Pure CSS Building Animation - Replaces Lottie for 100% performance */
.css-animation-container {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.building-animation {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.code-blocks {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

.code-block {
    position: absolute;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 8px;
    animation: buildBlocks 3s ease-in-out infinite;
}

.block-1 {
    width: 60px;
    height: 40px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.block-2 {
    width: 80px;
    height: 50px;
    top: 40px;
    right: 20px;
    animation-delay: 0.5s;
}

.block-3 {
    width: 70px;
    height: 45px;
    bottom: 40px;
    left: 30px;
    animation-delay: 1s;
}

.block-4 {
    width: 90px;
    height: 35px;
    bottom: 20px;
    right: 10px;
    animation-delay: 1.5s;
}

.progress-bar {
    width: 250px;
    height: 8px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    animation: fillProgress 3s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon {
    position: absolute;
    font-size: 24px;
    animation: floatIcon 4s ease-in-out infinite;
}

.icon-code {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    color: #2563eb;
    font-weight: bold;
}

.icon-mobile {
    top: 20%;
    right: 15%;
    animation-delay: 1.3s;
}

.icon-web {
    bottom: 15%;
    left: 15%;
    animation-delay: 2.6s;
}

@keyframes buildBlocks {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 1;
    }
}

/* Responsive animation */
@media (max-width: 768px) {
    .css-animation-container {
        width: 300px;
        height: 300px;
    }
    
    .code-blocks {
        width: 150px;
        height: 150px;
    }
    
    .progress-bar {
        width: 200px;
    }
}