:root {
    --primary-color: #0d6efd;
    --dark-color: #12304a;
    --light-color: #f4f8fc;
    --text-color: #5f6f7e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
}

section {
    scroll-margin-top: 80px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.section-title span,
.hero-title span {
    color: var(--primary-color);
}

.section-description {
    color: var(--text-color);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    margin-bottom: 35px;
}

.section-label,
.hero-label {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar {
    padding: 16px 0;
}

.navbar-brand {
    font-size: 27px;
    color: var(--dark-color);
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hero-section {
    background: var(--light-color);
    padding: 90px 0;
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
}

.hero-description {
    color: var(--text-color);
    font-size: 18px;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(18, 48, 74, 0.12);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.about-card {
    background: var(--dark-color);
    color: white;
    padding: 45px;
    border-radius: 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card h3 {
    font-size: 28px;
    font-weight: 700;
}

.about-card p {
    color: #d5e2ef;
    margin-bottom: 0;
}


.products-section {
    background: var(--light-color);
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(18, 48, 74, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(18, 48, 74, 0.13);
}

.product-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
}

.product-content h3 {
    font-size: 21px;
    font-weight: 700;
}

.product-content p {
    color: var(--text-color);
    flex: 1;
}

.product-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}

.product-content a:hover {
    text-decoration: underline;
}

.service-card {
    height: 100%;
    padding: 30px 25px;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-section {
    background: var(--light-color);
}

.footer {
    background: var(--dark-color);
    color: #d5e2ef;
    padding: 35px 0;
}

.footer-brand {
    color: white;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand span {
    color: #4da3ff;
}

@media (max-width: 991px) {
    .navbar .btn {
        margin-top: 15px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 55px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image {
        height: 280px;
    }

    .about-card {
        padding: 30px;
    }
}

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

html[dir="rtl"] .navbar .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

html[dir="rtl"] .hero-section,
html[dir="rtl"] .about-section,
html[dir="rtl"] .products-section,
html[dir="rtl"] .services-section,
html[dir="rtl"] .contact-section {
    direction: rtl;
}

html[dir="rtl"] .product-content {
    text-align: right;
}

html[dir="rtl"] .service-item {
    text-align: right;
}

html[dir="rtl"] .footer {
    text-align: center;
}

html[dir="rtl"] .ms-lg-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}
