/* ==========================================
   1. المتغيرات والإعدادات العامة
   ========================================== */
:root {
    --bg-color: #0b0b0b;
    --card-bg: #161616;
    --border-color: #262626;
    --text-color: #e5e5e5;
    --text-muted: #a3a3a3;
    --accent-color: #ffffff;
    --gold-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}


/* ==========================================
   2. الهيدر وشريط التنقل (Header)
   ========================================== */
header {
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover, .highlight-btn {
    color: #fff;
}

.highlight-btn {
    background: #fff;
    color: #000 !important;
    padding: 6px 15px;
    border-radius: 4px;
}


/* ==========================================
   3. الواجهة الرئيسية (Hero Section)
   ========================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), #111;
    min-height: 95vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-logo-large img {
    height: 100px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vision-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #d1d1d1;
    font-style: italic;
    border-right: 3px solid #fff;
    padding-right: 15px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background-color: #fff;
    color: #000;
}

.primary-btn:hover {
    background-color: #cccccc;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.secondary-btn:hover {
    background-color: #fff;
    color: #000;
}


/* ==========================================
   4. الأقسام والخدمات (Sections & Services)
   ========================================== */
.section {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: right;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.service-card i {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.service-card .time {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.special-card {
    grid-column: 1 / -1;
}

.location-note {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gold-color);
    background: rgba(243, 156, 18, 0.05);
    padding: 10px;
    border-radius: 5px;
}


/* ==========================================
   5. المؤتمر والخدام والمتحدثين (Conference)
   ========================================== */
.dark-section {
    background-color: #050505;
}

.badge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.verse-box {
    max-width: 700px;
    margin: 25px auto;
    padding: 20px;
    background: var(--card-bg);
    border-right: 4px solid #fff;
    border-radius: 5px;
    text-align: center;
}

.verse-box p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.verse-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.conf-dates-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.date-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 160px;
}

.date-item .day-name {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.date-item .date-num {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.conf-location {
    margin: 30px auto;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 500px;
}

.conf-location i {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.speakers-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.speaker-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.speaker-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #1f1f1f;
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speaker-info {
    padding: 15px;
}

.speaker-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.speaker-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================
   6. صفحة الإيمان والبطاقات (Faith Section)
   ========================================== */
.faith-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: right;
    margin-top: 30px;
}

.faith-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 10px;
    transition: transform 0.3s, border-color 0.3s;
}

.faith-card:hover {
    transform: translateY(-4px);
    border-color: #555;
}

.faith-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faith-card h3 i {
    color: #fff;
    font-size: 1.1rem;
}

.faith-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================
   7. الأزرار العائمة والفوتر (Floating & Footer)
   ========================================== */
.qr-container {
    max-width: 300px;
    margin: auto;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.qr-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.qr-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.floating-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

.whatsapp-btn { background-color: #25d366; }
.call-btn { background-color: #333; border: 1px solid #555; }

footer {
    background: #000;
    color: var(--text-muted);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}
/* ==========================================
   8. تخصيص الصفحة الرئيسية (Index Page & Slideshow)
   ========================================== */
.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 18s infinite;
}

.bg-slide:nth-child(1) {
    background-image: url('church1.jpg');
    animation-delay: 0s;
}
.bg-slide:nth-child(2) {
    background-image: url('church2.jpg');
    animation-delay: 6s;
}
.bg-slide:nth-child(3) {
    background-image: url('church3.jpg');
    animation-delay: 12s;
}

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 2;
    margin: auto;
}

/* تصحيح حجم الشعار المتحرك ليظهر بشكل متناسق ومقبول */
.welcome-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 15px rgba(77, 175, 247, 0.8));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.welcome-content h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    font-weight: 700;
}

.welcome-content h2 {
    font-size: 1.1rem;
    color: #d4d4d4;
    margin-bottom: 20px;
    font-weight: 400;
    direction: ltr;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.welcome-content p {
    color: #e5e5e5;
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
}

.lang-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(5px);
}

.btn-ar {
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.btn-ar:hover {
    background: rgba(29, 78, 216, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-en {
    background: rgba(22, 22, 22, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.btn-en:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}
/* ==========================================
   9. تخصيصات الصفحة العربية والواجهة (ar.html)
   ========================================== */
.ar-bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.ar-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: arSlideAnimation 30s infinite;
}

.ar-slide:nth-child(1) { background-image: url('church4.jpg'); animation-delay: 0s; }
.ar-slide:nth-child(2) { background-image: url('church5.jpg'); animation-delay: 6s; }
.ar-slide:nth-child(3) { background-image: url('church6.jpg'); animation-delay: 12s; }
.ar-slide:nth-child(4) { background-image: url('church7.jpg'); animation-delay: 18s; }
.ar-slide:nth-child(5) { background-image: url('church8.jpg'); animation-delay: 24s; }

@keyframes arSlideAnimation {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; }
    24% { opacity: 1; }
    32% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.ar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.ar-hero-text h2, .ar-hero-text p, .hero h1, .hero h2, .vision-text {
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.service-card {
    background: rgba(15, 15, 15, 0.35) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    text-decoration: none !important;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 15, 15, 0.55) !important;
    border-color: rgba(77, 171, 247, 0.5);
}

.service-card h3, .service-card p, .service-card span, .service-card i {
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

#contact {
    background: transparent !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-clean-img {
    max-width: 190px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    display: inline-block;
    padding: 8px;
    background: #ffffff;
}

/* النافذة المنسدلة (Modal) */
#under-construction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.95));
    border: 1px solid rgba(77, 171, 247, 0.4);
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    transform: scale(0.7) translateY(30px);
    animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPopIn {
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-icon-glow {
    font-size: 3.8rem;
    color: #4dabf7;
    margin-bottom: 20px;
}

.modal-btn {
    background: linear-gradient(135deg, #4dabf7, #228be6);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.05rem;
}

/* الشريط العلوي وتجاوب الشاشات */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    width: 100%;
    box-sizing: border-box;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

#menu-toggle { display: none !important; }
#nav-menu { display: block !important; position: static !important; width: auto !important; background: transparent !important; box-shadow: none !important; }
#nav-menu ul { display: flex !important; list-style: none !important; gap: 18px !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
#nav-menu ul li a { font-size: 0.9rem; white-space: nowrap; }

@media (max-width: 1200px) {
    #menu-toggle { display: block !important; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
    #nav-menu { display: none !important; position: absolute !important; top: 100% !important; right: 0 !important; width: 100% !important; background: rgba(15, 15, 15, 0.95) !important; backdrop-filter: blur(10px); padding: 20px 0; z-index: 1000; box-shadow: 0 10px 25px rgba(0,0,0,0.8); }
    #nav-menu.active { display: block !important; }
    #nav-menu ul { flex-direction: column !important; gap: 15px !important; text-align: center !important; }
}
