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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Light gray background for a subtle tech feel */
}

body[lang="ar"], html[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #fff; /* Clean white navbar */
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-size: 1.9rem; /* Slightly larger for prominence */
    font-weight: 700; /* Explicitly bolder */
    color: #0069d9; /* Slightly deeper blue for logo */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logo-link {
    text-decoration: none;
}


.navbar nav ul {
    list-style: none;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
}
html[lang="ar"] .navbar nav ul li {
    margin-left: 0;
    margin-right: 20px;
}


.navbar nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #007bff, #0056b3); /* Gradient for a modern feel */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
html[lang="ar"] .hero {
    background: linear-gradient(to left, #007bff, #0056b3);
}


.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    background: #28a745; /* Secondary accent color - green for CTA */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px; /* Added margin for spacing if buttons wrap */
}

.cta-button:hover {
    background: #218838;
}

.cta-button-secondary {
    background: #ffc107; /* Tertiary accent - yellow/orange */
    color: #333;
    font-size: 0.95rem; /* Slightly smaller for secondary actions */
    padding: 10px 20px;
}
.cta-button-secondary:hover{
    background: #e0a800;
    color: #222;
}


/* Core Services Section */
.core-services {
    padding: 60px 0;
    text-align: center;
}

.core-services h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}
html[lang="ar"] .service-categories {
    text-align: right;
}

.service-category-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-category-card .icon-placeholder {
    font-size: 1rem;
    color: #007bff;
    margin-bottom: 15px;
    font-style: italic;
}

.service-category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #0056b3;
}

.service-category-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
    flex-grow: 1;
}

.learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}
html[lang="ar"] .learn-more {
    align-self: flex-end;
}


.learn-more:hover {
    text-decoration: underline;
}

/* Call to Action Banner */
.call-to-action-banner {
    background: #343a40; /* Dark background for contrast */
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.call-to-action-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.call-to-action-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}


/* Footer */
.footer {
    background: #212529; /* Darker footer */
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer .social-links a {
    color: #007bff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer .social-links a:hover {
    color: #0056b3;
}

/* Services Page Specifics */
.page-title-header {
    background-color: #e9ecef; /* Light muted header for subpages */
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title-header h1 {
    font-size: 2.5rem;
    color: #343a40;
    margin-bottom: 10px;
}

html[lang="ar"] .page-title-header h1 {
    font-weight: 700;
}


.page-title-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.services-page .service-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
html[lang="ar"] .services-page .service-section {
    text-align: right;
}

.services-page .service-section h2 {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
html[lang="ar"] .services-page .service-section h2 {
    flex-direction: row-reverse;
}

/* STYLES FOR ICON PLACEHOLDERS / SVG ICONS */
.icon-placeholder-inline {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: 22px; 
    height: 22px;
    vertical-align: -0.2em; /* Adjust as needed for alignment with text */
    /* color: #007bff; /* Base color for text placeholders, SVGs have their own */
}

html[lang="ar"] .icon-placeholder-inline {
    margin-right: 0; /* Reset LTR margin */
    margin-left: 10px; /* Add margin for AR */
}

html:not([lang="ar"]) .icon-placeholder-inline { /* LTR specific */
    margin-left: 0; /* Reset AR margin */
    margin-right: 10px; /* Add margin for LTR */
}


.overview-section.card-style h2 .icon-placeholder-inline {
     /* Make icons slightly larger in this specific context if needed */
    width: 24px; 
    height: 24px;
}

.icon-placeholder-inline svg {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the SVG scales nicely within the span */
}


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

.service-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
}

.service-item h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows p to take up space */
}

.service-item-actions {
    margin-top: auto; /* Pushes actions to the bottom */
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    gap: 10px; /* Space between buttons */
}

.details-button, .demo-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none; /* For <a> styled as button */
    text-align: center;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Allow buttons to share space */
    min-width: 120px; /* Minimum width for buttons */
}

