/* Advanced Homepage Styles with 3D Effects */

/* Loading Screen - شاشة التحميل */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease-out;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

/* إخفاء المحتوى أثناء شاشة التحميل */
body:not(.loaded) .hero-section,
body:not(.loaded) .about-section,
body:not(.loaded) .services-section,
body:not(.loaded) .portfolio-section,
body:not(.loaded) .contact-section,
body:not(.loaded) .testimonials-section,
body:not(.loaded) .team-section,
body:not(.loaded) .pricing-section,
body:not(.loaded) .certifications-section,
body:not(.loaded) .faq-section {
    visibility: hidden;
    opacity: 0;
}

/* إظهار المحتوى بعد التحميل */
body.loaded .hero-section,
body.loaded .about-section,
body.loaded .services-section,
body.loaded .portfolio-section,
body.loaded .contact-section,
body.loaded .testimonials-section,
body.loaded .team-section,
body.loaded .pricing-section,
body.loaded .certifications-section,
body.loaded .faq-section {
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-content {
    text-align: center;
    color: white;
    animation: pulse 2s ease-in-out infinite;
    max-width: 400px;
    padding: 2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.loading-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.cube-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 3rem;
    transform-style: preserve-3d;
}

.cube {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    animation: cubeMove 2.4s infinite ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cube-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.cube-2 {
    top: 0;
    right: 0;
    animation-delay: 0.6s;
}

.cube-3 {
    bottom: 0;
    left: 0;
    animation-delay: 1.2s;
}

.cube-4 {
    bottom: 0;
    right: 0;
    animation-delay: 1.8s;
}

@keyframes cubeMove {
    0%, 70%, 100% {
        transform: scale(1) rotateY(0deg) rotateX(0deg);
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
    35% {
        transform: scale(0.6) rotateY(180deg) rotateX(180deg);
        opacity: 0.7;
        background: rgba(255, 255, 255, 0.7);
    }
}

.progress-bar {
    width: 280px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 2rem auto 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #ffd700 50%, #fff 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.2s ease-out;
    width: 0%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

/* تأثيرات خلفية شاشة التحميل */
.loading-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Hero Section - القسم الأول */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 120px !important; /* مساحة كافية فوق navbar */
    padding-bottom: 2rem;
}

/* تحسين محتوى الـ hero */
.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding-top: 3rem !important; /* مساحة إضافية أعلى المحتوى */
}

/* تحسين النصوص الرئيسية */
.hero-text {
    position: relative;
    z-index: 5;
}

/* تحسين responsive للقسم الرئيسي - عربي */
@media (max-width: 1400px) {
    .hero-section {
        padding-top: 110px !important;
    }
    
    .hero-content {
        padding-top: 2.5rem !important;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        padding-top: 100px !important;
    }
    
    .hero-content {
        padding-top: 2rem !important;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 90px !important;
    }
    
    .hero-content {
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 85px !important;
        min-height: 90vh;
    }
    
    .hero-content {
        padding-top: 1rem !important;
    }
    
    .loading-text h3 {
        font-size: 1.4rem;
    }
    
    .progress-bar {
        width: 240px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px !important;
        min-height: 85vh;
    }
    
    .hero-content {
        padding-top: 0.5rem !important;
    }
    
    .loading-text h3 {
        font-size: 1.2rem;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .loading-content {
        padding: 1rem;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    margin-top: 3rem !important; /* مساحة أعلى كافية */
}

.visual-container {
    position: relative;
    perspective: 1000px;
    padding-top: 60px !important; /* مساحة إضافية أعلى المحتوى */
}

.main-visual {
    transform-style: preserve-3d;
    animation: rotate3dSlow 20s linear infinite;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close {
    background: #ff5f57;
}

.control-minimize {
    background: #ffbd2e;
}

.control-maximize {
    background: #28ca42;
}

.mockup-title {
    font-weight: 600;
    color: #374151;
}

.chart-container {
    height: 200px;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-title {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Floating Cards - كروت مناطق الخبرة العائمة */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3; /* Ensure cards appear above background */
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: floatCard 3s ease-in-out infinite;
    min-width: 150px;
    text-align: center;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* تحسين مواقع الكروت العائمة بعيدا عن navbar */
.card-1 {
    top: 150px !important; /* مساحة كافية بعيدا عن navbar */
    right: -5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -8%;
    animation-delay: 1s;
}

.card-3 {
    top: 70% !important; /* نقل لأسفل بعيدا عن navbar */
    right: -10%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* تحسين responsive للكروت العائمة */
.visual-container {
    position: relative;
    perspective: 1000px;
    padding-top: 60px !important; /* مساحة إضافية أعلى المحتوى */
}

/* Hero Visual */
.hero-visual {
    position: relative;
    margin-top: 3rem !important; /* مساحة أعلى كافية */
}

/* تحسين responsive للكروت العائمة - عربي */
@media (max-width: 992px) {
    .card-1 {
        top: 130px !important;
        right: -2%;
    }
    
    .card-3 {
        top: 65% !important;
    }
    
    .visual-container {
        padding-top: 40px !important;
    }
    
    .hero-visual {
        margin-top: 2rem !important;
    }
}

@media (max-width: 768px) {
    .card-1 {
        top: 120px !important;
        right: 0%;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .card-2 {
        bottom: 40%;
        left: -5%;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .card-3 {
        top: 60% !important;
        right: -5%;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .visual-container {
        padding-top: 30px !important;
    }
    
    .hero-visual {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .floating-card {
        min-width: 120px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-1 {
        top: 100px !important;
        right: 2%;
    }
    
    .card-3 {
        top: 55% !important;
    }
    
    .visual-container {
        padding-top: 20px !important;
    }
    
    .hero-visual {
        margin-top: 1rem !important;
    }
}

/* Hero Badge - شارة الجودة والريادة */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 6; /* رفع z-index لضمان الظهور */
}

.hero-badge i {
    font-size: 1.1rem;
    color: #ffd700;
}

/* رفع قيمة z-index للعناصر - عربي */
.hero-bg {
    z-index: 1;
}

.hero-content {
    z-index: 6 !important; /* رفع z-index */
    position: relative;
}

.visual-container {
    z-index: 5;
    position: relative;
}

.floating-elements {
    z-index: 4;
}

.floating-card {
    z-index: 5;
}

/* Services Section */
.services-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    height: 100%;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(15deg);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-price {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.price-text {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.price-value {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Portfolio/Projects Section */
.portfolio-section {
    background: #f8fafc;
    position: relative;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.project-client,
.project-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Team Section */
.team-section {
    background: white;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    color: white;
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.team-bio {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8fafc;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.testimonial-text {
    flex: 1;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -15px;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-company {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-section .section-header {
    margin-bottom: 60px;
}

.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.pricing-card.popular {
    border-color: #ffc107;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #000;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pricing-header-card {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.pricing-card.popular .pricing-header-card {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #000;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.pricing-card.popular .plan-name {
    color: #000;
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    color: #007bff;
    margin-bottom: 5px;
    line-height: 1;
}

.pricing-card.popular .plan-price {
    color: #000;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background-color: #f8f9fa;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text {
    flex: 1;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.4;
}

.feature-value {
    color: #007bff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 4px;
}

.btn-pricing {
    width: 100%;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-pricing.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
}

.btn-pricing.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.btn-pricing.btn-outline {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
}

.btn-pricing.btn-outline:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* ================== تكملة التصاميم ومؤثرات 3D للأقسام الناقصة ================== */
:root {
    --fallback-bg: #0f172a;
    --gradient-1: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    --gradient-soft: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0));
}

/* خلفية بصرية عامة إن وجدت */
.about-section, .faq-section, .contact-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-section::before,
.faq-section::before,
.contact-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 80% 20%, rgba(102,126,234,0.15), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(118,75,162,0.12), transparent 65%);
    pointer-events: none;
    animation: softPulse 14s linear infinite;
}

@keyframes softPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* ===== About Section Enhancements ===== */
.about-section {
    background: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}
.about-content {
    background: var(--gradient-soft);
    border: 1px solid rgba(102,126,234,0.15);
    padding: 2rem 2.25rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(102,126,234,0.18);
    position: relative;
    backdrop-filter: blur(6px);
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.19,1,.22,1), box-shadow .4s ease;
}
.about-content:hover {
    transform: translateY(-8px) rotateX(6deg) rotateY(-6deg);
    box-shadow: 0 25px 50px -15px rgba(102,126,234,0.35);
}
.about-title { font-weight: 800; line-height: 1.3; }
.about-text { font-size: 1.05rem; color: #475569; }

.about-features { margin-top: 1.75rem; }
.about-features .feature-item {
    display: flex;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: background .4s, transform .45s ease, box-shadow .45s ease;
    transform-style: preserve-3d;
}
.about-features .feature-item::before {
    content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15)); transition: opacity .4s; }
.about-features .feature-item:hover::before { opacity: 1; }
.about-features .feature-item:hover {
    transform: translateY(-6px) rotateY(6deg);
    box-shadow: 0 15px 35px -10px rgba(102,126,234,0.35);
}
.about-features .feature-icon {
    width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg,#667eea,#764ba2); box-shadow: 0 6px 14px rgba(102,126,234,0.45);
}
.about-features .feature-content h4 { font-weight: 700; margin-bottom: 4px; }
.about-features .feature-content p { margin: 0; color: #64748b; font-size: .9rem; }

.about-visual { perspective: 1200px; }
.visual-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.visual-item { position: relative; background: linear-gradient(135deg,#ffffff, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 20px; height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(0,0,0,0.12); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.19,1,.22,1), box-shadow .5s ease; }
.visual-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15)); opacity: 0; transition: opacity .45s; }
.visual-item:hover { transform: translateY(-10px) rotateX(12deg) rotateY(-12deg) scale(1.03); box-shadow: 0 25px 50px -15px rgba(102,126,234,0.35); }
.visual-item:hover::after { opacity: 1; }
.visual-item .item-content { text-align: center; position: relative; z-index: 2; color: #1e293b; }
.visual-item .item-content i { font-size: 1.9rem; display: block; margin-bottom: .35rem; background: linear-gradient(135deg,#667eea,#764ba2); -webkit-background-clip: text; color: transparent; }
.visual-item .item-content h4 { font-size: .95rem; margin: 0; font-weight: 700; letter-spacing: .5px; }

/* ===== FAQ Section Enhancements ===== */
.faq-section { background: #f1f5f9; padding-top: 80px; padding-bottom: 80px; }
.faq-accordion { position: relative; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; margin-bottom: 1rem; overflow: hidden; box-shadow: 0 8px 22px -10px rgba(0,0,0,0.12); transition: transform .4s ease, box-shadow .45s ease; transform-style: preserve-3d; }
.faq-item:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: 0 18px 40px -12px rgba(102,126,234,0.35); }
.faq-header { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(255,255,255,0.5)); backdrop-filter: blur(6px); font-weight: 700; position: relative; }
.faq-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(102,126,234,0.12),rgba(118,75,162,0.12)); opacity: 0; transition: opacity .4s; }
.faq-header:hover::after { opacity: 1; }
.faq-question { font-size: 1rem; margin: 0; color: #1e293b; }
.faq-icon { font-size: .9rem; color: #667eea; transition: transform .4s ease; }
.collapse.show + .faq-icon, .faq-header[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-body { padding: 0 1.5rem 1.5rem; font-size: .95rem; color: #475569; line-height: 1.65; }

/* ===== Contact Section Enhancements ===== */
.contact-section { background: #ffffff; padding-top: 80px; padding-bottom: 80px; }
.contact-info, .contact-form { position: relative; border: 1px solid rgba(102,126,234,0.15); padding: 2rem 2.25rem; border-radius: 28px; background: linear-gradient(145deg,#ffffff 0%, #f8fafc 100%); box-shadow: 0 10px 35px -12px rgba(102,126,234,0.25); overflow: hidden; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.19,1,.22,1), box-shadow .5s ease; }
.contact-info::before, .contact-form::before { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(102,126,234,0.18), rgba(118,75,162,0.18)); opacity: 0; transition: opacity .55s; }
.contact-info:hover, .contact-form:hover { transform: translateY(-10px) rotateY(6deg); box-shadow: 0 25px 55px -18px rgba(102,126,234,0.45); }
.contact-info:hover::before, .contact-form:hover::before { opacity: .07; }
.contact-info-title, .contact-form-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.25rem; background: linear-gradient(135deg,#667eea,#764ba2); -webkit-background-clip: text; color: transparent; }
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li { display: flex; gap: .75rem; margin-bottom: 1rem; font-size: .95rem; color: #334155; position: relative; padding: .75rem .9rem; border-radius: 16px; background: #f1f5f9; transition: background .4s; }
.contact-info-list li i { width: 32px; height: 32px; background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .9rem; box-shadow: 0 6px 14px -4px rgba(102,126,234,0.5); }
.contact-info-list li:hover { background: #eef2ff; }

.contact-form form .form-group { margin-bottom: 1.1rem; }
.contact-form form label { font-weight: 600; font-size: .85rem; color: #475569; margin-bottom: .35rem; display: block; letter-spacing: .5px; }
.contact-form form .form-control { border-radius: 16px; border: 1px solid #e2e8f0; padding: .9rem 1rem; background: #f8fafc; transition: border-color .35s, box-shadow .35s, transform .35s; }
.contact-form form .form-control:focus { border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,0.15); transform: translateY(-2px); }
.contact-form button { border-radius: 20px; padding: .9rem 2rem; font-weight: 700; position: relative; overflow: hidden; }
.contact-form button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,0.15), rgba(255,255,255,0)); opacity: 0; transition: opacity .45s; }
.contact-form button:hover::after { opacity: 1; }

/* ===== Scroll Indicator ===== */
.scroll-indicator { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: 1px; z-index: 10; animation: floatY 3s ease-in-out infinite; }
.scroll-indicator .scroll-arrow { margin-top: .4rem; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; display:flex; align-items:center; justify-content:center; position: relative; overflow: hidden; }
.scroll-indicator .scroll-arrow::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,0.35),rgba(255,255,255,0)); opacity: 0; transition: opacity .5s; }
.scroll-indicator:hover .scroll-arrow::before { opacity: 1; }
.scroll-indicator i { animation: arrowBounce 1.8s ease-in-out infinite; }
@keyframes arrowBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes floatY { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-10px); } }

/* ===== Hero Floating Shapes & Geometric Background ===== */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.floating-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floating-shapes .shape { position: absolute; background: linear-gradient(135deg,rgba(255,255,255,0.25),rgba(255,255,255,0.05)); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(4px); border-radius: 20px; box-shadow: 0 10px 25px -8px rgba(0,0,0,0.25); animation: floatShape 18s linear infinite, rotateShape 30s linear infinite; }
.shape-1 { top: 10%; left: 5%; width: 120px; height: 120px; animation-delay: 0s; }
.shape-2 { top: 65%; left: 15%; width: 90px; height: 90px; animation-delay: 3s; }
.shape-3 { top: 25%; right: 12%; width: 140px; height: 140px; animation-delay: 6s; }
.shape-4 { bottom: 5%; right: 5%; width: 110px; height: 110px; animation-delay: 9s; }
.shape-5 { top: 50%; right: 35%; width: 70px; height: 70px; animation-delay: 12s; }
.shape-6 { top: 75%; left: 40%; width: 60px; height: 60px; animation-delay: 15s; }
@keyframes floatShape { 0%,100% { transform: translate3d(0,0,0); } 25% { transform: translate3d(30px,-40px,60px); } 50% { transform: translate3d(-20px,20px,-40px); } 75% { transform: translate3d(-40px,-30px,20px); } }
@keyframes rotateShape { 0% { rotate: 0deg; } 100% { rotate: 360deg; } }

.geometric-bg { position: absolute; inset: 0; z-index: 0; }
.geo-element { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(255,255,255,0)); filter: blur(60px); opacity: .25; animation: geoPulse 14s ease-in-out infinite; }
.geo-1 { width: 600px; height: 600px; top: -150px; right: -200px; animation-delay: 0s; }
.geo-2 { width: 500px; height: 500px; bottom: -120px; left: -150px; animation-delay: 5s; }
.geo-3 { width: 400px; height: 400px; top: 40%; left: 30%; animation-delay: 8s; }
@keyframes geoPulse { 0%,100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.1); opacity: .35; } }

/* تحسين تدرجات النصوص */
.text-gradient { background: linear-gradient(135deg,#ffffff,#ffe7a1 45%,#ffffff); -webkit-background-clip: text; color: transparent; }
.highlight-text { background: linear-gradient(135deg,#ffd700,#ff9f43); -webkit-background-clip: text; color: transparent; }

/* ===== Media Queries إضافية ===== */
@media (max-width: 992px) {
    .about-content, .contact-info, .contact-form { margin-bottom: 2rem; }
    .visual-item { height: 110px; }
}
@media (max-width: 768px) {
    .about-content, .contact-info, .contact-form { padding: 1.5rem 1.6rem; }
    .contact-info-list li { font-size: .85rem; }
    .visual-item { height: 100px; }
    .faq-header { padding: 1rem 1.1rem; }
}
@media (max-width: 576px) {
    .visual-grid { gap: .75rem; }
    .visual-item { height: 90px; border-radius: 16px; }
    .about-features .feature-item { flex-direction: row; }
    .contact-info, .contact-form { border-radius: 22px; }
    .scroll-indicator { bottom: 15px; }
}

/* ================== نهاية الإضافات ================== */

/* === Hero Subtitle Centering Fix === */
.hero-subtitle {
    text-align: center !important; /* ضمان التوسيط */
    margin: 0 auto 2rem !important; /* توسيط الحاوية وإضافة مسافة سفلية */
    max-width: 900px; /* عرض أقصى مناسب */
    line-height: 1.6;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-subtitle {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Clients Section - centered logos */
.clients-section { background:#f8fafc; position:relative; overflow:hidden; }
.clients-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1.75rem; align-items:stretch; }
@media (max-width:992px){ .clients-grid{ gap:1.25rem; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); } }
@media (max-width:576px){ .clients-grid{ gap:1rem; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); } }
.client-card { background:#ffffff; border:1px solid #e2e8f0; border-radius:20px; padding:1.1rem .9rem .95rem; display:flex; flex-direction:column; align-items:center; position:relative; transition:all .45s cubic-bezier(.19,1,.22,1); box-shadow:0 4px 12px -4px rgba(0,0,0,0.06); height:100%; overflow:hidden; }
.client-card::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,rgba(102,126,234,0.4),rgba(118,75,162,0.35));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .45s;}
.client-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 18px 35px -10px rgba(102,126,234,.25);}
.client-card:hover::after{opacity:1;}
/* Wrapper: fixed height; pure flex centering */
.client-logo-wrapper { width:100%; height:170px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; background:linear-gradient(145deg,#f1f5f9,#ffffff); border:1px dashed #d5dbe3; border-radius:16px; margin-bottom:.8rem; padding:.65rem; transition:all .45s; }
.client-card:hover .client-logo-wrapper{border-style:solid;box-shadow:0 8px 18px -6px rgba(102,126,234,.25);}
@media (max-width:992px){ .client-logo-wrapper{ height:150px; } }
@media (max-width:576px){ .client-logo-wrapper{ height:120px; padding:.5rem; } }
/* Image centering */
.client-logo { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; filter:grayscale(.15) contrast(1.05); transition:all .45s; }
.client-card:hover .client-logo{filter:grayscale(0) contrast(1.1); transform:scale(1.04);}
.client-logo-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.9rem; letter-spacing:.5px; color:#64748b; background:linear-gradient(135deg,#e2e8f0,#f8fafc); }
/* Text / info */
.client-info{width:100%;text-align:center;display:flex;flex-direction:column;gap:.25rem;flex-grow:1;}
.client-company{font-size:.95rem;font-weight:700;color:#1e293b;line-height:1.2;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}
.client-company-en{font-size:.7rem;font-weight:600;color:#475569;direction:ltr;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}
.client-industry{font-size:.65rem;font-weight:500;color:#64748b;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}
/* Meta */
.client-meta{margin-top:.4rem;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.45rem;}
.client-rating i{color:#fbbf24;font-size:.7rem;filter:drop-shadow(0 1px 1px rgba(0,0,0,.1));transition:transform .4s;}
.client-card:hover .client-rating i:nth-child(odd){transform:translateY(-2px);} 
.client-projects{display:flex;align-items:center;gap:.3rem;font-size:.58rem;color:#475569;background:#f1f5f9;padding:.25rem .55rem;border-radius:999px;line-height:1;font-weight:600;letter-spacing:.3px;}
.client-projects i{color:#667eea;font-size:.65rem;}
.client-badge.vip{background:linear-gradient(135deg,#f59e0b,#fcd34d);color:#000;padding:.28rem .5rem;border-radius:10px;font-size:.55rem;font-weight:700;display:inline-flex;align-items:center;gap:.25rem;box-shadow:0 2px 4px rgba(0,0,0,.15);} 
.client-badge.vip i{font-size:.65rem;}
/* Mobile tweaks */
@media (max-width:576px){
  .client-card{padding:.95rem .65rem .65rem;}
  .client-company{font-size:.85rem;}
  .client-logo-wrapper{border-radius:14px;}
  .client-rating i{font-size:.6rem;}
  .client-projects{font-size:.5rem;padding:.2rem .45rem;}
}