:root {
    --primary-burgundy: #5A0F1B;
    --black: #000000;
    --white: #FFFFFF;
    --light-grey: #C9C9C9;
    --medium-grey: #6E6E6E;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--primary-burgundy);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo:hover {
    color: var(--primary-burgundy);
    transition: color 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background-color: var(--black);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(90, 15, 27, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 0;
    /* Sharp edges for luxury feel */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-burgundy);
    color: var(--white);
    border: 1px solid var(--primary-burgundy);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-burgundy);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    margin: 0 auto 1rem;
    color: var(--black);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-burgundy);
    margin: 15px auto 3rem;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--light-grey);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Slight shadow */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-burgundy);
    box-shadow: 0 15px 30px rgba(90, 15, 27, 0.1);
    /* Burgundy shadow hint */
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-burgundy);
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-burgundy);
    /* Burgundy title */
    font-size: 1.5rem;
}

.service-card p {
    color: var(--medium-grey);
    /* Grey text */
    font-size: 1rem;
    line-height: 1.6;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 3rem;
    color: var(--medium-grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Why Choose Us Section */
.why-us {
    padding: 6rem 0;
    background-color: var(--light-grey);
    /* Light grey background to contrast with white services */
}

.why-us .section-title {
    color: var(--black);
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
    font-family: 'Tahoma', sans-serif;
    /* Fallback for Arabic */
}

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

body[dir="rtl"] .hero h1 {
    font-family: 'Tahoma', sans-serif;
}

/* RTL Adjustments for Why Us */
body[dir="rtl"] .why-us-card {
    flex-direction: row-reverse;
    text-align: right;
}

body[dir="rtl"] .why-us-card:hover {
    transform: translateX(-5px);
}

/* Rama AI Lab Dashboard Page Styles */

.ai-lab-dashboard {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, #7A1C24 100%);
    min-height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    /* Vertical centering */
}

.ai-lab-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-lab-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.ai-lab-header p {
    color: #E8E8E8;
    font-size: 1.2rem;
    font-weight: 300;
}

.ai-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .ai-lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ai-lab-grid {
        grid-template-columns: 1fr;
    }
}

.ai-tool-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Equal height */
    border: 1px solid rgba(90, 15, 27, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ai-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-burgundy);
}

.ai-tool-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.ai-tool-card.disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(90, 15, 27, 0.1);
}

.card-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background-color: #F9F1F2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ai-tool-card:hover .card-icon {
    transform: scale(1.1);
}

.ai-tool-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ai-tool-card p {
    color: var(--medium-grey);
    font-size: 1rem;
    line-height: 1.6;
}

/* RTL Support for AI Lab Dashboard */
body[dir="rtl"] .ai-lab-header {
    text-align: center;
    /* Keep centered */
}

body[dir="rtl"] .ai-tool-card {
    text-align: right;
}

body[dir="rtl"] .card-content {
    align-items: center;
    /* Keep items centered in card */
}