:root {
    --primary: #022179;
    --accent: #D3DFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #212529;
    transition: background 0.3s, color 0.3s;
}

#site-bg {
    position: fixed;
    inset: 0;
    background-image: url('bg-light.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dark #site-bg {
    background-image: url('bg-dark.jpg');
    opacity: 0.18;
}

/* ===== SERVICE PAGE BACKGROUNDS ===== */
.svc-page #site-bg {
    background-image: url('pngtree-a-person-using-tablet-and-various-icons-of-digital-marketing-and-image_16271342.jpg');
    opacity: 0.15;
}

.dark .svc-page #site-bg {
    background-image: url('pngtree-programming-on-laptop-screen-the-world-of-web-development-and-computer-image_13574063.png');
    opacity: 0.12;
}

body.rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* ===== DARK MODE ===== */
.dark body {
    background: #23252b !important;
    color: #f0f2f8 !important;
}

.dark html {
    background: #23252b;
}

.dark .top-bar {
    background: #161a2e !important;
}

.dark .top-bar span,
.dark .top-bar a {
    color: #a8c4ff !important;
}

.dark .navbar-wrap {
    background: #2c2e36 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.dark .nav-links a {
    color: #f0f2f8 !important;
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
    color: #7ea8ff !important;
}

.dark .hamburger svg {
    stroke: #d1d5db;
}

.dark .mobile-menu {
    background: #2c2e36 !important;
}

.dark .mobile-nav-link {
    color: #f0f2f8 !important;
    border-color: #3b3e48 !important;
}

.dark .marquee-section {
    background: #25262c !important;
    border-color: #35363d !important;
}

.sec-white {
    background: #ffffff;
}

.dark .sec-white {
    background: #2c2e36 !important;
}

.sec-light {
    background: #f8f9ff;
}

.dark .sec-light {
    background: #23252b !important;
}

.dark .section-tag {
    color: #90b8ff !important;
}

.dark .section-title {
    color: #f9fafb !important;
}

.dark .section-sub {
    color: #e2e6f0 !important;
}

.dark h2 {
    color: #f9fafb !important;
}

.dark h3 {
    color: #f3f4f6 !important;
}

.dark h4 {
    color: #e5e7eb !important;
}

.dark p {
    color: #e2e6f0 !important;
}

.dark .card-service {
    background: #2c2e36 !important;
    border-color: #3b3e48 !important;
}

.dark .card-service h3 {
    color: #f9fafb !important;
}

.dark .card-service p {
    color: #e2e6f0 !important;
}

.dark .card-service .service-icon rect:first-child {
    fill: #2a3a5a !important;
}

.dark .card-service .service-icon svg [stroke="#022179"] {
    stroke: #f9fafb !important;
}

.dark .card-service .service-icon svg [fill="#022179"] {
    fill: #f9fafb !important;
}

.dark .why-card {
    background: #2c2e36 !important;
    border-color: #3b3e48 !important;
}

.dark .why-card h4 {
    color: #7ea8ff !important;
}

.dark .why-card p {
    color: #e2e6f0 !important;
}

.dark .why-card .why-icon {
    background: #324b82 !important;
}

.dark .industry-card {
    background: #2c2e36 !important;
    border-color: #3b3e48 !important;
}

.dark .industry-card h4 {
    color: #7ea8ff !important;
}

.dark .industry-card:hover {
    background: #1e40af !important;
}

.dark .industry-card:hover h4 {
    color: #fff !important;
}

.dark .process-card {
    background: #2c2e36 !important;
    border-top-color: #7ea8ff !important;
}

.dark .process-card h4 {
    color: #7ea8ff !important;
}

.dark .process-card p {
    color: #e2e6f0 !important;
}

.dark img[src*="nac_tech_solution_logo"] {
    background-color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
}

.dark .stats-section {
    background: #1e40af !important;
}

