﻿/* --- Google Fonts --- */
@import url('../../../../../css2-1');
@import url('../../../../../css2-2');
@import url('../../../../../css2-3');
@import url('../../../../../css2-4');

/* --- Global Styles --- */
html, body { 
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Poppins', sans-serif; 
}

/* === মূল সমাধান: এই নতুন ক্লাসটি এখন স্ক্রল লক নিয়ন্ত্রণ করবে === */
body.preloader-is-active {
    overflow: hidden !important;
}

/* --- Preloader Styles --- */
#smart-scan-preloader { position:fixed; top:0; left:0; width:100%; height:100%; z-index:99999; background:radial-gradient(circle, #3d2c8d 0%, #1c0f50 100%); display:flex; justify-content:center; align-items:center; color:white; transition:opacity 1.2s ease-in-out; opacity:1; }
#smart-scan-preloader.preloader-hidden{opacity:0;}
.preloader-content{ text-align:center; display: flex; flex-direction: column; align-items: center; }

/* --- Welcome Text Styles (English & Arabic) --- */
.welcome-text-primary, .welcome-text-secondary {
    font-weight: bold;
    text-shadow: 1px 1px 0px #c000c0, 2px 2px 0px #a000a0;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rainbow-flow 0.5s linear infinite alternate;
}
.welcome-text-primary { font-family: 'Russo One', sans-serif; font-size: 1.8em; margin-top: 25px; }
.welcome-text-secondary { font-family: 'Cairo', sans-serif; font-size: 1.6em; margin-top: 5px; }
@keyframes rainbow-flow { to { background-position: 200% center; } }

/* --- Saudi Style 3D Frame --- */
.saudi-frame-container {
    margin-top: 30px;
    width: 250px;
    height: 320px;
    padding: 8px;
    background: linear-gradient(145deg, #1c140a, #3c2e1a);
    border-radius: 20px;
    border: 1px solid #4a3a2a;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.6),
        0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    background-image: url('../hamad.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.saudi-frame-container::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 3px solid transparent;
    border-image: linear-gradient(145deg, #F0D478, #A67C37, #F0D478) 1;
    border-radius: 15px;
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.4);
}

/* --- Hamad Mahadi Name Plate (Below the frame) --- */
.hamad-name-plate {
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #E6B800;
    text-shadow: 1px 1px 2px #000, 0 0 10px #FFD700;
}
.hamad-name-plate .name-en { font-family: 'Cinzel Decorative', cursive; }
.hamad-name-plate .name-ar { font-family: 'Cairo', sans-serif; margin-left: 10px; }

/* --- PROGRESS BAR STYLES --- */
.progress-bar-container { width: 300px; height: 14px; background-color: #383838; border-radius: 10px; margin-top: 25px; overflow: hidden; border: 1px solid rgba(0,0,0,0.2); }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00ff88, #ff4d4d); border-radius: 10px; transition: width 0.1s linear; }

/* --- 3D Phone Styles --- */
.phone-3d-container {position: relative;width: 280px;height: 280px;display: flex;justify-content: center;align-items: center;perspective: 1200px; margin-bottom: 5px;}
.phone-body {width: 100px;height: 200px;position: relative;transform-style: preserve-3d;animation: rotate-phone 15s infinite ease-in-out alternate;}
@keyframes rotate-phone {from {transform: rotateY(-18deg) rotateX(8deg);} to {transform: rotateY(18deg) rotateX(-8deg);}}
.phone-front {position: absolute;width: 100%;height: 100%;background: #1a1a1f;border-radius: 18px;transform: translateZ(1px);box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);display: flex;justify-content: center;align-items: center;padding: 8px;box-sizing: border-box;}
.phone-screen {
    width: 100%; height: 100%; border-radius: 12px; position: relative; overflow: hidden;
    background-image: 
        linear-gradient(165deg, rgba(77, 47, 154, 0.6), rgba(44, 26, 124, 0.7)),
        url('../mamun.png');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.phone-screen::after {content: '';position: absolute;top: -5px;left: 0;width: 100%;height: 60%;background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);transform: skewY(-8deg);transform-origin: top left;}
.phone-camera {position: absolute;top: 18px;left: 50%;transform: translateX(-50%);width: 6px;height: 6px;background: #000;border-radius: 50%;border: 1px solid #333;}
.phone-speaker {position: absolute;top: 19px;left: 35%;width: 30%;height: 2px;background: #000;border-radius: 2px;opacity: 0.5;}
.scan-line {position: absolute;left: -20%;right: -20%;height: 12px;background: linear-gradient(90deg, transparent, #00ffc8, #00ffc8, transparent);border-radius: 50%;box-shadow: 0 0 15px 5px #00ffc8, 0 0 25px 10px rgba(0, 255, 200, 0.5);filter: blur(2px);animation: scan-anim 3s infinite alternate ease-in-out;z-index: 2;}
@keyframes scan-anim {from {top: 20%;} to {top: 75%;}}
.star {position:absolute;width:8px;height:8px;background-color:#ffd700;clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);animation:twinkle 1.5s infinite ease-in-out;}
.star1 { top: 10%; right: 10px; animation-delay: 0s; }
.star2 { top: 70%; right: -5px; width: 12px; height: 12px; animation-delay: 0.5s; }
.star3 { top: 40%; left: 0px; width: 6px; height: 6px; animation-delay: 1s; }
@keyframes twinkle{0%, 100%{transform:scale(0.5);opacity:0.5;}50%{transform:scale(1.2);opacity:1;}}

/* --- "Scan Complete" Message Styles --- */
.final-message {display: none;}
.checkmark {width: 80px; height: 80px; border-radius: 50%; display: block; stroke-width: 3; stroke: #00ffc8; margin: 0 auto 20px auto; box-shadow: inset 0px 0px 0px #00ffc8; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;}
.checkmark__circle {stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke: #00ffc8; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;}
.checkmark__check {transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;}
@keyframes stroke {100% {stroke-dashoffset: 0;}}
@keyframes scale {0%, 100% {transform: none;} 50% {transform: scale3d(1.1, 1.1, 1);}}
@keyframes fill {100% {box-shadow: inset 0px 0px 0px 40px #00ffc8;}}
.final-message .final-text {color: #ffffff; font-size: 24px; font-weight: 600; margin-bottom: 5px;}
.final-message .final-subtext {color: #c0c0e0; font-size: 16px;}