:root {
    --main-color: #24928f; /* لون فيروزي */
    --main-color-rgb: 36, 146, 143;
    --secondary-color: #f0f2f5; /* رمادي فاتح */
    --dark-color: #1f2937;  /* رمادي داكن للنصوص */
    --white: #fff;
    --border-color: #dee2e6;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* تنسيق شريط التنقل */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
    height: 45px;
}

.navbar-brand span {
    color: var(--main-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 8px; /* تعديل الهامش لـ RTL */
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--main-color) !important;
}

.btn-main {
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(36,146,143,0.13);
    font-size: 1.15rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-main::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(36,146,143,0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: 0;
}

.btn-main:hover::after {
    width: 250px;
    height: 250px;
}

.btn-main span, .btn-main i {
    position: relative;
    z-index: 1;
}

.btn-main:hover {
    background-color: #1a7d7a; /* فيروزي داكن */
    color: var(--white);
}

/* تنسيق قسم الترحيب */
.hero-section {
    background: linear-gradient(to bottom, rgba(var(--main-color-rgb), 0.05), transparent), var(--white);
    padding: 80px 0 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.hero-section .lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .logo-hero {
    max-height: 80px;
    margin-bottom: 20px;
}

/* تنسيق شريط هيئة الزكاة */
.zatca-highlight-bar {
    background-color: var(--main-color);
    color: var(--white);
    padding: 18px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.zatca-highlight-bar i {
    margin-left: 8px; /* تعديل الهامش لـ RTL */
}

/* تنسيق الأقسام العامة */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--main-color);
    border-radius: 2px;
}

/* تنسيق بطاقات المميزات */
.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--main-color-rgb), 0.15);
}

.feature-card i {
    font-size: 2.8rem;
    color: var(--main-color);
    margin-bottom: 15px;
    display: block;
}

.feature-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
}

/* تنسيق قسم الدعوة للتواصل */
.cta-section {
    background-color: var(--main-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1100px;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-white {
    background-color: var(--white);
    color: var(--main-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--main-color);
}

/* تنسيق تذييل الصفحة */
footer {
    background-color: var(--dark-color);
    color: #adb5bd; /* رمادي فاتح لنصوص التذييل */
    padding: 40px 0 20px 0;
    margin-top: auto !important;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #495057; /* حدود داكنة */
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* تنسيق الأيقونات داخل بطاقات المميزات */
.feature-icon-img {
    max-height: 60px; /* ضبط الحجم حسب الحاجة */
    margin-bottom: 15px;
}

/* تنسيق قسم التقنيات */
.tech-images-wrapper {
    height: 320px;
}

.tech-img {
    transition: transform 0.5s cubic-bezier(.23,1.02,.64,.97), box-shadow 0.4s;
    box-shadow: 0 8px 32px rgba(36,146,143,0.18), 0 1.5px 8px rgba(0,0,0,0.08);
    border: 4px solid #fff;
}

.tech-img:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 16px 48px rgba(36,146,143,0.28), 0 3px 16px rgba(0,0,0,0.13);
    z-index: 10;
}

.animate-img-1 {
    animation: float1 4s ease-in-out infinite;
}

.animate-img-2 {
    animation: float2 5s ease-in-out infinite;
}

.animate-img-3 {
    animation: float3 6s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) scale(1) rotate(-2deg); }
    50% { transform: translateY(-18px) scale(1.04) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1) rotate(2deg); }
    50% { transform: translateY(14px) scale(1.07) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.1) rotate(3deg); }
}

/* تنسيق قسم التقنيات المتقدم */
.tech-images-wrapper-advanced {
    height: 400px;
}

.tech-img-adv {
    transition: transform 0.7s cubic-bezier(.23,1.02,.64,.97), box-shadow 0.5s, filter 0.5s;
    box-shadow: 0 12px 40px rgba(36,146,143,0.18), 0 2px 12px rgba(0,0,0,0.10);
    border: 6px solid #fff;
    filter: grayscale(10%) brightness(1.08);
}

.effect-zoom:hover {
    transform: scale(1.18) rotate(-2deg);
    box-shadow: 0 24px 64px rgba(36,146,143,0.32), 0 6px 24px rgba(0,0,0,0.18);
    filter: grayscale(0%) brightness(1.15);
}

.effect-rotate:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 20px 60px rgba(36,146,143,0.25), 0 4px 18px rgba(0,0,0,0.13);
    filter: grayscale(0%) brightness(1.1);
}

