/* --- الإعدادات العامة وهوية كريم --- */
:root {
    --primary-green: #19C463;
    --dark-text: #0d2c4a;
    --secondary-text: #5f6f7f;
    --white: #ffffff;
    --light-bg: #f7f9fc;
    --border-color: #e8e8e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- الهيدر العلوي --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 35px; }
.header-cta {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.header-cta:hover { background: var(--primary-green); color: var(--white); }
.header-cta i { margin-right: 5px; }

/* --- القسم الرئيسي (Hero) --- */
.hero {
    background-color: var(--light-bg);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
/* الشكل المنحني المميز لكريم */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 80%;
    height: 150%;
    background: var(--primary-green);
    border-radius: 45%;
    transform: rotate(-15deg);
    z-index: 1;
}
.hero-container { position: relative; z-index: 2; display: flex; align-items: center; gap: 2rem; }
.hero-content, .hero-image { flex: 1; }
.main-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease-out;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 500px;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}
.hero-image img {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto;
    animation: fadeIn 1.2s ease-out 0.5s backwards;
}

/* زر الواتساب الرئيسي */
.main-cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(25, 196, 99, 0.3);
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}
.main-cta-button:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(25, 196, 99, 0.4); }

/* --- قسم الميزات (الكارتات) --- */
.features, .steps { padding: 80px 0; background: var(--white); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary-green); }
.feature-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.feature-card p { color: var(--secondary-text); }

/* --- قسم الخطوات --- */
.steps { background: var(--light-bg); }
.steps-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.step-item { display: flex; align-items: center; gap: 1rem; }
.step-item span {
    background: var(--dark-text);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 1.2rem;
}
.step-item p { font-size: 1.2rem; font-weight: 700; }

/* --- قسم الدعوة الأخيرة --- */
.final-cta {
    background: var(--dark-text);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}
.final-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.final-cta p { color: #ccc; margin-bottom: 2rem; }

/* --- الفوتر --- */
footer { text-align: center; padding: 20px; background-color: #f1f1f1; color: #888; font-size: 0.9rem; }

/* --- التأثيرات الحركية --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- تصميم متجاوب --- */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-subtitle { margin: 1rem auto 2rem; }
    .hero::before { display: none; }
    .hero-image { margin-top: 2rem; }
    .header-cta { font-size: 0.9rem; padding: 6px 15px; }
}