* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Animated tools background */
.tools-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
    z-index: 1;
}

.tool {
    position: absolute;
    font-size: 40px;
    animation: float 15s infinite ease-in-out;
}

.wrench::before {
    content: '🔧';
    display: block;
}

.hammer::before {
    content: '🔨';
    display: block;
}

.screwdriver::before {
    content: '🪛';
    display: block;
}

.gear::before {
    content: '⚙️';
    display: block;
}

.bolt::before {
    content: '🔩';
    display: block;
}

.tool:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.tool:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.tool:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

.tool:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 1s;
    animation-name: rotate-float;
}

.tool:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes rotate-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(360deg);
    }
}

/* Main content */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

/* Penguin styles */
.penguin-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 300px;
}

/* Rotating gears around penguin */
.gear-decoration {
    position: absolute;
    font-size: 50px;
    opacity: 0.7;
    z-index: 1;
}

.gear-1 {
    top: 20px;
    left: 50px;
    animation: rotate-clockwise 4s linear infinite;
}

.gear-2 {
    top: 20px;
    right: 50px;
    animation: rotate-counter-clockwise 5s linear infinite;
}

.gear-3 {
    bottom: 40px;
    left: 30px;
    animation: rotate-clockwise 6s linear infinite;
    font-size: 40px;
}

.gear-4 {
    bottom: 40px;
    right: 30px;
    animation: rotate-counter-clockwise 4.5s linear infinite;
    font-size: 45px;
}

@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter-clockwise {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.penguin {
    position: relative;
    width: 200px;
    height: 250px;
    animation: waddle 3s infinite ease-in-out;
}

@keyframes waddle {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.penguin-body {
    position: absolute;
    width: 150px;
    height: 180px;
    background: linear-gradient(to bottom, #2c3e50 0%, #1a252f 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    z-index: 2;
}

.penguin-head {
    position: absolute;
    width: 100px;
    height: 90px;
    background: #2c3e50;
    border-radius: 50%;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.eye {
    position: absolute;
    width: 18px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 35px;
}

.left-eye {
    left: 20px;
}

.right-eye {
    right: 20px;
}

.pupil {
    position: absolute;
    width: 8px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    top: 8px;
    left: 5px;
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 48%, 52%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

.beak {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #ff8c00;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.belly {
    position: absolute;
    width: 90px;
    height: 110px;
    background: white;
    border-radius: 50%;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.wing {
    position: absolute;
    width: 35px;
    height: 80px;
    background: #2c3e50;
    border-radius: 50%;
    top: 60px;
}

.left-wing {
    left: -15px;
    transform: rotate(-30deg);
    animation: wave-left 2s infinite ease-in-out;
}

.right-wing {
    right: -15px;
    transform: rotate(30deg);
    animation: wave-right 2s infinite ease-in-out;
}

@keyframes wave-left {
    0%, 100% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

@keyframes wave-right {
    0%, 100% {
        transform: rotate(30deg);
    }
    50% {
        transform: rotate(45deg);
    }
}

.feet {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

.foot {
    position: absolute;
    width: 45px;
    height: 20px;
    background: #ff8c00;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    bottom: 0;
}

.left-foot {
    left: 10px;
    transform: rotate(-15deg);
}

.right-foot {
    right: 10px;
    transform: rotate(15deg);
}

/* Hard hat */
.hard-hat {
    position: absolute;
    width: 90px;
    height: 40px;
    background: #ffd700;
    border-radius: 50% 50% 0 0;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: 3px solid #ffed4e;
}

.hard-hat::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 8px;
    background: #ffd700;
    bottom: -8px;
    left: -5px;
    border-radius: 4px;
}

/* Wrench in hand */
.hand-wrench {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,80 L40,60 L50,70 L30,90 Z" fill="%23808080"/><circle cx="45" cy="55" r="15" fill="none" stroke="%23808080" stroke-width="4"/><path d="M55,45 L80,20 L85,25 L60,50 Z" fill="%23808080"/></svg>') no-repeat center;
    background-size: contain;
    right: -20px;
    top: 100px;
    z-index: 3;
    animation: wrench-spin 3s infinite ease-in-out;
}

@keyframes wrench-spin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Text content */
.text-content {
    margin: 40px 0;
}

.title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    width: 0%;
    animation: progress 3s ease-in-out forwards;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes progress {
    to {
        width: 7%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.status-text {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
    font-weight: 500;
}

#percentage {
    color: #764ba2;
    font-weight: bold;
}

/* Toolbox */
.toolbox {
    position: relative;
    width: 120px;
    height: 80px;
    margin: 40px auto 0;
}

.toolbox-body {
    width: 120px;
    height: 60px;
    background: #c0392b;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toolbox-body::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 8px;
    background: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.toolbox-lid {
    width: 130px;
    height: 25px;
    background: #e74c3c;
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 0;
    left: -5px;
    animation: toolbox-bounce 2s infinite ease-in-out;
    transform-origin: bottom;
}

@keyframes toolbox-bounce {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-10deg);
    }
}

/* Footer */
footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1rem;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .content {
        padding: 40px 20px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .penguin {
        transform: scale(0.8);
    }

    .gear-decoration {
        font-size: 35px;
    }

    .tool {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .penguin {
        transform: scale(0.6);
    }

    .gear-decoration {
        font-size: 25px;
    }

    .content {
        padding: 30px 15px;
    }
}
