﻿/* ========= layout.css ========= */
/* === Dashboard Stat Cards === */
  body {
            font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            direction: rtl;
            overflow-x: hidden;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)), url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"%3E%3Cpolygon fill="rgba(255,255,255,0.1)" points="0,0 1000,0 1000,50 0,100"/%3E%3C/svg%3E');
            padding: 80px 0;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/%3E%3C/svg%3E') repeat;
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateX(0px) translateY(0px);
            }

            50% {
                transform: translateX(-10px) translateY(-10px);
            }

            100% {
                transform: translateX(0px) translateY(0px);
            }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: slideDown 1s ease-out;
        }

        .hero .lead {
            font-size: 1.3rem;
            margin-bottom: 30px;
            opacity: 0.95;
            animation: slideUp 1s ease-out 0.3s both;
        }

        .btn-hero {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            padding: 15px 40px;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
            animation: slideUp 1s ease-out 0.6s both;
        }

        .btn-hero:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
            color: white;
            text-decoration: none;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

       



        .btn-feature {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .btn-feature:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            color: white;
            text-decoration: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero .lead {
                font-size: 1.1rem;
            }

            .cards-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .hero {
                padding: 60px 0;
            }

            .dashboard-section {
                padding: 60px 0;
            }

            .features-section {
                padding: 60px 0;
            }
        }

        /* Loading Animation */
        .fade-in {
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scroll animations */
        .scroll-animate {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .scroll-animate.visible {
            opacity: 1;
            transform: translateY(0);
        }
        /* Cards Grid */
         /* Dashboard Cards Section */
        .dashboard-section {
            padding: 80px 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            margin-top: -50px;
            position: relative;
            z-index: 3;
            border-radius: 30px 30px 0 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            border-radius: 2px;
        }
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .stat-card {
            background: white !important;
            border-radius: 20px!important;
            padding: 30px!important;
            text-align: center !important;
            position: relative !important;
            overflow: hidden !important;
            transition: all 0.4s ease !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;

        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .stat-card.blue {
            --card-gradient: linear-gradient(45deg, #3498db, #2980b9);
        }

        .stat-card.orange {
            --card-gradient: linear-gradient(45deg, #e67e22, #d35400);
        }

        .stat-card.green {
            --card-gradient: linear-gradient(45deg, #2ecc71, #27ae60);
        }

        .stat-card.red {
            --card-gradient: linear-gradient(45deg, #e74c3c, #c0392b);
        }

        .stat-card.purple {
            --card-gradient: linear-gradient(45deg, #9b59b6, #8e44ad);
        }

        .stat-card.yellow {
            --card-gradient: linear-gradient(45deg, #f1c40f, #f39c12);
        }

        .stat-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            background: var(--card-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        .stat-title {
            font-size: 1.2rem;
            color: #34495e;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            background: var(--card-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Features Section */
        .features-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 80px 0;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
        }

        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            transition: all 0.6s ease;
            opacity: 0;
        }

        .feature-card:hover::before {
            animation: shine 0.6s ease-in-out;
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
                opacity: 0;
            }

            50% {
                opacity: 1;
            }

            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
                opacity: 0;
            }
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        }

        .feature-card h2 {
            color: #2c3e50;
            font-size: 1.8rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .feature-card p {
            color: #5a6c7d;
            line-height: 1.6;
            margin-bottom: 25px;
            font-size: 1.1rem;
        }
/* Media Queries للجوال */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .section-card {
        margin: 0 10px 30px 10px;
        padding: 20px;
    }

    .page-header {
        text-align: center;
        margin-bottom: 50px;
        color: white;
    }

        .page-header h1 {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .page-header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

    .section-title {
        text-align: center;
        margin-bottom: 30px;
        position: relative;
    }

        .section-title h3 {
            color: #2c3e50;
            font-weight: bold;
            display: inline-block;
            padding: 0 20px;
            background: white;
            position: relative;
            z-index: 2;
        }

        .section-title::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent 0%, #3498db 20%, #3498db 80%, transparent 100%);
            z-index: 1;
        }

    .stats-card {
        background: rgba(255,255,255,0.1);
        border-radius: 15px;
        padding: 20px;
        text-align: center;
        color: white;
        margin-bottom: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .stats-number {
        font-size: 2.5rem;
        font-weight: bold;
        display: block;
    }

    .stats-label {
        font-size: 1rem;
        opacity: 0.9;
    }
    /* Media Queries للجوال */
    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }



        .section-card {
            margin: 0 10px 30px 10px;
            padding: 20px;
        }
    }

    @media (max-width: 576px) {
        .page-header h1 {
            font-size: 1.8rem;
        }

        .section-card {
            margin: 0 5px 20px 5px;
            padding: 15px;
        }
    }
}
   /* ============================= */
/* 🌟 HERO SECTION (البانر العلوي) */
/* ============================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #3a0ca3, #4361ee, #4cc9f0);
    color: white;
    text-align: center;
    padding: 120px 20px 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeSlideUp 1.5s ease;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero p.lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: #3a0ca3;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    background: #4cc9f0;
    color: white;
    transform: translateY(-3px);
}

/* ============================= */
/* 📊 DASHBOARD SECTION */
/* ============================= */
.dashboard-section {
    background: #f9f9fb;
    padding: 80px 0;
}

.dashboard-section .section-title {
    text-align: center;
    color: #3a0ca3;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.dashboard-section .section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3a0ca3, #4cc9f0);
    display: block;
    margin: 10px auto 0;
    border-radius: 5px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* حركة الدخول للكروت */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

/* ============================= */
/* 🚀 FEATURES SECTION */
/* ============================= */
.features-section {
    background: linear-gradient(180deg, #ffffff, #f4f7ff);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 5px solid #3a0ca3;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-card h2 {
    color: #3a0ca3;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-feature {
    display: inline-block;
    background: linear-gradient(135deg, #3a0ca3, #4cc9f0);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-feature:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #4cc9f0, #3a0ca3);
}

/* ============================= */
/* 🎬 ANIMATIONS */
/* ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p.lead {
        font-size: 1rem;
    }
    .features-grid {
        gap: 25px;
    }
} 
