/* Advanced Page Transition Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #121212 0%, #2a2f4f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main Loader */
.loader-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
    perspective: 800px;
}



@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Progress Bar */
.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4b56d2, #82c3ec);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(90deg, rgba(130, 195, 236, 0), #82c3ec);
    filter: blur(5px);
}

/* Loading Text */
.loading-text {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
}

.loading-text::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #82c3ec, transparent);
}

/* Page Name Animation */
.page-name {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #82c3ec;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .loader {
        width: 120px;
        height: 120px;
    }

    .cube-face {
        width: 80px;
        height: 80px;
    }

    .progress-container {
        width: 150px;
    }

    .loading-text {
        font-size: 14px;
    }

    .page-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .loader {
        width: 100px;
        height: 100px;
    }

    .cube-face {
        width: 60px;
        height: 60px;
    }

    .progress-container {
        width: 120px;
    }
}
