:root {
    --primary-dark: #0a1a2d;
    --primary: #0e2a47;
    --primary-light: #1a3a6c;
    --gold: #e9b949;
    --gold-light: #f5d76e;
    --accent: #c36a0d;
    --light: #f5f7fa;
    --dark: #1a1a1a;
    --text: #333;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شاشة التحميل */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo img {
    height: 80px;
    margin-bottom: 30px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    font-size: 1.2rem;
    color: var(--gold-light);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded .page-loader {
    opacity: 0;
    pointer-events: none;
}

/* التصميم العام للأزرار */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(233, 185, 73, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.1rem;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.btn:hover:before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 185, 73, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.btn-outline:before {
    background: var(--gold);
}

.btn-outline:hover {
    color: white;
}

/* العناوين العامة */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--gold), var(--accent));
    border-radius: 3px;
}

.section-title p {
    color: #666;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

/* قسم الإحصائيات */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), #1e3a5f);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') center/cover fixed;
    opacity: 0.15;
}

.stats-section .section-title h2 {
    color: white;
}

.stats-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(233, 185, 73, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.stat-item:hover:before {
    transform: translateX(100%);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(233, 185, 73, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-light);
}

/* قسم الخدمات السريع */
.quick-services {
    padding: 120px 0;
    background: white;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(233, 185, 73, 0.1);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover:before {
    width: 100%;
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(233, 185, 73, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 1.1rem;
}

.service-link:hover {
    gap: 15px;
    color: var(--primary);
}

/* الفوتر */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-column p {
    margin-bottom: 25px;
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--gold);
    gap: 18px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
}

.footer-newsletter input::placeholder {
    color: #ccc;
}

.footer-newsletter input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.footer-newsletter button {
    padding: 0 25px;
    background: var(--gold);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-newsletter button:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 1rem;
}

/* الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 185, 73, 0.7);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(233, 185, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 185, 73, 0);
    }
}

/* تأثيرات التمرير */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}