/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* شاشة الذرة الترحيبية */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out;
}

.atom-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #00f5d4, #00bbf9);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.7),
        0 0 40px rgba(0, 187, 249, 0.5);
    z-index: 10;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate-orbit linear infinite;
}

.electron {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #f15bb5, #fee440);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(241, 91, 181, 0.7),
        0 0 20px rgba(254, 228, 64, 0.5);
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation-duration: 8s;
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 280px;
    height: 280px;
    animation-duration: 16s;
}

.logo-text {
    font-size: 3rem;
    font-weight: 300;
    background: linear-gradient(to right, #00f5d4, #00bbf9, #f15bb5, #fee440);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 1s forwards;
}

@keyframes rotate-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* المحتوى الرئيسي (مخفي في البداية) */
.main-content {
    display: none;
    opacity: 0;
}

/* التصميم الفاخر للهيدر */
.luxury-header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
}

.luxury-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luxury-header ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.luxury-header a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.luxury-header a:hover {
    color: #00f5d4;
}

.luxury-header a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #00f5d4, #00bbf9);
    transition: width 0.3s;
}

.luxury-header a:hover::after {
    width: 100%;
}

.luxury-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #00f5d4, #00bbf9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* استبدال قسم hero-section السابق بهذا الكود المحسن */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

/* تحسينات للخلفية على الشاشات المختلفة */
@media (max-width: 768px) {
    .hero-section::before {
        background-size: auto 150%;
    }
}

@media (max-width: 576px) {
    .hero-section::before {
        background-size: auto 200%;
    }
}

@media (min-width: 2000px) {
    .hero-section::before {
        background-size: cover;
    }
}

/* تأثير حركي للخلفية عند التمرير */
@media (prefers-reduced-motion: no-preference) {
    .hero-section::before {
        will-change: transform;
    }

    .hero-section:hover::before {
        transform: scale(1.05);
    }

.hero-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #00f5d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    line-height: 1.6;
}

/* أزرار فاخرة */
.luxury-btn {
    background: linear-gradient(45deg, #00f5d4, #00bbf9);
    border: none;
    color: #0a0a0a;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.luxury-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.4);
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.luxury-btn:hover::before {
    left: 100%;
}

/* تأثيرات الظهور للمحتوى */
.fade-in {
    animation: fadeInContent 1.5s ease-in-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إضافة إلى ملف styles.css */

/* 1. تعديلات عامة للاستجابة */
@media (max-width: 1200px) {
    .hero-section h2 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .luxury-header nav {
        flex-direction: column;
        gap: 1rem;
    }

    .luxury-header ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* تعديل شاشة الذرة للشاشات الصغيرة */
    .atom-container {
        width: 200px;
        height: 200px;
    }

    .orbit-1 {
        width: 80px;
        height: 80px;
    }

    .orbit-2 {
        width: 130px;
        height: 130px;
    }

    .orbit-3 {
        width: 180px;
        height: 180px;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    /* تعديلات الهيدر */
    .luxury-header ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* تعديلات قسم البطل */
    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .luxury-btn {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 576px) {

    /* تعديلات للهواتف الذكية */
    .atom-container {
        width: 150px;
        height: 150px;
    }

    .orbit-1 {
        width: 60px;
        height: 60px;
    }

    .orbit-2 {
        width: 100px;
        height: 100px;
    }

    .orbit-3 {
        width: 140px;
        height: 140px;
    }

    .electron {
        width: 15px;
        height: 15px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .luxury-header {
        padding: 0.8rem 1rem;
    }

    .luxury-header ul {
        gap: 1rem;
    }

    .luxury-header a {
        font-size: 0.9rem;
    }

    .luxury-header .logo {
        font-size: 1.5rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .luxury-btn {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
}

/* 2. إضافة viewport meta tag للتحكم في التكبير/التصغير */
/* (يجب أن يكون موجودًا بالفعل في ملف HTML) */

/* 3. تحسينات للوضع الأفقي في الهواتف */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-screen {
        flex-direction: row;
        gap: 2rem;
    }

    .atom-container {
        width: 120px;
        height: 120px;
    }

    .orbit-1 {
        width: 50px;
        height: 50px;
    }

    .orbit-2 {
        width: 80px;
        height: 80px;
    }

    .orbit-3 {
        width: 110px;
        height: 110px;
    }

    .logo-text {
        font-size: 1.8rem;
    }
}

/* 4. تحسينات لشاشات كبيرة جدًا */
@media (min-width: 1600px) {
    .hero-section h2 {
        font-size: 4.5rem;
    }

    .hero-section p {
        font-size: 1.8rem;
    }

    .luxury-btn {
        padding: 1.2rem 3rem;
        font-size: 1.3rem;
    }
}

/* 5. منع التكبير في حقول الإدخال على الهواتف */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 6. تحسينات لقوائم الهواتف */
@media (max-width: 576px) {
    .luxury-header ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .luxury-header a {
        padding: 0.3rem 0;
    }
}

/* 7. تعديلات للوضع المظلم في المتصفحات */
@media (prefers-color-scheme: dark) {

    /* التأكد من أن الألوان تظهر جيدًا في الوضع المظلم */
    body {
        background-color: #121212;
    }

    .luxury-header {
        background: rgba(18, 18, 18, 0.9);
    }
}
