/*
====================================================================
  LOADING-SCREEN.CSS - Loading Screen Styling Notes - شاشة التحميل
====================================================================

This file defines the styles for the YJED website loading screen, ensuring
a smooth visual introduction experience and consistent branding across all devices.

هذا الملف يحتوي على تنسيقات شاشة التحميل لموقع YJED، لضمان تجربة تقديم مرئية
سلسة وتناسق العلامة البصرية عبر جميع الأجهزة.

- Uses Tajawal font to maintain visual consistency with site pages.
- Prevents scrolling during loading screen display to focus on intro.
- Includes smooth fade-out transition on load completion.
- Animation based on staggered text reveal for gradual text appearance.
- Glow effects add attractive visual touch.
- Mobile-responsive design compatible with all screen sizes.
- Optimized for performance and accessibility.

====================================================================
*/

/* ===================================
   1. IMPORTS FONT 
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Genos:wght@100;200;300;400;500;600;700;800;900&family=Arapey:ital,wght@0,400;1,400&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* ===================================
   2. BASE LOADING SCREEN SETUP
=================================== */

body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    text-align: center;
    font-family: 'Tajawal', sans-serif !important;
}

body.loading * {
    font-family: 'Tajawal', sans-serif !important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
    overflow: hidden;
}

#loading-screen.fade-out {
    opacity: 0;
}

/* ===================================
   3. LOADING CONTAINER & LAYOUT
=================================== */

.loading-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ===================================
   4. TEXT ANIMATION COMPONENTS
=================================== */

.loading-text {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.text-part {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: inline-block;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 500;
}

.text-part.show {
    opacity: 1;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

/* ===================================
   5. BLUR EFFECTS & VISUAL ELEMENTS
=================================== */

.loading-blur-layer {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 60px;
    background: #373737;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    z-index: 1;
}

/* ===================================
   6. MAIN CONTENT TRANSITION
=================================== */

#main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

#main-content.show {
    opacity: 1;
}

/* ===================================
   7. RESPONSIVE DESIGN RULES
=================================== */

@media (max-width: 768px) {
    .loading-blur-layer {
        width: 90%;
        max-width: 400px;
        height: 50px;
    }
    
    .loading-text {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 1.8rem;
    }
    
    .loading-blur-layer {
        height: 40px;
        width: 85%;
        max-width: 300px;
    }
} 