/* المتغيرات العامة للألوان */
:root {
    --primary-color: #0d3b2e;
    --secondary-color: #2d9b5a;
    --text-color: #333;
    --light-bg: #f0f7f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--white);
    animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
    0% { 
        box-shadow: 0 0 0 0 rgba(45, 155, 90, 0.9),
                    0 0 0 0 rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(45, 155, 90, 0),
                    0 0 0 8px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(45, 155, 90, 0),
                    0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* الهيدر */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* قائمة الموبايل */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* قسم الهيرو */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('2222.png') no-repeat center center/cover;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 46, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #2d9b5a, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s linear infinite, glowing 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glowing {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(45, 155, 90, 0.6)); }
    50% { filter: drop-shadow(0 0 20px rgba(45, 155, 90, 1)); }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
}

/* الأقسام العامة */
.section {
    padding: 80px 0;
}

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

.section-title.center {
    display: block;
    text-align: center;
    margin-bottom: 50px;
}

/* قسم من نحن */
.about .row {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.col-image, .col-text {
    flex: 1;
    min-width: 300px;
}

.col-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--secondary-color);
    margin-left: 10px;
}

/* قسم الخدمات */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(13, 59, 46, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* صفحة تواصل معنا */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.map-placeholder img {
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 155, 90, 0.1);
}

/* الفوتر — خلفية بيضاء ونصوص داكنة */
.footer {
    background-color: var(--white);
    color: var(--text-color);
    padding: 50px 0 20px;
    border-top: 3px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col p {
    color: #555;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #555;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col i {
    color: var(--secondary-color);
    margin-left: 8px;
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.copyright {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* قسم الرؤية والرسالة */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.mv-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 59, 46, 0.15);
    background: var(--white);
}

.mv-card .icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: var(--transition);
}

.mv-card:hover .icon-box {
    background-color: var(--secondary-color);
    color: var(--white);
}

.mv-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.mv-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* التجاوب */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .logo-text {
        display: none;
    }

    .logo img {
        max-height: 55px;
    }

    .footer-logo {
        width: 50px;
        margin: 0 auto 15px;
    }

    .footer-col {
        text-align: center;
    }
}
/* قسم العملاء */
.clients-section {
    background-color: var(--light-bg);
    padding: 80px 0 60px;
}
/* قسم الشهادات والتراخيص */
.certs-section {
    background-color: var(--white);
}

.certs-subtitle {
    text-align: center;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--light-bg);
    border-radius: 14px;
    padding: 35px 25px 25px;
    text-align: center;
    border: 1px solid #d4eddf;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(13,59,46,0.12);
    background: var(--white);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    background: var(--secondary-color);
}

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

.cert-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.cert-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.cert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.cert-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cert-btn i {
    color: #e74c3c;
    font-size: 0.85rem;
}

.cert-btn:hover i {
    color: #ff6b6b;
}
/* انيميشن من نحن */
.col-image {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.col-text {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.col-image.animate-in,
.col-text.animate-in {
    opacity: 1;
    transform: translateX(0);
}
/* ===== انيميشنات احترافية ===== */

/* Reveal Text */
.section-title {
    overflow: hidden;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.8s ease;
}

.section-title.animate-in::after {
    width: 100%;
}

/* Fade Up للعناصر */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.3s; }
.fade-up:nth-child(4) { transition-delay: 0.4s; }
.fade-up:nth-child(5) { transition-delay: 0.5s; }
.fade-up:nth-child(6) { transition-delay: 0.6s; }
.fade-up:nth-child(7) { transition-delay: 0.7s; }
.fade-up:nth-child(8) { transition-delay: 0.8s; }

/* Magnetic Button */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

/* Morphing Border للبطاقات */
.service-card, .cert-card, .mv-card {
    position: relative;
}

.service-card::after, .mv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after, .mv-card:hover::after {
    opacity: 1;
}
/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 2rem;
    color: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #0d3b2e;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    border: 2px solid #25D366;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #25D366;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        animation: whatsapp-mobile 2s ease-in-out infinite;
    }

    .whatsapp-float i {
        font-size: 1.8rem;
    }

.whatsapp-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: tooltip-pulse 2s ease-in-out infinite;
}

@keyframes tooltip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
}

@keyframes whatsapp-mobile {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8);
        transform: scale(1);
        opacity: 1;
    }
    40% { 
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1.1);
        opacity: 1;
    }
    60% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
}
/* شاشة التحميل */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

#preloader img {
    width: 80px;
    animation: pulse 2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

#preloader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45, 155, 90, 0.1);
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* قسم العملاء */
/* قسم العملاء المنظف */
.clients-section {
    background-color: transparent; /* إزالة الخلفية الطويلة الممتدة */
    background-color: transparent; /* إزالة الشريط الملون الطويل */
    background-color: transparent;
    padding: 80px 0 60px;
    padding: 60px 0;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px; /* تقليل المسافة لجعل الصفوف تبدو متلاصقة */
    background: transparent; /* التأكد من أن الخلفية شفافة */
    margin-bottom: 15px;
    background: transparent;
    margin-bottom: 20px;
    direction: ltr; /* هام جداً لضبط حركة الشريط في المواقع العربية */
    margin-bottom: 10px;
}

.marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
    animation: scrollLogos 40s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse; /* عكس اتجاه الحركة للصف الثاني */
    animation-direction: reverse;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll {
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.clients-section .client-card {
    min-width: 150px;
.client-card {
    width: 150px;
    height: 90px;
    background: var(--white); /* المربع الصغير خلف الشعار يكون أبيض */
    background: var(--white); /* البادج فقط هو الذي خلفيته بيضاء */
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* ظل خفيف ليظهر المربع كأنه "بادج" */
    border: 1px solid #eee; /* إطار ناعم للمربع */
    border: none; /* إزالة الإطار المستطيل */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.clients-section .client-card:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 25px rgba(45, 155, 90, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* ظل ناعم جداً عند التمرير فقط */
    box-shadow: 0 10px 25px rgba(13, 59, 46, 0.1);
    filter: brightness(1.15);
    background: var(--white); /* يظهر خلفية بيضاء خفيفة فقط عند التفاعل */
    background: var(--white);
}

.clients-section .client-card img {
.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: multiply; /* لجعل خلفية الصور البيضاء تختفي وتندمج مع الخلفية */
    transition: 0.3s;
}

.clients-section .client-card:hover img {
.client-card:hover {
    transform: scale(1.05);
}
.client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* قسم الشهادات والتراخيص */
.certs-section {