/*
 Theme Name: ManafSoft Theme
 Author: ManafSoft Team
 Description: قالب مخصص لشركة مناف سوفت لتقنية المعلومات
 Version: 1.6
 Text Domain: manafsoft
*/

/* إعدادات عامة */
:root {
    --primary-color: #0a2f43;
    --secondary-color: #00eaff;
    --gradient: linear-gradient(135deg, #0a2f43, #00eaff);
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom, #e0f7fa, var(--white));
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    direction: var(--direction, rtl);
    text-align: var(--text-align, right);
}

html[dir="ltr"] {
    --direction: ltr;
    --text-align: left;
}

/* الهيدر */
header {
    background: rgba(10, 47, 67, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: var(--white) !important;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* الهيرو */
.hero-section {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* زيادة الارتفاع لاستيعاب العناصر */
    display: flex;
    align-items: center;
    justify-content: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-size: 2rem; /* النص المتحرك أكبر */
    font-weight: 700;
    margin-bottom: 1.5rem;
    direction: var(--direction);
    text-align: var(--text-align);
    color: #ffd700;
}

.hero-section h1 {
    font-size: 1.5rem; /* النص الثابت أصغر */
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    direction: var(--direction);
    text-align: var(--text-align);
}

#typed-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 2rem; /* تصغير النص من 2.5rem إلى 2rem */
    background: linear-gradient(90deg, #00f2ff, #00bcd4); /* الgradient من الاستايل القديم */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    min-height: 2.5rem; /* تصغير min-height ليتناسب مع النص الأصغر */
}

.typed-cursor {
    font-size: 2rem; /* تصغير المؤشر ليتناسب مع النص */
    background: linear-gradient(90deg, #00f2ff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.hero-image-container {
    margin: 1.5rem 0; /* تباعد بين النص المتحرك والنص الثابت */
}

.hero-image {
    max-width: 250px; /* تصغير الصورة لتوازن التصميم */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* استجابة الجوال */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        min-height: 70vh;
    }

    .hero-section h2, #typed-text, .typed-cursor {
        font-size: 2rem; /* تصغير النص المتحرك على الجوال من 2.2rem إلى 2rem */
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .hero-section .btn-primary,
    .hero-section .btn-outline-light {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h2, #typed-text, .typed-cursor {
        font-size: 1.6rem; /* تصغير النص المتحرك على الشاشات الصغيرة من 1.8rem إلى 1.6rem */
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .hero-image {
        max-width: 150px;
    }
}

.hero-image {
    max-width: 300px; /* الصورة أصغر */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-section .btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #00bcd4);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* الأقسام */
.about-section, .services-section, .products-section, .contact-section, .stats-section {
    position: relative;
    background: linear-gradient(135deg, #f0faff, #d0f0fa);
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300eaff" fill-opacity="0.15" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,138.7C960,160,1056,224,1152,229.3C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    z-index: 0;
}

section h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2::after {
    content: '';
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), #00bcd4);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.about-grid, .services-grid, .products-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-card, .service-card, .product-card, .stat-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid rgba(0, 234, 255, 0.2);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 234, 255, 0.2);
    box-shadow: var(--shadow);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--secondary-color), #00bcd4);
    color: var(--white);
    transform: rotateY(180deg);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: var(--shadow);
}

.flip-card-back p {
    margin: 0;
    padding: 10px;
}

.about-card:hover, .service-card:hover, .product-card:hover, .stat-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.about-icon, .service-icon, .product-icon, .stat-icon {
    background: linear-gradient(135deg, var(--secondary-color), #00bcd4);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-card:hover .about-icon, .service-card:hover .service-icon, .product-card:hover .product-icon, .stat-box:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-icon i, .service-icon i, .product-icon i, .stat-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.about-card h4, .service-card h4, .product-card h4, .stat-box h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.about-card p, .service-card p, .product-card p, .stat-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* قسم الإحصائيات */
.stats-section {
    background: linear-gradient(135deg, #008aad, #0a2f43);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300eaff" fill-opacity="0.15" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,138.7C960,160,1056,224,1152,229.3C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    z-index: 0;
}

.stats-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stats-section h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #00eaff, #00bcd4);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 234, 255, 0.2);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: #00eaff;
}

.stat-icon {
    background: linear-gradient(135deg, #00eaff, #00bcd4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-icon i {
    font-size: 2rem;
    color: #fff;
}

.stat-box h3.counter {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.stat-box .stat-label {
    font-size: 1rem;
    color: #e0f7ff;
    margin: 10px 0 0;
    line-height: 1.5;
    font-weight: 500;
    display: block !important; /* التأكد من أن النصوص مرئية */
    opacity: 1 !important; /* منع إخفاء النصوص */
    visibility: visible !important; /* التأكد من الظهور */
    height: auto !important; /* منع الارتفاع صفر */
    overflow: visible !important; /* منع إخفاء المحتوى */
}

/* استجابة الجوال */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }

    .stats-section h2 {
        font-size: 2rem;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-box h3.counter {
        font-size: 1.8rem;
    }

    .stat-box .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-box h3.counter {
        font-size: 1.5rem;
    }

    .stat-box .stat-label {
        font-size: 0.85rem;
    }
}
/* قسم الاتصال */
.contact-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #00bcd4;
    padding: 10px;
    font-family: 'Tajawal', sans-serif;
    direction: var(--direction);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.3);
    outline: none;
}

.contact-form .btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #00bcd4);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    width: 100%;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.g-recaptcha {
    display: block !important;
    margin: 10px 0;
}

.error {
    color: red !important;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    direction: var(--direction);
    text-align: var(--text-align);
}

#submitButton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#submitButton .spinner {
    display: none;
    font-size: 0.9rem;
}

#submitButton:disabled .spinner {
    display: inline-block;
}

#submitButton:disabled .button-text {
    display: none;
}

#formMessage {
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    direction: var(--direction);
}

/* أيقونة واتساب */
.whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

html[dir="ltr"] .whatsapp {
    left: auto;
    right: 20px;
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp i {
    line-height: 1;
}

/* الفوتر */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* التحريكات */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: translateY(-50px); opacity: 0; }
    60% { transform: translateY(10px); opacity: 1; }
    80% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* الاستجابة */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        min-height: 60vh;
    }

    .hero-section h2, #typed-text, .typed-cursor {
        font-size: 2.2rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .hero-section .btn-primary,
    .hero-section .btn-outline-light {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        width: 35px;
    }

    .about-section, .services-section, .products-section, .contact-section, .stats-section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .about-grid, .services-grid, .products-grid, .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

    .whatsapp {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .flip-card {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-section h2, #typed-text, .typed-cursor {
        font-size: 1.8rem;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .hero-image {
        max-width: 150px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section h2::after {
        width: 80px;
    }

    .about-card, .service-card, .product-card, .stat-box {
        padding: 20px;
    }

    .about-icon, .service-icon, .product-icon, .stat-icon {
        width: 70px;
        height: 70px;
    }

    .about-icon i, .service-icon i, .product-icon i, .stat-icon i {
        font-size: 2rem;
    }

    .navbar-brand img {
        max-width: 30px;
    }

    .whatsapp {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .flip-card {
        height: 400px;
    }

    .flip-card-back {
        font-size: 0.85rem;
    }
}
.contact-form input,
.contact-form textarea {
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: textfield;
    appearance: textfield;
    touch-action: manipulation;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}