/* ========================================
   المؤشرات التعبدية - نظام التصميم المحسّن
   ======================================== */

:root {
    /* الألوان الأساسية */
    --primary-color: #2D6A6A;
    --primary-light: #3D8A8A;
    --primary-dark: #1E3D3D;
    --secondary-color: #D4AF37;
    --secondary-light: #E4BF47;
    --accent-color: #BC9A6C;

    /* ألوان الخلفية */
    --bg-cream: #FAF7F2;
    --bg-white: #FFFFFF;
    --bg-light: #F3F8F8;
    --bg-gradient: linear-gradient(135deg, #FAF7F2 0%, #F0EDE8 100%);

    /* ألوان النصوص */
    --text-primary: #2D6A6A;
    --text-secondary: #8D8370;
    --text-tertiary: #BCB4A6;
    --text-dark: #333333;

    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(45, 106, 106, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 106, 106, 0.12);
    --shadow-lg: 0 10px 30px rgba(45, 106, 106, 0.15);
    --shadow-xl: 0 20px 40px rgba(45, 106, 106, 0.2);

    /* الانتقالات */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    position: relative;
}

/* خلفية متحركة بسيطة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 106, 106, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   الحاوية الرئيسية
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   الترويسة (Hero Section) - تصميم جديد
   ======================================== */

header.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* ترويسة الصفحات الفرعية */
header.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

header.hero-section::before,
header.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(188, 154, 108, 0.15) 0%, transparent 50%);
    animation: headerPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

header.hero-section::after,
header.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
    pointer-events: none;
}

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 0 16px rgba(255, 255, 255, 0.05);
    animation: float 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

header.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

header.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: right;
    padding-left: 20px;
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    color: var(--secondary-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: right;
}

.stat-number {
    color: var(--secondary-light);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-logo {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -10%;
    right: -10%;
    animation: pulse 4s infinite alternate;
}

.hero-decoration-2 {
    width: 350px;
    height: 350px;
    background: var(--primary-light);
    bottom: -10%;
    left: -20%;
    animation: pulse 5s infinite alternate-reverse;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    header.hero-section {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        text-align: center;
        padding-left: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item {
        text-align: center;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }
}

/* ========================================
   التنقل (Navigation) - محسّن
   ======================================== */

nav {
    background: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

nav.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 25px;
    display: block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

nav a:hover::before {
    width: 100%;
    right: 0;
}

nav a:hover {
    color: var(--primary-color);
    background: linear-gradient(to bottom, transparent, rgba(45, 106, 106, 0.05));
    transform: translateY(-2px);
}

/* ========================================
   المحتوى الرئيسي
   ======================================== */

main {
    padding: 80px 20px;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

.content-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 106, 106, 0.08);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(45, 106, 106, 0.15);
}

h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border-radius: 3px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0 20px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
}

ul,
ol {
    margin: 25px 0;
    padding-right: 30px;
}

li {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.9;
}

strong {
    color: var(--primary-color);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md), 0 0 0 8px rgba(45, 106, 106, 0.1);
    transition: var(--transition);
}

/* ========================================
   تنسيقات التذييل (Footer)
   ======================================== */
footer {
    background: var(--primary-dark);
    padding: 80px 20px 40px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px auto;
    max-width: 600px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ========================================
   تحسين تجربة الجوال (Mobile UX Optimization)
   ======================================== */
@media (max-width: 768px) {
    main {
        padding: 40px 15px;
    }

    .content-card {
        padding: 25px 20px;
        border-radius: 20px;
        margin-bottom: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    h2::after {
        width: 60px;
        height: 3px;
    }

    h3 {
        font-size: 1.3rem;
        margin: 25px 0 15px;
    }

    p {
        font-size: 1rem;
        line-height: 1.8;
    }

    ul,
    ol {
        padding-right: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .feature-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    /* أزرار الموبايل */
    .btn {
        padding: 12px 30px;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* صناديق المعلومات */
.info-box {
    background: rgba(212, 175, 55, 0.05);
    border-right: 4px solid var(--secondary-color);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

@keyframes pulse {
    from {
        opacity: 0.4;
        transform: scale(1);
    }

    to {
        opacity: 0.6;
        transform: scale(1.1);
    }
}