:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ffcc00;
    --secondary-accent: #ff6b35;
    --crane-color: #ffcc00;
    --bulldozer-color: #ff6b35;
    --scaffold-color: #aaaaaa;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.construction-scene {
    position: relative;
    height: 80vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.construction-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    text-align: center;
    line-height: 0.9;
    letter-spacing: 0px;
    color: var(--text-color);
    position: relative;
    z-index: 5;
}

/* Letter styling */
.letter {
    position: relative;
    display: inline-block;
    transform-origin: bottom center;
}

/* Crane styling */
.crane {
    position: absolute;
    top: 15%;
    right: 15%;
    z-index: 10;
    transform: scale(0.8);
    transform-origin: bottom center;
}

.crane-tower {
    width: 30px;
    height: 200px;
    background-color: var(--crane-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.crane-arm {
    width: 250px;
    height: 12px;
    background-color: var(--crane-color);
    position: absolute;
    top: 40px;
    left: 15px;
    transform-origin: left center;
    transform: rotate(-5deg);
}

.crane-cable {
    width: 2px;
    height: 100px;
    background-color: #aaaaaa;
    position: absolute;
    top: 40px;
    left: 170px;
}

.crane-hook {
    width: 20px;
    height: 20px;
    border: 4px solid var(--crane-color);
    border-top: none;
    position: absolute;
    top: 140px;
    left: 161px;
}

.crane-cabin {
    width: 40px;
    height: 30px;
    background-color: var(--crane-color);
    position: absolute;
    top: 60px;
    left: 5px;
}

.crane-base {
    width: 80px;
    height: 15px;
    background-color: var(--crane-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Bulldozer styling */
.bulldozer {
    position: absolute;
    bottom: 20%;
    left: 15%;
    z-index: 10;
    transform: scale(0.7);
}

.bulldozer-body {
    width: 120px;
    height: 60px;
    background-color: var(--bulldozer-color);
    position: relative;
}

.bulldozer-cabin {
    width: 50px;
    height: 40px;
    background-color: var(--bulldozer-color);
    position: absolute;
    top: -40px;
    right: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.bulldozer-blade {
    width: 80px;
    height: 40px;
    background-color: var(--text-color);
    position: absolute;
    bottom: 5px;
    left: -60px;
    border: 4px solid #888;
    transform: perspective(100px) rotateX(30deg);
}

.bulldozer-tracks {
    width: 140px;
    height: 20px;
    background-color: #333;
    position: absolute;
    bottom: -20px;
    left: -10px;
    display: flex;
    justify-content: space-around;
}

.bulldozer-tracks::before, .bulldozer-tracks::after {
    content: '';
    width: 15px;
    height: 15px;
    background-color: #222;
    border-radius: 50%;
    position: absolute;
    top: 2px;
}

.bulldozer-tracks::before {
    left: 20px;
}

.bulldozer-tracks::after {
    right: 20px;
}

/* Cement mixer styling */
.cement-mixer {
    position: absolute;
    bottom: 10%;
    right: 20%;
    transform: scale(0.6);
    z-index: 10;
}

.mixer-body {
    width: 80px;
    height: 40px;
    background-color: var(--secondary-accent);
    position: relative;
}

.mixer-drum {
    width: 100px;
    height: 80px;
    background: linear-gradient(45deg, #666, #999);
    border: 4px solid #555;
    position: absolute;
    top: -50px;
    left: 20px;
    border-radius: 50% 50% 10% 10%;
    overflow: hidden;
    transform: rotate(-15deg);
}

.mixer-drum::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 20px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 10%;
    border-radius: 50% 50% 0 0;
    opacity: 0.8;
}

.mixer-cabin {
    width: 60px;
    height: 40px;
    background-color: var(--secondary-accent);
    position: absolute;
    top: -20px;
    left: -40px;
}

.mixer-wheels {
    width: 140px;
    height: 30px;
    position: absolute;
    bottom: -30px;
    left: -20px;
    display: flex;
    justify-content: space-between;
}

.mixer-wheels::before, .mixer-wheels::after {
    content: '';
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    border: 5px solid #555;
}

/* Scaffolding styling */
.scaffolding {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.scaffold-piece {
    background-color: var(--scaffold-color);
    position: absolute;
}

.scaffold-piece.h1 {
    width: 60%;
    height: 10px;
    top: 35%;
    left: 20%;
}

.scaffold-piece.h2 {
    width: 60%;
    height: 10px;
    top: 65%;
    left: 20%;
}

.scaffold-piece.v1 {
    width: 10px;
    height: 60%;
    top: 20%;
    left: 20%;
}

.scaffold-piece.v2 {
    width: 10px;
    height: 60%;
    top: 20%;
    left: 50%;
}

.scaffold-piece.v3 {
    width: 10px;
    height: 60%;
    top: 20%;
    left: 80%;
}

/* Status bar styling */
.status-bar {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    margin-top: auto;
}

.status-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.status-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-track {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    width: 67%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
}

.status-percent {
    font-size: 1rem;
    font-weight: 500;
    min-width: 3rem;
}

@media (max-width: 768px) {
    .crane, .bulldozer {
        transform: scale(0.5);
    }
    
    .cement-mixer {
        transform: scale(0.4);
        right: 10%;
    }
    
    .scaffold-piece.h1, .scaffold-piece.h2 {
        width: 80%;
        left: 10%;
    }
}