/* ====================================
   إعدادات عامة
==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* إضافة تأثيرات الحركة العامة */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* كلاسات الحركة العامة */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in-left {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.slide-in-right {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.scale-in {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* تأثيرات التحميل */
.loading-animation {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* تأثيرات النقر */
.click-animation {
    animation: clickEffect 0.3s ease;
}

@keyframes clickEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* تأثيرات التمرير */
.scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* تأثيرات التموج */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

:root {
    --primary-color: #4285F4;
    --secondary-color: #1a73e8;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====================================
   أزرار التواصل العائمة
==================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.phone-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ====================================
   الهيدر الرئيسي
==================================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0 5px;
    column-gap: 24px; /* add space between groups on desktop */
}

/* البحث في الهيدر */
.header-search {
    display: flex;
    align-items: center;
    margin: 0 8px;
    flex: 1 1 480px; /* expand to create space between logo and nav */
}

.site-search-mini { 
    display: flex; 
    gap: 0; 
    align-items: center; 
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.site-search-mini:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.site-search-mini input { 
    padding: 12px 16px; 
    border: none; 
    background: transparent;
    font-family: 'Cairo', sans-serif; 
    width: 200px; 
    font-size: 14px;
    outline: none;
}

.site-search-mini input::placeholder {
    color: #999;
}

.site-search-mini button { 
    background: var(--primary-color); 
    color: #fff; 
    border: none; 
    padding: 12px 16px; 
    cursor: pointer; 
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-search-mini button:hover { 
    background: var(--secondary-color); 
}

/* البحث في الموبايل */
.mobile-search {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-search-form {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mobile-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
}

.mobile-search-form input::placeholder {
    color: #999;
}

.mobile-search-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-form button:hover {
    background: var(--secondary-color);
}

/* ====================================
   Responsive Styles for Enhanced Sections
==================================== */
/* ====================================
   Media Queries - Tablets (769px - 1024px)
==================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero Slider Tablet */
    .hero-slider {
        height: 600px !important;
        min-height: 600px !important;
        max-height: 700px !important;
    }
    
    .slide-content h2 {
        font-size: 3.2rem !important;
    }
    
    .slide-content p {
        font-size: 1.3rem !important;
    }
    
    .cta-btn {
        padding: 16px 45px !important;
    }
    
    .slider-btn {
        width: 55px !important;
        height: 55px !important;
    }
    
    .slider-btn.prev {
        left: 30px !important;
    }
    
    .slider-btn.next {
        right: 30px !important;
    }
    
    /* Services Section Tablet */
    .services-section {
        padding: 80px 0 !important;
    }
    
    .section-header h2 {
        font-size: 2.5rem !important;
    }
    
    .section-header p {
        font-size: 1.15rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .service-image {
        height: 230px !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem !important;
    }
    
    .service-description {
        font-size: 14px !important;
    }
    
    /* Latest Works Tablet */
    .latest-works {
        padding: 80px 0 !important;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .work-card {
        height: 380px !important;
    }
    
    .work-overlay h4 {
        font-size: 1.6rem !important;
    }
    
    .work-link {
        padding: 13px 32px !important;
    }
    
    /* About Section Tablet */
    .about-section {
        padding: 80px 0 !important;
    }
    
    .about-content {
        gap: 50px !important;
    }
    
    .about-text h2 {
        font-size: 2.5rem !important;
    }
    
    .about-text p {
        font-size: 1.08rem !important;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
    
    .about-image {
        height: 500px !important;
    }
    
    /* Footer Tablet */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 45px !important;
    }
    
    .footer-section h3 {
        font-size: 1.4rem !important;
    }
    
    .company-logo-footer {
        width: 95px !important;
    }
    
    /* Stats Section Tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .stat-item {
        padding: 35px 20px !important;
        min-height: 200px !important;
    }
    
    .stat-icon {
        font-size: 2.5rem !important;
        margin-bottom: 18px !important;
    }
    
    .stat-number {
        font-size: 2.8rem !important;
    }
    
    .stat-label {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Global Section Padding for Mobile */
    section {
        padding: 60px 0 !important;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Hero Slider Mobile */
    .hero-slider {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
    }
    
    .slide-content {
        padding: 0 20px !important;
        width: 95% !important;
    }
    
    .slide-content h2 {
        font-size: 2.5rem !important;
        margin-bottom: 18px !important;
        line-height: 1.3 !important;
    }
    
    .slide-content p {
        font-size: 1.15rem !important;
        margin-bottom: 25px !important;
        line-height: 1.6 !important;
    }
    
    .cta-btn {
        padding: 14px 35px !important;
        font-size: 1rem !important;
    }
    
    .slider-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    .slider-btn.prev {
        left: 20px !important;
    }
    
    .slider-btn.next {
        right: 20px !important;
    }
    
    .slider-dots {
        bottom: 30px !important;
        padding: 12px 20px !important;
    }
    
    .dot {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: 70px 0 !important;
    }
    
    .section-header {
        margin-bottom: 45px !important;
    }
    
    .section-header h2 {
        font-size: 2.2rem !important;
    }
    
    .section-header p {
        font-size: 1.05rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 10px !important;
    }
    
    .service-card {
        margin-bottom: 0 !important;
    }
    
    .service-image {
        height: 220px !important;
    }
    
    .service-card h3 {
        font-size: 1.25rem !important;
        padding: 22px 20px 12px !important;
    }
    
    .service-description {
        padding: 0 20px 18px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    .service-btn {
        margin: 0 20px 20px !important;
        padding: 13px 28px !important;
        font-size: 14px !important;
    }
    
    .service-badge {
        top: 12px !important;
        right: 12px !important;
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
    
    /* Latest Works Mobile */
    .latest-works {
        padding: 70px 0 !important;
    }
    
    .works-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 10px !important;
        margin-top: 45px !important;
    }
    
    .work-card {
        height: 360px !important;
        margin-bottom: 0 !important;
        border-radius: 20px !important;
    }
    
    .work-overlay {
        padding: 25px !important;
    }
    
    .work-overlay h4 {
        font-size: 1.4rem !important;
        padding: 0 10px !important;
        margin-bottom: 12px !important;
    }
    
    .work-category {
        font-size: 13px !important;
        padding: 6px 16px !important;
        margin-bottom: 15px !important;
    }
    
    .work-link {
        padding: 12px 30px !important;
        font-size: 0.95rem !important;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 70px 0 !important;
    }
    
    .about-section::after {
        width: 400px !important;
        height: 400px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 0 !important;
    }
    
    .about-text {
        padding: 20px 0 !important;
        order: 2 !important;
    }
    
    .about-text h2 {
        font-size: 2.2rem !important;
        margin-bottom: 25px !important;
    }
    
    .about-text p {
        font-size: 1.05rem !important;
        margin-bottom: 18px !important;
    }
    
    .about-description {
        padding: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .about-features {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .feature-item {
        padding: 18px 20px !important;
    }
    
    .feature-item i {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }
    
    .feature-item span {
        font-size: 0.95rem !important;
    }
    
    .read-more-btn {
        padding: 14px 35px !important;
        font-size: 1rem !important;
    }
    
    .about-image {
        height: 400px !important;
        order: 1 !important;
        border-radius: 20px !important;
    }
    
    .about-text h2 {
        font-size: 1.9rem;
        margin-bottom: 20px;
    }
    
    .about-text h2::after {
        width: 50px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 18px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 25px 0;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .feature-item i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        padding: 15px;
    }
    
    .feature-item span {
        font-size: 0.95rem;
    }
    
    .read-more-btn {
        padding: 12px 32px;
        font-size: 0.95rem;
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
    
    .about-image {
        border-radius: 12px;
    }
    
    /* Blog Section Mobile */
    .latest-blog {
        padding: 60px 0;
    }
    
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .blog-card {
        margin-bottom: 15px;
    }
    
    .blog-card .thumb {
        height: 220px;
    }
    
    .blog-card .info {
        padding: 25px 20px;
    }
    
    .blog-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .blog-card .meta {
        margin-bottom: 15px;
    }
    
    .blog-card .more {
        margin-top: 15px;
        padding: 10px 25px;
    }
    
    /* Stats Section Mobile */
    .stats-section {
        padding: 60px 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
    
    .stat-item {
        padding: 30px 20px !important;
        min-height: 190px !important;
    }
    
    .stat-icon {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .stat-label {
        font-size: 0.95rem !important;
    }
    
    /* Why Us Section Mobile */
    .why-us-section {
        padding: 60px 0;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .why-item {
        padding: 30px 25px;
        margin-bottom: 15px;
    }
    
    .why-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .why-item h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .why-item p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 5px;
    }
    
    /* Buttons Mobile */
    .btn-ghost {
        padding: 14px 35px;
        font-size: 1rem;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile - Enhanced Padding */
    section {
        padding: 50px 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-header {
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Hero Slider Extra Small */
    .hero-slider {
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
    }
    
    .slide-content {
        padding: 0 15px !important;
        width: 95% !important;
    }
    
    .slide-content h2 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
    }
    
    .slide-content p {
        font-size: 1rem !important;
        margin-bottom: 22px !important;
        line-height: 1.5 !important;
    }
    
    .cta-btn {
        padding: 12px 30px !important;
        font-size: 0.95rem !important;
    }
    
    .slider-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .slider-btn.prev {
        left: 15px !important;
    }
    
    .slider-btn.next {
        right: 15px !important;
    }
    
    .slider-dots {
        bottom: 25px !important;
        padding: 10px 18px !important;
        gap: 10px !important;
    }
    
    .dot {
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Services Grid Extra Small */
    .services-section {
        padding: 60px 0 !important;
    }
    
    .section-header {
        margin-bottom: 40px !important;
    }
    
    .section-header h2 {
        font-size: 1.9rem !important;
        padding-bottom: 12px !important;
    }
    
    .section-header h2::after {
        width: 60px !important;
        height: 3px !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 !important;
    }
    
    .service-card {
        margin-bottom: 0 !important;
        border-radius: 18px !important;
    }
    
    .service-image {
        height: 200px !important;
    }
    
    .service-card h3 {
        font-size: 1.2rem !important;
        padding: 20px 18px 10px !important;
    }
    
    .service-description {
        padding: 0 18px 16px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .service-btn {
        margin: 0 18px 18px !important;
        padding: 12px 25px !important;
        font-size: 13px !important;
        border-radius: 25px !important;
    }
    
    .service-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .btn-ghost {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
    
    /* Works Extra Small */
    .latest-works {
        padding: 60px 0 !important;
    }
    
    .works-grid {
        padding: 0 !important;
        gap: 25px !important;
        margin-top: 40px !important;
    }
    
    .work-card {
        height: 340px !important;
        margin-bottom: 0 !important;
        border-radius: 18px !important;
    }
    
    .work-overlay {
        padding: 20px !important;
    }
    
    .work-overlay h4 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    
    .work-category {
        font-size: 12px !important;
        padding: 5px 14px !important;
        margin-bottom: 12px !important;
    }
    
    .work-link {
        padding: 11px 25px !important;
        font-size: 0.9rem !important;
    }
    
    /* About Section Extra Small */
    .about-section {
        padding: 60px 0 !important;
    }
    
    .about-section::after {
        width: 300px !important;
        height: 300px !important;
    }
    
    .about-content {
        padding: 0 !important;
        gap: 35px !important;
    }
    
    .about-text {
        padding: 15px 0 !important;
    }
    
    .about-text h2 {
        font-size: 1.9rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .about-text h2::after {
        width: 60px !important;
        height: 3px !important;
    }
    
    .about-text h2::before {
        right: 65px !important;
        width: 20px !important;
    }
    
    .about-text p {
        font-size: 1rem !important;
        margin-bottom: 16px !important;
        line-height: 1.8 !important;
    }
    
    .about-description {
        padding: 18px !important;
        margin-bottom: 25px !important;
        border-right-width: 3px !important;
    }
    
    .about-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin: 30px 0 !important;
    }
    
    .feature-item {
        padding: 16px 18px !important;
        gap: 12px !important;
    }
    
    .feature-item i {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.6rem !important;
        padding: 12px !important;
    }
    
    .feature-item span {
        font-size: 0.9rem !important;
    }
    
    .read-more-btn {
        padding: 13px 32px !important;
        font-size: 0.95rem !important;
        margin-top: 20px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .about-image {
        height: 350px !important;
        border-radius: 18px !important;
    }
    
    .feature-item {
        padding: 22px 15px;
    }
    
    .feature-item i {
        font-size: 1.8rem;
        width: 55px;
        height: 55px;
        padding: 12px;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
    
    .read-more-btn {
        padding: 11px 28px;
        font-size: 0.9rem;
    }
    
    .about-image {
        padding: 0;
        border-radius: 12px;
    }
    
    /* Footer Extra Small */
    .main-footer {
        padding: 50px 0 0 !important;
    }
    
    .footer-content {
        gap: 35px !important;
        padding-bottom: 35px !important;
    }
    
    .footer-section h3 {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
    }
    
    .footer-section h3::after {
        width: 40px !important;
    }
    
    .company-logo-footer {
        width: 85px !important;
        margin-bottom: 20px !important;
    }
    
    .footer-section p {
        font-size: 13px !important;
        line-height: 1.8 !important;
        margin-bottom: 20px !important;
    }
    
    .social-media {
        gap: 8px !important;
    }
    
    .social-link {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    
    .social-link i {
        font-size: 15px !important;
    }
    
    .footer-links li {
        margin-bottom: 10px !important;
        padding-right: 15px !important;
    }
    
    .footer-links a {
        font-size: 13px !important;
    }
    
    .contact-list li {
        padding: 10px !important;
        margin-bottom: 15px !important;
        gap: 15px !important;
    }
    
    .contact-list i {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .contact-list span {
        font-size: 13px !important;
    }
    
    .footer-bottom {
        padding: 20px 10px !important;
    }
    
    .footer-bottom p {
        font-size: 12px !important;
        line-height: 1.7 !important;
    }
    
    /* Blog Cards Extra Small */
    .blog-cards-grid {
        padding: 0;
    }
    
    .blog-card {
        margin-bottom: 10px;
    }
    
    .blog-card .thumb {
        height: 200px;
    }
    
    .blog-card .info {
        padding: 20px 15px;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
    }
    
    .blog-card .meta span {
        font-size: 0.85rem;
    }
    
    /* Stats Grid Extra Small */
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .stat-item {
        padding: 30px 20px !important;
        min-height: 180px !important;
    }
    
    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .stat-label {
        font-size: 0.95rem !important;
    }
    
    /* Why Us Extra Small */
    .why-us-grid {
        gap: 20px;
        padding: 0;
    }
    
    .why-item {
        padding: 25px 20px;
        margin-bottom: 10px;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .why-item h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .why-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Buttons Extra Small */
    .btn-ghost {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* القسم الأيمن - الشعار ومعلومات التواصل */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: 24px; /* visual space between logo and nav/search */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.contact-info {
    text-align: center;
}

.phone-numbers {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* القائمة الرئيسية */
.main-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(66, 133, 244, 0.1);
}

.nav-link i {
    font-size: 12px;
}

/* Prevent elements from shrinking too small */
.logo-section { flex: 0 0 auto; }
.site-search-mini input { min-width: 160px; }

/* ترتيب العناصر للديسكتوب */
.logo-section { order: 1; }
.header-search { order: 2; }
.main-nav { order: 3; }

/* Allow wrapping on medium screens */
@media (max-width: 1200px) {
    .header-content { flex-wrap: wrap; row-gap: 10px; }
    .header-search { order: 2; width: 100%; justify-content: center; }
    .main-nav { order: 3; width: 100%; }
    .logo-section { order: 1; width: 100%; justify-content: center; }
}

/* Mobile alignment and layout */
@media (max-width: 992px) {
    /* Logo full width on the left */
    .logo-section { 
        justify-content: flex-start; 
        margin-left: 0; 
        width: 100%;
    }

    /* Hide desktop nav and desktop search on mobile */
    .main-nav { 
        display: none !important; 
    }
    .header-search { 
        display: none !important; 
    }

    /* Compact logo sizing on mobile */
    .logo img { width: 75px; }
    .logo-text h1 { font-size: 22px; }
    .logo-text p { font-size: 14px; }

    /* Show hamburger on mobile (keep it fixed and above) */
    .mobile-menu-toggle { 
        display: flex; 
        right: 16px; 
        left: auto; 
    }
}

/* القوائم المنسدلة */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* زر الاتصال في الهيدر */
.contact-btn-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-btn-header:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* زر القائمة للهاتف */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 10000;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
    pointer-events: auto;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark-color);
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
    background: var(--dark-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
    background: var(--dark-color);
}

/* ====================================
   قسم السلايدر الرئيسي المحسن
==================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 650px;
    max-height: 900px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1);
    transition: filter 0.8s ease;
}

.slide.active img {
    filter: brightness(0.75) contrast(1.05);
    animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 0 30px;
}

.slide-content .container {
    max-width: 100%;
}

.slide-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease-out 0.3s both;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
    animation: slideInUp 0.8s ease-out 0.7s both;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Slider Controls - الأزرار */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 3;
    opacity: 0.8;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
    left: 40px;
}

.slider-btn.next {
    right: 40px;
}

/* Slider Dots - النقاط المؤشرة */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transition: all 0.4s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dot.active::before {
    width: 6px;
    height: 6px;
    background: rgba(66, 133, 244, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   قسم الخدمات المحسن
==================================== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(66, 133, 244, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(66, 133, 244, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    padding: 0 15px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(26, 115, 232, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.service-card:hover .service-btn {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
}

.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    z-index: 1;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::before {
    opacity: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.featured-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card h3 {
    padding: 25px 25px 15px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-description {
    position: relative;
    z-index: 2;
    padding: 0 25px 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    flex-grow: 1;
}

.service-btn {
    display: block;
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 25px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
    text-align: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.service-btn:hover::before {
    width: 300px;
    height: 300px;
}

.service-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* زر عرض جميع الخدمات */
.btn-ghost {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-ghost:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

.btn-ghost:hover::before {
    left: 0;
}

/* ====================================
   قسم أحدث الأعمال المحسن
==================================== */
.latest-works {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.latest-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(66, 133, 244, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(66, 133, 244, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.latest-works .container {
    position: relative;
    z-index: 1;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.work-card {
    position: relative;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: white;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(26, 115, 232, 0.15));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.work-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.work-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(66, 133, 244, 0.3);
}

.work-card:hover::before {
    opacity: 1;
}

.work-card:hover::after {
    opacity: 0.3;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.95) contrast(1.05);
}

.work-card:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1) contrast(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(66, 133, 244, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-overlay h4 {
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s, opacity 0.5s ease 0.1s;
    opacity: 0;
    line-height: 1.3;
}

.work-card:hover .work-overlay h4 {
    transform: translateY(0);
    opacity: 1;
}

.work-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s, opacity 0.5s ease 0.2s;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.work-card:hover .work-category {
    transform: translateY(0);
    opacity: 1;
}

.work-link {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #1a73e8;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s, 
                opacity 0.5s ease 0.3s,
                background 0.3s ease,
                box-shadow 0.3s ease;
    opacity: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.work-card:hover .work-link {
    transform: translateY(0);
    opacity: 1;
}

.work-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.work-link:hover {
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(66, 133, 244, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.work-link:hover::before {
    width: 300px;
    height: 300px;
}

.work-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.work-link:hover i {
    transform: translateX(5px);
}

/* Masonry-like effect for odd items */
.work-card:nth-child(3n+1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.work-card:nth-child(3n+2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.work-card:nth-child(3n+3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ====================================
   قسم من نحن المحسن والعصري
==================================== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(66, 133, 244, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(66, 133, 244, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding: 30px 0;
}

.about-text h2 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 900;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 85px;
    width: 25px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.5;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 22px;
    text-align: right;
}

.about-text p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-description {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-right: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.about-description p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(66, 133, 244, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: height 0.4s ease;
}

.feature-item:hover {
    transform: translateX(-8px);
    box-shadow: 0 12px 35px rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.3);
}

.feature-item:hover::before {
    height: 100%;
}

.feature-item i {
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
}

.feature-item span {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.4;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    color: white;
    padding: 16px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
    margin-top: 25px;
    border: none;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.read-more-btn:hover::before {
    width: 400px;
    height: 400px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(66, 133, 244, 0.5);
    color: white;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(-5px);
}

.about-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 550px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.about-image:hover {
    box-shadow: 0 30px 70px rgba(66, 133, 244, 0.3);
    transform: translateY(-10px);
}

.about-image:hover::before {
    opacity: 0.4;
}

.about-image:hover::after {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(1) contrast(1.05);
}

.about-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

/* ====================================
   قسم الإحصائيات المحسن
==================================== */
.stats-section {
    padding: 80px 0 !important;
    background: #2c3e50 !important;
    color: #ffffff !important;
    min-height: 400px !important;
    display: block !important;
}

.stats-section .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px !important;
    text-align: center !important;
    width: 100% !important;
}

.stat-item {
    padding: 40px 25px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    min-height: 220px !important;
    display: block !important;
    text-align: center !important;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2) !important;
}

.stat-icon {
    font-size: 3rem !important;
    color: #4285F4 !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.stat-number {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    line-height: 1 !important;
    display: block !important;
}

.stat-item[data-stat="clients"] .stat-number::after,
.stat-item[data-stat="projects"] .stat-number::after,
.stat-item[data-stat="monthly"] .stat-number::after {
    content: '+' !important;
    font-size: 0.7em !important;
    margin-right: 5px !important;
}

.stat-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

/* تأثيرات العائمة */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ====================================
   شاشة التحميل
==================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loading-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: textPulse 1.5s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* تأثيرات التحميل للصور */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* تأثيرات خاصة للصفحة عند التحميل */
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* ====================================
   قسم لماذا نحن المحسن
==================================== */
.why-us-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.why-us-section::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 100 100"><defs><pattern id="hexagons" width="50" height="50" patternUnits="userSpaceOnUse"><polygon points="25,5 45,15 45,35 25,45 5,35 5,15" fill="none" stroke="%23ddd" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.why-us-section .container {
    position: relative;
    z-index: 2;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.why-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(66, 133, 244, 0.2);
}

.why-item:hover::before {
    opacity: 0.05;
}

.why-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

.why-item:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(66, 133, 244, 0.4);
}

.why-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.why-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}


.why-item h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.why-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* ====================================
   الفوتر المحسن والعصري
==================================== */
.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(66, 133, 244, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 2px solid rgba(66, 133, 244, 0.2);
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.company-info {
    padding-left: 15px;
}

.company-logo-footer {
    width: 100px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.company-logo-footer:hover {
    transform: scale(1.05);
}

.company-logo-footer img {
    width: 100%;
    height: auto;
    filter: brightness(1.2);
}

.footer-section p {
    font-size: 15px;
    line-height: 1.9;
    color: #d0d0d0;
    margin-bottom: 25px;
}

.social-media {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.4);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
    position: relative;
    padding-right: 18px;
}

.footer-links li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links li:hover::before {
    opacity: 1;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 8px;
}

.footer-links a:hover::after {
    width: 100%;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-right: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-list i {
    font-size: 20px;
    color: var(--primary-color);
    background: rgba(66, 133, 244, 0.15);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.contact-list span {
    font-size: 15px;
    color: #d0d0d0;
    line-height: 1.6;
}

.contact-list div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-bottom p {
    font-size: 15px;
    color: #d0d0d0;
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ====================================
   أحدث المقالات المحسن
==================================== */
.latest-blog { 
    padding: 100px 0; 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.latest-blog::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 100 100"><defs><pattern id="waves" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M0,25 Q12.5,0 25,25 T50,25 T75,25 T100,25" fill="none" stroke="%23ddd" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.latest-blog .container {
    position: relative;
    z-index: 2;
}

.blog-cards-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 60px;
}

.blog-card { 
    background: white; 
    border: 1px solid rgba(238, 240, 243, 0.8); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,.08); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    border-color: rgba(66, 133, 244, 0.2);
}

.blog-card:hover::before {
    opacity: 0.03;
}

.blog-card .thumb { 
    position: relative; 
    display: block; 
    height: 220px; 
    overflow: hidden; 
}

.blog-card .thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease;
    filter: brightness(0.95);
}

.blog-card:hover .thumb img { 
    transform: scale(1.08);
    filter: brightness(1);
}

.blog-card .thumb .badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); 
    color: white; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    z-index: 2;
}

.blog-card .info { 
    padding: 25px; 
    position: relative;
    z-index: 2;
}

.blog-card .info .meta { 
    color: #8a94a6; 
    font-size: 0.85rem; 
    margin-bottom: 12px; 
    display: flex; 
    gap: 15px; 
    align-items: center;
}

.blog-card .info .meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.blog-card h3 { 
    font-size: 1.2rem; 
    line-height: 1.5; 
    margin: 12px 0 15px; 
    font-weight: 700;
}

.blog-card h3 a { 
    color: var(--dark-color); 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.blog-card h3 a:hover { 
    color: var(--primary-color); 
}

.blog-card p { 
    color: #6b778c; 
    font-size: 0.95rem; 
    line-height: 1.7; 
    margin-bottom: 18px; 
}

.blog-card .more { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-card .more:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.blog-card .more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-card .more:hover i {
    transform: translateX(-3px);
}

.center { 
    text-align: center; 
    margin-top: 40px; 
}

.btn-ghost { 
    display: inline-block; 
    padding: 15px 35px; 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-ghost:hover { 
    background: var(--primary-color); 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.btn-ghost:hover::before {
    left: 0;
}

@media (max-width: 992px) { .blog-cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-cards-grid { grid-template-columns: 1fr; } .blog-card .thumb{height:170px;} }
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

/* نموذج بحث عام للموقع */
.site-search-form { margin-top: 14px; display:flex; gap:0; justify-content:center; }
.site-search-form input { padding:12px 14px; border:2px solid #ffffff; border-right:0; border-radius:8px 0 0 8px; min-width:300px; font-family:'Cairo',sans-serif; }
.site-search-form button { padding:12px 16px; background:#fff; color:var(--primary-color); border:2px solid #fff; border-left:0; border-radius:0 8px 8px 0; font-weight:700; cursor:pointer; }
.site-search-form button:hover { background: rgba(255,255,255,.9); }

/* قسم المدونة الرئيسي */
.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* المقالات */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-post.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.blog-post.featured .post-image {
    height: 300px;
}

.blog-post .post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content h2,
.post-content h3 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-post.featured .post-content h2 {
    font-size: 1.5rem;
}

.blog-post .post-content h3 {
    font-size: 1.3rem;
}

.post-content h2 a,
.post-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* الشريط الجانبي */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* نموذج البحث */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    padding: 12px 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* قائمة الفئات */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* المقالات الأخيرة */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.recent-post-content .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* الوسوم */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #f8f9fa;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* التصفح */
.blog-pagination {
    display: flex;
        justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
        display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-dots {
    color: var(--text-light);
}

/* ====================================
   صفحة تفاصيل المقال
==================================== */
.blog-details-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.blog-details-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.post-header {
    padding: 30px 30px 20px;
}

.post-header .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-header .post-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--dark-color);
}

.post-image {
    height: 400px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details-post .post-content {
    padding: 30px;
    line-height: 1.8;
}

.blog-details-post .post-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.blog-details-post .post-content h4 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
    color: var(--dark-color);
}

.blog-details-post .post-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.blog-details-post .post-content ul,
.blog-details-post .post-content ol {
    margin: 20px 0;
    padding-right: 20px;
}

.blog-details-post .post-content li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.post-footer {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.post-tags h4,
.post-share h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.post-tags {
    flex: 1;
}

.post-tags .tag {
    display: inline-block;
    background: #f8f9fa;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.post-share {
    flex: 1;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: var(--white);
}

.share-btn.twitter {
    background: #1da1f2;
    color: var(--white);
}

.share-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* الشريط الجانبي لتفاصيل المقال */
.blog-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.related-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-content .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-widget h3 {
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget .cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-widget .cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* التنقل بين المقالات */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.back-to-blog {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ====================================
   تصميم متجاوب للمدونة
==================================== */
@media (max-width: 992px) {
    .blog-content,
    .blog-details-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-post.featured .post-content h2,
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .post-content,
    .blog-details-post .post-content {
        padding: 20px;
    }
    
    .post-header {
        padding: 20px 20px 15px;
    }
    
    .post-image {
        height: 250px;
    }
    
    .blog-details-post .post-image {
        height: 300px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
    }
}

/* ====================================
   تصميم متجاوب
==================================== */
/* =============================
   تحسينات المدونة (ستايل مصقول)
============================= */
/* بطاقات المقال - تظليل وتفاعل أفضل */
.blog-post {
    border: 1px solid #eef0f3;
    backdrop-filter: saturate(120%) blur(0px);
}

.blog-post:hover {
    border-color: rgba(0, 0, 0, 0.06);
}

.blog-post .post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.blog-post:hover .post-image::after { opacity: 1; }

/* شارة التصنيف أكثر بروزاً */
.post-category {
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    letter-spacing: .2px;
}

/* تحسين الطباعة */
.post-content p,
.blog-details-post .post-content p {
    font-size: 1.02rem;
    line-height: 1.9;
}

.blog-details-post .post-content p:first-of-type::first-letter {
    font-size: 3rem;
    line-height: 1;
    float: right;
    margin: .1rem 0 .1rem .6rem;
    color: var(--primary-color);
    font-weight: 700;
}

.blog-details-post .post-content blockquote {
    margin: 22px 0;
    padding: 18px 22px;
    border-right: 4px solid var(--primary-color);
    background: #f5f8ff;
    border-radius: 10px;
    color: #3b4a5a;
}

.blog-details-post .post-content pre,
.blog-details-post .post-content code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
}

.blog-details-post .post-content pre {
    padding: 16px;
    overflow-x: auto;
}

/* وسم الوسوم كشرائح (chip) */
.post-tags .tag {
    border: 1px solid #e7eaf0;
}

.post-tags .tag:hover {
    border-color: var(--primary-color);
}

/* أزرار المشاركة: ظل لطيف */
.share-btn { box-shadow: 0 4px 10px rgba(0,0,0,.10); }
.share-btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* الشريط الجانبي مثبت */
.blog-sidebar,
.blog-details-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ودجت نظيفة */
.sidebar-widget {
    border: 1px solid #eef0f3;
}

/* أزرار التصفح */
.pagination-number,
.pagination-btn,
.nav-btn {
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}

.pagination-number:hover,
.pagination-number.active {
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* عنوان قسم الصفحة مع تموج بسيط */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 32px;
    background: radial-gradient(100% 32px at 50% 100%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 70%);
    opacity: .6;
}

/* لمسة على العناوين داخل التفاصيل */
.blog-details-post h3 { border-right: 3px solid #e6eeff; padding-right: 10px; }
.blog-details-post h4 { border-right: 2px solid #f0f4ff; padding-right: 8px; }

/* استجابة أدق لبعض العناصر */
@media (max-width: 992px) {
    .blog-sidebar,
    .blog-details-sidebar { position: static; }
}
/* ====================================
   القائمة المحمولة الجديدة
==================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay .mobile-nav-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
.mobile-nav-overlay.active .mobile-nav-panel {
        right: 0;
    }
    
.mobile-nav-overlay .mobile-nav-header {
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-overlay .mobile-nav-header img {
    width: 100px;
    margin: 0 auto 15px;
    display: block;
}

.mobile-nav-overlay .phone-numbers {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-overlay .phone-numbers div {
    margin-bottom: 5px;
}

.mobile-nav-overlay .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-overlay .mobile-nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-overlay .mobile-nav-menu .nav-link {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: var(--dark-color);
    width: 100%;
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-overlay .mobile-nav-menu .nav-link:hover {
    background: #f8f9fa;
}

.mobile-nav-overlay .mobile-nav-menu .nav-link i.fa-chevron-down {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-nav-overlay .dropdown-menu {
    position: static;
        opacity: 1;
        visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
    padding: 0;
    min-width: auto;
    list-style: none;
    margin: 0;
}

.mobile-nav-overlay .dropdown.active .dropdown-menu {
    max-height: 600px;
}

.mobile-nav-overlay .dropdown.active .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-overlay .dropdown-menu a {
    padding: 14px 25px 14px 45px;
    font-size: 15px;
    border-bottom: 1px solid #e8e8e8;
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    width: 100%;
}

.mobile-nav-overlay .dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-nav-overlay .dropdown-menu a:hover {
    background: #e9ecef;
}

.mobile-nav-overlay .contact-btn-header {
    margin: 20px 25px 30px;
    text-align: center;
    display: block;
    padding: 15px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .header-content {
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* إخفاء القائمة الرئيسية في الموبايل */
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 20px !important;
        left: 20px !important;
    }
    
    /* تقليل z-index للهيدر في الموبايل */
    .main-header {
        z-index: 50 !important;
    }
    
    /* القائمة */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link {
        padding: 18px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        color: var(--dark-color);
        width: 100%;
        font-weight: 600;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
    }
    
    .nav-link i.fa-chevron-down {
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    /* القوائم المنسدلة في الموبايل */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: #f8f9fa;
        padding: 0;
        min-width: auto;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 600px;
    }
    
    .dropdown.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        padding: 14px 25px 14px 45px;
        font-size: 15px;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    /* زر الاتصال في القائمة */
    .contact-btn-header {
        margin: 20px 25px 30px;
        text-align: center;
        display: block;
        padding: 15px 25px;
    }
}

/* إخفاء رأس القائمة المحمولة في الشاشات الكبيرة */
.mobile-nav-header {
    display: none;
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2.5rem !important;
    }
    
    .slide-content p {
        font-size: 1.15rem !important;
    }
    
    .hero-slider {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .section-header h2 {
        font-size: 2.2rem !important;
    }
    
    .section-header p {
        font-size: 1.05rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-item {
        padding: 35px 20px !important;
        min-height: 200px !important;
    }
    
    .stat-icon {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .stat-number {
        font-size: 2.8rem !important;
    }
    
    .stat-label {
        font-size: 1rem !important;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 60px 0 0 !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .footer-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 22px !important;
    }
    
    .company-info {
        padding-left: 0 !important;
    }
    
    .company-logo-footer {
        width: 90px !important;
    }
    
    .footer-section p {
        font-size: 14px !important;
    }
    
    .social-media {
        gap: 10px !important;
    }
    
    .social-link {
        width: 42px !important;
        height: 42px !important;
    }
    
    .social-link i {
        font-size: 16px !important;
    }
    
    .footer-links li {
        margin-bottom: 12px !important;
    }
    
    .footer-links a {
        font-size: 14px !important;
    }
    
    .contact-list li {
        padding: 12px !important;
        margin-bottom: 18px !important;
    }
    
    .contact-list i {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }
    
    .contact-list span {
        font-size: 14px !important;
    }
    
    .footer-bottom {
        padding: 25px 15px !important;
    }
    
    .footer-bottom p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .floating-contact {
        left: 15px;
        bottom: 15px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    /* تعديلات الهيدر للموبايل */
    .main-header {
        padding: 10px 0;
    }
    
    .logo img {
        width: 90px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-text p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .logo img {
        width: 80px;
    }
    
    .logo-text h1 {
        font-size: 22px;
    }
    
    .logo-text p {
        font-size: 14px;
    }
    
    .phone-numbers {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stat-item {
        padding: 30px 20px !important;
        min-height: 180px !important;
    }
    
    .stat-icon {
        font-size: 2.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .stat-label {
        font-size: 0.95rem !important;
    }
}

/* ====================================
   تأثيرات إضافية متقدمة
==================================== */

/* تأثيرات النص المتحرك */
.text-animate {
    animation: textSlide 0.8s ease-out;
}

@keyframes textSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تأثيرات البطاقات المتقدمة */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover-effect:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* تأثيرات الأزرار المتقدمة */
.btn-advanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* تأثيرات الظلال المتحركة */
.shadow-animate {
    animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
    }
    50% {
        box-shadow: 0 15px 35px rgba(66, 133, 244, 0.4);
    }
}

/* تأثيرات خاصة للهيدر */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* تأثيرات للعناصر العائمة */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* تأثيرات خاصة للصور */
.image-zoom {
    transition: transform 0.3s ease;
}

.image-zoom:hover {
    transform: scale(1.1);
}

/* تأثيرات النص المتحرك */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====================================
   فلاتر صفحة الخدمات
==================================== */
.services-section { scroll-margin-top: 90px; }
.services-filter { margin: 0 0 20px 0; }
.filter-row { display:flex; gap:16px; flex-wrap:wrap; align-items:flex-end; }
.filter-group { display:flex; flex-direction:column; gap:6px; }
.filter-group label { font-weight:700; color:var(--dark-color); font-size:.95rem; }
.filter-group input,
.filter-group select { padding:12px 14px; border:2px solid #e9ecef; border-radius:8px; font-family:'Cairo',sans-serif; min-width:240px; background:#fff; }
.filter-group input:focus,
.filter-group select:focus { outline:none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(66,133,244,.10); }

@media (max-width: 640px) {
  .filter-group input, .filter-group select { min-width:unset; width:100%; }
  .filter-row{gap:10px;}
}