.dark .vision-inner-box {
    background: linear-gradient(135deg, #16337a, #1e40af) !important;
}

.dark .vision-inner-box div {
    color: #a8c4ff !important;
}

.dark .vision-inner-box p {
    color: #a8c4ff !important;
}

.dark .ceo-divider {
    border-color: #3a6fff !important;
}

.dark .ceo-name-text {
    color: #7ea8ff !important;
}

.dark .ceo-title-text {
    color: #888 !important;
}

.dark .ceo-section {
    background: #23252b !important;
}

.dark .ceo-avatar {
    background: transparent !important;
}

.dark .ceo-quote {
    color: #ccc !important;
    border-color: #3a6fff !important;
}

.dark .ceo-bio {
    color: #a0a0a0 !important;
}

.dark .biz-light {
    background: #1e3a8a !important;
}

.dark .biz-light h4,
.dark .biz-light div:first-child {
    color: #a8c4ff !important;
}

.dark .biz-light p {
    color: #c8d8ff !important;
}

.dark .sec-contact {
    background: #2c2e36 !important;
}

.dark .contact-info-title {
    color: #7ea8ff !important;
}

.dark .contact-info-text {
    color: #a0a0a0 !important;
}

.dark .contact-link {
    color: #6b9fff !important;
}

.dark .contact-input {
    background: #23252b !important;
    border-color: #3b3e48 !important;
    color: #f9fafb !important;
}

.dark .contact-input::placeholder {
    color: #e2e6f0 !important;
}

.dark .footer-bg {
    background: #13141a !important;
}

.dark .ctrl-btn {
    color: #ccc !important;
    border-color: #4a4b52 !important;
}

.dark .ctrl-btn.active-ctrl {
    background: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
}

.dark #theme-dropdown {
    background: #2c2e36 !important;
    border-color: #3b3e48 !important;
}

.dark .ctrl-btn:hover {
    border-color: #3a6fff !important;
    color: #7ea8ff !important;
}

.dark .contact-email-label {
    color: #7ea8ff !important;
}

/* ===== NAVBAR ===== */
.navbar-wrap {
    background: white;
    position: relative;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #022179;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.dark .nav-links a::after {
    background-color: #7ea8ff;
}

body.rtl .nav-links a::after {
    transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

body.rtl .nav-links a:hover::after,
body.rtl .nav-links a.active::after {
    transform-origin: right;
}

.nav-links a:hover,
.nav-links a.active {
    color: #022179;
    font-weight: 600;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 760px;
}

.slide-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #111;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid white;
    position: relative;
}

.btn-connect:active {
    transform: scale(0.96);
}

.btn-loading {
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes btn-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-connect:hover {
    background: transparent;
    color: white;
}

.btn-connect-primary {
    background: #022179;
    color: white;
    border-color: #022179;
}

.btn-connect-primary:hover {
    background: #011560;
}

/* ===== SLIDER DOTS ===== */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
    align-items: center;
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.card-service {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.card-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(2, 33, 121, 0.1);
    border-color: #D3DFFF;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

/* ===== INDUSTRY CARDS ===== */
.industry-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.industry-card:hover {
    background: #022179;
    color: white;
    transform: translateY(-4px);
}

.industry-card:hover .industry-icon {
    filter: brightness(10);
}

.industry-card:hover h4 {
    color: white !important;
}

/* ===== STATS ===== */
.stats-section {
    background: #022179;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ===== PROCESS STEPS ===== */
.process-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 28px 20px;
    border-top: 4px solid #022179;
    text-align: center;
}

.process-num {
    width: 48px;
    height: 48px;
    background: #022179;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

/* ===== WHY CARD ===== */
.why-card {
    background: white;
    border-radius: 10px;
    padding: 28px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
    box-shadow: 0 8px 30px rgba(2, 33, 121, 0.1);
    border-color: #D3DFFF;
}

/* ===== FOOTER ===== */
.footer-bg {
    background: #0d1b3e;
    color: white;
}

/* ===== CONTROLS ===== */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    border: 1px solid #ccc;
    background: transparent;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctrl-btn:hover {
    border-color: #022179;
    color: #022179;
}

.ctrl-btn.active-ctrl {
    background: #022179;
    color: white;
    border-color: #022179;
}

.dark .ctrl-btn {
    color: #ccc;
    border-color: #444;
}

.dark .ctrl-btn.active-ctrl {
    background: #1e40af;
    color: white;
}

.dark .navbar-wrap {
    background: #2c2e36;
}

.dark .logo-name-text {
    color: #a8c4ff !important;
}

.dark .nav-links a {
    color: #d1d5db;
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
    color: #7ea8ff;
}

/* ===== SECTION TITLES ===== */
.section-tag {
    font-size: 22px;
    font-weight: 700;
    color: #2a5bd7;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.dark .section-title {
    color: #f9fafb !important;
}

.section-sub {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 640px;
}

.dark .section-sub {
    color: #e2e6f0 !important;
}

.section-pad {
    padding: clamp(50px, 5vw, 80px) 0;
}

.footer-pad {
    padding: clamp(40px, 5vw, 64px) 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: white;
    transform: translateY(-4px) scale(1.1);
}

/* ===== BUSINESS CARDS ===== */
.biz-card {
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.biz-card:hover {
    transform: translateY(-6px);
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #022179 0%, #0a3db5 100%);
}

/* ===== WHATSAPP ===== */
@keyframes wa-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30%       { transform: translateY(-10px) scale(1.08); }
    60%       { transform: translateY(-4px) scale(1.03); }
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.75); }
}

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: wa-pulse 2.5s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.18) !important;
    animation: none;
}

