/* ৩D লোডিং "জাইরোস্কোপ": মাঝে চকচকে গোল লোগো-গোলক, চারপাশে তিন রিং ভিন্ন অক্ষে ঘোরে (সোনালি, নেভি, কমলা), রিংয়ে জ্বলজ্বলে বিন্দু,
   মেঝেতে ঢেউ, ছড়িয়ে-পড়া সোনালি কণা, নিচে "LEBASIA" অক্ষর একে একে ফোটে, সোনা-কমলা চলন্ত লাইন। ব্যানারের (সোনালি রেখা ও বৃত্ত) সাথে একই ভাষা।
   এই ফাইল index.html থেকে আলাদা লিংকে আসে, তাই সাইটের বড় CSS আসার আগেই (প্রথম আঁকাতেই) চলে।
   ব্যবহার: <Loader3D /> (src/components/Loader3D.jsx) অথবা index.html-এর #root-এর ভেতরের স্প্ল্যাশ (দুই জায়গার মার্কআপ হুবহু এক রাখুন); React চালু হলে স্প্ল্যাশ নিজে সরে যায়।
   শুধু transform/opacity অ্যানিমেশন (GPU-তে চলে, টানাটানি করে না)। */
.ld3 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46vh; padding: 56px 16px; background: radial-gradient(60% 52% at 50% 44%, #fff 0%, #fff 55%, #F4F4F7 100%); }
.ld3--full { min-height: 100vh; min-height: 100dvh; }

.ld3-scene { position: relative; width: 132px; height: 132px; margin-bottom: 44px; perspective: 720px; }
.ld3-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(214, 54, 10, 0.2) 0%, rgba(231, 201, 139, 0.16) 42%, rgba(231, 201, 139, 0) 70%); animation: ld3Glow 2.8s ease-in-out infinite; }

