/* المتغيرات العامة */
:root {
    --primary-color: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #ffffff;
    --accent-color: #64b5f6;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #0d47a1;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(26, 35, 126, 0.15);
    --border-radius: 12px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --blue-gradient: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.95) 0%,
        rgba(30, 58, 138, 0.85) 30%,
        rgba(59, 130, 246, 0.75) 70%,
        rgba(30, 58, 138, 0.85) 100%
    );
    --perspective: 1000px;
    --bg-color: #f9f9f9;
    --hover-color: #e3f2fd;
    --border-color: #90caf9;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --white: #ffffff;
}

/* إعدادات عامة */
* {
    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: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

/* القائمة العلوية */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: 100px;
    display: flex;
    align-items: center;
}

.main-nav.scroll-down {
    transform: translateY(-100%);
}

.main-nav.scroll-up {
    transform: translateY(0);
}

.main-nav .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 100%;
}

/* تنسيق شعار الشركة */
.logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    height: 100%;
    z-index: 1001; /* ضمان ظهور الشعار فوق جميع العناصر */
}

.logo a {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1 !important; /* منع تغيير الشفافية */
}

.logo a i {
    font-size: 2rem;
    transition: var(--transition);
}

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

.logo a:hover i {
    transform: rotate(45deg);
}

/* تنسيق روابط القائمة */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    align-items: center;
    margin-left: 12rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    line-height: 1;
    white-space: nowrap;
}

.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%;
}

.nav-links a.highlight {
    color: #fff;
    font-weight: 600;
    position: relative;
    background: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a.highlight::after {
    display: none;
}

.nav-links a.highlight:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.nav-links a.highlight:hover::after {
    background: var(--primary-dark);
}

.nav-links a.register-free-btn {
    margin-left: 160px !important;
    margin-right: 0 !important;
    border: 2px solid #ffffff !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
}

.nav-links a.register-free-btn:hover {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

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

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(80vh - 60px);
    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: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px;
}

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

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.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: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 0.8rem 1.5rem;
    font-size: 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 {
    display: none !important;
}

/* تأثيرات إضافية */
.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: translateY(-2px);
    box-shadow: 0 5px 15px 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: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card.featured {
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4),
                0 0 20px rgba(255, 255, 255, 0.1);
}

.service-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5),
                0 0 30px rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4),
                0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 100%);
}

.service-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-info {
    text-align: center;
    padding: 1rem;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.service-info p {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-info h3 {
    transform: translateY(-5px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-info p {
    transform: translateY(-5px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.service-card.featured .service-info h3,
.service-card.featured .service-info p {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* تحسين التجاوب مع الشاشات الصغيرة */
@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;
    flex: 1;
}

.about-image .image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-image .logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

.about-image .logo-overlay i {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-image .logo-overlay span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cairo', sans-serif;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -55%);
    }
}

@media (max-width: 768px) {
    .about-image .logo-overlay {
        padding: 15px 30px;
    }

    .about-image .logo-overlay i {
        font-size: 1.5rem;
    }

    .about-image .logo-overlay span {
        font-size: 1.2rem;
    }
}

/* تحسينات التجاوب مع الجوال */
@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(--blue-gradient);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.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);
    position: relative;
}

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

/* تنسيق الرسائل المنبثقة */
.floating-btn::before {
    content: attr(title);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn::after {
    content: '';
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover::before,
.floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

@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-btn::before {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* الوضع الليلي */
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: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 300px;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.premium-badge i {
    color: #000;
    font-size: 1rem;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
        rgba(37, 99, 235, 0.95) 0%,
        rgba(37, 99, 235, 0.8) 50%,
        rgba(37, 99, 235, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.project-info {
    text-align: center;
    color: #ffffff;
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.project-info .btn {
    background: #ffffff;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.project-info .btn:hover {
    background: transparent;
    color: #ffffff;
}

.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: 80px 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%,
        rgba(37, 99, 235, 0.1) 25%,
        rgba(37, 99, 235, 0.05) 50%,
        rgba(37, 99, 235, 0.1) 75%,
        rgba(37, 99, 235, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.blog-content {
    padding: 40px;
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.values-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.values-list li:last-child {
    margin-bottom: 0;
}

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

.value-item {
    flex: 1;
}

.value-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.value-item span {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .blog-content {
        padding: 30px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .icon-wrapper i {
        font-size: 1.8rem;
    }
}

.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-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, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 2px,
        transparent 2px,
        transparent 8px
    );
    animation: diagonalLines 20s linear infinite;
    opacity: 0.3;
}

@keyframes diagonalLines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.partners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left,
        rgba(37, 99, 235, 0.15) 0%,
        transparent 70%);
    pointer-events: none;
}

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

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

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.partner-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.partner-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
    border-color: rgba(37, 99, 235, 0.5);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.partner-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.partner-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.partner-since i {
    color: #3b82f6;
    font-size: 1.1rem;
}

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

.partner-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.partner-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 1s;
    }
    
.partner-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 2s;
    }
    
.partner-card:nth-child(4) {
    animation: float 6s ease-in-out infinite 3s;
    }

.partner-card:nth-child(5) {
    animation: float 6s ease-in-out infinite 4s;
    }

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
} 

/* صفحة المشاريع */
.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;
    }
}

/* تحسينات للأجهزة المحمولة */
@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;
}

/* تنسيق أزرار القائمة */
.nav-buttons {
    display: flex;
    position: absolute;
    right: 0;
    height: 100%;
    align-items: center;
}

.nav-buttons button {
    font-size: 1.3rem;
    padding: 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-buttons button:hover {
    color: var(--accent-color);
}

/* قسم الباقات */
.packages-section {
    padding: 0;
    position: relative;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%,
        rgba(37, 99, 235, 0.8) 50%,
        var(--primary-color) 100%);
    overflow: hidden;
    margin-top: -40px;
}

.packages-section .container {
    padding: 60px 0;
}

.packages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%);
    pointer-events: none;
}