.wa-float.wa-scroll-up {
    animation: wa-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-float.wa-scroll-down {
    animation: wa-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) reverse;
}

body.rtl .wa-float {
    right: auto;
    left: 28px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1000;
    flex-direction: column;
    padding: 24px;
}

.dark .mobile-menu {
    background: #2c2e36;
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.dark .mobile-nav-link {
    color: #d1d5db;
    border-color: #3b3e48;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .slide-content {
        padding: 0 24px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block !important;
    }

    .vision-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .ceo-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.dark .top-bar-text {
    color: #D3DFFF;
}

/* ===== VISION SECTION ===== */
.vision-section {
    background: linear-gradient(to right, #f8f9ff, #fff);
}

.dark .vision-section {
    background: linear-gradient(to right, #1f2128, #23252b) !important;
}

/* ===== CEO SECTION ===== */
.ceo-section {
    background: #f0f4ff;
}

.dark .ceo-section {
    background: #23252b !important;
}

/* ===== CONTACT ===== */
.contact-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
}

.contact-input:focus {
    border-color: #022179;
}

.dark .contact-input {
    background: #23252b;
    border-color: #3b3e48;
    color: #f9fafb;
}

/* ===== RTL ===== */
body.rtl .slide-content {
    text-align: right;
    padding: 0 80px 0 0;
}

body.rtl .process-card {
    text-align: right;
}

body.rtl .why-card {
    text-align: right;
}

body.rtl .ceo-quote {
    border-left: none !important;
    border-right: 4px solid #022179;
    padding-left: 0 !important;
    padding-right: 20px;
}

body.rtl .ceo-divider-bar {
    border-right: 4px solid #022179;
    border-left: none !important;
}

@media (max-width: 768px) {
    body.rtl .slide-content {
        padding: 0 24px;
    }
}

/* ===== KSA LOGOS ===== */
.ksa-logo {
    height: 54px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s;
}

.ksa-logo-nav {
    order: -1;
}

body.rtl .ksa-logo-nav {
    order: 99;
}

.ksa-logo-nav-right {
    order: 99;
}

body.rtl .ksa-logo-nav-right {
    order: -1;
}

.ksa-logo-footer {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

body.rtl .ksa-logo-footer {
    justify-content: flex-start;
}

/* ===== HOVER EFFECTS ===== */
.nav-links a,
.mobile-nav-link,
.ctrl-btn,
.btn-connect,
.card-service,
.why-card,
.industry-card,
.process-card,
.biz-card,
.social-icon,
.wa-float,
.ksa-logo {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.nav-links a:hover {
    transform: scale(1.13);
}

.mobile-nav-link:hover {
    transform: translateX(8px) scale(1.04);
}

.ctrl-btn:hover {
    transform: scale(1.15);
}

.btn-connect:hover {
    transform: scale(1.07);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.2) !important;
}

.ksa-logo:hover {
    transform: scale(1.1);
}

.card-service:hover {
    transform: translateY(-8px) scale(1.02);
}

.why-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.process-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* ===== SERVICE CARD LEARN MORE ===== */
.card-service-clickable {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.svc-learn-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #022179;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}

.dark .svc-learn-more {
    color: #7ea8ff;
}

.card-service-clickable:hover .svc-learn-more {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICE DETAIL MODAL ===== */
.svc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.svc-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.svc-modal-panel {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(2, 33, 121, 0.18);
    transform: translateY(32px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.svc-modal-overlay.open .svc-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dark .svc-modal-panel {
    background: #2c2e36;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.svc-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 16px 16px -16px auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f4ff;
    color: #022179;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.svc-modal-close:hover {
    background: #D3DFFF;
    transform: scale(1.12) rotate(90deg);
}

.dark .svc-modal-close {
    background: #3b3e48;
    color: #a8c4ff;
}

.dark .svc-modal-close:hover {
    background: #1e40af;
    color: white;
}

.svc-modal-inner {
    padding: 32px 40px 40px;
}

@media (max-width: 600px) {
    .svc-modal-inner {
        padding: 20px 20px 32px;
    }
}

.svc-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.svc-modal-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.svc-modal-tag {
    font-size: 12px;
    font-weight: 700;
    color: #022179;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dark .svc-modal-tag {
    color: #6b9fff;
}

.svc-modal-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.dark .svc-modal-title {
    color: #f9fafb;
}

.svc-modal-desc {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 28px;
    border-left: 3px solid #D3DFFF;
    padding-left: 16px;
}

.dark .svc-modal-desc {
    color: #e2e6f0;
    border-color: #324b82;
}

body.rtl .svc-modal-desc {
    border-left: none;
    border-right: 3px solid #D3DFFF;
    padding-left: 0;
    padding-right: 16px;
}

body.rtl.dark .svc-modal-desc {
    border-right-color: #324b82;
}

.svc-modal-benefits {
    margin-bottom: 28px;
}

.svc-modal-benefits h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #022179;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dark .svc-modal-benefits h4 {
    color: #7ea8ff;
}

.svc-modal-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .svc-modal-benefits ul {
        grid-template-columns: 1fr;
    }
}

.svc-modal-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #333;
    line-height: 1.4;
}

.dark .svc-modal-benefits li {
    color: #e8edf8;
}

.svc-modal-benefits li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #D3DFFF;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23022179' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}

.dark .svc-modal-benefits li::before {
    background-color: #324b82;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ea8ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.svc-modal-tech {
    margin-bottom: 32px;
}

.svc-modal-tech h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #022179;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dark .svc-modal-tech h4 {
    color: #7ea8ff;
}

.svc-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.svc-tech-tag {
    background: #f0f4ff;
    color: #022179;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #D3DFFF;
}

.dark .svc-tech-tag {
    background: #1e3166;
    color: #a8c4ff;
    border-color: #324b82;
}

.svc-modal-cta {
    background: #022179;
    color: white;
    border-color: #022179;
    display: inline-flex;
    font-size: 0.95rem;
    padding: 14px 32px;
}

.svc-modal-cta:hover {
    background: #011560;
    color: white;
}

.industry-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.biz-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ===== CLASSIC EFFECTS ===== */
.card-service, .why-card, .process-card, .industry-card, .biz-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.card-service:hover, .why-card:hover, .process-card:hover,
.industry-card:hover, .biz-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 24px 48px rgba(2,33,121,0.18), 0 8px 16px rgba(2,33,121,0.1) !important;
}

/* Shine sweep */
.card-service::before, .why-card::before, .process-card::before,
.industry-card::before, .biz-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 3;
}

.card-service:hover::before, .why-card:hover::before,
.process-card:hover::before, .industry-card:hover::before,
.biz-card:hover::before {
    left: 140%;
}

/* Button */
.btn-connect {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s, color 0.3s !important;
    box-shadow: 0 6px 20px rgba(2,33,121,0.25);
}

.btn-connect:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(2,33,121,0.35) !important;
}