.details-button:hover, .demo-button:hover {
    background-color: #0056b3;
}

.demo-button {
    background-color: #6c757d; /* A different color for demo buttons */
}
.demo-button:hover {
    background-color: #545b62;
}


/* Stakeholder Overview Page (AR) Specifics */
.stakeholder-overview-page {
    padding-top: 20px;
    padding-bottom: 20px;
}

.overview-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.overview-section.card-style h2 {
    font-size: 1.6rem;
    color: #0056b3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    display: flex;
    align-items: center;
    /* flex-direction: row-reverse; /* Removed for proper RTL alignment with justify-content: flex-start */
    justify-content: flex-start; /* In RTL, with default flex-direction: row, this aligns items to the right */
    font-weight: 700;
}

/* .overview-section.card-style h2 .icon-placeholder-inline -- covered above */

.overview-section p, .overview-section ul li {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

.overview-section ul {
    list-style: disc;
    padding-right: 20px; /* AR list padding */
    margin-top: 10px;
}

.market-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #f0f8ff; /* Light blue tint */
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #cce7ff;
}

.stat-card h4 {
    font-size: 1rem;
    color: #0056b3;
    margin-bottom: 10px;
    min-height: 40px; /* Ensure titles have space */
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-caption {
    font-size: 0.85rem;
    color: #555;
}

.services-summary-list li {
    margin-bottom: 8px;
}
.services-summary-list li a {
    color: #007bff;
    text-decoration: none;
}
.services-summary-list li a:hover {
    text-decoration: underline;
}


/* Timeline for Stakeholder Page */
.timeline {
    position: relative;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007bff;
    right: 15px; /* AR timeline line */
    left: auto;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-right: 50px; /* AR padding */
    padding-left: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    right: 0; /* AR icon position */
    left: auto;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #007bff;
}

.timeline-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9e9e9;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
}

/* Prototype Links List for Stakeholder Page */
.prototype-links-list {
    list-style: none;
    padding-right: 0;
    margin-top: 15px;
}
.prototype-links-list li {
    margin-bottom: 10px;
}
.prototype-links-list li .cta-button-secondary {
    width: 100%; /* Make buttons full width for a nicer list */
    text-align: center;
}

/* Utility class */
.text-center {
    text-align: center;
}

/* CTA for Visual Overview */
.cta-visual-overview-container {
    margin-bottom: 30px;
}

.cta-visual-overview {
    background-color: #17a2b8; /* Teal color for distinction */
    color: white !important; /* Ensure text color is white */
    font-weight: 600;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* Spacing from content above */
}

.cta-visual-overview:hover {
    background-color: #138496; /* Darker teal on hover */
    color: white !important;
}

.cta-visual-overview .icon-placeholder-inline {
    width: 1.1em; 
    height: 1.1em; 
    vertical-align: -0.15em;
    margin-left: 8px; /* For RTL, icon is to the right of text, so margin-left */
    margin-right: 0; /* Ensure no right margin if language is AR */
}
html:not([lang="ar"]) .cta-visual-overview .icon-placeholder-inline {
    margin-left: 0;
    margin-right: 8px; /* For LTR, icon is to the left of text, so margin-right */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .navbar .container {
        flex-direction: column;
    }
    .navbar nav ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    }
    .navbar nav ul li {
        margin: 5px 0;
    }
    html[lang="ar"] .navbar nav ul li {
        margin: 5px 0;
    }

    .service-categories, .service-list {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    .service-item-actions {
        flex-direction: column; /* Stack buttons in service items */
    }
    .details-button, .demo-button {
        width: 100%; /* Make buttons full width in column layout */
        margin-bottom: 5px;
    }
    .details-button:last-child, .demo-button:last-child {
        margin-bottom: 0;
    }


    .market-stats-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        right: 8px; /* Adjust for smaller screens */
    }
    .timeline-item {
        padding-right: 35px; /* Adjust for smaller screens */
    }
    .timeline-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}