/* القواعد الأساسية */
:root {
    --primary-color: #1a5276; /* أزرق بحري */
    --secondary-color: #2980b9; /* أزرق فاتح */
    --accent-color: #c0392b; /* أحمر */
    --bg-color: #f9f9f9; /* خلفية فاتحة */
    --text-color: #333; /* نص غامق */
    --dark-grey: #424949; /* رمادي غامق */
    --light-grey: #ecf0f1; /* رمادي فاتح */
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* الوضع الليلي */
[data-theme="dark"] {
    --primary-color: #2980b9; /* أزرق أفتح */
    --secondary-color: #3498db; /* أزرق فاتح أكثر */
    --bg-color: #1a1a1a; /* خلفية داكنة */
    --text-color: #f9f9f9; /* نص فاتح */
    --light-grey: #333; /* رمادي داكن */
    --dark-grey: #ccc; /* رمادي فاتح */
    --shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

/* إعادة ضبط عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* قائمة التنقل */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle, .menu-toggle {
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover, .menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
}

/* الصفحة الرئيسية - قسم البطل */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* قسم المقدمة */
.intro-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.intro-text {
    flex: 2;
}

.intro-text ul {
    list-style: disc;
    padding-right: 2rem;
}

.intro-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* قسم الاستكشاف */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-grey);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-link {
    margin-top: auto;
    padding: 0.7rem 1.5rem;
    background-color: var(--light-grey);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.feature-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* قسم الإحصائيات */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.circular-chart {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.background {
    fill: none;
    stroke: var(--light-grey);
    stroke-width: 3.8;
}

.progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3.8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1s ease;
}

.progress.danger {
    stroke: var(--accent-color);
}

.progress.warning {
    stroke: #f39c12;
}

.percentage {
    fill: var(--text-color);
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    dominant-baseline: central;
    font-weight: bold;
}

/* قسم الشهادات */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonials .section-title::after {
    background-color: var(--white);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 0 2rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '\201C'; /* opening quote */
    font-size: 4rem;
    position: absolute;
    top: -2rem;
    right: -1rem;
    opacity: 0.3;
}

.testimonial-author {
    font-style: italic;
    opacity: 0.8;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
}

/* قسم النداء للمشاركة */
.call-to-action {
    text-align: center;
    background-color: var(--light-grey);
    padding: 5rem 0;
}

.cta-buttons {
    margin: 2rem 0;
}

.social-share {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

/* تذييل الصفحة */
.footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section.links ul li {
    margin-bottom: 0.8rem;
}

.footer-section.links ul li a {
    color: #ddd;
    transition: var(--transition);
}

.footer-section.links ul li a:hover {
    color: var(--white);
    padding-right: 8px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-section.contact p i {
    margin-left: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.accessibility-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.accessibility-button i {
    margin-left: 0.5rem;
}

.accessibility-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* تحريكات CSS */
@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 screen and (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button.secondary {
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

