:root {
    --bg-color: #e9ecef;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --accent: #ffb703; /* Yellow */
    --accent-dark: #fb8500; /* Orange */
    --progress-bg: #edf2f4;
    
    /* Skin & Clothes Gradients for realism */
    --skin-color: radial-gradient(circle at 30% 30%, #ffdfd3, #f4a261);
    --shirt-color: linear-gradient(135deg, #457b9d, #1d3557);
    --shirt-white: linear-gradient(135deg, #f8f9fa, #ced4da);
    --pants-color: linear-gradient(to bottom, #1d3557, #0b1a2e);
    --hat-color: radial-gradient(circle at top, #ffea00, #ffb703, #fb8500);
    --hat-white: radial-gradient(circle at top, #ffffff, #e9ecef, #ced4da);
    --metal: linear-gradient(to bottom, #adb5bd, #495057);
    --shadow: drop-shadow(4px 4px 5px rgba(0,0,0,0.2));
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; min-height: 100vh; display: flex; justify-content: center; align-items: center; }

.site-wrapper { position: relative; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; padding: 2rem; }

/* ================= CENTRAL CONTENT ================= */
.construction-card {
    background: var(--card-bg);
    padding: 3rem 4rem;
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.08), -20px -20px 60px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.badge { background: #fff8e1; color: var(--accent-dark); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; align-self: center; box-shadow: 0 4px 10px rgba(255, 183, 3, 0.2); }
.title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--text-main); line-height: 1.1; margin-bottom: 10px; z-index: 2; position: relative; }
.highlight { color: var(--accent-dark); position: relative; display: inline-block; }
.highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 15px; background-color: rgba(255, 183, 3, 0.3); z-index: -1; border-radius: 10px; }
.description { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; z-index: 2; position: relative; }
.progress-section { text-align: left; margin-bottom: 20px; z-index: 2; position: relative; }
.progress-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; font-size: clamp(0.9rem, 2vw, 1rem); }
.progress-bar-container { background-color: var(--progress-bg); height: 24px; border-radius: 20px; overflow: hidden; box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.05), inset -4px -4px 8px rgba(255, 255, 255, 0.9); }
.progress-bar-fill { width: 85%; height: 100%; background: var(--accent); border-radius: 20px; position: relative; box-shadow: 0 0 10px rgba(255, 183, 3, 0.5); overflow: hidden; }
.stripe-animation { position: absolute; top: 0; left: 0; bottom: 0; right: -20px; background-image: linear-gradient(45deg, rgba(255,255,255,0.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.25) 75%, transparent 75%, transparent); background-size: 40px 40px; animation: moveStripes 1s linear infinite; }
@keyframes moveStripes { 0% { background-position: 0 0; } 100% { background-position: 40px 0; } }

.notify-form { display: flex; gap: 15px; position: relative; z-index: 2; margin-top: 10px; }
.input-field { flex: 1; padding: 18px 25px; border: none; border-radius: 15px; background: #f8f9fa; color: var(--text-main); font-size: 1rem; outline: none; box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.05), inset -6px -6px 12px rgba(255, 255, 255, 0.9); }
.btn { padding: 0 35px; border: none; border-radius: 15px; background: var(--accent-dark); color: white; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 6px 6px 15px rgba(251, 133, 0, 0.3); transition: transform 0.2s; position: relative; z-index: 2; }
.btn:hover { transform: translateY(-2px); }

/* ================= COMMON CHARACTER STYLES ================= */
.character { position: absolute; width: 70px; height: 120px; z-index: 100; filter: var(--shadow); transform: scale(0.7); transform-origin: center; cursor: pointer; transition: filter 0.2s; }
.character:hover, .crane:hover { filter: drop-shadow(4px 4px 10px rgba(251, 133, 0, 0.5)); }

.c-head { width: 35px; height: 35px; background: var(--skin-color); border-radius: 50%; position: absolute; top: 15px; left: 17px; z-index: 3; box-shadow: inset -3px -3px 5px rgba(0,0,0,0.2); }
.c-hat { width: 45px; height: 25px; background: var(--hat-color); border-radius: 20px 20px 0 0; position: absolute; top: -8px; left: -5px; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.2), 0 2px 2px rgba(0,0,0,0.1); }
.c-hat::after { content: ''; position: absolute; bottom: 0; left: -5px; width: 55px; height: 4px; background: var(--accent-dark); border-radius: 2px; }
.white-hat { background: var(--hat-white); }
.white-hat::after { background: #adb5bd; }

.c-body { width: 45px; height: 45px; background: var(--shirt-color); border-radius: 15px 15px 5px 5px; position: absolute; top: 48px; left: 12px; z-index: 2; box-shadow: inset -5px -5px 10px rgba(0,0,0,0.3); }
.shirt-white { background: var(--shirt-white); }

.c-arm-l, .c-arm-r { width: 14px; height: 40px; background: var(--skin-color); position: absolute; top: 50px; z-index: 4; border-radius: 7px; transform-origin: top center; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.2); }
.c-arm-l { left: 4px; transform: rotate(15deg); }
.c-arm-r { left: 52px; transform: rotate(-15deg); }

.c-leg-l, .c-leg-r { width: 16px; height: 40px; background: var(--pants-color); position: absolute; top: 90px; z-index: 1; border-radius: 5px; box-shadow: inset -3px -3px 5px rgba(0,0,0,0.4); }
.c-leg-l { left: 15px; }
.c-leg-r { left: 38px; }

/* Feet/Boots */
.c-leg-l::after, .c-leg-r::after { content: ''; position: absolute; bottom: -5px; left: -2px; width: 22px; height: 12px; background: #5e412f; border-radius: 8px 8px 3px 3px; }

/* ================= 1. THE CRANE ================= */
.crane { position: absolute; top: -100px; right: -150px; width: 250px; height: 400px; z-index: 102; filter: var(--shadow); transform: scale(0.5); transform-origin: bottom right; cursor: pointer; transition: filter 0.2s; }
.crane-base { position: absolute; bottom: 0; left: 80px; width: 60px; height: 200px; background: var(--accent); border: 2px solid #b07d00; border-radius: 5px; background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px); }
.crane-cabin { position: absolute; bottom: 150px; left: 40px; width: 90px; height: 70px; background: var(--accent-dark); border-radius: 10px; border: 3px solid #333; box-shadow: inset 5px 5px 15px rgba(255,255,255,0.2); }
.crane-cabin::after { content: ''; position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: linear-gradient(135deg, #a8dadc, #457b9d); border: 2px solid #1d3557; border-radius: 5px; }
.crane-arm { position: absolute; bottom: 170px; left: 80px; width: 280px; height: 25px; background: var(--accent); border: 3px solid #b07d00; transform-origin: left center; animation: craneSwing 6s ease-in-out infinite alternate; background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,0,0,0.15) 20px, rgba(0,0,0,0.15) 25px); }
.crane-cable-wrapper { position: absolute; top: 22px; right: 15px; width: 40px; height: 150px; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: craneCableCounter 6s ease-in-out infinite alternate; }
.crane-cable { width: 3px; background: #333; height: 150px; }
.crane-hook { width: 35px; height: 25px; border: 6px solid #333; border-top: none; border-radius: 0 0 15px 15px; margin-top: -5px; }
@keyframes craneSwing { 0% { transform: rotate(-8deg); } 100% { transform: rotate(5deg); } }
@keyframes craneCableCounter { 0% { transform: rotate(8deg); } 100% { transform: rotate(-5deg); } }

/* ================= POSITIONS AROUND THE CARD ================= */
.c-hammerer { top: 30%; left: -50px; }
.c-hammerer .c-arm-r { transform-origin: top center; animation: hammerSwing 0.5s ease-in infinite alternate; }
.c-hammer { position: absolute; bottom: -20px; left: -5px; width: 12px; height: 35px; background: #8b5a2b; transform: rotate(45deg); border-radius: 2px; }
.c-hammer::after { content: ''; position: absolute; top: -5px; left: -10px; width: 32px; height: 18px; background: var(--metal); border-radius: 4px; box-shadow: inset 2px 2px 5px rgba(255,255,255,0.4); }
@keyframes hammerSwing { 0% { transform: rotate(-40deg); } 100% { transform: rotate(90deg); } }

/* ================= 3. THE TRANSPORTER ================= */
.walker-path { position: absolute; bottom: -80px; left: -100px; width: 200px; height: 120px; z-index: 110; animation: walkAcrossCard 20s linear infinite; cursor: pointer; transition: filter 0.2s; filter: var(--shadow); }
.walker-path:hover { filter: drop-shadow(4px 4px 10px rgba(251, 133, 0, 0.5)); }
.c-transporter { bottom: 0; left: 0; transform: scale(0.7); filter: none; }
.c-transporter .c-arm-r { transform: rotate(45deg); left: 35px; }
.c-transporter .c-leg-l { animation: legWalk 0.6s linear infinite alternate; transform-origin: top center; }
.c-transporter .c-leg-r { animation: legWalk 0.6s linear infinite alternate-reverse; transform-origin: top center; }
.wheelbarrow { position: absolute; bottom: 5px; left: 60px; width: 90px; height: 60px; transform: scale(1.5); transform-origin: left bottom; }
.wb-tub { width: 80px; height: 40px; background: linear-gradient(to bottom, #f25c54, #d62828); border-radius: 5px 5px 25px 25px; position: absolute; top: 0; box-shadow: inset -4px -4px 10px rgba(0,0,0,0.3); }
.wb-wheel { width: 30px; height: 30px; background: radial-gradient(circle, #ced4da 30%, #212529 35%); border-radius: 50%; position: absolute; bottom: 0; right: 0; animation: spin 1s linear infinite; }
@keyframes walkAcrossCard { 0% { transform: translateX(-100px); } 100% { transform: translateX(900px); } }
@keyframes legWalk { 0% { transform: rotate(-30deg); } 100% { transform: rotate(30deg); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ================= 4. THE WELDER ================= */
.c-welder { bottom: -20px; left: -40px; transform: scale(-0.7, 0.7); } /* face left */
.c-mask { width: 40px; height: 45px; background: #343a40; border-radius: 10px 10px 20px 20px; position: absolute; top: -5px; left: -2px; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.5); }
.c-mask::after { content: ''; position: absolute; top: 15px; left: 5px; width: 30px; height: 12px; background: #000; border-radius: 3px; border: 2px solid #6c757d; }
.c-torch { position: absolute; bottom: -20px; left: -10px; width: 8px; height: 25px; background: #000; transform: rotate(30deg); }
.c-torch::before { content: ''; position: absolute; top: -10px; left: -2px; width: 4px; height: 10px; background: var(--metal); }
.spark { position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px 5px #ffea00, 0 0 20px 10px #fb8500; top: -15px; left: -5px; opacity: 0; }
.s1 { animation: sparks 0.4s infinite; }
.s2 { animation: sparks 0.5s infinite 0.1s; }
.s3 { animation: sparks 0.3s infinite 0.2s; }
@keyframes sparks { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(calc(-20px + 40px * var(--r, 1)), -40px) scale(0); opacity: 0; } }
.s1 { --r: 0.2; } .s2 { --r: -0.5; } .s3 { --r: 0.8; }

/* ================= 5. THE PAINTER ================= */
.c-painter { top: -60px; left: 10%; }
.c-painter .c-arm-r { animation: paintUp 2s ease-in-out infinite alternate; transform-origin: top center; left: 45px; z-index: 5; }
.c-brush { position: absolute; bottom: -30px; left: -2px; width: 6px; height: 35px; background: #8b5a2b; transform: rotate(-30deg); }
.c-brush::after { content: ''; position: absolute; top: -15px; left: -6px; width: 18px; height: 15px; background: linear-gradient(to bottom, #00f0ff, #0077ff); border-radius: 3px 3px 0 0; }
.c-ladder { position: absolute; bottom: -50px; left: -10px; width: 60px; height: 120px; border-left: 5px solid #e76f51; border-right: 5px solid #e76f51; display: flex; flex-direction: column; justify-content: space-evenly; z-index: -1; transform: perspective(200px) rotateX(10deg); }
.step { width: 100%; height: 5px; background: #f4a261; }
@keyframes paintUp { 0% { transform: rotate(-20deg) translateY(0); } 100% { transform: rotate(-100deg) translateY(-20px); } }

/* ================= 6. THE CUTTER ================= */
.c-cutter { bottom: -60px; left: 40%; }
.c-goggles { position: absolute; top: 12px; left: -2px; width: 38px; height: 16px; background: rgba(0,0,0,0.6); border-radius: 8px; border: 2px solid #333; z-index: 4; }
.c-cutter .c-arm-r { transform: rotate(-60deg); left: 30px; }
.c-saw { position: absolute; bottom: -25px; left: -10px; width: 35px; height: 25px; background: var(--accent-dark); border-radius: 5px 15px 5px 5px; }
.blade { position: absolute; bottom: -10px; left: 5px; width: 25px; height: 25px; background: var(--metal); border-radius: 50%; border: 2px dashed #333; animation: spin 0.2s linear infinite; }
.dust-particle { position: absolute; width: 8px; height: 8px; background: #faedcd; border-radius: 50%; bottom: 0; left: 45px; opacity: 0; }
.d1 { animation: dust 0.6s infinite; }
.d2 { animation: dust 0.5s infinite 0.2s; }
@keyframes dust { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(30px, -40px) scale(4); opacity: 0; } }

/* ================= 7. THE HELPER ================= */
.c-helper { top: -30px; left: -30px; }
.c-helper .c-arm-r { transform: rotate(-130deg); left: 30px; animation: handTool 3s infinite alternate; }
.c-tool { position: absolute; bottom: -15px; left: 0; width: 8px; height: 25px; background: #333; border-radius: 2px; }
.c-tool::before { content: ''; position: absolute; top: -5px; left: -4px; width: 16px; height: 8px; background: var(--metal); border-radius: 3px 3px 0 0; }
@keyframes handTool { 0% { transform: rotate(-130deg); } 100% { transform: rotate(-80deg); } }

/* ================= 8. THE SUPERVISOR ================= */
.c-supervisor { bottom: -50px; right: -50px; transform: scale(-0.7, 0.7); }
.c-supervisor .c-arm-l { transform: rotate(10deg); }
.c-supervisor .c-arm-r { transform: rotate(-45deg); left: 40px; }
.c-blueprint { position: absolute; bottom: -30px; left: -10px; width: 35px; height: 45px; background: #e0fbfc; border: 2px solid #98c1d9; border-radius: 3px; transform: rotate(15deg); box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); animation: pulseGlow 2s infinite alternate; }
.c-blueprint::after { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; height: 2px; background: #3d5a80; box-shadow: 0 6px 0 #3d5a80, 0 12px 0 #3d5a80; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); } 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.8); } }

/* ================= 9. THE ELECTRICIAN ================= */
.c-electrician { top: -60px; right: 15%; }
.c-electrician .c-arm-r { transform: rotate(-90deg); left: 30px; animation: wireFix 1s infinite alternate; }
.c-wire-tool { position: absolute; bottom: -15px; left: 0; width: 6px; height: 20px; background: #e63946; }
.c-prop-wire { position: absolute; bottom: 10px; left: 45px; width: 60px; height: 80px; border: 4px solid transparent; border-left-color: #00f0ff; border-bottom-color: #00f0ff; border-radius: 0 0 0 20px; animation: pulseGlow 0.5s infinite alternate; }
@keyframes wireFix { 0% { transform: rotate(-90deg) translateX(0); } 100% { transform: rotate(-70deg) translateX(5px); } }

/* ================= 10. THE DRILLER ================= */
.c-driller { bottom: 20%; right: -50px; animation: shake 0.1s infinite alternate; }
.c-earmuffs { position: absolute; top: 5px; left: -5px; width: 45px; height: 25px; border: 4px solid #e63946; border-bottom: none; border-radius: 20px 20px 0 0; z-index: 5; }
.c-earmuffs::before, .c-earmuffs::after { content: ''; position: absolute; bottom: -10px; width: 12px; height: 20px; background: #333; border-radius: 5px; }
.c-earmuffs::before { left: -6px; }
.c-earmuffs::after { right: -6px; }
.c-driller .c-arm-l, .c-driller .c-arm-r { transform: rotate(160deg); top: 55px; }
.c-driller .c-arm-l { left: 10px; }
.c-driller .c-arm-r { left: 35px; }
.c-jackhammer { position: absolute; bottom: -20px; left: 25px; width: 12px; height: 70px; background: var(--metal); border-radius: 2px; }
.c-jackhammer::before { content: ''; position: absolute; top: -10px; left: -15px; width: 40px; height: 8px; background: #333; border-radius: 4px; }
.c-jackhammer::after { content: ''; position: absolute; top: 10px; left: -5px; width: 22px; height: 35px; background: var(--accent-dark); border-radius: 4px; }
@keyframes shake { 0% { transform: translateY(0) scale(0.7); } 100% { transform: translateY(2px) scale(0.7); } }

/* ================= SPEECH BUBBLE ================= */
.speech-bubble {
    position: absolute;
    background: white;
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 2px solid var(--accent);
    z-index: 200;
}
.speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
/* Bubble tail */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: white;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
}
.speech-bubble.left-tail::after {
    left: auto;
    right: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
    .crane { opacity: 0; pointer-events: none; }
    .construction-card { padding: 2.5rem 2rem; z-index: 100; margin-top: 50px; }
}

@media (max-width: 768px) {
    body { overflow-y: auto; }
    .site-wrapper { height: auto; padding: 50px 0; overflow: hidden; }
    .character, .crane { opacity: 0.15; z-index: 1; }
    .construction-card { z-index: 100; margin: 20px; margin-top: 50px; }
    .notify-form { flex-direction: column; }
    .btn { padding: 18px 0; }
}
