/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Inter', 'Noto Kufi Arabic', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    background: var(--bg-white);
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    padding: 5px;
}

body[dir="rtl"] .language-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 30px;
    margin-right: 10px;
}

body[dir="rtl"] .logo-icon {
    margin-right: 0;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.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.05'%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");
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 60px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Demo Placeholder */
.demo-placeholder, .placeholder-content {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.demo-placeholder i, .placeholder-content i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.demo-placeholder p, .placeholder-content p {
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Problem Section */
.problem {
    background: var(--bg-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon i {
    font-size: 36px;
    color: white;
}

.problem-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
}

/* Solution Section */
.solution-flow {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    padding: 10px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 36px;
    color: white;
}

.flow-arrow {
    font-size: 24px;
    color: var(--text-light);
    opacity: 0.5;
}

body[dir="rtl"] .flow-arrow i {
    transform: rotate(180deg);
}

/* Comparison */
.comparison {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.before, .after {
    text-align: center;
}

.before h4, .after h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.preview-box {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.placeholder-content {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    color: var(--text-light);
    padding: 80px 20px;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-divider span {
    background: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: bold;
}

/* Features */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    background: var(--bg-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.use-case-icon i {
    font-size: 36px;
    color: white;
}

.use-case-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.use-case-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.use-case-benefits {
    list-style: none;
}

.use-case-benefits li {
    color: var(--text-light);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

body[dir="rtl"] .use-case-benefits li {
    padding-left: 0;
    padding-right: 25px;
}

.use-case-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

body[dir="rtl"] .use-case-benefits li::before {
    left: auto;
    right: 0;
}

/* Social Proof */
.social-proof {
    background: var(--bg-white);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.proof-item {
    text-align: center;
    padding: 20px;
}

.proof-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.proof-item h4 {
    color: var(--text-dark);
    font-weight: 500;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 10px;
}

.testimonial blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.testimonial cite {
    color: var(--text-light);
    font-style: normal;
    font-weight: 500;
}

/* Pricing */
.pricing {
    background: var(--bg-light);
}

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

.pricing-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--secondary-color);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-dark);
}

.price {
    margin-bottom: 20px;
}

.currency {
    font-size: 24px;
    color: var(--text-light);
    vertical-align: top;
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 18px;
    color: var(--text-light);
}

.price-description {
    color: var(--text-light);
    margin-bottom: 30px;
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
}

.price-features li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-features i {
    color: var(--accent-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.cta-subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background: white;
}

.alternative-contact {
    text-align: center;
    margin-top: 40px;
}

.email-link {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 8px 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

body[dir="rtl"] .footer-section ul li i {
    margin-right: 0;
    margin-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    position: relative;
    animation: slideIn 0.3s;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-dark);
}

body[dir="rtl"] .close {
    right: auto;
    left: 20px;
}

.demo-container {
    margin-top: 30px;
}

.demo-placeholder-modal {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 100px 20px;
    text-align: center;
    color: var(--text-light);
}

.demo-placeholder-modal i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.demo-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-divider {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    body[dir="rtl"] .flow-arrow {
        transform: rotate(270deg);
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid,
    .use-cases-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

body[dir="rtl"] .flow-step {
    flex-direction: row-reverse;
}

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

body[dir="rtl"] .form-group {
    text-align: right;
}

/* Print Styles */
@media print {
    .language-toggle,
    .navbar,
    .hero-cta,
    .btn,
    .modal,
    .footer {
        display: none;
    }
}
