/* CSS Variables */
:root {
    --primary-color: #d97706;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Service Detail Pages */
.service-detail-page {
    padding: 120px 0 80px;
    background: var(--light-color);
}

.service-content-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.service-description {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    height: fit-content;
}

.service-description h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-description h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin: 25px 0 10px;
    font-weight: 600;
}

.service-description p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Service Gallery */
.service-gallery {
    position: relative;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.gallery-slider .slide.active {
    opacity: 1;
}

.gallery-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: var(--shadow);
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.gallery-btn i {
    font-size: 1.2rem;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.gallery-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.gallery-dots .dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-content-detailed {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-gallery {
        height: 300px;
    }
    
    .service-description {
        padding: 20px;
    }
    
    .service-description h2 {
        font-size: 1.5rem;
    }
    
    .service-description h3 {
        font-size: 1.2rem;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
    }
    
    .gallery-btn i {
        font-size: 1rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

body.ar {
    font-family: 'Cairo', sans-serif;
}

body.en {
    font-family: 'Roboto', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--light-color);
    padding-left: 25px;
}

.coming-soon {
    position: relative;
}

.coming-soon-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-color);
}

.language-switcher a.active,
.language-switcher a:hover {
    background: var(--primary-color);
    color: white;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: slideUp 1s ease;
}

.slide-logo {
    width: 150px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    background: rgba(255, 255, 255, 0.25);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: logoFadeIn 1.5s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.hero-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    pointer-events: auto;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: white;
    margin-top: -1px;
}

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

.stat-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    background: var(--light-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-preview {
    padding: 100px 0;
    background: white;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* Service Card Background Images */
.service-finishing {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../uploads/تشطيبات/WhatsApp-Image-2024-05-13-at-9.19.28-AM-768x1024.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.service-structural {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../uploads/عضم/WhatsApp-Image-2024-05-13-at-9.04.51-AM-2-1024x768.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.service-excavation {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../uploads/الحفريات/WhatsApp-Image-2024-05-13-at-9.02.24-AM-1-576x1024.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.service-maintenance {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../uploads/الصيانة/55834.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Override text colors for service cards with backgrounds */
.service-finishing h3,
.service-structural h3,
.service-excavation h3,
.service-maintenance h3 {
    color: white;
}

.service-finishing p,
.service-structural p,
.service-excavation p,
.service-maintenance p {
    color: rgba(255, 255, 255, 0.9);
}

.service-finishing .service-link,
.service-structural .service-link,
.service-excavation .service-link,
.service-maintenance .service-link {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

/* Projects */
.featured-projects {
    padding: 100px 0;
    background: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color) !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-content .category {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-content p {
    color: var(--text-color) !important;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-color) !important;
    opacity: 0.8;
}

.project-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card .project-overlay .project-info {
    color: white;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-info p {
    opacity: 0.9;
}

.project-link {
    color: white;
    font-size: 20px;
    background: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Articles */
.latest-articles {
    padding: 100px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
}

.article-meta i {
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--border-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more::after {
    content: '←';
    transition: var(--transition);
}

.read-more:hover {
    gap: 8px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 150px 0 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* About Page */
.about-page {
    padding: 50px 0 100px;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.about-text .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.mission-vision {
    margin-bottom: 40px;
}

.mission h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certificates h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-grid {
    display: grid;
    gap: 15px;
}

.cert-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.cert-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.cert-link i:first-child {
    color: var(--secondary-color);
    font-size: 24px;
}

.cert-link:hover i:first-child {
    color: white;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Services Page */
.services-page {
    padding: 50px 0 100px;
    background: var(--light-color);
}

.services-detailed {
    margin-top: 60px;
}

.service-item {
    background: white;
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.service-item .service-icon {
    margin: 0;
    flex-shrink: 0;
}

.service-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-text p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--accent-color);
    font-size: 14px;
}

.coming-soon-service {
    opacity: 0.7;
    position: relative;
}

.coming-soon-service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-lg);
}

/* Contact Page */
.contact-page {
    padding: 50px 0 100px;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Phone Numbers Styling */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.phone-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.phone-number a {
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
}

.phone-actions {
    display: flex;
    gap: 10px;
}

.phone-action,
.whatsapp-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.phone-action {
    background: var(--primary-color);
    color: white;
}

.phone-action:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.whatsapp-action {
    background: #25d366;
    color: white;
}

.whatsapp-action:hover {
    background: #128c7e;
    transform: scale(1.1);
}

/* Footer WhatsApp icons */
.footer-phones p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-whatsapp {
    color: #25d366;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-whatsapp:hover {
    color: #128c7e;
    transform: scale(1.2);
}

.contact-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-map {
    margin-top: 60px;
}

.contact-map h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.map-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-link {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-link:hover {
    background: var(--secondary-color);
}

/* Single Project */
.single-project {
    padding: 50px 0 100px;
    background: white;
}

.project-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.project-gallery {
    position: relative;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    pointer-events: auto;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.thumbnail {
    height: 80px;
    border-radius: var(--border-radius);
    cursor: pointer;
    object-fit: cover;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.single-project .project-info {
    position: sticky;
    top: 120px;
    color: var(--text-color);
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.project-meta .date {
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-description p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.project-specs h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.project-specs ul {
    list-style: none;
}

.project-specs li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.project-specs li:last-child {
    border-bottom: none;
}

.project-specs i {
    color: var(--accent-color);
}

/* Single Article */
.single-article {
    padding: 50px 0 100px;
    background: white;
}

.article-content {
    max-width: 800px;
    margin: 60px auto 0;
}

.article-content .article-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-content .article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content .article-meta {
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-messages {
    position: absolute;
    bottom: 70px;
    left: 70px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 12px;
    width: auto;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: var(--transition);
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* إزالة hover effect لجعل الرسائل ظاهرة دائماً */

.whatsapp-message {
    padding: 4px 6px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 500;
}

.whatsapp-message:last-child {
    border-bottom: none;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128c7e;
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#visit-counter {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Error Page */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.error-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white-color);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav.mobile-active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        align-items: stretch;
    }
    
    .nav ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 15px 0;
        border-bottom: none;
        text-align: right;
    }
    
    .nav a::after {
        display: none;
    }
    
    /* Dropdown in mobile */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--light-color);
        margin-top: 10px;
        display: none;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .social-icons {
        display: none;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-controls {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid,
    .projects-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-info {
        position: static;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-messages {
        min-width: 200px;
        left: -50px;
        bottom: 75px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .back-to-top {
        bottom: 100px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .cta-btn {
        padding: 12px 25px;
    }
    
    .service-card,
    .project-card,
    .article-card {
        margin-bottom: 20px;
    }
    
    .project-image,
    .article-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .nav {
        width: 280px;
    }
}

/* Arabic RTL Adjustments */
.ar .breadcrumb {
    direction: ltr;
}

.ar .read-more::after {
    content: '→';
}

.ar .service-link:hover {
    gap: 12px;
}

.ar .footer-section ul li a:hover {
    padding-right: 5px;
    padding-left: 0;
}


/* Animations */
[data-aos] {
    opacity: 0;
    transition-duration: 1s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

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

/* Company Hero Section */
.company-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.company-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.company-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.company-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Home Location Section */
.home-location {
    padding: 80px 0;
    background: var(--light-bg);
}

.location-map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.map-link {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 14px;
}

.map-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.map-link i {
    margin-left: 8px;
}

/* Responsive Design for Company Hero */
@media (max-width: 768px) {
    .company-title {
        font-size: 2rem;
    }
    
    .company-subtitle {
        font-size: 1.1rem;
    }
    
    .company-hero {
        min-height: 60vh;
    }
    
    .map-link {
        position: static;
        display: inline-block;
        margin-top: 15px;
    }
}

/* Clients and Partners Section */
.clients-partners {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.clients-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff"><polygon points="0,0 1000,0 1000,20 0,100" opacity="0.1"/></svg>') no-repeat center;
    background-size: cover;
    z-index: 1;
}

.clients-partners .container {
    position: relative;
    z-index: 2;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
    width: auto;
    height: auto;
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Add animation for partners grid */
.partners-grid {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Partners */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 25px;
    }
    
    .partner-logo {
        height: 120px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .clients-partners {
        padding: 60px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .partner-logo {
        height: 100px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .partner-logo:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-logo {
        height: 80px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .clients-partners {
        padding: 40px 0;
    }
}

/* Add subtle animation for section title */
.clients-partners .section-title {
    color: var(--primary-color);
    position: relative;
}

.clients-partners .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.clients-partners .section-subtitle {
    color: #6c757d;
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.mobile-active + .nav-overlay,
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}