/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
   :root {
    /* Colors - Premium Pink & Neutral Palette */
    --clr-primary: #e8437d; /* Elegant Pink */
    --clr-primary-hover: #d2336a;
    --clr-primary-light: #fdf2f5;
    --clr-accent: #c93b6e;
    
    --clr-dark: #1e293b;
    --clr-gray: #64748b;
    --clr-gray-light: #e2e8f0;
    --clr-bg: #ffffff;
    --clr-bg-alt: #f8fafc;
    
    --clr-whatsapp: #25d366;
    --clr-telegram: #0088cc;
    
    /* Typography */
    --font-main: 'Cairo', sans-serif;
    
    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows - Premium Soft Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(232, 67, 125, 0.05);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--clr-bg-alt); }
.bg-accent { background-color: var(--clr-primary); }
.text-white { color: var(--clr-bg); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h1 span { color: var(--clr-primary); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--clr-gray); font-size: 1.1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 67, 125, 0.3);
}
.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 67, 125, 0.4);
}

.btn-light {
    background-color: white;
    color: var(--clr-primary);
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-telegram {
    background-color: var(--clr-telegram);
    color: white;
}
.btn-telegram:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Animations */
.cta-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 67, 125, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(232, 67, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 67, 125, 0); }
}

/* Base Cards & Glassmorphism */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    height: 70px;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--clr-primary); display: flex; align-items: center; gap: 10px;}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--clr-primary-light), transparent 50%);
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.subheadline { font-size: 1.1rem; color: var(--clr-gray); margin-bottom: 2rem; }

.highlight-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--clr-primary-light);
}
.highlight-box ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.highlight-box ul li i { color: var(--clr-primary); }

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.2rem;
}
.image-placeholder i { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }

/* Features (Why) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.icon-wrapper {
    width: 60px; height: 60px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: var(--radius-sm);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Audience (Pills) */
.pill-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.pill {
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--clr-primary); }
.pill i { color: var(--clr-primary); }

/* Roadmap Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-right: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; right: 8px;
    height: 100%; width: 4px;
    background: var(--clr-primary-light);
    border-radius: 4px;
}
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-dot {
    position: absolute;
    right: -30px; top: 20px;
    width: 40px; height: 40px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 0 0 5px var(--clr-bg);
}
.timeline-content { padding: 20px; }

/* Curriculum Tags */
.tags-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tag {
    background: white; border: 1px solid var(--clr-gray-light);
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--clr-dark);
}

/* Gallery Placeholder */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.gallery-item {
    aspect-ratio: 1;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: var(--clr-gray); font-weight: 600; cursor: pointer;
}
.gallery-item i { font-size: 2rem; margin-bottom: 10px; }

/* Stats Counters */
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; margin-bottom: 5px; }

/* Trust & Steps */
.trust-box { max-width: 800px; margin: 0 auto 3rem; background: var(--clr-primary-light); border-color: var(--clr-primary-light); }
.trust-box h3 { color: var(--clr-primary); margin-bottom: 10px; }

.steps-grid {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
}
.step { text-align: center; flex: 1; }
.step-icon {
    width: 60px; height: 60px; margin: 0 auto 15px;
    background: white; color: var(--clr-primary);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: bold; box-shadow: var(--shadow-sm);
}
.step-arrow { color: var(--clr-gray-light); font-size: 2rem; }

/* Pricing */
.pricing-card {
    max-width: 500px; margin: 0 auto;
    border: 2px solid var(--clr-primary);
    position: relative;
    padding: 40px;
}
.pricing-card::before {
    content: 'أفضل استثمار';
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--clr-primary); color: white;
    padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.9rem;
}
.price-details { margin: 2rem 0; font-size: 1.2rem; }
.old-price, .current-price { color: var(--clr-gray); margin-bottom: 10px; }
.today-price {
    font-size: 1.5rem; color: var(--clr-primary);
    background: var(--clr-primary-light); padding: 15px; border-radius: var(--radius-sm);
    margin-top: 15px; font-weight: 700;
}
.today-price strong { font-size: 2.5rem; display: block; margin-top: 5px;}

/* Bonus */
.bonus-card {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white; max-width: 800px; margin: 0 auto;
}
.bonus-card h3 { color: #facc15; margin-bottom: 10px;}
.bonus-icon { font-size: 4rem; color: #facc15; }

/* Certificate */
.cert-placeholder {
    max-width: 600px; margin: 2rem auto 0;
    aspect-ratio: 1.4; display: flex; flex-direction: column; justify-content: center; align-items: center;
    border: 2px dashed var(--clr-primary-light); font-size: 1.2rem; color: var(--clr-gray);
}
.cert-placeholder i { font-size: 3rem; color: var(--clr-primary); margin-bottom: 10px; }

/* FAQ Accordion */
.accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white; margin-bottom: 15px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-question {
    padding: 20px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.faq-question:hover { color: var(--clr-primary); }
.faq-question i { transition: var(--transition); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--clr-primary); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background: var(--clr-bg-alt);
}
.faq-answer p { padding: 0 20px 20px; color: var(--clr-gray); }

/* Funnel Section (Telegram) */
.border-telegram { border-top: 5px solid var(--clr-telegram); }
.funnel-subtitle { font-size: 1.5rem; font-weight: 800; color: var(--clr-primary); margin: 10px 0; }
.telegram-features {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 2rem 0;
}
.telegram-features span {
    background: #e6f3ff; color: var(--clr-telegram);
    padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--clr-dark); color: white; padding: 40px 0; text-align: center;
}
.social-links { margin-bottom: 20px; }
.social-links a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
    margin: 0 5px; transition: var(--transition);
}
.social-links a:hover { background: var(--clr-primary); transform: translateY(-3px); }
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 10px; color: var(--clr-gray-light); font-size: 0.9rem; }
.copyright { color: var(--clr-gray); font-size: 0.8rem; }

/* Floating Elements */
.floating-wa {
    position: fixed; bottom: 30px; left: 30px; /* Left for RTL */
    width: 60px; height: 60px; background: var(--clr-whatsapp); color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 2rem; box-shadow: var(--shadow-lg); z-index: 1000;
    transition: var(--transition); animation: pulse 2s infinite;
}
.floating-wa:hover { transform: scale(1.1); }

.sticky-cta-mobile {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: white; padding: 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 999;
}

/* ==========================================================================
   Responsive & Scroll Utilities
   ========================================================================== */

/* Scroll Reveal Classes */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Media Queries */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .highlight-box ul { display: inline-block; text-align: right; }
    .steps-grid { flex-direction: column; gap: 20px; }
    .step-arrow { transform: rotate(-90deg); }
    .bonus-card { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
    .navbar .nav-btn { display: none; } /* Hide btn on mobile nav to save space */
    .sticky-cta-mobile { display: block; }
    .floating-wa { bottom: 90px; } /* Adjust so it doesn't overlap sticky mobile btn */
    
    h1 { font-size: 2.2rem; }
    .section-padding { padding: 50px 0; }
    .pricing-card { padding: 30px 15px; }
}
