body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d1117;
    font-family: 'Poppins', sans-serif;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.view {
    position: relative;
    width: 350px;
    height: 350px;
    border: 5px solid #222;
    border-radius: 50%; 
    overflow: hidden;
    background-color: #0b1026; 
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.sky {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45%;
    background-color: #060a14;
    perspective: 300px; 
    z-index: 2;
    overflow: hidden;
}

.road {
    position: absolute;
    bottom: -20px; 
    left: 50%;
    width: 180px;
    height: 150%;
    background-color: #1a1a24;
    transform: translateX(-50%) rotateX(60deg); 
    transform-origin: bottom center;
    border-left: 6px solid #333;
    border-right: 6px solid #333;
}

.road::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 200%;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 20px, #ffffff 20px, #ffffff 40px);
    animation: drive 0.4s linear infinite;
}

@keyframes drive {
    0% { transform: translateX(-50%) translateY(-50%); }
    100% { transform: translateX(-50%) translateY(0); }
}

.truck-container {
    position: absolute;
    bottom: 10%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.truck {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); } 
}

.trailer {
    width: 130px;
    height: 150px;
    background: #e2e8f0; 
    border-radius: 4px;
    position: relative;
    border: 2px solid #94a3b8;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 10px 15px rgba(0,0,0,0.6);
}

.doors {
    position: absolute;
    top: 10px;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #94a3b8;
}

.top-light {
    position: absolute;
    top: 4px;
    width: 6px;
    height: 4px;
    background: #ff0000;
    border-radius: 2px;
    box-shadow: 0 0 5px red;
}
.top-light.left { left: 10px; }
.top-light.right { right: 10px; }

.bumper {
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 134px;
    height: 18px;
    background: #1e293b;
    border-radius: 0 0 4px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.taillight {
    width: 18px;
    height: 8px;
    background: #ff0000;
    border-radius: 2px;
    box-shadow: 0 0 12px red, 0 0 25px red; 
}

.wheels {
    display: flex;
    justify-content: space-between;
    width: 110px;
    margin-top: -6px; 
    z-index: -1;
}

.wheel {
    width: 22px;
    height: 30px;
    background: #111;
    border-radius: 4px;
    border-bottom: 2px solid #000;
}

.truck-shadow {
    width: 120px;
    height: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    margin-top: -5px;
    animation: shadow-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes shadow-bounce {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    animation: fillBar 3s ease-in-out infinite; 
}

@keyframes fillBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    color: #94a3b8;
    font-size: 16px;
    margin-top: -15px;
    letter-spacing: 2px;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}