:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #d4af37; /* ذهبي راقي */
    --text-color: #ffffff;
    --highlight-color: #9f44d3; /* بنفسجي */
    --highlight-secondary: #3aa0ff; /* أزرق */
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --transition-time: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* خلفية متحركة */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(159, 68, 211, 0.1), rgba(58, 160, 255, 0.1));
    z-index: -1;
}

/* تنسيق الحاوية الرئيسية */
.container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 2rem;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    position: relative;
}

/* الشعار */
.logo {
    margin-bottom: 2.5rem;
}

.logo h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -0.5rem;
    letter-spacing: 1px;
}

/* قسم قريبًا */
.coming-soon {
    margin-bottom: 2.5rem;
}

.coming-soon h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.coming-soon h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), var(--highlight-secondary));
    bottom: -10px;
    left: 25%;
    border-radius: 3px;
}

.coming-soon p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* العد التنازلي */
.countdown {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    margin: 0 1rem 1rem;
    text-align: center;
    min-width: 100px;
    padding: 1rem;
    background: rgba(45, 45, 45, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-time), box-shadow var(--transition-time);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.countdown-item span {
    display: block;
}

.countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.countdown-item .label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

/* النشرة الإخبارية */
.newsletter {
    margin: 2.5rem 0;
}

.newsletter p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

form {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

input[type="email"] {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    min-width: 300px;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color var(--transition-time), box-shadow var(--transition-time);
}

input[type="email"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--highlight-color), var(--highlight-secondary));
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform var(--transition-time), box-shadow var(--transition-time);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 68, 211, 0.4);
}

.success-message {
    color: var(--success-color);
    margin-top: 1rem;
    font-weight: 500;
    display: none;
}

/* مؤشر التحميل */
.loading-indicator {
    display: none;
    margin: 1rem auto;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* تنسيق رسالة الخطأ */
.error-message {
    color: var(--error-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--transition-time);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* معلومات الاتصال */
.contact-info {
    margin-top: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-time);
}

.contact-info a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .coming-soon h2 {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 80px;
        margin: 0 0.5rem 1rem;
        padding: 0.7rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.8rem;
    }
    
    input[type="email"] {
        min-width: 100%;
        margin-right: 0;
    }
    
    .container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        margin: 10px;
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .coming-soon h2 {
        font-size: 1.5rem;
    }
    
    .coming-soon p {
        font-size: 1rem;
    }
    
    .countdown {
        margin: 1.5rem 0;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.6rem;
        margin: 0 0.3rem 0.6rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.3rem;
    }
    
    .countdown-item .label {
        font-size: 0.8rem;
    }
    
    .newsletter p {
        font-size: 0.9rem;
    }
    
    input[type="email"] {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
}

/* تحسين للأجهزة الصغيرة جداً */
@media (max-width: 320px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 0.5rem;
        margin: 0 0.2rem 0.5rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.2rem;
    }
    
    .countdown-item .label {
        font-size: 0.7rem;
    }
}

/* تحسين الرؤية للمحتوى على الأجهزة المحمولة */
@media (max-height: 600px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .coming-soon {
        margin-bottom: 1rem;
    }
    
    .countdown {
        margin: 1rem 0;
    }
    
    .newsletter {
        margin: 1rem 0;
    }
}

/* تأثيرات حركية */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.logo h1 {
    animation: float 6s ease-in-out infinite;
}
