/* ==================== Splash Page ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #0b1f4d;
}

/* Background */
.splash-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    animation: zoomIn 8s ease-out forwards;
}

.splash-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(180deg, rgba(11, 31, 77, 0.4) 0%, rgb(11 31 77 / 18%) 40%, rgb(11 31 77 / 38%) 100%);*/
}

.splash-bg-gradient {
    background: linear-gradient(135deg, #0b1f4d 0%, #1a2a52 50%, #0b1f4d 100%);
}

@keyframes zoomIn {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

/* Particles */
.bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.bg-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.bg-particles .particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; width: 3px; height: 3px; }
.bg-particles .particle:nth-child(2) { left: 25%; animation-duration: 6s; animation-delay: 1s; width: 5px; height: 5px; }
.bg-particles .particle:nth-child(3) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.bg-particles .particle:nth-child(4) { left: 55%; animation-duration: 7s; animation-delay: 2s; width: 6px; height: 6px; }
.bg-particles .particle:nth-child(5) { left: 70%; animation-duration: 8s; animation-delay: 1.5s; width: 3px; height: 3px; }
.bg-particles .particle:nth-child(6) { left: 85%; animation-duration: 10s; animation-delay: 0.8s; }
.bg-particles .particle:nth-child(7) { left: 15%; animation-duration: 7s; animation-delay: 3s; width: 5px; height: 5px; }
.bg-particles .particle:nth-child(8) { left: 60%; animation-duration: 9s; animation-delay: 2.5s; width: 3px; height: 3px; }
.bg-particles .particle:nth-child(9) { left: 80%; animation-duration: 6s; animation-delay: 1.2s; width: 4px; height: 4px; }
.bg-particles .particle:nth-child(10) { left: 35%; animation-duration: 11s; animation-delay: 0.3s; }

@keyframes floatUp {
    0% { bottom: -10px; opacity: 0; transform: translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { bottom: 110vh; opacity: 0; transform: translateX(40px); }
}

/* Glow */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 2;
}

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

/* Skip button */
.skip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Center content */
.splash-center {
    position: absolute;
        bottom: 55px;
    z-index: 3;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* Logo */
.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: scaleIn 0.8s ease-out;
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Brand */
.brand-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Loading */
.splash-loading {
    margin-top: 2rem;
}

.loading-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #08080c, #edf1f2, #000000);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: fillBar 4.5s ease-in-out forwards, shimmer 1.5s ease-in-out infinite;
}

@keyframes fillBar {
    0% { width: 0%; }
    30% { width: 30%; }
    60% { width: 65%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-text {
    font-size: 0.75rem;
    color: rgba(0,0,0,1);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
}

.dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

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

/* ==================== Desktop ==================== */
@media (min-width: 768px) {
    .splash-logo {
        width: 160px;
        height: 160px;
    }

    .brand-name { font-size: 3rem; }
    .brand-sub { font-size: 1.05rem; }
    .loading-bar-wrap { width: 280px; }

    .skip-btn {
        top: 30px;
        right: 40px;
        font-size: 0.9rem;
        padding: 10px 28px;
    }
}

@media (min-width: 1200px) {
    .splash-logo {
        width: 180px;
        height: 180px;
    }

    .brand-name { font-size: 3.5rem; }
    .brand-sub { font-size: 1.1rem; }
    .loading-bar-wrap { width: 320px; }
}
