:root {
    --primary-color: #2B4C7E;      /* أزرق داكن */
    --secondary-color: #26A69A;    /* أخضر فيروزي */
    --accent-color: #FFB74D;       /* أصفر ذهبي */
    --dark-color: #1A3A6C;
    --light-color: #F5F8FA;
    --text-color: #333;
    --border-color: #E1E5EA;
    --hover-color: #EBF4FF;

    --primary-rgb: 43, 76, 126;
    --secondary-rgb: 38, 166, 154;
    --accent-rgb: 255, 183, 77;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);

    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --hover-lift-sm: translateY(-3px);
    --hover-lift-md: translateY(-5px);
    --hover-lift-lg: translateY(-10px);
}

/* تأثير الارتفاع عند التحويم */
.hover-lift-sm:hover {
    transform: var(--hover-lift-sm);
    box-shadow: var(--shadow-md);
}
.hover-lift-md:hover {
    transform: var(--hover-lift-md);
    box-shadow: var(--shadow-md);
}
.hover-lift-lg:hover {
    transform: var(--hover-lift-lg);
    box-shadow: var(--shadow-lg);
}

/* الحركات (Keyframes) */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    30% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes float-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
@keyframes particles-float {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* الأساسيات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 76px;
}

/* تحسين أنماط البطاقات العامة */
.card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}
.card:hover {
    transform: var(--hover-lift-md);
    box-shadow: var(--shadow-md);
}

/* أنماط الأزرار الموحدة */
.btn {
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}
.btn-primary:hover {
    transform: var(--hover-lift-sm);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.btn-glass {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}
.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: var(--hover-lift-sm);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-icon:hover i {
    transform: translateX(-5px);
}

/* تنسيقات بسيطة تستخدم بالصفحة: .d-none */
.d-none {
    display: none !important;
}

/* التنقل (Navbar) */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 70px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}
.navbar-brand .company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.navbar-nav {
    gap: 0.5rem;
}
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}
.nav-link i {
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
}
.nav-link:hover i {
    transform: translateX(-3px);
}

/* Auth Links (قد تكون بجزء navbar) */
.auth-nav {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-nav .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.auth-nav .btn-primary {
    box-shadow: 0 4px 6px rgba(43, 76, 126, 0.2);
}
.auth-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(43, 76, 126, 0.3);
}
@media (max-width: 991px) {
    .auth-nav {
        margin-top: 1rem;
        margin-right: 0;
        flex-direction: column;
        width: 100%;
    }
    .auth-nav .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* زر Toggle للـnavbar */
.navbar-toggler {
    padding: 0.5rem;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: var(--transition-base);
}
.navbar-toggler:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    .navbar-brand img {
        height: 40px;
    }
    .navbar-brand .company-name {
        font-size: 1.1rem;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-item {
        width: 100%;
    }
}

/* قسم Hero */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    z-index: 0;
}
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}
.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    z-index: 1;
    opacity: 0; /* إزالة الطبقة الزرقاء فوق الفيديو بالكامل */
}
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: particles-float 30s infinite linear;
    z-index: 2;
}
.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    animation: fade-in-up 0.8s ease-out;
}

.hero-subtitle {
    color: #EAF4FF;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fade-in-up 1s ease-out;
}

@keyframes glow-pulse {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
    100% { opacity: 0.2; transform: scale(1); }
}
.hero-buttons .btn {
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-base);
}
.hero-buttons .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.hero-animated-image {
    position: relative;
    text-align: center;
}
.hero-tilt {
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.parallax-root [data-parallax-depth] {
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسينات بصرية للهيرو */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero-animated-image {
    position: relative;
    text-align: center;
    transform-style: preserve-3d;
}

.hero-canvas {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f2027 100%);
}

/* مؤشر التمرير للجوال */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    opacity: 0.9;
    animation: pulse-scale 2.2s infinite;
}
.scroll-indicator i { font-size: 1.25rem; }

