/* المتغيرات العامة */
:root {
    --primary-color: #744486;
    --primary-light: #9b6db7;
    --primary-dark: #5a3469;
    --secondary-color: #ffffff;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c1a35;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(116, 68, 134, 0.15);
    --border-radius: 12px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --perspective: 1000px;
    --bg-color: #f9f9f9;
    --hover-color: #e0e0e0;
    --border-color: #ccc;
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: url('../images/wood-texture.jpg') repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* تحديث الأقسام لتتناسب مع الخلفية الخشبية */
.services, .products, .about, .contact, .testimonials, .blog, .newsletter {
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.services::before, .products::before, .contact::before, .testimonials::before, .newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/wood-pattern.png');
    opacity: 0.05;
    z-index: -1;
}

/* تحديث البطاقات لتتناسب مع الخلفية الخشبية */
.service-card, .product-card, .blog-card, .testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* القائمة العلوية */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

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

.logo a {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* القسم الرئيسي مع السلايدر */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-in-out;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* أزرار التنقل */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    right: 30px;
}

.slider-next {
    left: 30px;
}

.slider-arrow i {
    color: #fff;
    font-size: 1.8rem;
}

/* نقاط التنقل */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* تأثيرات إضافية */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* تحديث التجاوب مع الشاشات الصغيرة للسلايدر */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 60px 0;
        margin-top: 0;
    }

    .slider-container {
        min-height: calc(100vh - 60px);
    }

    .slide {
        min-height: calc(100vh - 60px);
    }

    .slide-content {
        width: 90%;
        padding: 1.5rem;
        margin: 10px;
        position: relative;
        top: 0;
        transform: translateY(0);
    }

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .slider-prev {
        right: 15px;
    }

    .slider-next {
        left: 15px;
    }

    .slider-controls {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 15px;
        gap: 8px;
        z-index: 10;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .slider-container {
        min-height: calc(100vh - 50px);
    }

    .slide {
        min-height: calc(100vh - 50px);
    }

    .slide-content {
        padding: 1rem;
        margin: 5px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

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

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

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

    .slider-controls {
        bottom: 15px;
        padding: 6px 12px;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* تحسينات للوضع الأفقي في الجوال */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }

    .slider-container {
        min-height: calc(100vh - 40px);
    }

    .slide {
        min-height: calc(100vh - 40px);
    }

    .slide-content {
        padding: 1rem;
        margin: 5px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .slider-controls {
        bottom: 10px;
        padding: 5px 10px;
        gap: 5px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* تحسين الأزرار */
.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

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

.btn:hover {
    transform: translateZ(20px) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* تأثيرات التفاعل مع الماوس */
.hero-content {
    transition: transform 0.3s ease;
}

.hero-content:hover {
    transform: scale(1.02);
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 0.8rem;
        left: 0.8rem;
        gap: 0.6rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* قسم المنتجات المميزة */
.products {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 249, 250, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

.products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--primary-light) 50%,
        var(--primary-color) 100%
    );
    border-radius: 2px;
}

.products-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 1rem 2rem;
    border: none;
    background: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(116, 68, 134, 0.2);
}

.filter-btn.active {
    color: var(--secondary-color);
    background: var(--gradient);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(116, 68, 134, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
    perspective: 1000px;
}

.product-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    pointer-events: auto;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(116, 68, 134, 0.2);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(116, 68, 134, 0.8),
        rgba(90, 52, 105, 0.9)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(30px);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

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

.product-info {
    padding: 2rem;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    background: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.product-info p {
    color: #666;
    line-height: 1.6;
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price .original {
    text-decoration: line-through;
    color: #999;
    font-size: 1.4rem;
}

.product-price .discount {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-actions .btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 2;
    border: none;
    outline: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--gradient);
    color: var(--secondary-color);
    pointer-events: auto;
}

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

.product-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(116, 68, 134, 0.2);
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .product-image {
        height: 200px;
        overflow: hidden;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        min-height: 2.4rem;
    }
    
    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        min-height: 2.7rem;
    }
    
    .product-actions {
        margin-top: auto;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 250px;
    }
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    transform: translateZ(40px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        margin: 0;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-actions .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 0.8rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .product-info p {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

/* قسم الخدمات */
.services {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(44, 26, 53, 0.95) 0%, 
        rgba(116, 68, 134, 0.85) 30%, 
        rgba(155, 109, 183, 0.75) 70%, 
        rgba(116, 68, 134, 0.85) 100%
    );
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.08;
    animation: patternMove 20s linear infinite;
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.services-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.service-card::before,
.service-card::after {
    position: absolute;
    content: "";
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transition: all 0.5s ease;
}

.service-card::before {
    top: 0;
    right: 0;
    border-radius: 0 15px 0 100%;
}

.service-card::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 15px;
}

.service-card:hover::before,
.service-card:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    color: #ffffff;
}

.service-info {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.service-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
    height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.service-card:hover .service-info h3 {
    transform: translateY(-5px);
    color: #ffd700;
}

.service-card:hover .service-info p {
    transform: translateY(-5px);
    color: #ffffff;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 1200px) {
    .services-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 0 100%;
    }
    
    .services h2 {
        font-size: 2.2rem;
    }
    
    .service-info h3 {
        font-size: 1rem;
        height: 2.6em;
    }
}

@media (max-width: 480px) {
    .service-info h3 {
        font-size: 0.9rem;
        height: 2.6em;
    }
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar {
        width: 250px;
        right: -250px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        right: 1rem;
    }
    
    .slider-next {
        left: 1rem;
    }

    .floating-buttons {
        bottom: 1rem;
        left: 1rem;
        gap: 0.8rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 0.8rem;
        left: 0.8rem;
        gap: 0.6rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* إزالة خاصية إخفاء الأزرار العائمة من جميع الشاشات */
.floating-buttons {
    display: flex !important;
    visibility: visible !important;
}

/* قسم من نحن */
.about {
    padding: 8rem 0;
    background: var(--light-bg);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.about-image:hover {
    transform: translateY(-10px);
}

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

/* تحسينات التجاوب مع الجوال */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: 400px;
    }

    .about-image img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .about-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .about-image {
        height: 250px;
    }
}

/* قسم الاتصال */
.contact {
    padding: 8rem 0;
    background: var(--gradient);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* التذييل */
.footer {
    background: var(--dark-bg);
    color: var(--secondary-color);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

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

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.footer-bottom p {
    margin: 10px 0;
    color: #fff;
}

.footer-bottom p:last-child {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

.company-details {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
}

.company-details span {
    margin: 0 10px;
}

/* الأزرار العائمة */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    visibility: visible !important;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(116, 68, 134, 0.3);
}

/* الوضع الليلي */
body.dark-mode {
    --text-color: #ffffff;
    --light-bg: #2c1a35;
    --dark-bg: #1a1a1a;
}

/* مؤشر التمرير */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* قسم الإحصائيات */
.stats {
    padding: 6rem 0;
    background: var(--gradient);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.stats h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.stats h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

@media (max-width: 768px) {
    .stats h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        gap: 0.8rem;
        padding: 0.8rem;
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* قسم المشاريع */
.projects {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 249, 250, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

.projects h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.projects-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    background: #fff;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(116, 68, 134, 0.2);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(116, 68, 134, 0.8),
        rgba(90, 52, 105, 0.9)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

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

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

.project-info {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info p {
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.project-card:hover .project-info h3,
.project-card:hover .project-info p {
    transform: translateY(0);
    opacity: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.project-card:hover .project-tag {
    transform: translateY(0);
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.project-card:hover .project-actions {
    transform: translateY(0);
    opacity: 1;
}

.project-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.project-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.projects-more {
    text-align: center;
    margin-top: 4rem;
}

.projects-more .btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: var(--gradient);
    color: var(--secondary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(116, 68, 134, 0.2);
}

.projects-more .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(116, 68, 134, 0.3);
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image {
        height: 300px;
    }
    
    .projects h2 {
        font-size: 2.2rem;
    }
    
    .projects-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-btn {
        width: 100%;
        text-align: center;
    }
}

/* قسم العملاء */
.clients {
    padding: 8rem 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

.clients h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.clients h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.client-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.client-card:hover::before {
    opacity: 0.1;
}

.client-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1;
}

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

.client-card:hover .client-logo {
    transform: scale(1.1);
    background: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.client-info {
    position: relative;
    z-index: 1;
}

.client-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.client-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.5s ease;
}

.client-card:hover .client-info h3 {
    color: var(--primary-light);
}

.client-card:hover .client-info p {
    color: var(--primary-color);
}

.client-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.client-rating i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .client-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* قسم الشهادات */
.testimonials {
    padding: 8rem 0;
    background: var(--gradient);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* قسم المدونة */
.blog {
    padding: 8rem 0;
    background: var(--light-bg);
}

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

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

.blog-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    line-height: 1;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.blog-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-light);
    transform: translateX(10px);
}

.blog-more {
    text-align: center;
}

.blog .blog-more .btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(116, 68, 134, 0.3);
    margin-top: 40px;
    text-align: center;
}

.blog .blog-more .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(116, 68, 134, 0.4);
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.blog .blog-more .btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(116, 68, 134, 0.3);
}

/* قسم النشرة البريدية */
.newsletter {
    padding: 6rem 0;
    background: var(--gradient);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* تحديث التجاوب مع الشاشات */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .clients-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .clients-slider {
        grid-template-columns: 1fr;
    }
}

/* القائمة الجانبية */
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--gradient);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    visibility: hidden;
}

.sidebar.active {
    right: 0;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1002;
}

.sidebar-close:hover {
    transform: rotate(90deg);
}

.sidebar-menu {
    padding: 2rem;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.sidebar-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1002;
    background: var(--gradient);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar {
        width: 250px;
        right: -250px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        right: 1rem;
    }
    
    .slider-next {
        left: 1rem;
    }

    .floating-buttons {
        bottom: 1rem;
        left: 1rem;
        gap: 0.8rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 0.8rem;
        left: 0.8rem;
        gap: 0.6rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* تحسينات التجاوب مع الجوال */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .services-grid,
    .products-grid,
    .projects-grid,
    .blog-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--gradient);
        padding: 2rem;
        transition: 0.3s ease;
        z-index: 1001;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-menu .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        color: var(--secondary-color);
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .products-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .product-card,
    .project-card,
    .blog-card {
        height: auto;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .clients-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .floating-buttons {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .clients-slider {
        grid-template-columns: 1fr;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-actions {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .mobile-menu {
        width: 100%;
    }
}

/* تحسينات إضافية للشاشات الصغيرة */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .service-icon,
    .stat-icon {
        font-size: 2.5rem;
    }

    .product-image,
    .project-image,
    .blog-image {
        height: 200px;
    }

    .testimonial-card {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 4rem 0 2rem;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    .hero h1 {
        font-size: 5rem;
    }

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

/* تحسينات للوضع الأفقي في الجوال */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 6rem 0 3rem;
    }

    .mobile-menu {
        overflow-y: auto;
    }
    }

    .mobile-menu .nav-links {
        gap: 1rem;
    }
}

/* تحسينات للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero,
    .services,
    .products,
    .projects,
    .testimonials {
        background-attachment: scroll;
    }
}

/* تحسينات للشاشات التي تدعم الوضع المظلم */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--dark-bg);
        color: var(--secondary-color);
    }

    .products,
    .projects,
    .blog {
        background: linear-gradient(135deg, 
            rgba(44, 26, 53, 0.95) 0%,
            rgba(90, 52, 105, 0.98) 50%,
            rgba(44, 26, 53, 0.95) 100%
        );
    }
}

@media (max-width: 768px) {
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.4rem 0.4rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
    padding: 0.5rem 0 !important;
  }
}
@media (max-width: 480px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.3rem 0 !important;
  }
}

@media (max-width: 768px) {
    .services .container {
        padding: 0 1rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }

    .service-card {
        width: 100%;
        height: auto;
        border-radius: 12px;
        padding: 1rem;
        margin: 0;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .service-info {
        padding: 0.5rem;
        width: 100%;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #ffd700;
    }

    .service-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #ffffff;
        line-height: 1.3;
        height: auto;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }

    .service-info p {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 0.8rem;
    }

    .service-card {
        height: 130px;
        max-width: 130px;
    }

    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .service-info h3 {
        font-size: 0.9rem;
        height: 2.6em;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .stat-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .stat-item {
        padding: 1.2rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-title {
        font-size: 0.9rem;
    }
} 

/* قسم الشركاء */
.partners {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 249, 250, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

.partners h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.partners h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        var(--primary-light) 50%,
        var(--primary-color) 100%
    );
    border-radius: 2px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.partner-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(116, 68, 134, 0.2);
}

.partner-card:hover::before {
    opacity: 0.05;
}

.partner-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-card:hover .partner-logo img {
    transform: scale(1.1);
}

.partner-info {
    position: relative;
    z-index: 1;
}

.partner-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.partner-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.partner-since {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.partner-since i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px;
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .partner-info h3 {
        font-size: 1.2rem;
    }

    .partner-info p {
        font-size: 0.85rem;
    }
} 

/* صفحة المشاريع */
.projects-page {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.projects-page h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.projects-filter .filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.projects-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projects-page .project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.projects-page .project-card:hover {
    transform: translateY(-10px);
}

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

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

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

.projects-page .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.projects-page .project-info {
    text-align: center;
    color: #fff;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.projects-page .project-card:hover .project-info {
    transform: translateY(0);
}

.projects-page .project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.projects-page .project-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.projects-page .project-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.projects-page .project-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.projects-page .project-details i {
    color: var(--primary-color);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .projects-page {
        padding: 100px 0 60px;
    }

    .projects-page h1 {
        font-size: 2rem;
    }

    .projects-filter {
        gap: 10px;
    }

    .projects-filter .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .projects-page .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .projects-page .project-image {
        height: 200px;
    }
}

/* تنسيقات الواجهة المنبثقة للمشروع */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.project-modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 5vh auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-gallery img.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1001;
    max-width: 90vw;
    max-height: 90vh;
    cursor: zoom-out;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.modal-info h4,
.modal-specs h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.modal-info h4::after,
.modal-specs h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
    padding: 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

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

.specs-list li:hover {
    background-color: rgba(116, 68, 134, 0.05);
}

.specs-list li span:first-child {
    color: #666;
    font-weight: 500;
}

.specs-list li span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2.5vh auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-gallery img {
        height: 180px;
    }

    .modal-info h4,
    .modal-specs h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .modal-info p {
        font-size: 1rem;
    }

    .specs-list li {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-close {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .modal-gallery img {
        height: 150px;
    }

    .specs-list li {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* قسم الخدمات */
.services-page {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services-page h1 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-header {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(116, 68, 134, 0.2);
}

.service-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 68, 134, 0.3);
}

.service-header i {
    font-size: 1.8rem;
    margin-left: 1.2rem;
    color: var(--accent-color);
}

.service-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.arrow-icon {
    margin-right: auto;
    transition: var(--transition);
    color: var(--accent-color);
    font-size: 1.4rem;
}

.service-header.active {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-header.active .arrow-icon {
    transform: rotate(180deg);
}

.sub-services {
    display: none;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.sub-services.active {
    display: block;
}

.sub-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-services li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(116, 68, 134, 0.1);
    transition: var(--transition);
}

.sub-services li:last-child {
    border-bottom: none;
}

.sub-services li:hover {
    background: rgba(116, 68, 134, 0.05);
}

.sub-services a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.sub-services a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.service-item {
    margin-bottom: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.service-header:hover {
    background-color: var(--light-bg);
}

.service-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 1rem;
}

.service-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    flex-grow: 1;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.service-header.active .arrow-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .sub-services {
        padding: 0.75rem;
    }

    .sub-services li {
        margin-bottom: 0.75rem;
        padding: 0.4rem;
    }

    .sub-services a {
        font-size: 0.95rem;
        padding: 0.4rem;
    }

    .service-header {
        padding: 1.25rem;
    }

    .service-header h3 {
        font-size: 1.1rem;
    }

    .service-header i {
        font-size: 1.3rem;
    }
}

/* تنسيقات قسم تفاصيل الخدمة */
.service-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-details.active {
    display: block;
    opacity: 1;
}

.service-details-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 15px;
    padding: 30px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.service-details.active .service-details-content {
    transform: translateY(0);
}

.close-details {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-details:hover {
    transform: rotate(90deg);
}

.service-details-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.service-details-header .service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-details-header .service-title {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
}

.service-details-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.service-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.service-features h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--primary-color);
    margin-left: 10px;
}

.service-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-gallery img:hover {
    transform: scale(1.05);
}

.service-details-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .service-details-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    .service-details-header .service-title {
        font-size: 24px;
    }

    .service-details-body {
        grid-template-columns: 1fr;
    }

    .service-description {
        font-size: 16px;
    }

    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-gallery img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .service-details-header .service-icon {
        font-size: 36px;
    }

    .service-details-header .service-title {
        font-size: 20px;
    }

    .service-gallery {
        grid-template-columns: 1fr;
    }

    .contact-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* تنسيق عنوان الخدمات */
.services-title {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .services-title {
        margin-top: 5rem;
        font-size: 1.8rem;
    }
}

/* تنسيق شريط التنقل في وضع الجوال */
@media (max-width: 768px) {
    .main-nav {
        padding: 1.5rem 0;
    }

    .main-nav .container {
        justify-content: space-between;
        position: relative;
    }

    .main-nav .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .main-nav .logo a {
        font-size: 2rem;
    }
    .main-nav .nav-buttons {
        margin-right: auto;
    }

    .main-nav .nav-links {
        display: none;
    }
}

/* تنسيقات نافذة أرقام الهاتف */
.phone-numbers-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.phone-numbers-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.phone-numbers-content h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.phone-link i {
    color: #007bff;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.footer-contact ul li {
    margin-bottom: 1rem;
}

.footer-contact ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.footer-contact ul li a:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.footer-contact ul li i {
    margin-left: 8px;
    color: var(--accent-color);
}

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

.footer-bottom p {
    margin: 10px 0;
    color: #fff;
}

.footer-bottom p:last-child {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

.company-details {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
}

.company-details span {
    margin: 0 10px;
}