:root {
    --primary-color: #0077b6;
    --secondary-color: #ffc300;
    --bg-color: #fdfdfd;
    --text-color: #333;
    --light-bg: #f0f8ff;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-en); background-color: var(--bg-color); color: var(--text-color); transition: all 0.3s ease; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; color: var(--primary-color); position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--secondary-color); margin: 10px auto 0; border-radius: 2px; }
.cta-button { background-color: var(--secondary-color); color: var(--text-color); padding: 15px 30px; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem; transition: transform 0.3s, box-shadow 0.3s; display: inline-block; border: none; cursor: pointer; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.cta-button.large { padding: 18px 40px; font-size: 1.2rem; }

body.rtl { direction: rtl; font-family: var(--font-ar); }
body.rtl .hero-text, body.rtl .feature-card, body.rtl .about-text { text-align: right; }
body.rtl .feature-card .icon { margin-left: 15px; margin-right: 0; }
body.rtl .slider-btn.prev { right: auto; left: 0; transform: translate(-50%, -50%); }
body.rtl .slider-btn.next { left: auto; right: 0; transform: translate(50%, -50%); }

.main-header { background: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main-header nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.main-header .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.main-header .nav-links { list-style: none; display: flex; gap: 30px; margin: 0 auto; }
.main-header .nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: all 0.3s; position: relative; padding-bottom: 5px; }
.main-header .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s ease; }
.main-header .nav-links a:hover { color: var(--primary-color); }
.main-header .nav-links a:hover::after { width: 100%; }
.lang-btn { background: var(--primary-color); color: white; padding: 8px 15px; border-radius: 20px; border: none; cursor: pointer; font-family: inherit; font-weight: bold; transition: background-color 0.3s; }
.lang-btn:hover { background-color: #005a8d; }

.hero { background: linear-gradient(rgba(0, 119, 182, 0.8), rgba(0, 119, 182, 0.8)), url('../images/comp-background.jpg') no-repeat center center/cover; color: white; display: flex; align-items: center; min-height: 90vh; padding: 100px 0; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 300px; text-align: left; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-text .subtitle { font-size: 1.5rem; font-weight: 400; color: var(--secondary-color); margin-bottom: 20px; }
.hero-text .experience { background-color: rgba(255, 255, 255, 0.2); padding: 10px 15px; border-radius: 8px; display: inline-block; font-size: 1.1rem; margin-bottom: 30px; }
.hero-image { flex-shrink: 0; }
.hero-image img { width: 300px; height: 300px; border-radius: 50%; border: 8px solid var(--secondary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2); object-fit: cover; }

#about { background-color: var(--bg-color); }
.about-content { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.about-text { flex: 1.5; min-width: 300px; }
.about-text p { line-height: 1.8; font-size: 1.1rem; margin-bottom: 1.25em; }
.about-text p:last-of-type { margin-bottom: 0; }
#why-me { background-color: var(--light-bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; align-items: flex-start; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0, 119, 182, 0.1); }
.feature-card .icon { font-size: 2.5rem; color: var(--primary-color); margin-right: 15px; flex-shrink: 0; }
.feature-card h3 { color: var(--primary-color); margin-bottom: 10px; }
.feature-card p { line-height: 1.6; }

#testimonials { background-color: var(--bg-color); }
.testimonial-slider, .certificates-slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; align-items: center; transition: transform 0.5s ease-in-out; }
.slide { flex: 0 0 33.333%; padding: 0 15px; }
.testimonial-slider .slide img { width: 100%; height: 355px; display: block; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); object-fit: cover; object-position: top; }
.certificates-slider .slide img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.8); border: none; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; z-index: 10; font-size: 1.2rem; color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: all 0.2s; }
.slider-btn:hover { background-color: white; color: #005a8d; }
.slider-btn.prev { left: 0; transform: translate(-50%, -50%); }
.slider-btn.next { right: 0; transform: translate(50%, -50%); }

#certificates { background-color: var(--light-bg); }

#pricing { background-color: var(--bg-color); }
.pricing-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.pricing-card { background: white; text-align: center; border-radius: 15px; padding: 40px 30px; width: 320px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card.popular { transform: translateY(-20px); border: 3px solid var(--primary-color); }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0, 119, 182, 0.1); }
.pricing-card.popular:hover { transform: translateY(-20px); }
.pricing-card .badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 5px 20px; border-radius: 20px; font-size: 0.9em; font-weight: 600; }
.pricing-card h3 { color: var(--primary-color); font-size: 1.5rem; }
.pricing-card .price { font-size: 3rem; font-weight: 700; color: var(--primary-color); margin: 15px 0; }
.pricing-card .features { list-style: none; margin-bottom: 30px; text-align: left; }
body.rtl .pricing-card .features { text-align: right; }
.pricing-card .features li { margin-bottom: 10px; }
.pricing-card .features li::before { content: '✓'; color: var(--secondary-color); font-weight: bold; margin-right: 10px; }
body.rtl .pricing-card .features li::before { margin-left: 10px; margin-right: 0; }

#contact { text-align: center; }

footer { background-color: var(--primary-color); color: white; text-align: center; padding: 20px 0; }

#whatsapp-icon { position: fixed; bottom: 20px; left: 20px; z-index: 100; width: 60px; height: 60px; transition: transform 0.3s; }
#whatsapp-icon:hover { transform: scale(1.1); }
#whatsapp-icon img { width: 100%; }

@media (max-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(0, 119, 182, 0.8), rgba(0, 119, 182, 0.8)), url('../images/mobile-background.jpg');
    }
    .main-header .nav-links { display: none; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text { text-align: center; }
    body.rtl .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .about-content { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .pricing-card.popular { transform: translateY(0); }
    .slide { flex: 0 0 100%; }
    .testimonial-slider .slide img { height: auto; }
    .slider-btn { width: 35px; height: 35px; font-size: 1rem; }
    .slider-btn.prev { transform: translate(-10%, -50%); }
    .slider-btn.next { transform: translate(10%, -50%); }
    body.rtl .slider-btn.prev { transform: translate(10%, -50%); }
    body.rtl .slider-btn.next { transform: translate(-10%, -50%); }
}
.testimonial-slider .slide img,
.certificates-slider .slide img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-slider .slide img:hover,
.certificates-slider .slide img:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.1);
}