.custom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 50%, #0f0f1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.loader-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(100, 149, 237, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(100, 149, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

.loader-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.progress-container {
    width: 280px;
    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, #6495ed, #7baaf7, #6495ed);
    border-radius: 4px;
    animation: loadingProgress 2.5s ease-in-out infinite;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(100, 149, 237, 0.3), transparent);
    height: 1px;
    animation: circuitFlow 8s linear infinite;
}

.circuit-line:nth-child(1) {
    top: 20%;
    width: 100px;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    top: 40%;
    width: 150px;
    animation-delay: 1s;
}

.circuit-line:nth-child(3) {
    top: 60%;
    width: 200px;
    animation-delay: 2s;
}

.circuit-line:nth-child(4) {
    top: 80%;
    width: 100px;
    animation-delay: 3s;
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #6495ed;
    border-radius: 50%;
    animation: nodePulse 2s infinite;
}

.circuit-node:nth-child(5) {
    top: 20%;
    left: 10%;
    animation-delay: 0.5s;
}

.circuit-node:nth-child(6) {
    top: 40%;
    right: 15%;
    animation-delay: 1.5s;
}

.circuit-node:nth-child(7) {
    top: 60%;
    left: 20%;
    animation-delay: 2.5s;
}

.circuit-node:nth-child(8) {
    top: 80%;
    right: 10%;
    animation-delay: 3.5s;
}

/* Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    70% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes circuitFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .loader-logo {
        width: 100px;
    }

    .logo-glow {
        width: 120px;
        height: 120px;
    }

    .loader-text {
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    .loader-logo {
        width: 80px;
    }

    .logo-glow {
        width: 100px;
        height: 100px;
    }

    .loader-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

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