/* زر تفعيل التفاعل الحركي على الجوال */
/* تم إزالة زر تفعيل الحركة للجوال */
.animated-element {
    animation: float-animation 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    max-width: 90%;
}
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.tech-icon {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse-scale 5s infinite;
}
.tech-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.tech-icon-1 {
    width: 40px; height: 40px;
    top: 20%; left: 10%;
}
.tech-icon-2 {
    width: 45px; height: 45px;
    top: 15%; right: 15%;
    animation-delay: 0.5s;
}
.tech-icon-3 {
    width: 35px; height: 35px;
    bottom: 30%; left: 15%;
    animation-delay: 1s;
}
.tech-icon-4 {
    width: 50px; height: 50px;
    bottom: 20%; right: 10%;
    animation-delay: 1.5s;
}
.tech-icon-5 {
    width: 40px; height: 40px;
    top: 50%; right: 5%;
    animation-delay: 2s;
}

/* قسم الإحصائيات */
.stats {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-base);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(38, 166, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stat-text {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* قسم الخدمات */
.service-card-flip {
    perspective: 1000px;
    margin-bottom: 30px;
    height: 320px;
}
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}
.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.service-card-front {
    background-color: white;
}
.service-card-back {
    background: linear-gradient(45deg, var(--primary-color), #2e75b6);
    color: white;
    transform: rotateY(180deg);
}
.service-card-front .service-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-base);
    font-size: 2rem;
    color: var(--primary-color);
}
.service-card-front h4 {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color);
}
.service-card-front p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}
.service-card-back h4 {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}
.service-card-back p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}
.service-card-back .btn {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}
.service-card-back .btn:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.flip-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}
.flip-hint i {
    font-size: 0.9rem;
    animation: spin 4s infinite linear;
}
.service-card-back .flip-hint {
    left: 15px;
    right: auto;
}

/* قسم لماذا نحن */
.why-us-content {
    padding-right: 20px;
}
.section-line-start {
    margin: 0 0 30px 0;
    width: 80px;
}
.rounded-image {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.experience-badge {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.experience-badge .text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}
.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.feature-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    height: 100%;
    align-items: flex-start;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(43, 76, 126, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
    flex-shrink: 0;
}
.feature-content {
    flex-grow: 1;
    margin-right: 20px;
}
.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.feature-content p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* قسم الدعم الفني */
.support {
    background-color: var(--light-color);
}
.support-content {
    padding-right: 20px;
}
.support-image-container {
    position: relative;
    padding: 20px;
}
.support-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.support-feature-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.support-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.support-badge {
    position: absolute;
    top: 30px;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.support-badge i {
    font-size: 2rem;
    margin-bottom: 5px;
}
.support-badge span {
    font-weight: 700;
    font-size: 1.2rem;
}

/* قسم العملاء */
.clients-section {
    background-color: #f9f9f9;
}
.client-logo-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
    margin: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.client-logo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(43, 76, 126, 0.2);
}
.client-logo-card img {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    margin-bottom: 15px;
    object-fit: contain;
}
.client-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.client-logo-card:hover .client-name {
    opacity: 1;
}
.client-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    margin: 15px;
}
.placeholder-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.5;
}
.clients-cta {
    margin-top: 50px;
}

/* قسم الأخبار */
.news-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: var(--transition-base);
    height: 100%;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.news-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-image img {
    transform: scale(1.05);
}
.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 3rem;
}
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1;
}
.news-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}
.news-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.news-card-content {
    padding: 25px;
}
.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
    height: 3.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}
