:root {
    /* Soft professional colors */
    --bg-color: #F7F5F0;
    /* Soft Beige / Warm Sand */
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;

    /* Accents: Muted Blue and Muted Green */
    --primary-color: #4A6FA5;
    /* Muted Blue */
    --primary-hover: #3a5a8a;
    --secondary-color: #6B8E6B;
    /* Muted Green */
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE55;

    --border-radius: 16px;
    --border-radius-sm: 8px;
    --spacing-unit: 1rem;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.ar-text {
    font-family: 'Tajawal', 'Cairo', Tahoma, Arial, sans-serif;
    direction: rtl;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: inherit;
    /* Center when parent is centered */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title .ar-text {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: white;
}

.btn-whatsapp .ar-text {
    color: white;
}

/* Header */
.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    text-align: center;
}

.nav-item a {
    color: var(--text-main);
    font-weight: 500;
}

.nav-item .ar-text {
    font-size: 0.9rem;
    margin-top: -0.3rem;
    display: block;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-soft);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Good contrast overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    /* Contrast on video */
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .ar-text.title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: white;
    /* Contrast on video */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 0.5rem;
}

.hero .ar-text.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-icon {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.product-info {
    flex-grow: 1;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.product-title-ar {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-desc {
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Process Section */
.process {
    padding: 5rem 0;
    background-color: transparent;
    /* Already soft beige from body */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(autofit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.process-step {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-desc {
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Product Detail Page */
.product-detail {
    padding: 4rem 0;
}

.product-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-body {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .product-body {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery img {
    width: 100%;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-list .ar-text {
    margin-top: 0.2rem;
    padding-right: 2rem;
    position: relative;
}

.pricing {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-sm);
    padding: 2rem;
    margin-top: 2rem;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.price-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.pricing-cta {
    margin-top: 2rem;
    text-align: center;
}

.pricing-cta .btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile menu handling */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .ar-text.title {
        font-size: 1.8rem;
    }
}