/* ========== VARIABLES & RESET ========== */
:root {
    --primary-color: #caba9f;
    --secondary-color: #8b7a5e;
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f8f6f2;
    --dark-bg: #2c3e50;
    --border-color: #eee;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* ========== UTILITY CLASSES ========== */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-5px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========== GEOMETRIC BACKGROUND ========== */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(90deg, var(--primary-color) 0px, var(--primary-color) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, var(--primary-color) 0px, var(--primary-color) 1px, transparent 1px, transparent 60px);
}

/* ========== TOP BAR ========== */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info i {
    margin-left: 5px;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== HEADER & NAVIGATION ========== */
.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
.logo-wrapper {
    flex: 0 0 auto;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-default {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-default .fa-building {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-primary {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-secondary {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Navigation */
.primary-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1001;
}

.nav-container {
    width: 100%;
    max-width: 800px;
}

/* Main Menu */
.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-menu > .menu-item {
    position: relative;
}

.main-menu > .menu-item > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border-radius: 6px;
    white-space: nowrap;
}

.main-menu > .menu-item > a:hover {
    background-color: var(--primary-color);
    color: white;
}

.main-menu > .menu-item.current-menu-item > a {
    background-color: var(--primary-color);
    color: white;
}

/* Dropdown Arrows */
.dropdown-arrow {
    margin-right: 5px;
    font-size: 0.8em;
    color: #666;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item > a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sub-menu .menu-item > a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-right: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
}

.mobile-menu-toggle .fa-bars {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.is-active .fa-bars {
    transform: rotate(90deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-visible {
    opacity: 1;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(90deg, rgba(202, 186, 159, 0.9) 0%, rgba(139, 122, 94, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1518780664697-55e3ad937233?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background-color: var(--light-bg);
}

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

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    background-color: var(--primary-color);
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin: 15px 0;
}

.service-features li {
    margin-bottom: 8px;
    padding-right: 20px;
    position: relative;
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* ========== PROJECTS SECTION ========== */
.projects-section {
    padding: 70px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.project-detail {
    text-align: center;
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ========== CLIENTS SECTION ========== */
.clients-section {
    background-color: var(--light-bg);
    padding: 70px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.client-logo {
    background-color: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ========== CALL TO ACTION ========== */
.action-call {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.action-call h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.action-call p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
}

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

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

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ddd;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .primary-navigation {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .nav-container.is-open {
        display: block;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        background: white;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }
    
    .main-menu > .menu-item > a {
        justify-content: space-between;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sub-menu {
        position: static !important;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin-top: 0;
        background: #f9f9f9;
    }
    
    .menu-item-has-children.is-open > .sub-menu {
        max-height: 500px;
        padding: 10px 0;
        margin-top: 5px;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-primary {
        font-size: 1.5rem;
    }
    
    .logo-secondary {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========== 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;
}

:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
/* ========== IMPROVEMENTS & FIXES ========== */

/* تحسين الهيدر */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(139, 122, 94, 0.15);
    transition: all 0.3s ease;
}

.main-header.is-sticky {
    padding: 5px 0;
    box-shadow: 0 5px 30px rgba(139, 122, 94, 0.2);
}

/* تحسين الناف بار */
.nav-container {
    background: transparent;
}

.main-menu > .menu-item > a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu > .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.main-menu > .menu-item > a:hover::after,
.main-menu > .menu-item.current-menu-item > a::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* إبراز كلمة "مشاريعنا" في السلايدر */
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-text h1 .highlight {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0 15px;
    border-radius: 10px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(202, 186, 159, 0.3);
}

/* تحسين قسم "لماذا تختارنا" */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(202, 186, 159, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* تحسين قسم "أبرز مشاريعنا" */
.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects-header h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.projects-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.projects-header p {
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* تحسين الكروت */
.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(202, 186, 159, 0.3);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

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

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

.project-info {
    padding: 25px;
    background: white;
}

.project-info h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-item {
    text-align: center;
    flex: 1;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

.meta-value {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* تحسين قسم الإحصائيات */
.stats-section {
    background: linear-gradient(135deg, rgba(202, 186, 159, 0.95), rgba(139, 122, 94, 0.95)),
                url('https://images.unsplash.com/photo-1503387769-00c5f6d1fc0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* تحسين دعوة الاتصال */
.cta-section {
    background: white;
    padding: 80px 0;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(202, 186, 159, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(202, 186, 159, 0.4);
}

.cta-button i {
    font-size: 1.5rem;
}

/* ========== FOOTER IMPROVEMENTS ========== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col {
    position: relative;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

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

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-item .text {
    flex: 1;
}

.contact-item h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-social {
    margin-top: 25px;
}

.social-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .projects-header h2 {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h1 .highlight {
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========== CLIENTS BAR ========== */
.clients-bar {
    background: var(--light-bg, #f8f6f2);
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color, #caba9f);
}

.clients-before-header {
    margin-top: 0;
}

.clients-after-header {
    margin-top: 0;
    border-bottom: none;
    border-top: 2px solid var(--primary-color, #caba9f);
}

.clients-before-footer {
    background: white;
    border-top: 2px solid var(--primary-color, #caba9f);
    border-bottom: none;
}

.clients-title {
    text-align: center;
    margin-bottom: 25px;
}

.clients-title h3 {
    color: var(--secondary-color, #8b7a5e);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.clients-title h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color, #caba9f);
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

.clients-logos::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.client-logo-item {
    flex: 0 0 auto;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 180px;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.client-logo-item a {
    display: block;
    text-decoration: none;
}

.client-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color, #333);
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Auto scroll animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.clients-logos.auto-scroll {
    display: flex;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

/* Responsive Clients Bar */
@media (max-width: 1200px) {
    .clients-logos {
        gap: 30px;
    }
    
    .client-logo-item {
        min-width: 160px;
    }
    
    .client-logo-item img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 992px) {
    .clients-logos {
        gap: 25px;
        justify-content: flex-start;
        padding: 20px;
    }
    
    .client-logo-item {
        min-width: 140px;
    }
    
    .client-logo-item img {
        width: 120px;
        height: 120px;
    }
    
    .clients-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .clients-bar {
        padding: 20px 0;
    }
    
    .clients-logos {
        gap: 20px;
        padding: 15px;
    }
    
    .client-logo-item {
        min-width: 120px;
        padding: 10px;
    }
    
    .client-logo-item img {
        width: 100px;
        height: 100px;
    }
    
    .clients-title h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .clients-logos {
        gap: 15px;
        justify-content: space-around;
    }
    
    .client-logo-item {
        min-width: 100px;
    }
    
    .client-logo-item img {
        width: 80px;
        height: 80px;
    }
    
    .client-name {
        font-size: 0.8rem;
    }
}
/* ========== ENHANCED CLIENTS SECTION IN FOOTER ========== */
.clients-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin: 0;
}

.clients-header {
    text-align: center;
    margin-bottom: 40px;
}

.clients-header .section-title {
    color: var(--secondary-color, #8b7a5e);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.clients-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color, #caba9f);
}

.clients-header .section-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 15px auto 0;
    line-height: 1.6;
}

/* Clients Grid - Clean Header Style */
.clients-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.client-logo-wrapper {
    text-align: center;
    padding: 15px;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.client-logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-logo-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.client-logo-wrapper:hover .client-logo-box {
    border-color: var(--primary-color, #caba9f);
    box-shadow: 0 8px 20px rgba(202, 186, 159, 0.15);
    transform: translateY(-5px);
}

.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo-wrapper:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-top: 8px;
    transition: color 0.3s ease;
}

.client-logo-wrapper:hover .client-name {
    color: var(--primary-color, #caba9f);
}

/* Empty state styling */
.clients-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
    width: 100%;
}

.clients-empty i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

.clients-empty p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design for Clients Section */
@media (max-width: 1200px) {
    .clients-logos-grid {
        gap: 25px;
    }
    
    .client-logo-box {
        width: 110px;
        height: 110px;
        padding: 12px;
    }
}

@media (max-width: 992px) {
    .clients-section {
        padding: 50px 0;
    }
    
    .clients-header .section-title {
        font-size: 1.8rem;
    }
    
    .clients-logos-grid {
        gap: 20px;
    }
    
    .client-logo-box {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 40px 0;
    }
    
    .clients-header .section-title {
        font-size: 1.6rem;
    }
    
    .clients-header .section-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .clients-logos-grid {
        gap: 15px;
    }
    
    .client-logo-box {
        width: 90px;
        height: 90px;
    }
    
    .client-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .clients-logos-grid {
        gap: 12px;
    }
    
    .client-logo-box {
        width: 80px;
        height: 80px;
        padding: 8px;
    }
    
    .client-logo-wrapper {
        padding: 10px;
    }
}

/* Smooth animations */
@keyframes fadeInClient {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-logo-wrapper {
    animation: fadeInClient 0.5s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
    opacity: 0;
}
/* ========== v4.0 ADDITIONS ========== */

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

/* Hero Buttons Group */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounceDown 2s infinite;
    cursor: pointer;
    opacity: 0.8;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Mobile menu toggle lines */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Header CTA */
.header-cta { display: flex; align-items: center; }

/* Sticky header scrolled state */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.main-header.is-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top bar links */
.top-bar .contact-info a {
    color: var(--topbar-text);
    text-decoration: none;
    transition: opacity 0.2s;
}
.top-bar .contact-info a:hover { opacity: 0.8; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-social {
    color: var(--topbar-text);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s;
}
.topbar-social:hover { background: rgba(255,255,255,0.3); }
.topbar-whatsapp {
    background: rgba(37,211,102,0.3) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
}

/* Footer improvements */
.footer-logo-area { margin-bottom: 20px; }
.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}
.footer-logo-text i { font-size: 1.6rem; color: var(--primary-color); }
.footer-about-text { color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 20px; }
.footer-social-hint { color: rgba(255,255,255,0.5); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s, padding-right 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links ul li a:hover { color: var(--primary-color); padding-right: 5px; }
.footer-contact .contact-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-contact .contact-item a:hover { color: var(--primary-color); }
.footer-dev { opacity: 0.6; font-size: 0.85rem; }

/* Clients section */
.clients-header { text-align: center; margin-bottom: 40px; }
.clients-title { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 10px; }
.clients-subtitle { color: #666; font-size: 1.05rem; }

/* CTA Buttons */
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-color: transparent !important;
}
.cta-whatsapp:hover { opacity: 0.9; transform: translateY(-3px); }

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    color: white;
}
.whatsapp-float.pulse { animation: waPulse 1s ease; }
@keyframes waPulse {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 35px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.15); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-color); transform: translateY(-3px); }

/* btn-projects */
.btn-projects {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    border-radius: var(--btn-radius);
    padding: 15px 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.btn-projects:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }

/* Section toggle visibility */
.features-section,
.projects-section,
.stats-section,
.cta-section,
.clients-section { transition: opacity 0.3s ease; }

/* Submenu open state on mobile */
@media (max-width: 992px) {
    .mobile-menu-toggle { display: flex; }
    .primary-navigation .nav-container {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        padding: 70px 0 30px;
        overflow-y: auto;
        z-index: 1050;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }
    .primary-navigation .nav-container.active {
        display: block;
        transform: translateX(0);
    }
    .main-menu { flex-direction: column; padding: 0 20px; }
    .main-menu > .menu-item { border-bottom: 1px solid #f0f0f0; }
    .main-menu > .menu-item > a { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; }
    .menu-item.open > .sub-menu { display: block !important; }
    .sub-menu { display: none; padding-right: 15px; }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    .mobile-menu-overlay.active { display: block; }
    .hidden-mobile { display: none !important; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .header-cta { display: none; }
    .whatsapp-float { left: 15px; bottom: 75px; width: 52px; height: 52px; font-size: 1.6rem; }
    .back-to-top { left: 15px; bottom: 20px; }
}

/* Print styles */
@media print {
    .top-bar, .main-header, .mobile-menu-toggle,
    .whatsapp-float, .back-to-top { display: none !important; }
}
