@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    overflow: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-text {
    color: white;
    font-size: 3rem;
    letter-spacing: 0.5rem;
    animation: pulse 2s infinite;
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: red;
    transition: width 0.3s ease;
}

.loading-percentage {
    color: white;
    font-size: 1.5rem;
}

.cube-container {
    width: 100px;
    height: 100px;
    perspective: 1000px;
    margin-top: 2rem;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 4s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid red;
    background: rgba(255, 0, 0, 0.1);
}

.front  { transform: rotateY(0deg) translateZ(50px); }
.back   { transform: rotateY(180deg) translateZ(50px); }
.right  { transform: rotateY(90deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.top    { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .loader-text {
        font-size: 2rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .cube-container {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 1.5rem;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .cube-container {
        width: 60px;
        height: 60px;
    }
}