.news-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.news-timestamp {
    color: var(--text-color);
    font-size: 0.85rem;
}
.news-timestamp i {
    margin-left: 5px;
}
.news-read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.news-read-more i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}
.news-read-more:hover {
    color: var(--secondary-color);
}
.news-read-more:hover i {
    transform: translateX(-5px);
}
.empty-news {
    padding: 50px 0;
    text-align: center;
}
.empty-news i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}
.empty-news p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 5px;
}
.empty-news small {
    color: #999;
}
.view-all-news .btn {
    border-radius: 50px;
    padding: 12px 30px;
    transition: var(--transition-base);
}
.view-all-news .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* قسم التقييمات (Testimonials) */
.testimonial-card {
    background-color: #fff;
    border-radius: 18px;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-card-inner {
    padding: 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* رأس بطاقة التقييم مع الشعار والتاريخ */
.testimonial-header {
    background-color: rgba(var(--primary-rgb), 0.05);
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-icon {
    font-size: 22px;
    color: var(--primary-color);
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.quote-icon i {
    margin-left: 8px;
}

.testimonial-date {
    font-size: 0.75rem;
    color: #777;
}

/* محتوى التقييم */
.testimonial-content {
    flex: 1;
    padding: 25px;
    position: relative;
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* التقييم بالنجوم */
.rating {
    display: flex;
    gap: 5px;
    color: #FFD700;
    margin-bottom: 0;
    position: absolute;
    left: 25px;
    bottom: 25px;
}

/* معلومات المستخدم */
.testimonial-user {
    display: flex;
    align-items: center;
    background-color: rgba(var(--primary-rgb), 0.03);
    padding: 15px 25px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.user-image {
    margin-left: 15px;
    position: relative;
}

.user-image img {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h5 {
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.user-info .company {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* أزرار التنقل بين تقييمات العملاء */
/* إزالة أسهم السلايدر المخصصة */

/* نافذة عرض كل التقييمات */
#allReviewsModal .modal-body {
    padding: 25px;
}

#allReviewsModal .testimonial-card {
    height: 100%;
    margin: 0;
    border: none;
}

#allReviewsModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#allReviewsModal .modal-header {
    background-color: rgba(var(--primary-rgb), 0.05);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

#allReviewsModal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

#allReviewsModal .reviews-filter {
    background-color: rgba(var(--primary-rgb), 0.03);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

#allReviewsModal .btn-group .btn {
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 5px;
}

#allReviewsModal .review-item {
    margin-bottom: 20px;
}

/* تنسيقات خاصة لبطاقات التقييم في النافذة المنبثقة */
#allReviewsModal .testimonial-card-inner {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: all 0.3s ease;
}

#allReviewsModal .testimonial-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#allReviewsModal .testimonial-user {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    margin-bottom: 15px;
}

#allReviewsModal .user-avatar {
    margin-left: 15px;
}

#allReviewsModal .user-avatar img {
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#allReviewsModal .review-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
    margin-top: 15px;
}

#allReviewsModal .rating {
    color: #FFD700;
}

.shadow-hover {
    transition: all 0.3s ease;
}

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

.empty-reviews-placeholder {
    padding: 40px 0;
    text-align: center;
}

/* نافذة إضافة تقييم جديد */
#reviewModal .modal-body {
    padding: 25px;
}

#reviewModal .input-group-text {
    background-color: var(--light-bg-color);
    border-color: #ced4da;
    color: var(--primary-color);
}

#reviewModal .form-control:focus,
#reviewModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* تصفية التقييمات */
.reviews-filter {
    margin-bottom: 25px;
}

.reviews-filter .btn-group {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-filter .btn {
    padding: 8px 20px;
    transition: all 0.3s ease;
    border-color: #ced4da;
}

.reviews-filter .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reviews-filter .btn:hover:not(.active) {
    background-color: #f8f9fa;
}

.section-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* قسم الوظائف والانضمام للفريق (careers) */
.careers-image img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 100px 0;
}
.section-padding-sm {
    padding: 50px 0;
}
.section-header {
    margin-bottom: 4rem;
}
.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}
.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1.5rem auto;
    border-radius: 10px;
}
.section-description {
    color: #6c757d;
    font-size: 1.1rem;
}
section:not(.hero) {
    padding-top: 80px;
    padding-bottom: 80px;
}
section:first-of-type {
    margin-top: 0;
}

/* تأثير الدخول (fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease forwards;
}

/* ميديا كويريز */
@media (max-width: 1199.98px) {
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
@media (max-width: 991.98px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .tech-icon {
        transform: scale(0.8);
    }
    .service-card-flip {
        height: 340px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .navbar-brand img {
        height: 40px;
    }
    .why-us-content {
        margin-bottom: 50px;
    }
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
    .client-logo-card {
        height: 180px;
    }
}
@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    .hero-title { font-size: 2rem; }
    .hero-buttons .btn {
        margin-bottom: 10px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .contact-info-wrapper {
        padding: 1.5rem;
    }
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feature-icon {
        margin: 0 0 20px 0;
    }
    .news-card-image {
        height: 180px;
    }
    .news-title {
        font-size: 1.1rem;
    }
    .news-date {
        padding: 8px 12px;
    }
    .news-day {
        font-size: 1.2rem;
    }
    .client-logo-card {
        height: 180px;
        padding: 20px;
    }
    .review-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
@media (max-width: 575.98px) {
    .section-header h2 {
        font-size: 1.6rem;
    }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.98rem; }
    .section-padding {
        padding: 40px 0;
    }
    .card {
        padding: 15px;
    }
}

/* تنسيقات خاصة بصفحة Yeastar */
.tech-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-base);
    border-radius: 15px;
    overflow: hidden;
    text-align: right;
    position: relative;
}

