:root {
    --primary-color: #FF6B00;
    /* Safety Orange */
    --secondary-color: #2D3436;
    /* Dark Slate */
    --accent-color: #0984e3;
    /* Sky Blue */
    --bg-color: #f0f4f8;
    --text-color: #2d3436;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

/* Animation Container */
.animation-container {
    position: relative;
    height: 300px;
    width: 100%;
    background: linear-gradient(to bottom, #81ecec, #f0f4f8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 4px solid var(--white);
}

/* Clouds */
.cloud {
    position: absolute;
    background: var(--white);
    border-radius: 50px;
    opacity: 0.8;
    animation: floatCloud 20s linear infinite;
}

.cloud::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    width: 50%;
    height: 150%;
    top: -50%;
    left: 15%;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation-duration: 25s;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 10%;
    left: -100px;
    animation-delay: 10s;
    animation-duration: 28s;
}

.cloud-3 {
    width: 120px;
    height: 50px;
    top: 40%;
    left: -100px;
    animation-delay: 5s;
    animation-duration: 22s;
}

@keyframes floatCloud {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

/* Crane */
.crane {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
}

.crane-base {
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 40px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 5px 5px 0 0;
}

.crane-tower {
    position: absolute;
    bottom: 20px;
    left: 45%;
    width: 10px;
    height: 150px;
    background: var(--primary-color);
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.crane-arm {
    position: absolute;
    top: 30px;
    /* 200 - 150 - 20 */
    left: 45%;
    width: 120px;
    height: 10px;
    background: var(--primary-color);
    transform-origin: left center;
    animation: swingArm 8s ease-in-out infinite;
}

.crane-counterweight {
    position: absolute;
    top: 32px;
    left: 30%;
    width: 40px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.crane-cable {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 2px;
    height: 60px;
    background: #555;
    transform-origin: top center;
    animation: cableStretch 8s ease-in-out infinite;
}

.crane-block {
    position: absolute;
    bottom: -30px;
    /* Relative to cable end */
    left: -14px;
    /* Center on cable */
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.block-face {
    width: 60%;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
}

.block-face::before,
.block-face::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.block-face::before {
    left: 0;
}

.block-face::after {
    right: 0;
}

@keyframes swingArm {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes cableStretch {

    0%,
    100% {
        height: 60px;
        transform: rotate(5deg);
    }

    50% {
        height: 80px;
        transform: rotate(-5deg);
    }
}

/* Content */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

p {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background: #dfe6e9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.5s ease;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progressStripe 1s linear infinite;
}

@keyframes progressStripe {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}