/* Global Styles: Set up the design identity */
body {
    font-family: 'Poppins', 'Segoe UI', 'Noto Sans Arabic', sans-serif; /* Primary font with RTL fallback */
    background-color: #180F52; /* Dark navy background */
    color:  #F1EFFB; /* High contrast white text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    direction: ltr; /* Default LTR; override with .rtl class */
}

/* Loader Overlay */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 1rem;
    background: #09061e;
    color: #F1EFFB;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 180px;
    height: auto;
    animation: loader-pulse 1.8s ease-in-out infinite;
}

.loader-skeleton {
    width: 280px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s linear infinite;
}

.loader-skeleton.short {
    width: 180px;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.85; }
}

.rtl {
    direction: rtl; /* RTL support */
    text-align: right; /* Adjust text alignment */
}

.rtl nav ul {
    direction: rtl;
}

/* Header Styles */
header {
    background-color:#09061e;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* حجم اللوجو */
header .logo img {
    height: 50px;       /* ارتفاع الصورة */
    width: auto;        /* يخلي العرض يتناسب مع الارتفاع */
    display: block;     /* يتجنب مشاكل الفراغات حول الصورة */
}

/* لو عايز الصورة تتوسّط شويه مع قائمة التنقل */
header .logo {
    display: flex;
    align-items: center;
}


nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color:#F1EFFB;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffffff;
}

#menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #F1EFFB; /* Accent color for button */
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-switcher {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #F1EFFB;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    margin-left: 1rem;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.rtl .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

/* -------------------------hero section */
.hero {
  padding-top: 200px;
  position: relative;
  text-align: center;
  padding: 120px 20px;
  color: #fff;
  background-image: url('assest/image/hero.png'); /* ضع هنا مسار الصورة */
  background-size: cover;        /* تغطي كامل المساحة */
  background-position: center;   /* توسيط الصورة */
  background-repeat: no-repeat;  /* عدم تكرار الصورة */
}

/* طبقة شفافة فوق الصورة لتحسين وضوح النص */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 36, 0.6); /* تظليل خفيف */
  z-index: 0;
}

/* علشان النص يكون فوق التظليل */
.hero h1,
.hero p,
.hero .cta-button {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  color: #F1EFFB;
  margin-bottom: 25px;
}


/* Section Styles */
section {
    padding: 4rem 2rem;
    text-align: center;
}

h1, h2 {
    color: #F1EFFB; /* Accent color for headings */
    margin-bottom: 1rem;
}

.cta-button {
    background-color:#180F52; /* Accent color */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #8754FE; /* Slightly darker accent */
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
    align-items: center;
    
}

.services-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    justify-items: center;
    align-items: stretch;
}

.service-card {
    width: 90%;
    max-width: 360px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for cards */
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card.featured {
    width: 100%;
    max-width: 720px;
    padding: 2rem 2rem;
    background-color: rgba(135, 84, 254, 0.15);
    border: 1px solid rgba(135, 84, 254, 0.35);
    box-shadow: 0 18px 30px rgba(135, 84, 254, 0.22);
    transform: translateY(-5px);
}

.service-card:hover {
    background-color: #8754FE;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: translateY(-5px) scale(1.03);
}

@media (max-width: 1024px) {
    .service-card.featured {
        max-width: 100%;
    }
}

@media (max-width: 780px) {
    .services-secondary-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 100%;
    }
}

.service-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1.2rem;
    /* تحسين شكل GIF */
    mix-blend-mode: screen;    /* يقلل الأبيض     */
    filter: invert(1)   hue-rotate(250deg);    /* يضيف لمسة ألوان */
  
}


/* بيدج ال service  */
.page-services {
    font-family: 'Poppins', 'Segoe UI', 'Noto Sans Arabic', sans-serif; /* Primary font with RTL fallback */
    background-color: #180F52; /* Dark navy background */
    color:  #F1EFFB; /* High contrast white text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    direction: ltr; /* Default LTR; override with .rtl class */
}

.services-hero {
    text-align: center;
    padding: 4rem 2rem;
}