.effect-flash {
    animation: flashGlow 3.5s infinite alternate;
}

.effect-flash:hover {
    filter: drop-shadow(0 0 16px #24928f) brightness(1.2);
    transform: scale(1.13) rotate(-6deg);
}

@keyframes flashGlow {
    0% { filter: drop-shadow(0 0 0px #24928f) brightness(1.08); }
    60% { filter: drop-shadow(0 0 24px #24928f) brightness(1.18); }
    100% { filter: drop-shadow(0 0 0px #24928f) brightness(1.08); }
}

/* تأثيرات ظهور العناصر */
.animate-fadein {
    opacity: 0;
    animation: fadeInUp 1.1s forwards;
}

.animate-slidein {
    opacity: 0;
    animation: slideInRight 1.1s forwards;
}

.animate-fadein[style*="animation-delay"] {
    animation-delay: inherit;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: none; }
}

/* تنسيق صور التقنيات المكدسة */
.tech-images-stack {
    height: 420px;
    perspective: 1200px;
}

.tech-img-stack {
    box-shadow: 0 16px 48px rgba(36,146,143,0.22), 0 4px 24px rgba(0,0,0,0.13);
    border: 7px solid #fff;
    opacity: 0.93;
    transition: transform 0.7s cubic-bezier(.23,1.02,.64,.97), box-shadow 0.5s, opacity 0.5s, filter 0.5s;
    filter: grayscale(8%) brightness(1.08) drop-shadow(0 2px 12px #24928f22);
}

.effect-stack-1 {
    transform: rotateZ(-7deg) scale(1.08) translateZ(0px);
    box-shadow: 0 24px 64px #24928f33, 0 8px 32px #0002;
}

.effect-stack-2 {
    transform: rotateZ(-3deg) scale(1.04) translateZ(-20px);
    opacity: 0.92;
}

.effect-stack-3 {
    transform: rotateZ(2deg) scale(1) translateZ(-40px);
    opacity: 0.90;
}

.effect-stack-4 {
    transform: rotateZ(7deg) scale(0.97) translateZ(-60px);
    opacity: 0.88;
}

.tech-img-stack:hover {
    z-index: 10;
    opacity: 1 !important;
    filter: grayscale(0%) brightness(1.15) drop-shadow(0 0 32px #24928f55);
    box-shadow: 0 32px 96px #24928f44, 0 12px 48px #0003;
    transform: scale(1.13) rotateZ(0deg) translateZ(40px) !important;
}

/* تأثير ظهور الصور بالترتيب */
.animate-img-seq {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: imgSeqFadeIn 1s forwards;
}

.animate-img-seq[style*="animation-delay"] {
    animation-delay: inherit;
}

@keyframes imgSeqFadeIn {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

/* تنسيق طبقات الصور */
.tech-images-stack-pro {
    height: 440px;
    perspective: 1200px;
}

.img-bg-gradient {
    background: radial-gradient(ellipse at 60% 60%, #24928f22 0%, #fff 80%);
    filter: blur(12px) brightness(1.08);
    border-radius: 40px;
}

.img-layer {
    position: absolute;
    left: 0; right: 0;
    margin: auto;
    width: 340px;
    transition: transform 0.7s cubic-bezier(.23,1.02,.64,.97), box-shadow 0.5s, opacity 0.5s, filter 0.5s;
    z-index: 2;
    opacity: 0;
}

.img-layer-1 {
    top: 30px;
    z-index: 5;
    transform: rotateZ(-7deg) scale(1.08) translateZ(0px);
    animation-delay: 0.1s;
}

.img-layer-2 {
    top: 70px;
    z-index: 4;
    transform: rotateZ(-3deg) scale(1.04) translateZ(-20px);
    animation-delay: 0.5s;
}

.img-layer-3 {
    top: 120px;
    z-index: 3;
    transform: rotateZ(2deg) scale(1) translateZ(-40px);
    animation-delay: 0.9s;
}

.img-layer-4 {
    top: 180px;
    z-index: 2;
    width: 260px;
    transform: rotateZ(7deg) scale(0.97) translateZ(-60px);
    animation-delay: 1.3s;
}

.pro-img {
    width: 100%;
    box-shadow: 0 24px 64px #24928f33, 0 8px 32px #0002;
    border: 7px solid #fff;
    opacity: 0.96;
    filter: grayscale(8%) brightness(1.08) drop-shadow(0 2px 12px #24928f22);
    transition: transform 0.5s, box-shadow 0.5s, filter 0.5s;
}

.img-layer:hover {
    z-index: 10;
    opacity: 1 !important;
}

.img-layer:hover .pro-img {
    filter: grayscale(0%) brightness(1.15) drop-shadow(0 0 32px #24928f55);
    box-shadow: 0 32px 96px #24928f44, 0 12px 48px #0003;
    transform: scale(1.09) translateY(-12px);
}

.img-caption {
    background: rgba(36,146,143,0.85);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 18px 4px 18px;
    margin: 12px auto 0 auto;
    width: fit-content;
    box-shadow: 0 2px 12px #24928f33;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, transform 0.4s;
    position: relative;
    top: -10px;
}

.img-layer:hover .img-caption {
    background: #fff;
    color: #24928f;
    transform: translateY(-8px) scale(1.08);
}

/* تأثير ظهور الصور بالترتيب للقسم المتقدم */
.animate-img-seq-pro {
    animation: imgSeqFadeInPro 1.1s forwards;
}

.img-layer-1.animate-img-seq-pro { animation-delay: 0.1s; }
.img-layer-2.animate-img-seq-pro { animation-delay: 0.5s; }
.img-layer-3.animate-img-seq-pro { animation-delay: 0.9s; }
.img-layer-4.animate-img-seq-pro { animation-delay: 1.3s; }

@keyframes imgSeqFadeInPro {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; }
}

/* تنسيق بطاقات الخدمات */
.service-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(36,146,143,0.13), 0 1.5px 8px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(.23,1.02,.64,.97), box-shadow 0.4s, border 0.3s;
    border: 2px solid #f0f2f5;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.045) rotateZ(-1deg);
    box-shadow: 0 16px 48px #24928f33, 0 8px 32px #0002;
    border-color: #24928f44;
    z-index: 2;
}

.service-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 12px #24928f22;
    transition: transform 0.4s, box-shadow 0.4s;
}

.service-card:hover .service-img {
    transform: scale(1.13) rotateZ(2deg);
    box-shadow: 0 8px 32px #24928f33;
}

/* تنسيق البطاقات المتحركة */
.animated-card {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: cardFadeIn 1s forwards;
}

.row .col-md-6:nth-child(1) .animated-card { animation-delay: 0.1s; }
.row .col-md-6:nth-child(2) .animated-card { animation-delay: 0.3s; }
.row .col-md-6:nth-child(3) .animated-card { animation-delay: 0.5s; }
.row .col-md-6:nth-child(4) .animated-card { animation-delay: 0.7s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

/* تنسيق قسم الحلول */
.solutions-section {
    background: linear-gradient(120deg, #f8f9fa 60%, #e6f4f3 100%);
}

.features-list .feature-icon {
    background: #24928f;
    color: #fff;
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    margin-left: 10px;
}

.features-list strong {
    color: #24928f;
}

/* تكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1.1rem; }
    .section-title { font-size: 1.7rem; }
    .cta-section h2 { font-size: 1.8rem; }
    .feature-card { margin-bottom: 20px; }
    .service-img { width: 60px; height: 60px; }
    .service-card { padding: 1.2rem !important; }
    .solutions-section img { max-height: 180px; }
    .features-list .feature-icon { font-size: 1.1rem; width: 30px; height: 30px; }
    .tech-images-wrapper-advanced { height: 220px; }
    .tech-img-adv { width: 110px !important; }
    .features-images-stack { min-width: 220px; min-height: 120px; }
    .features-img-stack { width: 90px; height: 90px; }
    .features-modern-list .feature-modern-icon { font-size: 1.1rem; width: 30px; height: 30px; }
}

@media (max-width: 991px) {
    .tech-images-wrapper { height: 220px; }
    .tech-img { width: 90px !important; }
    .img-grid-item img { height: 110px; }
    .img-grid-title { font-size: 0.95rem; padding: 4px 10px; }
    .slider-img-item img { height: 120px; }
    .slider-img-title { font-size: 0.95rem; padding: 4px 10px; }
    .image-slider-modern { max-width: 98vw; }
    .image-slider-modern-full { min-height: 160px; border-radius: 12px; }
    .slider-img-item-full img { min-height: 160px; }
    .slider-img-title-full { font-size: 1rem; padding: 4px 10px; }
    .feature-img-big-wrapper { min-height: 180px; border-radius: 12px; }
    .feature-img-big { border-radius: 12px; }
}

/* إضافة لون النص الأساسي */
.text-main {
    color: var(--main-color) !important;
}