.packages-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%);
    pointer-events: none;
}

.packages-section .section-title,
.packages-section .section-description {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 10rem;
}

.section-header:first-of-type {
    margin-top: 0;
}

.packages-section .section-header:not(:first-of-type) {
    margin-top: 10rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* تنسيق بطاقات الباقات */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.package-card {
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 100%);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.package-card:hover::before {
    left: 100%;
}

.package-card .package-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.package-card .package-price {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.package-card .package-features {
    margin-bottom: 30px;
    flex-grow: 1;
}

.package-card .package-features li {
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.package-card .package-features li i {
    color: #ffffff;
    font-size: 1.2rem;
}

.package-card .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-top: auto;
}

.package-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .package-card {
        margin-bottom: 30px;
    }
}

/* تنسيق قسم الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
}

/* تنسيق قسم الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 100%);
}

.service-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.service-info {
    text-align: center;
    padding: 1rem;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.service-info p {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

@keyframes float1 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float3 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-28px);
    }
    100% {
        transform: translateY(0px);
    }
}

.package-card:nth-child(1) {
    animation: float1 5s ease-in-out infinite;
}

.package-card:nth-child(2) {
    animation: float2 7s ease-in-out infinite;
}

.package-card:nth-child(3) {
    animation: float3 6s ease-in-out infinite;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 30px;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: translateY(-15px);
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vision-tabs {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.tab-icons {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.tab-icon {
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    --glow-intensity: 0;
}

.tab-icon::before,
.tab-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: -1;
    opacity: calc(0.5 * var(--glow-intensity));
}

.tab-icon::before {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.3) 0%, 
        rgba(37, 99, 235, 0.1) 50%,
        transparent 70%
    );
    filter: blur(5px);
}

.tab-icon::after {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.2) 0%, 
        rgba(37, 99, 235, 0.05) 50%,
        transparent 70%
    );
    filter: blur(8px);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.tab-icon:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
}

.tab-icon:hover::before {
    opacity: 1;
    width: 120px;
    height: 120px;
    animation: pulse 2s infinite;
}

.tab-icon:hover::after {
    opacity: 1;
    width: 140px;
    height: 140px;
}

.tab-icon.active {
    opacity: 1;
    transform: translateY(-15px) scale(1.1);
}

.tab-icon.active::before {
    opacity: 1;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

.tab-icon.active::after {
    opacity: 1;
    width: 160px;
    height: 160px;
    animation: rotate 15s linear infinite;
}

.tab-icon .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-light) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 20px rgba(37, 99, 235, 0.2),
        0 0 20px rgba(37, 99, 235, calc(0.1 * var(--glow-intensity)));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backdrop-filter: blur(5px);
}

.tab-icon .icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, calc(0.3 * var(--glow-intensity))),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.tab-icon:hover .icon-wrapper::before {
    animation: shine 1.5s infinite;
}

.tab-icon:hover .icon-wrapper::after {
    opacity: 1;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

.tab-icon.active .icon-wrapper {
    transform: scale(1.1) translateZ(20px);
    box-shadow: 
        0 15px 30px rgba(37, 99, 235, 0.3),
        0 0 20px rgba(37, 99, 235, 0.2),
        0 0 40px rgba(37, 99, 235, 0.1);
}

.tab-icon.active .icon-wrapper::after {
    opacity: 1;
    animation: activeGlow 2s infinite;
}

@keyframes activeGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1.1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.tab-icon i {
    font-size: 1.8rem;
    color: var(--white);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.tab-icon:hover i {
    transform: translateZ(10px) scale(1.1);
}

.tab-icon.active i {
    transform: translateZ(20px) scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tab-icon span {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.5s ease;
    display: block;
    transform: translateZ(5px);
}

.tab-icon:hover span {
    transform: translateZ(10px);
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.tab-icon.active span {
    transform: translateZ(15px);
    text-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* تأثير Parallax للخلفية */
.vision-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    transform-style: preserve-3d;
    transform: translateZ(-10px);
    pointer-events: none;
}

.tab-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.blog-card {
    background: transparent;
    box-shadow: none;
    border: none;
}

.blog-content {
    padding: 0;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tab-icons {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .tab-icon {
        width: 100%;
        max-width: 200px;
    }

    .tab-content {
        padding: 30px;
    }
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: auto;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.store-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.store-button:hover::before {
    transform: translateX(100%);
}

.store-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.store-button i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease;
}

.store-button:hover i {
    transform: scale(1.1);
}

.store-button span {
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Tajawal', sans-serif;
}

/* تعديل موضع الزر في الواجهة المنبثقة */
.modal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.modal-info p {
    margin-bottom: 20px;
}

.sidebar-menu a.login-btn {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.login-btn:hover {
    background: var(--primary-dark);
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.sidebar-menu a.login-btn i {
    color: rgba(255, 255, 255, 0.9);
}

/* === أزرار زجاجية للمنتجات (مطابقة للماركت بليس) === */
.products-wrapper .glass-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.products-wrapper .glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}
.products-wrapper .glass-btn:hover::before {
    transform: translateX(100%);
}
.products-wrapper .glass-btn.primary-btn {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}
.products-wrapper .glass-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
}
.products-wrapper .glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}
.products-wrapper .glass-btn.primary-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}
.products-wrapper .glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.products-wrapper .glass-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.products-wrapper .glass-btn:hover i {
    transform: translateX(-3px);
}
.products-wrapper .product-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.3s ease;
}