:root {
    --primary-color: #0F172A; /* Deep Blue/Slate */
    --accent-color: #FACC15;  /* Warning Yellow/Gold */
    --text-color: #F8FAFC;    /* Off-white */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Background Abstract Shapes */
body::before {
    content: '';
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: pulse-bg 10s infinite alternate;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #94A3B8;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 204, 21, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.message {
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* Excavator Styles */
.excavator-stage {
    height: 120px;
    position: relative;
    margin: 20px auto;
    width: 200px;
}

.excavator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
}

.body {
    position: absolute;
    bottom: 15px;
    left: 10px;
    width: 60px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 5px 15px 5px 5px;
    z-index: 2;
}

.cab {
    position: absolute;
    top: -15px;
    left: 10px;
    width: 25px;
    height: 15px;
    background: #333;
    border: 2px solid var(--accent-color);
    border-radius: 4px 4px 0 0;
    z-index: 3;
}

.tracks {
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 70px;
    height: 15px;
    background: #334;
    border-radius: 8px;
    z-index: 1;
}

.wheel {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #556;
    border-radius: 50%;
    top: 2.5px;
    animation: spin 1s infinite linear;
}
.wheel.left { left: 5px; }
.wheel.right { right: 5px; }

/* Arm parts */
.arm-group {
    position: absolute;
    top: 20px;
    left: 50px;
    transform-origin: 0% 80%; /* Pivot point where boom attaches to body */
    animation: boom-move 3s ease-in-out infinite;
}

.boom {
    width: 60px;
    height: 8px;
    background: var(--accent-color);
    transform: rotate(-45deg);
    transform-origin: 0 50%;
    border-radius: 4px;
    position: relative;
}

.stick {
    position: absolute;
    top: -30px; /* Adjust based on boom length/angle */
    right: -40px;
    width: 40px;
    height: 6px;
    background: var(--accent-color);
    transform-origin: 0 50%;
    transform: rotate(80deg); /* Initial angle */
    border-radius: 4px;
    animation: stick-move 3s ease-in-out infinite;
}

.bucket {
    position: absolute;
    top: 35px; /* End of stick */
    right: -5px;
    width: 20px;
    height: 15px;
    background: #333;
    border-radius: 0 0 10px 10px;
    transform-origin: 50% 0;
    transform: rotate(-90deg);
    animation: bucket-scoop 3s ease-in-out infinite;
}

.dirt {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 20px;
    height: 10px;
    background: #78350f; /* Dirt color */
    border-radius: 50% 50% 0 0;
    opacity: 0;
    animation: dirt-appear 3s linear infinite;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-bg {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes boom-move {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes stick-move {
    0%, 100% { transform: rotate(80deg); } /* Stick folded */
    50% { transform: rotate(120deg); } /* Stick extends out */
}

@keyframes bucket-scoop {
    0%, 100% { transform: rotate(-90deg); } /* Resting */
    40% { transform: rotate(-40deg); } /* Open to dig */
    60% { transform: rotate(-140deg); } /* Scoop */
}

@keyframes dirt-appear {
    0%, 60% { opacity: 0; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(-20px) translateX(10px); }
    90% { opacity: 0; transform: translateY(-10px) translateX(20px); }
    100% { opacity: 0; }
}

.footer {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .glass-panel {
        padding: 30px 20px;
    }
    
    .content h1 {
        font-size: 1.5rem;
    }
}
