/* Variables - ألوان الهوية البصرية */
@import url('layout.css');
@import url('responsive.css');

:root {
    --primary: #552F91;
    --primary-light: #9154B5;
    --secondary: #27B67B;
    --accent: #01C2F3;
    
    --bg-main: #FFFFFF;
    --bg-secondary: #F5F5F5;
    
    --text-main: #323131;
    --text-muted: #6B7280;
    
    --success: #27B67B;
    --danger: #EF4444;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(85, 47, 145, 0.08);
    --shadow-lg: 0 20px 40px rgba(85, 47, 145, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ربط خط STC */
@font-face {
    font-family: 'STC';
    src: url('../fonts/STC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'STC';
    src: url('../fonts/STC-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'STC';
    src: url('../fonts/STC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'STC';
    src: url('../fonts/STC-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'STC';
    src: url('../fonts/STC-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'STC', sans-serif; /* الخط الأساسي */
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'STC', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(85, 47, 145, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(85, 47, 145, 0.4);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #00AEE0);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 194, 243, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 194, 243, 0.4);
}

/* Header & Navbar */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 15px;
}

/* إخفاء أزرار تسجيل الدخول المخصصة للجوال في وضع الشاشات الكبيرة */
.mobile-auth-buttons {
    display: none;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

/* خلفية جمالية بالمنحنيات */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(145, 84, 181, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 182, 123, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary);
}

.hero-text h1 span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(1, 194, 243, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* بطاقة إحصائيات عائمة */
.floating-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(39, 182, 123, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.floating-text h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.floating-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Services Categories */
.services {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    color: white;
}

.service-card:hover::before {
    height: 100%;
    opacity: 1;
}

.service-card:hover p,
.service-card:hover h3,
.service-card:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* How it works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* الخط الواصل بين الخطوات */
.steps-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right, var(--primary) 50%, rgba(85, 47, 145, 0.2) 50%);
    background-size: 20px 100%;
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 250px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    box-shadow: 0 0 0 10px rgba(85, 47, 145, 0.1);
    transition: var(--transition);
}

.step-item:hover .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

    /* Statistics Section */
    .statistics {
        padding: 80px 0;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        text-align: center;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--accent);
    }

    .stat-number {
        font-size: 3rem;
        font-weight: 900;
        margin-bottom: 5px;
    }

    /* Features Section */
    .features {
        padding: 100px 0;
        background-color: var(--bg-main);
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .feature-card {
        display: flex;
        gap: 20px;
        padding: 30px;
        background-color: var(--bg-secondary);
        border-radius: var(--border-radius-md);
        transition: var(--transition);
        border: 1px solid transparent;
    }

    .feature-card:hover {
        background-color: white;
        box-shadow: var(--shadow-sm);
        border-color: rgba(85, 47, 145, 0.1);
        transform: translateY(-5px);
    }

    .feature-icon {
        font-size: 2rem;
        color: var(--secondary);
        width: 60px;
        height: 60px;
        background-color: rgba(39, 182, 123, 0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .feature-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .feature-content p {
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 100px 0;
        background-color: var(--bg-secondary);
        overflow: hidden;
    }

    .testimonials-marquee {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 20px 0;
    }

    .testimonials-track {
        display: flex;
        gap: 30px;
        width: max-content;
        /* الحركة مستمرة وبطيئة */
        animation: scrollTestimonials 30s linear infinite;
    }

    /* إيقاف الحركة عند تأشير الماوس ليقرأ المستخدم التقييم براحته */
    .testimonials-track:hover {
        animation-play-state: paused;
    }

    .testimonial-card {
        width: 350px;
        flex-shrink: 0;
        background-color: white;
        padding: 40px 30px;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }

    @keyframes scrollTestimonials {
        0% { transform: translateX(0); }
        /* القيمة موجبة لأن اتجاه الموقع RTL */
        100% { transform: translateX(calc(350px * 3 + 30px * 3)); }
    }

    .testimonial-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-5px);
    }

    .testimonial-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .user-info {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        background-color: var(--bg-secondary);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        color: var(--text-muted);
    }

    .user-details h4 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--primary);
    }

    .user-details span {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .rating {
        color: #F59E0B; /* ذهبي للنجوم */
        font-size: 0.9rem;
    }

    .testimonial-text {
        color: var(--text-main);
        font-style: italic;
        line-height: 1.8;
    }

/* ================== Pages Styles ================== */

/* Page Header (Common) */
.page-header {
    padding: 170px 0 130px;
    /* تدرج يتلاشى بسلاسة مع خلفية الصفحة لدمج احترافي ومستمر بدون انفصال */
    background: linear-gradient(180deg, var(--primary) 0%, #3a1563 75%, var(--bg-main) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none; /* إزالة الخط بالكامل وتعرية التدرج */
}

/* إضافة أشكال عائمة بالخلفية لكسر الجمود */
.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(39, 182, 123, 0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 50px; /* مرفوعة للأعلى لكي لا تظهر فوق منطقة التلاشي السفلية */
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(85, 47, 145, 0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1; /* عشان يكون فوق الأشكال العائمة */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* About Page */
.about-content {
    padding: 60px 0 100px; /* تم تقليل المسافة العلوية ليتصل المحتوى بالتدرج بسلاسة */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-main);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
    padding: 60px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(39, 182, 123, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 1.1rem;
}

.info-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.15); /* Darker border for better visibility */
    background-color: #fbfbfb; /* Slight contrast from pure white */
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85, 47, 145, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

/* FAQ Page */
.faq-section {
    padding: 60px 0 100px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--primary);
    transition: var(--transition);
    text-align: right;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question i {
    color: var(--secondary);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    color: var(--text-muted);
    line-height: 1.8;
    opacity: 0;
}

.faq-answer.active {
    padding: 0 30px 25px;
    opacity: 1;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1A1A1A;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p {
    color: #999;
    margin: 20px 0;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* زر قائمة الجوال (مخفي افتراضياً) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-auth {
        display: none; /* إخفاء أزرار الدخول في الآيباد واستبدالها بالقائمة */
    }
    
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block; /* إظهار زر الهامبرجر */
    }

    /* قائمة الجوال (Side Menu) */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .nav-links.active a::after {
        display: none; /* إخفاء الخط السفلي للتأثير في قائمة الجوال */
    }

    /* أزرار تسجيل الدخول بداخل القائمة للشاشات الصغيرة */
    .mobile-auth-buttons {
        display: block; /* إظهار الأزرار في الجوال */
        padding: 20px;
        margin-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    /* Hero section adjustments for mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .floating-card {
        right: 10%;
        bottom: -20px;
    }

    .steps-container {
        flex-direction: column;
        gap: 50px;
    }

    .steps-line {
        display: none;
    }
/* ================== Auth Pages Styles ================== */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.auth-sidebar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #46227a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(39, 182, 123, 0.3) 0%, transparent 60%);
    border-radius: 50%;
}

.auth-sidebar-content {
    position: relative;
    z-index: 1;
}

.auth-sidebar h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.auth-sidebar p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.auth-content {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-card h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
}

/* ================== Dashboard Styles ================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.sidebar {
    width: 280px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: var(--text-main);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.sidebar-menu a i {
    width: 24px;
    margin-left: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(85, 47, 145, 0.05);
    color: var(--primary);
    border-right-color: var(--primary);
}

.sidebar-menu a:hover i, .sidebar-menu a.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.main-content {
    flex: 1;
    margin-right: 280px; /* نفس عرض السايدبار */
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: 80px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-small {
    width: 45px;
    height: 45px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.content-wrapper {
    padding: 40px;
    flex: 1;
}

.page-title {
    margin-bottom: 30px;
    color: var(--primary);
}

.card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

/* Dashboard Cards Grid */
.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dash-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* حالة الطلبات */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-pending { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-active { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.status-completed { background: rgba(39, 182, 123, 0.1); color: var(--secondary); }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-icons {
        justify-content: center;
    }

    .testimonials-track {
        /* إيقاف الحركة التلقائية في الجوال لو كانت تسبب مشاكل واستبدالها بسكرول عادي */
        width: max-content;
    }
    
    .testimonial-card {
        width: 300px;
    }
    
    /* رسيپونسف الصفحات الفرعية */
    .page-header {
        padding: 140px 0 90px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form form div[style] {
        grid-template-columns: 1fr !important; /* تحويل الأعمدة إلى عمود واحد في الموبايل */
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 20px;
    }

    .faq-answer.active {
        padding: 0 20px 20px;
    }

    /* Auth Responsive */
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-sidebar {
        padding: 40px 20px;
        text-align: center;
    }
    
    .auth-card {
        padding: 30px 20px;
    }

    /* Dashboard Responsive */
    .sidebar {
        transform: translateX(100%); /* مخفي افتراضياً في الجوال */
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .top-navbar {
        padding: 0 20px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}

/* Animations added by main.js */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

