:root {
    --primary-color: #2e7d32; /* Medical Green */
    --primary-dark: #1b5e20;
    --secondary-color: #f8f9fa; /* Light Gray/White */
    --accent-color: #81c784;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

.section {
    padding: 80px 0;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 20px;
}

/* Placeholders */
.image-placeholder, .image-placeholder-alt {
    width: 100%;
    height: 400px;
    background-color: #c8e6c9;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-dark);
    opacity: 0.8;
}

.image-placeholder-alt {
    background-color: #fff3e0;
    color: #e65100;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Features */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.features-list i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.features-list h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* AI Assistant */
.ai-assistant {
    background-color: #e3f2fd;
    text-align: center;
}

.ai-box {
    max-width: 800px;
    margin: 0 auto;
}

.ai-icon {
    font-size: 4rem;
    color: #1976d2;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    background-color: var(--white);
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Trust */
.trust {
    background-color: var(--white);
    padding: 40px 0;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    color: var(--light-text);
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #263238;
    color: #eceff1;
    padding-top: 80px;
}

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

.footer h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--white);
}

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

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

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0bec5;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0bec5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #b0bec5;
}

/* Floating Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* RTL, so left */
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