.btn-connect:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(2,33,121,0.2) !important;
}

/* Process number */
.process-num {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease;
}

.process-card:hover .process-num {
    transform: scale(1.35);
    color: white;
    background: #0a3db5;
}

/* Why icon */
.why-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease !important;
}

.why-card:hover .why-icon {
    transform: translateY(-6px) scale(1.18) !important;
    box-shadow: 0 8px 20px rgba(2,33,121,0.2) !important;
}

/* Industry icon */
.industry-card:hover .industry-icon,
.industry-card:hover div:first-child {
    transform: scale(1.25);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stat numbers */
.stat-number {
    display: inline-block;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.22s ease;
    display: inline-block;
    line-height: 1;
}

.nav-dropdown-wrap:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e9f7;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(2, 33, 121, 0.13);
    min-width: 250px;
    z-index: 1001;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-wrap:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 16px;
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 13.5px !important;
    font-weight: 500;
    color: #2c2c2c !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    padding-bottom: 10px !important;
}

.nav-dropdown-menu a::after {
    display: none !important;
}

.nav-dropdown-menu a:hover {
    background: #eef2ff;
    color: #022179 !important;
    font-weight: 600;
}

.nav-dropdown-menu .dd-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.dark .nav-dropdown-menu {
    background: #2c2e36;
    border-color: #3d3f4a;
}

