:root {
    --primary-color: #2c3e50;
    --primary-dark: #1f2d3a;
    --primary-rgb: 44, 62, 80;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-dark: #111827;
    --text-light: #6b7280;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --border: rgba(17, 24, 39, 0.12);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 18px 50px rgba(0,0,0,0.18);
    --radius-md: 14px;
    --radius-lg: 18px;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-head {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 62ch;
    margin: 0 auto;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #1e6de0);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.38);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 110px; /* Adjust this value based on your header total height */
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

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

[dir="rtl"] .slide-content h2 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.4;
    letter-spacing: 0;
}

[dir="rtl"] .slide-content p {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

[dir="rtl"] .cta-button {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 1rem 2.2rem;
}

[dir="rtl"] .nav-links {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .header-contact {
    font-family: 'Cairo', sans-serif;
}

/* RTL Navigation Arrows */
[dir="rtl"] .slider-arrow.prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .slider-arrow.next {
    left: 20px;
    right: auto;
}

[dir="rtl"] .slider-arrow i {
    transform: scaleX(-1);
}

/* RTL Mobile Responsive */
@media (max-width: 768px) {
    [dir="rtl"] .slide-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    [dir="rtl"] .slide-content p {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    [dir="rtl"] .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
}

.header-contact {
    background-color: var(--primary-color);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-contact a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact i {
    color: white;
}

.navbar {
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* RTL Support for header */
[dir="rtl"] .header-contact {
    direction: rtl;
}

[dir="rtl"] .header-contact a {
    flex-direction: row-reverse;
}

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

/* Header Contact and Social */
.header-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background-color: var(--primary-color);
    color: white;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
   /* align-items: center;*/
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    color: white;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

/* RTL Support for Header */
[dir="rtl"] .header-contact {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-info a {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
    direction: ltr; /* Keep social icons in original direction */
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header-contact {
        padding: 10px 15px;
        gap: 15px;
        justify-content: center;
    }

    .contact-info {
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .contact-info a {
        font-size: 14px;
    }

    .social-links {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-contact {
        padding: 8px 10px;
    }

    .contact-info a {
        font-size: 13px;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .social-links {
        gap: 10px;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.menu-toggle, .contact-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover, .contact-toggle:hover {
    color: var(--accent-color);
}

.mobile-header .logo h1 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.header-content {
    transition: transform 0.3s ease;
}

/* Header Contact and Social */
.header-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background-color: var(--primary-color);
    color: white;
    flex-wrap: wrap;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .header-content {
        position: fixed;
        top: 56px; /* Height of mobile header */
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        transform: translateY(-100%);
        z-index: 999;
    }

    .header-content.show {
        transform: translateY(0);
    }

    .header-contact {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .navbar {
        background-color: var(--primary-dark);
    }

    .nav-links {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    body {
        padding-top: 56px; /* Height of mobile header */
    }
}

/* RTL Support for Mobile Header */
[dir="rtl"] .mobile-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-header .logo h1 {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .menu-toggle,
[dir="rtl"] .contact-toggle {
    transform: scaleX(-1);
}

[dir="rtl"] .header-content {
    direction: rtl;
}

[dir="rtl"] .nav-links {
    direction: rtl;
}

[dir="rtl"] .nav-links a {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .header-contact {
    direction: rtl;
}

[dir="rtl"] .contact-info a {
    flex-direction: row-reverse;
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .social-links {
    direction: ltr; /* Keep social icons in original direction */
}

@media (max-width: 768px) {
    [dir="rtl"] .header-content {
        right: 0;
        left: 0;
    }

    [dir="rtl"] .nav-links {
        padding: 15px;
    }

    [dir="rtl"] .language-toggle {
        margin-right: 0;
        margin-left: auto;
    }
}

/* Hero Section and Slider */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 1.2s ease, filter 0.6s ease;
    will-change: transform, filter;
}

.hero:hover .slide.active img {
    transform: scale(1.06);
    filter: saturate(1.06) contrast(1.03);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-index .cta-button {
    display: none;
}

.page-index .hero .slide-content {
    width: min(980px, 92%);
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.35rem 1.35rem;
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.38);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(900px 300px at 20% 0%, rgba(255,255,255,0.22), transparent 55%);
    opacity: 0.9;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
}

.page-index .slide-content h2 {
    letter-spacing: -0.3px;
}

.page-index .slide-content p {
    opacity: 0.92;
}

.page-index .badge-pill {
    background: rgba(255,255,255,0.16);
}

.page-index .btn-primary {
    box-shadow: 0 10px 25px rgba(30,109,224,0.25);
}

.page-index .btn-primary:hover {
    box-shadow: 0 18px 45px rgba(30,109,224,0.35);
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.page-index .hero-stats {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(920px, 92%);
    z-index: 4;
    pointer-events: none;
}

.page-index .hero-stats .stat {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.page-index .hero-stats .stat-value {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.page-index .hero-stats .stat-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.page-index .slider-arrow {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
}

.page-index .slider-arrow:hover {
    background: rgba(255,255,255,0.22);
}

.page-index .slider-dots .dot::before {
    background: rgba(255,255,255,0.55);
}

.page-index .slider-dots .dot.active::before {
    background: rgba(255,255,255,1);
}

.page-index .navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.page-index .nav-links a {
    position: relative;
}

.page-index .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary-color), #1e6de0);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.page-index .nav-links a:hover::after {
    transform: scaleX(1);
}

.language-toggle {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.65);
    color: var(--primary-color);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.language-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(17, 24, 39, 0.22);
}

.language-toggle .current-lang {
    font-size: 0.9rem;
}

.page-index .section-title {
    margin-bottom: 0;
}

.page-index .section-head .section-title {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 0.75rem;
}

.page-index .section-head .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 86px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary-color), #1e6de0);
    opacity: 0.95;
}

.page-index .section-services {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.page-index .modern-cards .modern-card {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-index .modern-cards .modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(900px 220px at 20% 0%, rgba(52,152,219,0.18), transparent 55%);
    opacity: 0.9;
}

.page-index .modern-cards .modern-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.page-index .modern-cards .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(52, 152, 219, 0.14);
    color: var(--secondary-color);
    margin: 0 auto 1rem;
    font-size: 1.35rem;
}

.page-index .modern-cards .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.page-index .modern-cards .card-link::after {
    content: '→';
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.page-index .modern-cards .modern-card:hover .card-link::after {
    transform: translateX(4px);
}

.page-index .modern-cards .card-link:hover {
    text-decoration: underline;
}

.page-index .section-showcase {
    background: #ffffff;
}

.page-index .section-showcase-alt {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.page-index .showcase-item {
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.page-index .section-about {
    background: radial-gradient(1200px 400px at 50% 0%, rgba(52,152,219,0.16), transparent 55%), #ffffff;
}

.page-index .contact {
    background: radial-gradient(1200px 400px at 50% 0%, rgba(52,152,219,0.18), transparent 60%), var(--light-bg);
}

.page-index .contact-form,
.page-index .info-item {
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.page-index .about-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: rgba(255,255,255,0.72);
    box-shadow: var(--shadow-sm);
    padding: 2.2rem;
}

.page-index .about-text .section-title {
    text-align: left;
}

.page-index .about-text p {
    margin-top: 1rem;
    color: var(--text-color);
}

.page-index .about-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.page-index .about-actions .btn-ghost {
    color: var(--primary-color);
    border-color: rgba(17, 24, 39, 0.14);
    background: rgba(255,255,255,0.75);
}

.page-index .about-actions .btn-ghost:hover {
    border-color: rgba(17, 24, 39, 0.22);
}

.page-index .about-features {
    display: grid;
    gap: 0.9rem;
}

.page-index .feature {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(245, 246, 250, 0.75);
}

.page-index .feature i {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.page-index .feature-title {
    font-weight: 900;
    color: var(--text-dark);
}

.page-index .feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .page-index .about-card {
        grid-template-columns: 1fr;
    }
    .page-index .about-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-index .hero-stats {
        grid-template-columns: 1fr;
        bottom: 12px;
    }
    .page-index .hero .slide-content h2 {
        font-size: 2.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-index .nav-links a::after,
    .page-index .modern-cards .card-link::after {
        transition: none !important;
    }
}

.cta-button:hover {
    background-color: transparent;
    border-color: white;
    transform: translateY(-3px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow i {
    color: white;
    font-size: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .active::before {
    background: white;
    transform: scale(1.2);
}

/* RTL Support for Slider */
[dir="rtl"] .slide-content {
    direction: rtl;
}

[dir="rtl"] .slider-arrow.prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .slider-arrow.next {
    right: auto;
    left: 20px;
}

[dir="rtl"] .slider-arrow i {
    transform: scaleX(-1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow i {
        font-size: 1.2rem;
    }
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 5rem 5%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RTL Contact Form */
[dir="rtl"] .contact-container {
    direction: rtl;
}

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

[dir="rtl"] .contact-form {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .form-control {
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
        padding: 20px;
    }
}

/* Portfolio Styles */
.portfolio-header,
.blog-header,
.faq-header {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background-color: var(--light-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform, filter;
}

.portfolio-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform, filter;
}

.blog-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.blog-excerpt {
    margin: 1rem 0;
    color: #444;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* FAQ Styles */
.faq-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-bg);
}

.faq-answer p {
    padding: 1rem 0;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* RTL Support for FAQ Section */
[dir="rtl"] .faq-section {
    text-align: right;
}

[dir="rtl"] .faq-question {
    padding: 1rem 1.5rem 1rem 3rem;
}

[dir="rtl"] .faq-question i {
    left: 1.5rem;
    right: auto;
}

[dir="rtl"] .faq-question,
[dir="rtl"] .faq-answer {
    font-family: 'Cairo', sans-serif;
}

/* RTL Support for Articles Section */
[dir="rtl"] .articles-section {
    text-align: right;
}

[dir="rtl"] .article-card {
    direction: rtl;
}

[dir="rtl"] .article-title,
[dir="rtl"] .article-excerpt {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .read-more {
    font-family: 'Cairo', sans-serif;
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .read-more i {
    margin-left: 0;
    margin-right: 0.5rem;
    transform: scaleX(-1);
}

/* Mobile Responsive RTL Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .faq-question {
        padding: 1rem 1rem 1rem 2.5rem;
    }
    
    [dir="rtl"] .faq-question i {
        left: 1rem;
    }
}

/* Residential Showcase */
.residential-showcase {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

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

.showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.showcase-item:hover::after {
    opacity: 1;
}

.showcase-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform, filter;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.showcase-item:hover .showcase-content {
    transform: translateY(0);
}

.showcase-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.showcase-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* RTL Support for Showcase */
[dir="rtl"] .showcase-content {
    text-align: right;
}

[dir="rtl"] .showcase-title,
[dir="rtl"] .showcase-description {
    font-family: 'Cairo', sans-serif;
}

/* RTL Support for Residential Showcase */
[dir="rtl"] .showcase-content {
    text-align: right;
}

[dir="rtl"] .showcase-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

[dir="rtl"] .showcase-description {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
}

[dir="rtl"] .showcase-item:hover .showcase-content {
    transform: translateY(0);
}

/* Adjust hover animation for RTL */
[dir="rtl"] .showcase-item {
    transition: transform 0.3s ease-in-out;
}

[dir="rtl"] .showcase-item:hover {
    transform: translateY(-10px);
}

/* Mobile Responsive RTL Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .showcase-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    [dir="rtl"] .showcase-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .showcase-image {
        height: 250px;
    }
}

/* Article Detail Styles */
.article-detail {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
}

.article-meta > * {
    margin: 0 0.5rem;
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.prev-article,
.next-article {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.prev-article:hover,
.next-article:hover {
    color: var(--secondary-color);
}

.prev-article i {
    margin-right: 0.5rem;
}

.next-article i {
    margin-left: 0.5rem;
}

/* RTL Article Detail Styles */
[dir="rtl"] .article-content {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

[dir="rtl"] .article-content ul {
    padding-right: 2rem;
    padding-left: 0;
}

[dir="rtl"] .prev-article i {
    margin-right: 0;
    margin-left: 0.5rem;
    transform: scaleX(-1);
}

[dir="rtl"] .next-article i {
    margin-left: 0;
    margin-right: 0.5rem;
    transform: scaleX(-1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-detail {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
    }

    .header-contact {
        justify-content: center;
    }

    [dir="rtl"] .hero-content h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    [dir="rtl"] .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

main {
    padding-top: 40px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .showcase-item,
    .showcase-image,
    .showcase-content,
    .slide img,
    .portfolio-item,
    .portfolio-item img,
    .blog-card,
    .blog-card img {
        transition: none !important;
    }

    .showcase-item:hover,
    .showcase-item:hover .showcase-image,
    .hero:hover .slide.active img,
    .portfolio-item:hover img,
    .blog-card:hover img {
        transform: none !important;
    }
}