/* তিন রিং: একটি X-অক্ষে, একটি Y-অক্ষে, বাইরের ড্যাশ-রিং কাত হয়ে নিজের চারপাশে (কক্ষপথ) */
.ld3-ring { position: absolute; border-radius: 50%; will-change: transform; }
.ld3-ring i { position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff 0%, currentColor 70%); box-shadow: 0 0 10px 2px currentColor; }
.ld3-ring--a { inset: 0; border: 2px solid rgba(201, 162, 79, 0.9); color: #C9A24F; box-shadow: 0 0 16px rgba(201, 162, 79, 0.35); animation: ld3SpinX 3.2s linear infinite; }
.ld3-ring--b { inset: 15%; border: 2px solid rgba(11, 16, 32, 0.78); color: #232B42; animation: ld3SpinY 2.5s linear infinite reverse; }
.ld3-ring--c { inset: -10%; border: 1.5px dashed rgba(214, 54, 10, 0.6); color: #D6360A; transform: rotateX(72deg); animation: ld3Orbit 5.2s linear infinite; }

/* গোলক: গোল করা লোগো ("LB" মনোগ্রাম), সোনালি কিনারা, ওপরে কাচের চকচকে আলো ও নিচে ছায়া (ফলে ৩D গোলক লাগে) */
.ld3-core { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; border: 2px solid #C9A24F; box-shadow: 0 12px 26px rgba(11, 16, 32, 0.34), 0 0 0 4px rgba(201, 162, 79, 0.18), 0 0 22px rgba(231, 201, 139, 0.55); overflow: hidden; animation: ld3Core 2.8s ease-in-out infinite; }
.ld3-core img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ld3-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 82%, rgba(11, 16, 32, 0.2) 0%, rgba(11, 16, 32, 0) 55%); pointer-events: none; }

/* মেঝে: নরম ছায়া + সোনালি ঢেউ */
.ld3-floor { position: absolute; left: 50%; bottom: -36px; width: 108px; height: 20px; margin-left: -54px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(11, 16, 32, 0.3), rgba(11, 16, 32, 0) 70%); animation: ld3Floor 2.8s ease-in-out infinite; }
.ld3-floor::after { content: ''; position: absolute; inset: -3px -18px; border-radius: 50%; border: 1.5px solid rgba(201, 162, 79, 0.6); opacity: 0; animation: ld3Ripple 2.8s ease-out infinite; }

/* ছড়িয়ে-পড়া সোনালি কণা: বাইরের দিকে গিয়ে মিলিয়ে যায় (প্রতিটি আলাদা কোণে) */
.ld3-spark { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--k) * 45deg)); }
.ld3-spark i { position: absolute; left: 0; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #F0D8A0; box-shadow: 0 0 7px 1px #C9A24F; opacity: 0; animation: ld3Spark 2.4s ease-out infinite; animation-delay: calc(var(--k) * 0.3s); }

/* নিচে ব্র্যান্ডের নাম: অক্ষর একে একে ফোটে (তরঙ্গের মতো), "SIA" সোনালি */
.ld3-brand { display: flex; gap: 0.34em; margin: 0; font: 800 22px/1 Inter, system-ui, sans-serif; color: #0B1020; }
.ld3-brand span { display: block; opacity: 0; transform: translateY(9px); animation: ld3Letter 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.ld3-brand .g { color: #8F6F2A; }
.ld3-brand span:nth-child(1) { animation-delay: 0s; }
.ld3-brand span:nth-child(2) { animation-delay: 0.09s; }
.ld3-brand span:nth-child(3) { animation-delay: 0.18s; }
.ld3-brand span:nth-child(4) { animation-delay: 0.27s; }
.ld3-brand span:nth-child(5) { animation-delay: 0.36s; }
.ld3-brand span:nth-child(6) { animation-delay: 0.45s; }
.ld3-brand span:nth-child(7) { animation-delay: 0.54s; }
/* সোনা-কমলা চলন্ত লাইন */
.ld3-bar { position: relative; display: block; width: 132px; height: 3px; margin-top: 20px; overflow: hidden; border-radius: 3px; background: rgba(11, 16, 32, 0.08); }
.ld3-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 42%; border-radius: 3px; background: linear-gradient(90deg, #D6360A, #E7C98B); animation: ld3Bar 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.ld3-label { margin: 14px 0 0; font: 500 13.5px/1.5 Inter, 'Noto Sans Bengali', system-ui, sans-serif; letter-spacing: 0.02em; color: #596273; animation: ld3Pulse 1.8s ease-in-out infinite; }

/* ছোট রূপ (পাতার ভেতরের অংশ লোড হওয়ার সময়): শুধু গোলক-রিং ও লেখা */
.ld3--sm { min-height: 190px; padding: 14px 16px 18px; background: none; }
.ld3--sm .ld3-scene { transform: scale(0.56); margin: -26px 0 2px; }
.ld3--sm .ld3-brand, .ld3--sm .ld3-bar { display: none; }
.ld3--sm .ld3-label { margin-top: 0; }

@keyframes ld3SpinX { from { transform: rotateX(0deg); } to { transform: rotateX(360deg); } }
@keyframes ld3SpinY { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes ld3Orbit { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ld3Core { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ld3Glow { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes ld3Floor { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.78); opacity: 0.6; } }
@keyframes ld3Ripple { 0% { transform: scale(0.45); opacity: 0.75; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes ld3Spark { 0% { transform: translateX(34px) scale(0.6); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateX(86px) scale(1); opacity: 0; } }
@keyframes ld3Letter { 0% { opacity: 0; transform: translateY(9px); } 16%, 68% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes ld3Bar { 0% { transform: translateX(-105%); } 100% { transform: translateX(255%); } }
@keyframes ld3Pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* "কম অ্যানিমেশন" সেটিং: ঘোরা, ছড়ানো, অক্ষরের ওঠানামা বন্ধ; কাত অবস্থায় স্থির রিং, অক্ষর সবসময় দৃশ্যমান, মৃদু জ্বলা শুধু */
@media (prefers-reduced-motion: reduce) {
  .ld3-ring--a { animation: none; transform: rotateX(62deg); }
  .ld3-ring--b { animation: none; transform: rotateY(62deg); }
  .ld3-ring--c, .ld3-spark, .ld3-floor::after { animation: none; }
  .ld3-spark { display: none; }
  .ld3-brand span { animation: none; opacity: 1; transform: none; }
  .ld3-bar i { animation: none; width: 42%; }
  .ld3-core, .ld3-floor { animation: none; }
}
