/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #002a56;
    --primary-purple: #7d77b7;
    --light-purple: #e4e5e6;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #002a56 0%, #7d77b7 100%);
    --gradient-2: linear-gradient(135deg, #7d77b7 0%, #9b95d1 100%);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Extra for Website 1 styles */
    --surface: #ffffff;
    --background: #f8f9fa;
    --border: rgba(0,0,0,0.08);
    --primary: var(--primary-blue);
    --secondary: var(--primary-purple);
    --accent: #9b95d1;
    --error: #ef4444;
    --shadow: 0 5px 15px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ==================== LANGUAGE TOGGLE ==================== */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 5px;
    box-shadow: var(--shadow-md);
}

.lang-toggle button {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.lang-toggle button.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 0.7rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}
.nav-container > .logo { justify-self: start; }
.nav-container > .nav-links { justify-self: center; }
.nav-container > .nav-actions { justify-self: end; }

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}
/* Hide text label next to logo image to avoid duplicate branding */
.logo span { display: none; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--gradient-2);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(125, 119, 183, 0.35);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(125, 119, 183, 0.45); }
.cta-button:disabled { opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }

/* New: header actions (lang dropdown + login) */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Hero badges borrowed from Website 1 */
.hero-badges { display:flex; gap:0.75rem; flex-wrap: wrap; margin-top:1.25rem; }
.badge { display:inline-flex; align-items:center; gap:0.4rem; padding:0.5rem 0.75rem; border-radius:999px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.35); font-size: 0.9rem; backdrop-filter: blur(6px); }
.badge iconify-icon { color: #fff; }

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    color: var(--primary-blue);
}
.lang-toggle-btn .flag { width: 18px; height: 12px; display: block; }
.lang-toggle-btn iconify-icon.flag { font-size: 18px; line-height: 1; width: auto; height: auto; }
.lang-toggle-btn .caret { font-size: 18px; line-height: 1; color: var(--primary-blue); opacity:.8; margin-inline-start: 6px; }
.lang-dropdown.open .lang-toggle-btn .caret { transform: rotate(180deg); transition: transform .2s ease; }
.lang-menu {
    position: absolute;
    top: 110%;
    inset-inline-start: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    padding: 6px;
    display: none;
    min-width: 140px;
    z-index: 2000;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-dropdown:hover .lang-menu { display: block; }
.lang-menu .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-dark);
}
.lang-menu .lang-option:hover { background: #f5f7fa; }
.lang-menu .flag { width: 18px; height: 12px; }
.lang-menu iconify-icon.flag { font-size: 18px; line-height: 1; width: auto; height: auto; }

/* Login button */
.login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--gradient-2);
    box-shadow: 0 8px 18px rgba(125, 119, 183, 0.35);
}
.login-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(125, 119, 183, 0.45); }
.login-button .icon { display: block; font-size: 20px; }

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 5% 50px;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.3;
    font-weight: 700;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.hero-visual {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-visual .card-mockup {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ==================== CLIENTS SECTION ==================== */
.clients {
    padding: 80px 5%;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}
/* Make the How It Works main title a bit bigger */
.how-it-works .section-header h2 { font-size: 3rem; }

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* .art-credit removed with illustrations */

.clients-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    /* Make slider full-bleed horizontally (ignores parent horizontal padding) */
    margin-inline: calc(50% - 50vw);
    width: 100vw;
}

/* Generic container for centered content */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Stabilize slider layout under RTL: always lay out logos left-to-right */
[dir="rtl"] .clients-slider-container,
[dir="rtl"] .clients-slider { direction: ltr; }

.clients-slider {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    margin: 0 30px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.client-logo:hover::before {
    opacity: 0.1;
}

.client-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* When JS-driven marquee is active, disable CSS animation */
.clients-slider.marquee { animation: none !important; }

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo span {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 100px 5%;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 119, 183, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-2);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.feature-card:hover::before {
    transform: translate(20%, -20%) scale(1.5);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(125, 119, 183, 0.3);
    background: var(--gradient-2);
}
.feature-icon img { width: 24px; height: 24px; display: block; }
.feature-icon iconify-icon { color: #fff; font-size: 26px; }

/* ==================== PRICING (from Website 1) ==================== */
.pricing { padding: 100px 0; background: var(--surface); }
.pricing .section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.discount-control { display: flex; align-items: center; justify-content: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem 1rem; box-shadow: var(--shadow); max-width: 500px; margin: 1rem auto 0; }
.discount-inputs { display:flex; align-items:center; gap:0.75rem; }
.discount-inputs input[type="range"]{ width:220px; accent-color:#8b5cf6; }
.discount-inputs input[type="number"]{ width:70px; padding:0.5rem 0.75rem; border:1px solid var(--border); border-radius:10px; background: var(--surface); color: var(--text-dark); }
.pricing-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:2rem; margin-top:3rem; justify-items:center; }
.pricing-card { background: var(--surface); padding:2rem; border-radius:20px; box-shadow: var(--shadow-lg); border:2px solid var(--border); position:relative; overflow:hidden; width:100%; max-width:350px; transition:all .3s ease; }
[dir="rtl"] .pricing-card { text-align:right; }
[dir="ltr"] .pricing-card { text-align:left; }
.pricing-card::before{ content: none; }
.pricing-card:hover{ transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow-xl); }
.pricing-card.featured{ border-color: var(--primary); transform: scale(1.05); box-shadow: var(--shadow-xl); }
.featured-badge{ position:absolute; top:20px; right:-40px; background: var(--gradient-2); color:#fff; padding:0.5rem 3rem; font-size:.9rem; font-weight:600; transform: rotate(45deg); box-shadow: var(--shadow-md); white-space:nowrap; min-width:120px; text-align:center; }
[dir="rtl"] .featured-badge{ right:auto; left:-40px; transform: rotate(-45deg); }
.pricing-header{ margin-bottom:2rem; text-align:center; }
.pricing-title{ font-size:1.5rem; margin-bottom:1rem; color: var(--text-dark); line-height:1.3; }
.price{ font-size:2.2rem; font-weight:bold; color: var(--primary); margin-bottom:.5rem; line-height:1; }
.price-old{ text-decoration: line-through; opacity:.6; }
.discount{ background: var(--gradient-2); color:#fff; padding:.25rem 1rem; border-radius:20px; font-size:.9rem; margin-top:.5rem; display:inline-block; }
.pricing-features{ list-style:none; margin-bottom:2rem; text-align:inherit; }
.pricing-features li{ padding:.5rem 0; color: var(--text-light); display:flex; align-items:center; gap:.5rem; line-height:1.5; }
.pricing-features li iconify-icon{ font-size:20px; }
.pricing-features li.inc iconify-icon{ color: var(--primary); }
.pricing-features li.exc iconify-icon{ color: var(--error); }

/* ==================== FAQ (from Website 1) ==================== */
.faq{ padding:100px 0; background: var(--background); }
.faq .section-title{ text-align:center; font-size: clamp(2rem,4vw,2.5rem); margin-bottom:1rem; background: var(--gradient-2); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.faq-container{ max-width:800px; margin:0 auto; margin-top:3rem; }
.faq-item{ background: var(--surface); border-radius:12px; margin-bottom:1rem; overflow:hidden; box-shadow: var(--shadow-md); transition: all .3s ease; }
.faq-item:hover{ box-shadow: var(--shadow-lg); }
.faq-question{ padding:2rem 2rem 1.5rem; cursor:pointer; display:flex; justify-content:space-between; align-items:flex-start; background: var(--surface); gap:1rem; border:none; width:100%; text-align:inherit; font-family:inherit; }
.faq-question h3{ font-size:1.1rem; font-weight:600; color: var(--text-dark); margin:0; flex:1; line-height:1.4; text-align:inherit; }
.faq-icon{ font-size:1.2rem !important; color: var(--primary); transition: transform .3s ease; flex-shrink:0; margin-top:.2rem; }
.faq-item.active .faq-icon{ transform: rotate(180deg); }
.faq-answer{ padding:0 2rem; max-height:0; overflow:hidden; transition: all .4s ease; background: var(--surface); }
.faq-item.active .faq-answer{ padding:0 2rem 2rem; max-height:300px; }
.faq-answer p{ color: var(--text-light); line-height:1.6; margin:0; padding-top:2rem; }

/* ==================== CONTACT (from Website 1) ==================== */
.contact{ padding:80px 0 30px; background: var(--gradient-1); color:#fff; }
/* Contact title on gradient: use solid white for legibility */
.contact .section-title{ text-align:center; font-size: clamp(2rem,4vw,2.5rem); margin-bottom:.25rem; background:none; -webkit-text-fill-color:initial; color:#fff; }
.section-subtitle{ text-align:center; color: rgba(255,255,255,0.85); }
.contact-content{ display:grid; grid-template-columns: 1fr 2fr; gap:4rem; margin-top:3rem; }
.contact-info{ display:flex; flex-direction:column; gap:2rem; }
.contact-item{ display:flex; align-items:flex-start; gap:1rem; padding:1.5rem; background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); border-radius:16px; transition: all .3s ease; backdrop-filter: blur(8px); }
.contact-item:hover{ transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.25); }
.contact-icon{ width:50px; height:50px; background: rgba(255,255,255,0.2); border:1px solid rgba(255,255,255,0.35); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.contact-details h3{ font-size:1.1rem; font-weight:600; color:#fff; margin-bottom:.5rem; line-height:1.3; letter-spacing:.2px; }
.contact-details p{ color: rgba(255,255,255,0.9); margin:0; line-height:1.6; }
.contact-details a{ color: rgba(255,255,255,0.9); text-decoration:none; transition: color .3s ease; }
.contact-details a:hover{ color:#fff; }
.contact-form{ background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.25); padding:2rem; border-radius:20px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); backdrop-filter: blur(10px); }
.form-group{ margin-bottom:1.5rem; }
.form-group label{ display:block; font-weight:600; color:#fff; margin-bottom:.5rem; font-size:1rem; letter-spacing:.2px; }
.form-group input, .form-group select, .form-group textarea{ width:100%; padding:.8rem 1rem; border:2px solid rgba(255,255,255,0.35); border-radius:12px; font-size:1rem; font-family:'IBM Plex Sans Arabic', sans-serif; transition: all .25s ease; background: rgba(255,255,255,0.08); color:#fff; }
.form-group input::placeholder, .form-group textarea::placeholder{ color: rgba(255,255,255,0.65); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color:#fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); background: rgba(255,255,255,0.12); }
.form-group textarea{ resize: vertical; min-height:120px; }
.contact-form .cta-button{ width:100%; justify-content:center; margin-top:1rem; }
.feature-icon iconify-icon { color: #fff; font-size: 24px; }

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 100px 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.steps-line {
    position: absolute;
    right: 40px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    opacity: 0.3;
    z-index: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.8s ease forwards;
    position: relative;
}

/* Place step number on the outer/right side based on direction */
[dir="rtl"] .step { flex-direction: row; }
[dir="ltr"] .step { flex-direction: row-reverse; }

/* Remove alternating margin behavior */
.step:nth-child(even) .step-number { margin-left: 0; margin-right: 0; }

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(125, 119, 183, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
/* Add extra padding on the side closest to the number bubble */
[dir="rtl"] .step-content { padding-inline-end: 3rem; }
[dir="ltr"] .step-content { padding-inline-start: 3rem; }
.step-text h3 { margin-bottom: 0.75rem; }
.step-text p { margin: 0; }

/* Step illustration: line art */
/* Step illustrations removed */
/* Step illustration card using user's SVGs */
.step-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop: slightly reduce illustration size inside the card */
@media (min-width: 769px) {
    .step-illustration img {
        width: 65%;
        max-width: 320px;
        margin-inline: auto;
    }
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 100px 5%;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.pricing-card.featured {
    outline: 2px solid rgba(125, 119, 183, 0.3);
}

.pricing-card.featured::before {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: 16px;
    background: var(--gradient-2);
    color: var(--white);
    padding: 4px 36px;
    font-size: 0.78rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
[dir="rtl"] .pricing-card.featured::before { left: -26px; transform: rotate(-45deg); }
[dir="ltr"] .pricing-card.featured::before { right: -26px; transform: rotate(45deg); }

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}
.plan-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #e9ecff, #f3f4ff);
    border: 1px solid rgba(125,119,183,0.25);
}
.plan-icon iconify-icon { font-size: 28px; color: var(--primary-blue); }

.package-name {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.package-count {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: var(--white);
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.discounted-price {
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.discount-badge {
    display: inline-block;
    background: #4caf50;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}
.features-list li iconify-icon.li-icon { color: #4caf50; font-size: 20px; }

.pricing-cta {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--gradient-2);
    color: var(--white);
    text-align: center;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(125, 119, 183, 0.3);
}

.pricing-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(125, 119, 183, 0.4);
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 100px 5%;
    background: var(--gradient-1);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
    /* legacy footer not used */
}

footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover { opacity: 1; }

/* New site footer */
.site-footer { background: #0f1b2b; color:#cfd8e3; margin-top: 0; }
.site-footer .footer-top { padding: 48px 0; background: linear-gradient(180deg, rgba(0,42,86,0.08) 0%, transparent 100%); }
.footer-grid { display:grid; grid-template-columns: 2fr repeat(3,1fr); gap: 2rem; align-items:start; }
.footer-brand .logo { display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.footer-brand .logo img { height: 36px; width:auto; }
.footer-brand .logo span { font-weight:700; color:#fff; }
.footer-brand p { margin-top:.5rem; color:#a8b3c4; max-width: 360px; }
.social-links { display:flex; gap:.75rem; margin-top: .75rem; }
.social-links a { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; background: rgba(255,255,255,0.06); color:#e5e9f2; text-decoration:none; transition:all .2s ease; }
.social-links a:hover { background: rgba(255,255,255,0.12); }
.footer-col h4 { color:#fff; margin-bottom:.75rem; font-size:1.05rem; }
.footer-col a { display:block; color:#a8b3c4; text-decoration:none; padding:.25rem 0; transition:color .2s ease; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding: 14px 0; text-align:center; color:#9aa6b2; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer .footer-top { padding: 32px 0; }
  .pricing { padding: 60px 0; }
  .features { padding: 60px 5%; }
  .clients { padding: 60px 0; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions { gap: 0.5rem; }
    /* Hide the header's dropdown, show the one inside the menu */
    .nav-actions .lang-dropdown { display: none; }
    .nav-links .nav-lang-item { margin-top: 1rem; }
    .nav-links .lang-dropdown { display: block; }

    /* Header layout: keep logo on one side, menu + button on the other */
    .nav-container { display:flex; align-items:center; justify-content:space-between; }
    /* In Arabic (RTL): logo on the right (main-start), actions on the left */
    [dir="rtl"] .nav-container .logo { order: 1; }
    [dir="rtl"] .nav-container .nav-actions { order: 2; }
    [dir="ltr"] .nav-container .logo { order: 1; }
    [dir="ltr"] .nav-container .nav-actions { order: 2; }
    .nav-actions { display:flex; align-items:center; gap:.5rem; }
    .nav-actions .mobile-menu-toggle { margin-inline-end: 6px; }
    .nav-actions .login-button { padding: 8px 12px; font-size:.95rem; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: all 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
    /* Add comfortable spacing between header menu links */
    .nav-links li { margin: 10px 0; }
    .nav-links a { padding: 12px 0; font-size: 1.05rem; }
    .nav-container { gap: .75rem; }

    .hero-content { grid-template-columns: 1fr; text-align: center; row-gap: 1.25rem; }
    .hero-buttons { justify-content: center; align-items: center; }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text .tagline {
        font-size: 1.2rem;
    }

    /* Show floating paper/card above text on mobile */
    .hero-visual { display: block; order: -1; }
    .hero-visual .card-mockup { max-width: 360px; height: auto; min-height: 340px; margin: 0 auto 12px; }

    .step { flex-direction: column !important; text-align: initial; }
    [dir="rtl"] .step-number { align-self: flex-start !important; margin: 0 0 1rem 0 !important; }
    [dir="ltr"] .step-number { align-self: flex-end !important; margin: 0 0 1rem 0 !important; }
    .step-content {
        grid-template-columns: 1fr;
        text-align: initial;
    }
    .step-illustration { width: 100%; }

    .step:nth-child(even) { flex-direction: column !important; }
    .step:nth-child(even) .step-number { margin: 0 0 1rem 0 !important; }

    .steps-line {
        display: block;
        right: 40px;
        left: auto;
        transform: none;
        top: 20px;
        bottom: 20px;
        opacity: 0.25;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Slightly reduce the larger How It Works title on small screens */
    .how-it-works .section-header h2 { font-size: 2.4rem; }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .clients-slider {
        animation-duration: 20s;
    }

    .client-logo {
        width: 150px;
        height: 80px;
        margin: 0 15px;
    }
}

/* ==================== RTL/LTR STYLES ==================== */
[dir="rtl"] .nav-links a::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .features-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .step:nth-child(even) {
    flex-direction: row;
}

[dir="rtl"] .steps-line {
    right: 40px;
    left: auto;
}

[lang="en"] {
    direction: ltr;
}

[lang="en"] .lang-toggle {
    left: auto;
    right: 20px;
}

[lang="en"] .nav-links a::after {
    right: auto;
    left: 0;
}

[lang="en"] .step:nth-child(even) {
    flex-direction: row;
}

[lang="en"] .steps-line {
    left: 40px;
    right: auto;
}
