/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #083B66;
    --primary-teal: #00A7B4;
    --primary-gold: #C8A14F;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-gold) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, #0a4d7a  50%, var(--primary-teal) 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--gradient-hero);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Morphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
 

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h2 {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(0,167,180,0.1)"/><stop offset="100%" style="stop-color:rgba(0,167,180,0)"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="100" fill="url(%23a)"/><circle cx="600" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =================================================================== */
/* تطبيق تأثير العنوان المضيء والمتحرك على قسم CTA                  */
/* =================================================================== */

.cta-section h2 {
    /* إعداد التدرج اللوني ليكون أعرض من النص */
    background: linear-gradient(110deg, 
        var(--white, #fff) 30%, 
        var(--accent-gold, #C8A14F) 50%, 
        var(--white, #fff) 70%
    );
    background-size: 200% 100%;
    
    /* تطبيق التدرج كخلفية للنص */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* استدعاء الأنيميشن */
    animation: shimmer-text-light 5s linear infinite;
}

/* * ملاحظة: إذا كان تعريف @keyframes shimmer-text-light 
 * موجودًا بالفعل في ملفك من المرة السابقة، فلا حاجة لتكراره.
 */
@keyframes shimmer-text-light {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* تنسيق أيقونة الهيرو لضمان الحجم واللون المناسبين */
.search-icon .fas {
    font-size: 3rem;  /* يمكنك تعديل هذا الرقم لتكبير أو تصغير الأيقونة */
    color: var(--accent-gold, #C8A14F); /* استخدام اللون الذهبي المميز في القالب */
    line-height: 1; /* لمنع أي مسافات إضافية غير مرغوبة */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(200, 161, 79, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 161, 79, 0.4);
}

.cta-button.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid var(--glass-border);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.card-content {
    text-align: center;
    color: var(--white);
}

.search-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 10px;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 95%; }
    100% { width: 95%; }
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Grid Layouts */
.problems-grid,
.services-grid,
.features-grid,
.benefits-grid,
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Cards */
.problem-card,
.service-card,
.feature-card,
.benefit-card,
.audience-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--white);
}

.problem-card:hover,
.service-card:hover,
.feature-card:hover,
.benefit-card:hover,
.audience-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.problem-icon,
.service-icon,
.feature-icon,
.benefit-icon,
.audience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-card h3,
.service-card h3,
.feature-card h3,
.benefit-card h3,
.audience-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.problem-card p,
.service-card p,
.feature-card p,
.benefit-card p,
.audience-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* FAQ Section */
.faq {
    background: rgba(8, 59, 102, 0.1);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .problems-grid,
    .services-grid,
    .features-grid,
    .benefits-grid,
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    



    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

 
/* تحسين أيقونة قسم الدعوة لاتخاذ إجراء */
.cta-section .cta-icon {
    font-size: 3.5rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: all 0.4s ease-in-out;
    display: inline-block;
    transform-origin: center;
    animation: floatIcon 3s ease-in-out infinite;
}

/* تأثير التمرير (Hover) */
.cta-section .cta-button:hover ~ .cta-icon,
.cta-section .cta-icon:hover {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color); /* تغيير اللون عند التمرير */
    animation: none; /* إيقاف الحركة أثناء التمرير */
}

/* تأثير الحركة التلقائية */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* للشاشات الكبيرة */
@media (min-width: 992px) {
    .cta-content-wrapper {
        display: flex;
        align-items: center;
        text-align: right;
        gap: 2rem;
    }
    .cta-icon {
        margin-bottom: 0;
        font-size: 4.5rem;
    }
}


}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
 

    .section-title {
        font-size: 1.8rem;
    }
    
    .glass-card,
    .problem-card,
    .service-card,
    .feature-card,
    .benefit-card,
    .audience-card {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hero-visual,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card,
    .problem-card,
    .service-card,
    .feature-card,
    .benefit-card,
    .audience-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
/* =================================================================== */
/* تحسين تفاعل وحركة الأيقونات (UX/UI Enhanced)                     */
/* =================================================================== */

/* 1. تصميم الأيقونة الأساسي مع تجهيزه للحركة */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    /* تصحيح خطأ في صياغة المتغيرات */
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold));
    color: var(--white);
    font-size: 2.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 167, 180, 0.2);
    /* تحسين الأداء باستخدام will-change */
    will-change: transform, box-shadow;
    /* استخدام transition محسن للأداء */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease,
                background 0.5s ease;
    /* إضافة تأثير اللمعان */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* إضافة تأثير لمعان خفيف */
.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

/* 2. تأثير الحركة عند مرور الماوس فوق البطاقة */
.content-card:hover .card-icon {
    /* تطبيق الأنيميشن */
    animation: icon-bounce 0.8s ease;
    /* زيادة الظل ليتناسب مع الحركة */
    box-shadow: 0 15px 30px rgba(0, 167, 180, 0.3);
    /* تغيير بسيط في التدرج لجعل الأيقونة أكثر حيوية */
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-gold));
}

/* تفعيل تأثير اللمعان عند التحويم */
.content-card:hover .card-icon::before {
    left: 100%;
}

/* 3. تعريف الأنيميشن "icon-bounce" المحسن */
@keyframes icon-bounce {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    30% {
        transform: translateY(-15px) scale(1.1) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) scale(1.15) rotate(-5deg);
    }
    70% {
        transform: translateY(-15px) scale(1.1) rotate(3deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* 4. (جديد) تأثير النبض للحفاظ على انتباه المستخدم */
@keyframes icon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 167, 180, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 167, 180, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 167, 180, 0);
    }
}

/* تطبيق تأثير النبض على الأيقونة عند التحويم */
.content-card:hover .card-icon {
    animation: icon-bounce 0.8s ease, icon-pulse 1.5s infinite 0.8s;
}

/* 5. (جديد) تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* تقليل حركة الأيقونة على الأجهزة المحمولة للأداء */
    .content-card:hover .card-icon {
        animation: icon-bounce 0.7s ease;
    }
}

/* 6. (جديد) دعم وضع تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .card-icon {
        transition: none;
        animation: none;
    }
    
    .content-card:hover .card-icon {
        transform: scale(1.05);
        animation: none;
    }
}

/* 7. (جديد) تأثير إضافي عند النقر على الأيقونة */
.card-icon:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(0, 167, 180, 0.2);
}

/* 8. (جديد) تحسينات للطباعة */
@media print {
    .card-icon {
        background: linear-gradient(135deg, var(--primary-teal), var(--primary-gold)) !important;
        box-shadow: none !important;
        animation: none !important;
    }
}


/* =================================================================== */
/* تطبيق تأثير العنوان المضيء والمتحرك على قسم الهيرو                */
/* =================================================================== */

.hero-title {
    /* إعداد التدرج اللوني ليكون أعرض من النص */
    background: linear-gradient(110deg, 
        var(--white, #fff) 40%, 
        var(--accent-gold, #C8A14F) 50%, 
        var(--white, #fff) 60%
    );
    background-size: 250% 100%;
    
    /* تطبيق التدرج كخلفية للنص */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* استدعاء الأنيميشن */
    animation: shimmer-hero-title 8s linear infinite;
}

/* تعريف حركة التوهج (الأنيميشن) للعنوان الرئيسي */
@keyframes shimmer-hero-title {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}