.service-detail {
    text-align: center;
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-icon img {
    width: 170px;          /* حجم موحد للعرض */
    height: 280px;         /* حجم موحد للارتفاع */
    object-fit: cover;     /* يحافظ على النسبة ويقص الصورة إذا لزم */
    border-radius: 12px;   /* optional شكل بروفيشنال */
    display: block;
    margin: 0 auto;        /* يركّز الصورة في الكارد */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* optional لمسة بروفيشنال */
}


.service-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* العنوان */
.service-content h2 {
    margin-bottom: 1rem;
}

/* الوصف */
.service-content p {
    margin-bottom: 1.4rem;
    line-height: 1.7;
}

/* الليست */
.service-content ul {
    list-style: none;        /* نشيل الشكل الافتراضي */
    padding: 0;
    margin: 0 auto;
}

/* كل عنصر تحت التاني */
.service-content li {
    margin-bottom: 0.7rem;
    position: relative;
}

/* نقطة شكلها بروفيشنال */
.service-content li::before {
    content: "•";
    color: #8754FE;          /* لون أكسنت */
    margin-right: 8px;
}


/* Contact Form */
.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-section label {
    display: block;
    margin-top: 1rem;
    text-align: left; /* Logical for RTL */
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #180F52;
    border-radius: 5px;
}
/* زر الفورم */
#contact-form button {
    background-color: #F1EFFB; /* لون خلفية الزر */
    color: #180F52; /* لون النص */
    border: none; /* إزالة الحدود الافتراضية */
    padding: 12px 25px; /* مساحة داخلية للزر */
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px; /* زوايا مدورة */
    cursor: pointer; /* مؤشر اليد عند المرور */
    transition: all 0.3s ease; /* حركة سلسة عند hover */
}

/* تأثير عند المرور بالماوس */
#contact-form button:hover {
    background-color: #180F52; /* لون الخلفية عند hover */
    color: #F1EFFB; /* لون النص عند hover */
    border: 2px solid #F1EFFB; /* إضافة إطار عند hover */
}




/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background-color: #0f1724;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    color: #ffffff;
}

#modal-close {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
}

/* Footer Styles */
footer {
    background-color:#09061e;;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 100%;      /* تحت الهيدر مباشرة */
        right: 0;
        width: 100%;
        background-color: #09061e;;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;

        display: flex;
        flex-direction: column;
    }

    nav ul.active {
        max-height: 500px; /* حسب عدد العناصر */
        opacity: 1;
        transform: translateY(0);
    }

    #menu-toggle {
            margin-left: auto;

        display: block;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles for Login/Sign Up */
.form-section {
    padding: 4rem 2rem;
    text-align: center;
}

.form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form label {
    display: block;
    margin-top: 1rem;
    color: #ffffff;
}

.form input {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ff6b6b;
    border-radius: 5px;
}

.form button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form button:hover {
    background-color: #e55a5a;
}

.form-message {
    margin-top: 1rem;
    color: #ff6b6b; /* للأخطاء */
}

.form-message.success {
    color: #ffffff; /* للنجاح */
}

/* ==========================
   الصفحة المخصصة: تسجيل الدخول / تسجيل جديد
========================== */
body.page-login {
    background-color: #180F52; /* لون خلفية الصفحة */
    color: #F1EFFB;           /* لون النصوص */
    font-family: 'Poppins', 'Segoe UI', 'Noto Sans Arabic', sans-serif;
}

/* الحاوية العامة للنموذج */
body.page-login .form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

body.page-login .form-container {
    background-color: #241B6C; /* خلفية النموذج */
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

/* عناوين النماذج */
body.page-login .form-container h2 {
    margin-bottom: 1.5rem;
    color: #F1EFFB;
    text-align: center;
}

/* الحقول داخل النماذج */
body.page-login .form input,
body.page-login .form textarea {
    width: 90%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #180F52;
    color: #F1EFFB;
    font-size: 14px;
}

body.page-login .form input::placeholder,
body.page-login .form textarea::placeholder {
    color: #BFB8E3;
}

/* أزرار CTA */
body.page-login .cta-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #F1EFFB;
    color: #180F52;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.page-login .cta-button:hover {
    background-color: #180F52;
    color: #F1EFFB;
    border: 2px solid #F1EFFB;
}

/* روابط التسجيل/تسجيل الدخول */
body.page-login .form-container p a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
}

body.page-login .form-container p a:hover {
    text-decoration: underline;
}

/* رسائل الفورم */
body.page-login .form-message {
    margin-top: 1rem;
    font-size: 14px;
    color: #FF6B6B;
    text-align: center;
}
/* Core Team Cards – ZImpact Identity */
.our-instructor {
    padding: 4rem 2rem;
    text-align: center;
}

.session-title h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.session-title p {
    color: #BFB8E3;
    margin-bottom: 3rem;
}

.instruct-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.instruct-card {
    background: linear-gradient(
        180deg,
        rgba(135, 84, 254, 0.15),
        rgba(24, 15, 82, 0.95)
    );
    border: 1px solid rgba(135, 84, 254, 0.3);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: all 0.35s ease;
}

.instruct-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(135, 84, 254, 0.35);
    border-color: #8754FE;
}

.instruct-card img {
    width: 150px;
    height: 170px;
    object-fit: cover;
    border-radius: 20%;
    border: 1px solid #8754FE;
    margin-bottom: 1.2rem;
    background-color: #180F52;
}

.instruct-card h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #F1EFFB;
}

.instruct-card p {
    font-size: 0.95rem;
    color: #BFB8E3;
    letter-spacing: 0.3px;
}
