/* Premium Loading Screen Styles */
#global-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020617 !important; /* Fully opaque deep navy/black */
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* World Map / Tech Dotted Background */
.ls-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020617;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}
.ls-tech-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.4) 0%, #020617 80%);
}

/* Digital Wave Animation (SVG) */
.ls-wave-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.5;
}
.ls-wave-svg {
    width: 200%;
    height: 100%;
    animation: lsWaveMove 20s linear infinite;
    fill: none;
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}
.ls-wave-svg path:nth-child(2) {
    stroke: rgba(37, 99, 235, 0.4);
    stroke-width: 2;
    animation: lsWaveMove 15s linear infinite reverse;
}

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

.ls-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    height: 100%;
    justify-content: space-between;
}

/* Logo Section */
.ls-logo-container {
    text-align: center;
    margin-top: 5vh;
    animation: lsFadeInDown 0.8s ease-out;
}

.ls-logo-icon img {
    height: 64px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.ls-logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.ls-logo-text span:last-child {
    color: #3b82f6; /* Electric Blue */
}

.ls-tagline {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.ls-categories {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}
.ls-categories span {
    color: #3b82f6;
    margin: 0 8px;
}

/* Circular Loader */
.ls-loader-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: lsScaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ls-loader-circle {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85); /* Solid Dark Glass */
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ls-loader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: rotate(-90deg);
}

.ls-loader-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.ls-loader-progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 785; /* 2 * PI * 125 */
    stroke-dashoffset: 785;
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.ls-percent {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.ls-percent-symbol {
    font-size: 32px;
}

.ls-loading-text {
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Footer Section */
.ls-footer {
    width: 100%;
    text-align: center;
    animation: lsFadeInUp 0.8s ease-out 0.3s both;
    margin-bottom: 5vh;
}

.ls-powering-text {
    font-size: 14px;
    letter-spacing: 4px;
    color: #e2e8f0;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 500;
}

.ls-glow-bar-container {
    width: 100%;
    max-width: 600px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 auto 32px auto;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.ls-glow-bar-progress {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 0%;
    transform: translateX(-50%);
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px #3b82f6;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.ls-features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ls-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ls-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}
.ls-feature-icon:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.ls-feature-icon svg {
    width: 22px;
    height: 22px;
}

.ls-feature-text {
    text-align: left;
    font-size: 11px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    max-width: 90px;
    font-weight: 500;
}

/* Animations */
@keyframes lsFadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lsFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lsScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ls-wave-svg { animation: none; }
    .ls-loader-wrapper, .ls-logo-container, .ls-footer { animation: none; opacity: 1; }
    .ls-loader-progress { transition: none; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ls-logo-icon img { height: 48px; }
    .ls-logo-text { font-size: 28px; }
    .ls-tagline { font-size: 13px; }
    .ls-loader-wrapper { width: 200px; height: 200px; }
    .ls-percent { font-size: 48px; }
    .ls-percent-symbol { font-size: 24px; }
    .ls-features-grid { gap: 16px; display: grid; grid-template-columns: 1fr 1fr; }
    .ls-feature-item { justify-content: flex-start; margin-left: 20px; }
    .ls-glow-bar-container { width: 80%; }
    .ls-content { padding-top: 20px; padding-bottom: 20px; }
}