.tech-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-feature-card .feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-feature-card h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.tech-feature-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.tech-feature-card .feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.tech-feature-card .feature-list li i {
    margin-left: 10px;
    flex-shrink: 0;
}

/* تنسيق بطاقات المنتجات Yeastar */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-base);
    text-align: right;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto;
    z-index: 2;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-card .feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.product-card .feature-list li i {
    margin-left: 10px;
    flex-shrink: 0;
}

/* تنسيقات الشهادات */
.certification-badge {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition-base);
}

.certification-badge:hover {
    transform: var(--hover-lift-sm);
    box-shadow: var(--shadow-md);
}

.certification-badge img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* ===== أنماط صفحة تسجيل الدخول والتحقق الثنائي ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    padding: 0;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.login-container {
    display: flex;
    flex-direction: row;
    min-height: 600px;
}

.login-left {
    flex: 0 0 60%;
    background-color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
}

.login-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.login-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.login-right {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.login-decoration {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.login-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
}

.decoration-content {
    text-align: center;
}

.welcome-message {
    margin-bottom: 3rem;
}

.welcome-message i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.welcome-message h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
}

.welcome-message p {
    opacity: 0.8;
    font-size: 1rem;
}

.security-notice {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.notice-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notice-item i {
    margin-left: 1rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* نموذج تسجيل الدخول */
.login-form {
    margin-bottom: 1.5rem;
}

.form-floating {
    position: relative;
}

.ltr-input {
    text-align: left;
}

.form-control {
    height: 58px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 1.2rem 1rem 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
}

.form-floating label {
    padding: 1rem;
    opacity: 0.7;
}

.form-floating label i {
    margin-left: 0.5rem;
    opacity: 0.8;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 0.5rem;
    z-index: 5;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--primary-color);
}

.btn-login {
    height: 56px;
    font-size: 1.1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.3);
}

/* أنماط خاصة بالتحقق الثنائي */
.verification-step {
    text-align: center;
    padding: 1.5rem 0;
}

.verification-step i {
    color: var(--primary-color);
}

.verification-code-container {
    max-width: 360px;
    margin: 0 auto;
}

.verification-code-input {
    height: 70px;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.verification-code-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
}

.btn-verification {
    height: 56px;
    font-size: 1.1rem;
    border-radius: 10px;
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-verification:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.3);
}

.resend-code-container {
    margin-top: 1.5rem;
}

.countdown-timer {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.countdown-timer span {
    font-weight: 600;
    color: var(--primary-color);
}

/* تعديلات للشاشات المتوسطة والصغيرة */
@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left, .login-right {
        flex: 0 0 100%;
    }
    
    .login-right {
        display: none; /* إخفاء القسم التزييني على الشاشات الصغيرة */
    }
    
    .login-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .login-left {
        padding: 2rem 1rem;
    }
    
    .login-logo {
        height: 45px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* حقل الرسالة في نموذج الاتصال */
textarea.form-control {
    height: auto;
    min-height: 150px;
    padding: 1rem;
    line-height: 1.6;
    resize: vertical;
    max-height: 400px;
}

.contact-form textarea.form-control {
    min-height: 180px;
}

/* تحسين بطاقات التقييمات */
.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card-inner {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 15px;
    position: relative;
    padding-top: 10px;
}

.review-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    display: flex;
    gap: 5px;
    color: #FFD700;
    margin-bottom: 10px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
    margin-top: auto;
}

.user-image {
    margin-left: 15px;
    position: relative;
}

.user-image img {
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.user-info {
    flex: 1;
}

.user-info h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.user-info .company {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.user-info .date {
    color: #999;
    font-size: 0.75rem;
    margin-bottom: 0;
}