.dark .nav-dropdown-menu a {
    color: #f0f2f8 !important;
}

.dark .nav-dropdown-menu a:hover {
    background: #3a3d47;
    color: #7ea8ff !important;
}

body.rtl .nav-dropdown-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Mobile services expand */
.mob-svc-expand {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 8px 16px;
    border-left: 2px solid #D3DFFF;
    margin: 4px 0 8px;
}

.mob-svc-expand a {
    font-size: 13.5px;
    color: #555;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-svc-expand a:hover {
    background: #f0f4ff;
    color: #022179;
}

.mob-svc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mob-svc-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.mob-svc-open .mob-svc-arrow {
    transform: rotate(180deg);
}

/* ===== SERVICE DETAIL PAGE ===== */
.svc-page-hero {
    background: #022179;
    padding: 56px 0 52px;
}

.svc-page-breadcrumb {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.svc-page-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.svc-page-breadcrumb a:hover {
    color: white;
}

.svc-page-breadcrumb span {
    opacity: 0.4;
}

.svc-page-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.svc-page-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #a8c4ff;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.svc-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
}

.svc-page-content {
    padding: 64px 0 80px;
}

.svc-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .svc-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.svc-page-desc {
    font-size: 1.06rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 40px;
}

.dark .svc-page-desc {
    color: #e2e6f0;
}

/* نصوص صفحة الخدمات في dark mode */
.dark .svc-page-content p,
.dark .svc-page-content span,
.dark .svc-page-content li,
.dark .svc-sticky-box p,
.dark .svc-sticky-box span,
.dark #other-svc-heading {
    color: #e2e6f0 !important;
}

.svc-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #022179;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.dark .svc-section-heading {
    color: #7ea8ff;
}

.svc-benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: #3a3a3a;
    line-height: 1.5;
}

.dark .svc-benefits-list li {
    color: #e8edf8;
}

.svc-benefits-list li::before {
    content: '✓';
    color: #022179;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    background: #eef2ff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.dark .svc-benefits-list li::before {
    background: #2a3a5a;
    color: #7ea8ff;
}

.svc-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.svc-tech-pill {
    background: #eef2ff;
    color: #022179;
    border: 1px solid #d3dfff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dark .svc-tech-pill {
    background: #1a2540;
    color: #c8daff;
    border-color: #4a6aaa;
    font-weight: 700;
}

.svc-sticky-box {
    background: #f7f9ff;
    border: 1px solid #e5e9f7;
    border-radius: 16px;
    padding: 32px 28px;
}

.dark .svc-sticky-box {
    background: #23263a;
    border-color: #3d3f4a;
}

/* Other services links - light mode */
.other-svc-link {
    color: #333;
    border: 1px solid #eee;
    background: transparent;
}

.other-svc-link:hover {
    background: #f0f4ff !important;
    border-color: #d3dfff !important;
    color: #022179 !important;
}

/* Other services links - dark mode */
.dark .other-svc-link {
    color: #e2e6f0 !important;
    border: 1px solid #3d4560 !important;
    background: #1e2235 !important;
}

.dark .other-svc-link:hover {
    background: #2a3250 !important;
    border-color: #5a7adf !important;
    color: #ffffff !important;
}

.svc-cta-banner {
    background: #022179;
    border-radius: 20px;
    padding: 52px 40px;
    text-align: center;
    margin-top: 64px;
}

.svc-cta-banner h2 {
    color: white;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.svc-cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* card-service as link */
a.card-service {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
}
