/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* فيديو الخلفية */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* طبقة سوداء فوق الفيديو */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* الخلفية المتحركة الاحتياطية */
#animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: linear-gradient(45deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #667eea 75%, 
        #764ba2 100%
    );
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* الطبقة المتراكبة */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الطبقة السوداء السينماتيك */
.cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    
    /* تأثير تدرج سينماتيك */
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 75%,
        rgba(0, 0, 0, 0.6) 100%
    );
    
    /* تأثير الحبيبات السينماتيكية */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    
    /* حركة خفيفة للطبقة */
    animation: cinematicPulse 20s ease-in-out infinite;
}

@keyframes cinematicPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* تأثيرات سينماتيكية إضافية */
.cinematic-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
    animation: cinematicSweep 30s linear infinite;
    pointer-events: none;
}

@keyframes cinematicSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* الحاوية الرئيسية */
.container {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* الشعار */
.logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

#logo-image {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* العنوان الرئيسي */
.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: 2px;
}

/* العنوان الفرعي */
.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* حاوية المؤقت */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* صندوق المؤقت */
.countdown-box {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 100px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.countdown-box:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.countdown-box span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.countdown-box label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* الرسالة */
.message {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.8s both;
    margin-bottom: 3rem;
}

/* تطوير */
.developer-credit {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    margin: 0 auto 1.5rem;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.developer-text {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.developer-text:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.developer-name {
    color: #f093fb;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.developer-name:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(240, 147, 251, 0.6);
}

/* الحركات */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحكم في الشاشات الصغيرة */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-box {
        padding: 1rem;
        min-width: 80px;
    }
    
    .countdown-box span {
        font-size: 2rem;
    }
    
    .countdown-box label {
        font-size: 0.9rem;
    }
    
    #logo-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-box {
        padding: 0.8rem;
        min-width: 70px;
    }
    
    .countdown-box span {
        font-size: 1.5rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    #logo-image {
        max-width: 180px;
    }
    
    .developer-credit {
        margin-top: 1.5rem;
    }
    
    .divider {
        width: 80px;
        margin-bottom: 1rem;
    }
    
    .developer-text {
        font-size: 0.8rem;
    }
}
