/**
 * MyKashmir Portal - Aesthetic High-Tech Onload Intro Animation Styles
 * "MyKashmir" - Decent, Aesthetic High-Tech Holographic Experience
 *
 * Author: Kashmir eServices (https://KeS.MyKashmir.in)
 * Theme URI: https://www.MyKashmir.in (alias: www.MyaKashmir.in)
 * Copyright 2005-2026 MyKashmir & Kashmir eServices
 */

/* ==========================================================================
   Full-screen Decent High-Tech Loader Stage
   ========================================================================== */
#mk-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 35%, #0f172a 0%, #090e17 60%, #04070d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 1200px;
  transform-style: preserve-3d;
}

#mk-loader.mk-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.08) translateZ(40px);
}

/* Subtle Canvas Background */
#mk-3d-loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Subtle Ambient Glow Layers */
.mk-loader-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mk-mist-layer {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.12) 0%, rgba(225, 29, 72, 0.06) 45%, transparent 75%);
  filter: blur(60px);
  animation: mkSubtlePulse 8s ease-in-out infinite alternate;
}

.mk-mist-layer-2 {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 60% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
  filter: blur(70px);
}

@keyframes mkSubtlePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

/* Central Stage & High-Tech Emblem */
.mk-loader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 90%;
  padding: 30px;
  transform-style: preserve-3d;
}

.mk-loader-emblem {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(14, 165, 233, 0.5);
  animation: mkRingSpin 18s linear infinite;
}

.mk-emblem-ring-outer {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mk-emblem-svg {
  position: relative;
  width: 72px;
  height: 72px;
  z-index: 5;
  filter: drop-shadow(0 0 16px rgba(14, 165, 233, 0.45));
}

/* Clean, Aesthetic Title Case Brand Typography */
.mk-brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px 0;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none !important;
}

.mk-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  color: #ffffff;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mk-char.mk-char-revealed {
  opacity: 1;
  transform: translateY(0);
}

.mk-char.highlight {
  color: #0ea5e9;
}

.mk-urdu-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 12px;
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.mk-portal-tagline {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.mk-portal-tagline .pill {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Progress Track */
.mk-progress-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 18px;
}

.mk-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.mk-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 99px;
  transition: width 0.12s linear;
}

.mk-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 8px;
}

.mk-skip-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 50;
  transition: all 0.2s ease;
}

.mk-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mk-loader-footer {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 10px;
}

.mk-loader-footer a {
  color: #94a3b8;
}

.mk-loader-footer a:hover {
  color: #0ea5e9;
}
