*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* شريط التنقل */

header{
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
}

.logo{
    display: flex;
    align-items: center;
    color: white;
}

.logo img{
    width: 50px;
    margin-left: 10px;
}

.nav-links{
    display: flex;
    list-style: none;
}

.nav-links li{
    margin: 0 15px;
}

.nav-links a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.nav-links a:hover{
    color: gold;
}

/* الصفحة الرئيسية */

.hero{
    height: 100vh;
    background: url('images/islamic-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-content{
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.title{
    font-size: 60px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease;
}

.title span{
    color: gold;
    display: block;
    margin-top: 10px;
}

.hero-content p{
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn{
    display: inline-block;
    padding: 15px 40px;
    background: gold;
    color: black;
    text-decoration: none;
    font-size: 20px;
    border-radius: 40px;
    transition: 0.4s;
}

.btn:hover{
    background: white;
    transform: scale(1.1);
}

/* الحركة */

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(50px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* للجوال */

@media(max-width: 768px){

    .navbar{
        flex-direction: column;
    }

    .nav-links{
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .title{
        font-size: 40px;
    }

    .hero-content p{
        font-size: 18px;
    }
}
/* قسم التاريخ الإسلامي */

.history-section{
    padding: 100px 10%;
    background: #111827;
    color: white;
}

.section-title{
    text-align: center;
    font-size: 45px;
    margin-bottom: 60px;
    color: gold;
}

.timeline{
    position: relative;
}

.timeline::before{
    content: "";
    position: absolute;
    right: 50%;
    width: 4px;
    height: 100%;
    background: gold;
    transform: translateX(50%);
}

.timeline-item{
    width: 50%;
    padding: 30px;
    position: relative;
}

.timeline-item:nth-child(odd){
    right: 0;
}

.timeline-item:nth-child(even){
    right: 50%;
}

.timeline-item img{
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.content{
    background: #1f2937;
    padding: 20px;
    border-radius: 15px;
    transition: 0.4s;
}

.content:hover{
    transform: translateY(-10px);
}

.content h3{
    color: gold;
    margin-bottom: 15px;
}

.info-btn{
    padding: 10px 25px;
    border: none;
    background: gold;
    color: black;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.info-btn:hover{
    background: white;
}

.info-box{
    margin-top: 20px;
    display: none;
    line-height: 1.8;
}

.info-box.active{
    display: block;
}

/* للجوال */

@media(max-width: 768px){

    .timeline::before{
        right: 10px;
    }

    .timeline-item{
        width: 100%;
        right: 0 !important;
        padding-right: 40px;
    }

    .section-title{
        font-size: 32px;
    }
}

/* قسم الإنجازات */

.achievements-section{
    padding: 100px 10%;
    background: #111827;
    color: white;
    text-align: center;
}

.achievements-title{
    font-size: 45px;
    color: gold;
    margin-bottom: 70px;
}

/* العدادات */

.stats-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stat-box{
    background: #1f2937;
    padding: 40px 20px;
    border-radius: 20px;
    transition: 0.4s;
}

.stat-box:hover{
    transform: translateY(-10px);
}

.stat-box i{
    font-size: 50px;
    color: gold;
    margin-bottom: 20px;
    animation: float 3s infinite;
}

.stat-box h3{
    font-size: 45px;
    margin-bottom: 10px;
}

.stat-box p{
    font-size: 18px;
}

/* البطاقات */

.science-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 35px;
}

.science-card{
    background: #1e293b;
    padding: 35px 25px;
    border-radius: 20px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.science-card:hover{
    transform: scale(1.05);
}

.icon{
    font-size: 55px;
    color: gold;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.science-card h3{
    font-size: 30px;
    margin-bottom: 15px;
}

.science-card p{
    line-height: 1.9;
    margin-bottom: 25px;
}

/* الدائرة */

.progress-circle{
    width: 120px;
    height: 120px;
    margin: auto;
    border-radius: 50%;
    border: 10px solid gold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
}

/* الحركات */

@keyframes float{

    0%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-10px);
    }

    100%{
        transform: translateY(0);
    }
}

@keyframes pulse{

    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.1);
    }

    100%{
        transform: scale(1);
    }
}

/* للجوال */

@media(max-width:768px){

    .achievements-title{
        font-size: 35px;
    }

    .stat-box h3{
        font-size: 35px;
    }
}

/* قسم العمارة الإسلامية */

.architecture-section{
    padding: 100px 10%;
    background: #0f172a;
    color: white;
    text-align: center;
}

.architecture-title{
    font-size: 45px;
    color: gold;
    margin-bottom: 20px;
}

.architecture-text{
    font-size: 20px;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* السلايدر */

.slider{
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

.slides{
    display: flex;
    transition: transform 0.6s ease;
}

.slide{
    min-width: 100%;
    position: relative;
    display: none;
}

.slide.active{
    display: block;
}

.slide img{
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
}

/* معلومات الصورة */

.slide-info{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    padding: 25px;
    text-align: center;
}

.slide-info h3{
    font-size: 35px;
    color: gold;
    margin-bottom: 10px;
}

.slide-info p{
    font-size: 18px;
}

/* الأزرار */

.slide-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,215,0,0.8);
    border: none;
    color: black;
    font-size: 35px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.slide-btn:hover{
    background: white;
}

.prev{
    right: 20px;
}

.next{
    left: 20px;
}

/* للجوال */

@media(max-width:768px){

    .architecture-title{
        font-size: 35px;
    }

    .slide img{
        height: 350px;
    }

    .slide-info h3{
        font-size: 25px;
    }

    .slide-info p{
        font-size: 16px;
    }
}

/* قسم الاختبارات */

.quiz-section{
    padding: 100px 10%;
    background: #0f172a;
    color: white;
    text-align: center;
}

.quiz-title{
    font-size: 45px;
    color: gold;
    margin-bottom: 20px;
}

.quiz-text{
    font-size: 20px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.quiz-container{
    max-width: 800px;
    margin: auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

#question{
    font-size: 32px;
    margin-bottom: 35px;
    color: gold;
}

/* الإجابات */

.answers{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.answer-btn{
    padding: 18px;
    border: none;
    border-radius: 15px;
    background: #111827;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.answer-btn:hover{
    background: gold;
    color: black;
    transform: scale(1.05);
}

/* النتيجة */

.result-box{
    margin-bottom: 30px;
}

.result-box h3{
    font-size: 30px;
    margin-bottom: 15px;
}

#score{
    color: gold;
}

#result-message{
    font-size: 20px;
}

/* زر التالي */

#next-question{
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    background: gold;
    color: black;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

#next-question:hover{
    background: white;
    transform: scale(1.08);
}

/* للجوال */

@media(max-width:768px){

    .quiz-title{
        font-size: 35px;
    }

    #question{
        font-size: 25px;
    }

    .quiz-container{
        padding: 25px;
    }
}

/* قسم التواصل */

.contact-section{
    padding: 100px 10%;
    background: #0f172a;
    color: white;
    text-align: center;
}

.contact-title{
    font-size: 45px;
    color: gold;
    margin-bottom: 20px;
}

.contact-text{
    font-size: 20px;
    margin-bottom: 60px;
}

/* الحاوية */

.contact-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 40px;
}

/* النموذج */

.contact-form{
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

.contact-form textarea{
    height: 120px;
    resize: none;
}

.contact-form button{
    width: 100%;
    padding: 15px;
    background: gold;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.contact-form button:hover{
    background: white;
}

#form-message{
    margin-top: 10px;
    font-size: 16px;
}

/* الشبكات الاجتماعية */

.social-box{
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
}

.social-box h3{
    margin-bottom: 20px;
    color: gold;
}

.social-box a{
    display: block;
    margin: 10px 0;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-box a:hover{
    color: gold;
}

/* الخريطة */

.map-box{
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
}

.map-box h3{
    margin-bottom: 20px;
    color: gold;
}

.map-box iframe{
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
}

/* للجوال */

@media(max-width:768px){

    .contact-title{
        font-size: 35px;
    }
}


/* قسم العلماء */

.scientists-section{
    padding: 100px 10%;
    background: #0f172a;
    color: white;
    text-align: center;
}

.scientists-title{
    font-size: 45px;
    color: gold;
    margin-bottom: 10px;
}

.scientists-text{
    margin-bottom: 50px;
    font-size: 18px;
    color: #ccc;
}

/* البطاقات */

.scientists-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
}

.scientist-card{
    background: #1e293b;
    padding: 20px;
    border-radius: 15px;
    transition: 0.4s;
}

.scientist-card:hover{
    transform: translateY(-10px);
}

.scientist-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.scientist-card h3{
    margin: 15px 0;
    color: gold;
}

.scientist-card button{
    padding: 10px 20px;
    border: none;
    background: gold;
    cursor: pointer;
    border-radius: 20px;
}

/* النافذة */

.modal{
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content{
    background: white;
    color: black;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close{
    float: left;
    font-size: 30px;
    cursor: pointer;
}

.social-box a{
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #1f2937;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-box a:hover{
    background: gold;
    color: black;
}


/* قسم من نحن */

.about-section{
    padding: 120px 10%;
    background: linear-gradient(to bottom,#0f172a,#111827);
    color: white;
    text-align: center;
}

.about-title{
    font-size: 50px;
    color: gold;
    margin-bottom: 30px;
}

.about-text{
    max-width: 900px;
    margin: auto;
    line-height: 2;
    font-size: 20px;
    color: #d1d5db;
    margin-bottom: 60px;
}

/* المشروع */

.project-box{
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    padding: 35px;
    border-radius: 25px;
    margin-bottom: 70px;
    backdrop-filter: blur(10px);
}

.project-box h3{
    color: gold;
    font-size: 32px;
    margin-bottom: 20px;
}

.project-box p{
    line-height: 1.9;
    color: #e5e7eb;
}

/* الفريق */

.team-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 35px;
}

.team-card{
    background: #1e293b;
    padding: 40px 25px;
    border-radius: 25px;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.team-card::before{
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 250%;
    height: 250%;
    background:
    linear-gradient(
        45deg,
        transparent,
        rgba(255,215,0,0.08),
        transparent
    );

    transform: rotate(25deg);
    transition: 0.8s;
}

.team-card:hover::before{
    top: 100%;
    left: 100%;
}

.team-card:hover{
    transform: translateY(-12px) scale(1.03);
    border-color: gold;
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
}

/* الدائرة */

.circle{
    width: 90px;
    height: 90px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: gold;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

.team-card h3{
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
}

.team-card span{
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}

/* للجوال */

@media(max-width:768px){

    .about-title{
        font-size: 38px;
    }

    .about-text{
        font-size: 18px;
    }

    .project-box h3{
        font-size: 25px;
    }
}

/* قسم الوسائط */

.media-section{
    padding: 120px 10%;
    background:
    linear-gradient(to bottom,#0f172a,#111827);

    color: white;
}

/* الهيدر */

.media-header{
    text-align: center;
    margin-bottom: 80px;
}

.media-title{
    font-size: 50px;
    color: gold;
    margin-bottom: 25px;
}

.media-text{
    max-width: 850px;
    margin: auto;
    line-height: 2;
    color: #d1d5db;
    font-size: 20px;
}

/* التصنيف */

.media-category{
    margin-bottom: 90px;
}

/* عنوان القسم */

.category-title{
    font-size: 35px;
    color: gold;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i{
    font-size: 30px;
}

/* الفيديوهات */

.videos-container{
    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(350px,1fr));

    gap: 35px;
}

/* بطاقة الفيديو */

.video-card{
    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,215,0,0.1);

    border-radius: 25px;

    overflow: hidden;

    transition: 0.5s;

    backdrop-filter: blur(10px);
}

.video-card:hover{
    transform: translateY(-12px);
    border-color: gold;
}

/* الفيديو */

.video-wrapper video{
    width: 100%;
    display: block;
}

/* المحتوى */

.video-content{
    padding: 25px;
}

.video-content h3{
    color: gold;
    margin-bottom: 15px;
    font-size: 28px;
}

.video-content p{
    color: #d1d5db;
    line-height: 1.9;
}

/* الخرائط */

.maps-container{
    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap: 35px;
}

/* بطاقة الخريطة */

.map-card{
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
}

.map-card img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: 0.6s;
}

/* التأثير */

.map-overlay{
    position: absolute;
    inset: 0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.2)
    );

    display: flex;
    flex-direction: column;
    justify-content: end;

    padding: 30px;

    opacity: 0;

    transition: 0.5s;
}

.map-card:hover img{
    transform: scale(1.1);
}

.map-card:hover .map-overlay{
    opacity: 1;
}

/* النص */

.map-overlay h4{
    color: gold;
    margin-bottom: 15px;
    font-size: 28px;
}

.map-overlay p{
    line-height: 1.8;
    color: #f3f4f6;
}

/* الصوتيات */

.audio-card{
    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,215,0,0.1);

    border-radius: 30px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 350px 1fr;

    align-items: center;

    transition: 0.5s;
}

.audio-card:hover{
    transform: translateY(-10px);
    border-color: gold;
}

/* الصورة */

.audio-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* المحتوى */

.audio-content{
    padding: 40px;
}

.audio-content h3{
    color: gold;
    margin-bottom: 20px;
    font-size: 32px;
}

.audio-content p{
    color: #d1d5db;
    line-height: 2;
    margin-bottom: 25px;
}

/* المشغل */

audio{
    width: 100%;
}

/* للجوال */

@media(max-width:768px){

    .media-title{
        font-size: 38px;
    }

    .category-title{
        font-size: 28px;
    }

    .audio-card{
        grid-template-columns: 1fr;
    }

    .audio-image img{
        height: 280px;
    }

}

