/* Nexim AI — Premium Light Theme */

:root {
    --primary: #2D64FF;
    --secondary: #00D1FF;
    --accent: #4A3AFF;
    --primary-hover: #1F4FD6;
    --gradient: linear-gradient(135deg, #4A3AFF 0%, #2D64FF 45%, #00D1FF 100%);
    --background: #FFFFFF;
    --bg-section: #F7F9FC;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --card: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(45, 100, 255, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 100, 255, 0.08);
    --shadow-lg: 0 20px 50px rgba(45, 100, 255, 0.12);
    --shadow-btn: 0 8px 24px rgba(45, 100, 255, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-en: 'Inter', sans-serif;
    --nav-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
}

body.rtl { font-family: var(--font-ar); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a { text-decoration: none; transition: var(--transition); color: var(--primary); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

/* ===== Buttons ===== */
.btn-accent {
    background: var(--gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(135deg, #0052CC 0%, #00A88F 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.3);
}

.btn-outline-accent {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--border);
    background: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 102, 255, 0.04);
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

/* ===== Navbar — Elm-style sticky overlay ===== */
.site-header { position: relative; z-index: 1030; }

#mainNav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 0;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
    padding: 0.55rem 0;
}

/* Homepage: transparent nav over hero until scroll */
body.homepage #mainNav:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.brand-icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

body.homepage #mainNav:not(.scrolled) .brand-icon img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-text strong {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.navbar-brand .brand-text strong .brand-ai,
.brand-ai {
    color: var(--primary);
    font-weight: 800;
}

.navbar-brand .brand-text small {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

body.homepage #mainNav:not(.scrolled) .navbar-brand .brand-text strong {
    color: #fff;
}

body.homepage #mainNav:not(.scrolled) .navbar-brand .brand-text small {
    color: rgba(255, 255, 255, 0.78);
}

body.homepage #mainNav:not(.scrolled) .navbar-nav .nav-link,
body.homepage #mainNav:not(.scrolled) .services-toggle {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.homepage #mainNav:not(.scrolled) .navbar-nav .nav-link:hover,
body.homepage #mainNav:not(.scrolled) .navbar-nav .nav-link.active,
body.homepage #mainNav:not(.scrolled) .services-toggle:hover,
body.homepage #mainNav:not(.scrolled) .services-toggle.active {
    color: #fff !important;
}

body.homepage #mainNav:not(.scrolled) .navbar-nav .nav-link.active::after {
    background: #fff;
}

body.homepage #mainNav:not(.scrolled) .nav-icon-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

body.homepage #mainNav:not(.scrolled) .nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

body.homepage #mainNav:not(.scrolled) .lang-switcher {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

body.homepage #mainNav:not(.scrolled) .lang-btn {
    color: rgba(255, 255, 255, 0.88);
}

body.homepage #mainNav:not(.scrolled) .lang-btn.active,
body.homepage #mainNav:not(.scrolled) .lang-btn:hover {
    color: #fff;
}

body.homepage #mainNav:not(.scrolled) .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--bg-section);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--border);
}

.lang-btn {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: #fff;
    background: var(--gradient);
}

.lang-divider { display: none; }

.nav-icon-btn {
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.nav-icon-btn:hover {
    color: var(--primary);
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.06);
}

.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-md);
    }

    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .nav-link,
    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .services-toggle {
        color: var(--text-muted) !important;
    }

    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .nav-link:hover,
    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .nav-link.active,
    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .services-toggle:hover,
    body.homepage #mainNav:not(.scrolled) .navbar-collapse.show .services-toggle.active {
        color: var(--primary) !important;
    }
}

/* ===== Services dropdown — 4 cards ===== */
.nav-item-services {
    position: static;
}

.services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.services-toggle:hover,
.services-toggle.active {
    color: var(--primary) !important;
}

.services-chevron {
    transition: transform 0.25s ease;
}

.nav-item-services.open .services-chevron,
.services-toggle[aria-expanded="true"] .services-chevron {
    transform: rotate(180deg);
}

.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1080px, calc(100vw - 2rem));
    background: transparent;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1030;
}

.nav-item-services.open .services-dropdown,
.services-dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.services-dropdown-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.services-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.services-dropdown-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-dropdown-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .services-dropdown-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .services-dropdown-grid--4 {
        grid-template-columns: 1fr;
    }
}

.services-dropdown-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow-sm);
    color: inherit;
    min-height: 100%;
    transition: var(--transition);
}

.services-dropdown-card:hover {
    color: inherit;
    border-color: rgba(0, 102, 255, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.services-dropdown-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
}

.services-dropdown-title {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
}

.services-dropdown-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.services-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.services-dropdown-card:hover .services-dropdown-link {
    color: var(--secondary);
}

body.rtl .services-dropdown {
    left: 50%;
    right: auto;
}

.capability-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    color: var(--text);
}

.capability-chip i,
.capability-chip svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ===== Hero — Light Premium ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(0, 102, 255, 0.1), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0, 191, 165, 0.1), transparent 50%),
        linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 60%);
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; }

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: float 10s ease-in-out infinite;
}

.shape-1 {
    width: 420px; height: 420px;
    background: #0066FF;
    top: -12%; right: -6%;
}

.shape-2 {
    width: 320px; height: 320px;
    background: #00BFA5;
    bottom: 5%; left: -8%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px; height: 200px;
    background: #00C48C;
    top: 45%; left: 40%;
    animation-delay: 4s;
}

.ai-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridMove 24s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-28px) scale(1.04); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

.hero-content { position: relative; z-index: 2; padding-top: 90px; }

.hero-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: var(--text);
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-illustration {
    position: relative;
    padding: 2rem;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 { width: 180px; height: 180px; background: #0066FF; top: 10%; right: 10%; }
.hero-orb-2 { width: 120px; height: 120px; background: #00BFA5; bottom: 15%; left: 8%; animation-delay: 1.5s; }
.hero-orb-3 { width: 80px; height: 80px; background: #00C48C; top: 50%; right: 5%; animation-delay: 3s; }

.hero-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.hero-card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.hero-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Square stage so rings, pulse, and nodes share one center (LTR/RTL safe) */
.hero-ai-graphic {
    position: relative;
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    display: grid;
    place-items: center;
}

.hero-ai-graphic > * {
    grid-area: 1 / 1;
}

.ai-pulse-ring {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid rgba(0, 102, 255, 0.35);
    border-radius: 50%;
    transform-origin: center center;
    animation: aiPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.ai-pulse-ring--delay {
    animation-delay: 1.2s;
}

@keyframes aiPulse {
    0% { transform: scale(0.75); opacity: 0.65; }
    100% { transform: scale(1.12); opacity: 0; }
}

.hero-ai-icon {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.hero-ai-core {
    transform-origin: center;
    transform-box: fill-box;
    animation: aiCorePulse 2.4s ease-in-out infinite;
}

.hero-ai-orbit {
    transform-origin: center;
    transform-box: view-box;
    animation: aiOrbit 24s linear infinite;
}

@keyframes aiCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes aiOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-visual-label {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1rem;
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    animation: float 6s ease-in-out infinite;
}

.hero-float-card i,
.hero-float-card svg { color: var(--primary); }

.hero-float-1 { top: 12%; left: 0; animation-delay: 0.5s; }
.hero-float-2 { bottom: 22%; right: 0; animation-delay: 1.2s; }
.hero-float-3 { top: 55%; left: -10px; animation-delay: 2s; }

/* ===== Sections ===== */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: var(--bg-section); }
.about-home-section .lead,
.startups-home-section .lead { max-width: 42rem; margin-inline: auto; color: var(--text-muted); }
.tech-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech-logo-tag {
    min-width: 7.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.25rem;
}

.section-header { margin-bottom: 3rem; }
.section-header h2 {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.75rem;
}

.bg-light { background: var(--bg-section) !important; }

/* ===== Cards ===== */
.glass-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.service-icon, .why-icon, .capability-icon, .pillar-icon, .value-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 191, 165, 0.1));
    border-radius: 14px;
    color: var(--primary);
    transition: var(--transition);
}

.glass-card:hover .service-icon,
.glass-card:hover .why-icon {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.05);
}

.service-card h3, .why-card h3, .expertise-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p, .why-card p, .expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.card-link:hover { color: var(--secondary); }

/* ===== Stats — Light Panel ===== */
.stats-section { background: #fff; }

.stats-panel {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
}

.stats-panel h2 { color: var(--text); }

.stat-card { padding: 1.25rem; }

.stat-number {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== CTA — Gradient Light Accent ===== */
.cta-section { padding: 2rem 0 5.5rem; }

.cta-card {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-lg);
}

.cta-shapes { position: absolute; inset: 0; pointer-events: none; }

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.cta-shape-1 { width: 220px; height: 220px; top: -60px; right: -40px; }
.cta-shape-2 { width: 160px; height: 160px; bottom: -50px; left: -30px; }

.cta-card h2 { color: #fff; margin-bottom: 1rem; position: relative; }
.cta-card p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

.cta-card .btn-accent {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cta-card .btn-accent:hover {
    background: #F8FAFC;
    color: var(--primary);
}

/* ===== Page Header — Light ===== */
.page-header {
    position: relative;
    padding: 9.5rem 0 4rem;
    overflow: hidden;
    background: var(--bg-section);
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0, 102, 255, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 191, 165, 0.08), transparent 50%);
}

.page-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header-content { position: relative; z-index: 2; text-align: center; }

.page-header-content h1 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-header-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About / Values ===== */
.about-image-card { overflow: hidden; padding: 0; }
.mission-card h2 { margin-bottom: 1rem; }
.value-card h4 { font-size: 1rem; margin: 0.75rem 0 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===== AI Page ===== */
.ai-visual-card { min-height: 250px; display: flex; align-items: center; justify-content: center; }

.ai-neural-network {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.neural-node {
    width: 20px; height: 20px;
    background: var(--primary);
    border-radius: 50%;
    animation: nodePulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

.capability-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.usecase-card {
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
    background: var(--bg-section);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    height: 100%;
}

body.rtl .usecase-card {
    border-left: none;
    border-right: 3px solid var(--primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.usecase-card h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ===== Process Timeline ===== */
.process-timeline { max-width: 800px; margin: 0 auto; }

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.process-number {
    flex-shrink: 0;
    width: 50px; height: 50px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-btn);
}

.process-content h4 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.process-content p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.process-timeline-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.process-timeline-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem 2.5rem;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-bottom: 1rem;
}

.process-step-h {
    flex: 0 1 200px;
    max-width: 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-step-h .process-number {
    margin: 0 auto 1rem;
    flex-shrink: 0;
}

.process-step-h .process-content {
    width: 100%;
}

.process-step-h .process-content,
.process-step-h .process-content h4,
.process-step-h .process-content p {
    text-align: center;
}

body.rtl .process-timeline-horizontal,
body.ltr .process-timeline-horizontal {
    justify-content: center;
}

body.rtl .process-step-h .process-content h4,
body.rtl .process-step-h .process-content p,
body.ltr .process-step-h .process-content h4,
body.ltr .process-step-h .process-content p {
    text-align: center;
}

@media (max-width: 767.98px) {
    .process-timeline-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .process-step-h {
        flex: 0 1 auto;
        width: 100%;
        max-width: 320px;
    }
}

/* ===== Benefits ===== */
.benefits-list { list-style: none; padding: 0; margin: 0; }

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}

.benefits-list li:last-child { border-bottom: none; }

/* ===== Solutions / Products ===== */
.solution-card { padding: 2rem; }

.solution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.solution-header h3 { margin: 0; font-size: 1.2rem; }

.solution-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.solution-features { list-style: none; padding: 0; margin: 1rem 0 0; }

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Portfolio / Case Studies ===== */
.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.portfolio-image.project-gov { background: linear-gradient(135deg, #0066FF, #0047B3); }
.portfolio-image.project-ai { background: linear-gradient(135deg, #00BFA5, #0066FF); }
.portfolio-image.project-mobile { background: linear-gradient(135deg, #667eea, #764ba2); }
.portfolio-image.project-data { background: linear-gradient(135deg, #00C48C, #00BFA5); }
.portfolio-image.project-health { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.portfolio-image.project-cloud { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.portfolio-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

.portfolio-body { padding: 1.5rem; }
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.portfolio-body p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ===== Careers ===== */
.career-card { padding: 1.5rem; }

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.career-header h3 { font-size: 1.1rem; margin: 0; }

.career-badge {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.career-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.career-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ===== Contact ===== */
.contact-form-card, .contact-info-card { padding: 2rem; }

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
    width: 48px; height: 48px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item strong { display: block; margin-bottom: 0.15rem; font-size: 0.9rem; }
.contact-info-item p { margin: 0; color: var(--text-muted); }
.contact-info-item a { color: var(--primary); }
.contact-info-item a:hover { color: var(--secondary); }

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.map-placeholder { margin-bottom: -2rem; }

/* ===== Partners ===== */
.partner-slider { overflow: hidden; }

.partner-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: rgba(0, 102, 255, 0.25);
    transform: translateY(-3px);
}

.partner-initials {
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25rem;
}

.partner-card { padding: 2rem 1.5rem; }
.partner-card .partner-initials { font-size: 1.75rem; margin-bottom: 0.75rem; }
.partner-name { font-size: 1rem; margin: 0; color: var(--text); }

/* ===== Testimonials ===== */
.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-author strong { color: var(--text); font-size: 0.95rem; }
.testimonial-author span,
.testimonial-author small { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Insights ===== */
.insight-category { color: var(--primary); font-size: 0.8rem; font-weight: 600; }
.insight-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }

.category-pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    margin: 0.25rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Industries ===== */
.industry-illustration {
    height: 120px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(0, 191, 165, 0.08));
    color: var(--primary);
}

/* ===== Tech Stack ===== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-tag {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: transparent;
    background: var(--gradient);
    color: #fff;
    transform: translateY(-2px);
}

.architecture-diagram { text-align: center; }
.arch-layer {
    background: var(--bg-section);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin: 0.25rem 0;
    border: 1px solid var(--border);
}
.arch-layer.arch-accent {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* ===== Footer — Light Premium ===== */
.site-footer {
    background: var(--bg-section);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-top { padding: 4rem 0 2rem; }

.footer-brand strong {
    color: var(--text);
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 0.75rem;
}

.footer-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--primary); }
.footer-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.15rem; }

.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: start;
    white-space: nowrap;
}

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.social-links a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.newsletter-form .form-control {
    background: #fff;
}

/* ===== Floating UI ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1020;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

body.rtl .whatsapp-float { right: auto; left: 24px; }

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px; height: 44px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1019;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-btn);
}

body.rtl .back-to-top { right: auto; left: 24px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Loading Screen ===== */
html.loader-skipped #loadingScreen { display: none !important; }

.loading-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 1.25rem;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-logo img {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.2));
}

.loading-brand {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-progress {
    width: 120px;
    height: 3px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.15s linear;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.88; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Search Overlay — Light ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1040;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-content { width: 90%; max-width: 600px; position: relative; }
.search-overlay-content h2 { color: var(--text); margin-bottom: 1rem; }

.search-close {
    position: absolute;
    top: -2rem;
    right: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

body.rtl .search-close { right: auto; left: 0; }

.search-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.search-suggestions a {
    color: var(--text-muted);
    background: var(--bg-section);
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
}

.search-suggestions a:hover {
    color: var(--primary);
    border-color: rgba(0, 102, 255, 0.3);
}

/* ===== Cookie Banner — Light ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: var(--text);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 1035;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { margin: 0; }

/* ===== Breadcrumb ===== */
.breadcrumb-nav { padding: 1rem 0; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-inline-start: 0.5rem;
    color: var(--text-muted);
}
.breadcrumb-list a { color: var(--primary); }
.breadcrumb-list .active span { color: var(--text-muted); }

/* ===== FAQ ===== */
.accordion-button:not(.collapsed) {
    background: rgba(0, 102, 255, 0.06);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12); }

/* ===== Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.delay-5 { transition-delay: 0.6s; }

/* Hero entrance — staggered on page load */
.hero-enter {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

body.page-ready .hero-enter {
    opacity: 1;
    transform: translateY(0);
}

body.page-ready .hero-enter-1 { transition-delay: 0.05s; }
body.page-ready .hero-enter-2 { transition-delay: 0.18s; }
body.page-ready .hero-enter-3 { transition-delay: 0.32s; }
body.page-ready .hero-enter-4 { transition-delay: 0.46s; }

/* Navbar fade-in on load */
#mainNav.nav-enter {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s,
                background 0.35s ease, box-shadow 0.35s ease,
                border-color 0.35s ease, padding 0.35s ease;
}

body.page-ready #mainNav.nav-enter {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy-loaded images — fade in on load / viewport */
img.lazy-img {
    opacity: 0;
    transition: opacity 0.55s ease;
}

img.lazy-img.loaded {
    opacity: 1;
}

.image-card-media,
.approach-card-media,
.principle-card-media,
.services-dropdown-thumb,
.page-header-image,
.about-image-card,
.industry-detail-image,
.solution-detail-image {
    overflow: hidden;
}

img.lazy-img:not(.loaded) {
    background: var(--bg-section);
}

/* Reduced motion — accessibility */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .fade-in-up,
    .hero-enter,
    #mainNav.nav-enter,
    img.lazy-img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .loading-screen { transition: none; }
    .loading-logo { animation: none; }
}

.text-accent { color: var(--primary) !important; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-top: 0.5rem;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-item-services {
        position: relative;
    }

    .services-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .services-dropdown {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        padding-top: 0;
        transition: max-height 0.3s ease;
    }

    .nav-item-services.open .services-dropdown,
    .services-dropdown.open {
        max-height: 1200px;
        pointer-events: auto;
        transform: none;
        margin-top: 0.75rem;
        padding-top: 0;
    }

    .services-dropdown-inner {
        padding: 0.75rem;
        box-shadow: none;
        border-radius: var(--radius-sm);
    }

    .services-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .hero-content { text-align: center; padding-top: 100px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .section { padding: 3.5rem 0; }
    .page-header { padding: 8rem 0 3rem; }
    .navbar-brand .brand-text small { display: none; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .services-dropdown {
        width: min(960px, calc(100vw - 2rem));
    }

    .services-dropdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero-actions .btn { width: 100%; }
    .glass-card { padding: 1.5rem; }
    .cta-card { padding: 2.5rem 1.5rem; }
    .stats-panel { padding: 2rem 1rem; }
}

@media (min-width: 1200px) {
    .col-xl-20p { flex: 0 0 20%; max-width: 20%; }
}

/* ===== Startups page ===== */
.startup-offer-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.startup-timeline {
    position: relative;
    display: grid;
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.startup-timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0066FF, #00BFA5);
}

.startup-timeline-item {
    position: relative;
    padding-inline-start: 2.5rem;
}

.startup-timeline-marker {
    position: absolute;
    inset-inline-start: 4px;
    top: 1.25rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

.startup-timeline-year {
    display: inline-block;
    color: #0066FF;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* ===== Chat assistant ===== */
.nexa-chat {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1030;
}

body.rtl .nexa-chat {
    left: auto;
    right: 24px;
}

.nexa-chat-toggle {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #00BFA5);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nexa-chat-toggle:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 102, 255, 0.45);
}

.nexa-chat-toggle-close {
    display: none;
    font-size: 1.75rem;
    line-height: 1;
}

.nexa-chat.is-open .nexa-chat-toggle-icon { display: none; }
.nexa-chat.is-open .nexa-chat-toggle-close { display: block; }

.nexa-chat-panel {
    position: absolute;
    bottom: 72px;
    left: 0;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body.rtl .nexa-chat-panel {
    left: auto;
    right: 0;
}

.nexa-chat.is-open .nexa-chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nexa-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 191, 165, 0.08));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nexa-chat-header h2 {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
}

.nexa-chat-header p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nexa-chat-header-actions {
    display: flex;
    gap: 0.25rem;
}

.nexa-chat-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nexa-chat-icon-btn:hover {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
}

.nexa-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #F8FAFC;
}

.nexa-chat-msg {
    display: flex;
    animation: nexaChatFade 0.25s ease;
}

.nexa-chat-msg-user { justify-content: flex-end; }
.nexa-chat-msg-assistant { justify-content: flex-start; }

.nexa-chat-bubble {
    max-width: 85%;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.nexa-chat-msg-user .nexa-chat-bubble {
    background: linear-gradient(135deg, #0066FF, #00BFA5);
    color: #fff;
    border-bottom-right-radius: 4px;
}

body.rtl .nexa-chat-msg-user .nexa-chat-bubble {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px;
}

.nexa-chat-msg-assistant .nexa-chat-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom-left-radius: 4px;
}

body.rtl .nexa-chat-msg-assistant .nexa-chat-bubble {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}

.nexa-chat-typing .nexa-chat-bubble {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-width: 52px;
}

.nexa-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00BFA5;
    animation: nexaChatDot 1s infinite ease-in-out;
}

.nexa-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.nexa-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

.nexa-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    max-height: 88px;
    overflow-y: auto;
}

.nexa-chat-chip {
    border: 1px solid rgba(0, 102, 255, 0.18);
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nexa-chat-chip:hover {
    background: rgba(0, 102, 255, 0.12);
}

.nexa-chat-composer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

.nexa-chat-attach {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.55;
    cursor: not-allowed;
}

.nexa-chat-attach input { display: none; }

.nexa-chat-composer input[type="text"] {
    flex: 1;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
    background: #F8FAFC;
}

.nexa-chat-composer input[type="text"]:focus {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.nexa-chat-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #00BFA5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nexa-chat-panel.dark,
.nexa-chat.dark .nexa-chat-panel {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.nexa-chat-panel.dark .nexa-chat-messages,
.nexa-chat.dark .nexa-chat-messages {
    background: #111827;
}

.nexa-chat-panel.dark .nexa-chat-header,
.nexa-chat-panel.dark .nexa-chat-suggestions,
.nexa-chat-panel.dark .nexa-chat-composer,
.nexa-chat.dark .nexa-chat-header,
.nexa-chat.dark .nexa-chat-suggestions,
.nexa-chat.dark .nexa-chat-composer {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.nexa-chat-panel.dark .nexa-chat-header h2,
.nexa-chat-panel.dark .nexa-chat-msg-assistant .nexa-chat-bubble,
.nexa-chat.dark .nexa-chat-header h2,
.nexa-chat.dark .nexa-chat-msg-assistant .nexa-chat-bubble {
    color: #f8fafc;
}

.nexa-chat-panel.dark .nexa-chat-msg-assistant .nexa-chat-bubble,
.nexa-chat.dark .nexa-chat-msg-assistant .nexa-chat-bubble {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.06);
}

@keyframes nexaChatFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nexaChatDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 575.98px) {
    .nexa-chat-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 88px;
        width: auto;
        height: min(70vh, 560px);
    }

    body.rtl .nexa-chat-panel {
        left: 12px;
        right: 12px;
    }
}

/* ===== Nexim Corporate Redesign ===== */

.hero-corp {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-corp-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-corp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(0, 102, 255, 0.55) 55%, rgba(0, 191, 165, 0.35) 100%);
}

.hero-corp-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--nav-height) + 3rem) 0 5rem;
    max-width: 720px;
    color: #fff;
}

.hero-corp .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-corp .hero-title {
    color: #fff;
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 800;
}

.hero-corp .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.page-header--image {
    padding: 0;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: var(--bg-section);
}

.page-header-image {
    position: absolute;
    inset: 0;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.page-header--image .page-header-content {
    padding: calc(var(--nav-height) + 2rem) 0 3.5rem;
    text-align: start;
}

.page-header--image .page-header-content h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.page-header--image .page-header-content p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 640px;
}

.image-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.image-card:hover {
    color: inherit;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.image-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.image-card--tall .image-card-media {
    aspect-ratio: 4 / 3;
}

.image-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover .image-card-media img {
    transform: scale(1.05);
}

.image-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.75) 100%);
}

.image-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-card-body--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.85));
    padding: 3rem 1.75rem 1.75rem;
}

.image-card-body--overlay h3,
.image-card-body--overlay p {
    color: #fff;
}

.image-card-body--overlay p {
    color: rgba(255, 255, 255, 0.85);
}

.image-card--tall {
    position: relative;
}

.image-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    margin-bottom: 1rem;
}

.image-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.image-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    flex: 1;
}

.image-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.image-card-body--overlay .image-card-link {
    color: var(--accent);
}

.services-dropdown-card--image {
    padding: 0;
    overflow: hidden;
}

.services-dropdown-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.services-dropdown-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-dropdown-content {
    padding: 1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.services-dropdown-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.services-dropdown-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
}

.approach-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.approach-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.approach-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.approach-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.approach-sector {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.approach-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.approach-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.approach-result {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(0, 191, 165, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}

.principle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.principle-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.principle-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principle-card-body {
    padding: 2rem;
}

.stat-number--text {
    font-size: clamp(2rem, 4vw, 2.8rem);
    -webkit-text-fill-color: unset;
    color: var(--primary);
}

.partners-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-section);
    border: 1px dashed var(--border);
    border-radius: calc(var(--radius) + 4px);
    max-width: 640px;
    margin: 0 auto;
}

.partners-empty-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.partner-placeholder {
    padding: 1rem 2rem;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-muted);
}

.footer-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--bg-section);
    border: 1px solid var(--border);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.footer-social-btn:hover {
    color: #fff;
    background: var(--accent, #2D64FF);
    border-color: var(--accent, #2D64FF);
}

.footer-initiative {
    display: inline-flex;
    align-items: center;
}

.footer-year-ai-logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: inline-start center;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.insights-carousel {
    position: relative;
    padding: 0 3rem;
}

.insights-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem 0 1rem;
}

.insights-carousel-track::-webkit-scrollbar {
    display: none;
}

.insights-carousel-slide {
    flex: 0 0 min(360px, 85vw);
    scroll-snap-align: start;
}

.insight-card-media {
    aspect-ratio: 16 / 9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
}

.carousel-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

body.rtl .carousel-btn--prev { left: auto; right: 0; }
body.rtl .carousel-btn--next { right: auto; left: 0; }

.tech-logos--strip {
    justify-content: center;
    gap: 0.85rem;
}

.solution-features-mini {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.solution-features-mini li::before {
    content: "•";
    color: var(--accent);
    margin-inline-end: 0.5rem;
}

.capabilities-strip {
    padding: 4.5rem 0;
}

@media (max-width: 991.98px) {
    .hero-corp-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-corp .hero-subtitle {
        margin-inline: auto;
    }

    .hero-corp .hero-actions {
        justify-content: center;
    }

    .page-header--image .page-header-content {
        text-align: center;
    }

    .insights-carousel {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 4.5rem 0;
    }
}

/* ===== Homepage premium redesign ===== */
.home-service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-service-card:hover {
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.home-service-card--wide {
    padding: 2.25rem 2rem;
}

.home-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.home-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.home-service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.home-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary);
}

.home-service-link:hover {
    color: var(--primary-hover);
}

.home-product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-product-card:hover {
    border-color: rgba(45, 100, 255, 0.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.home-product-media {
    overflow: hidden;
    background: var(--bg-alt, #f3f6fb);
}

.home-product-media img {
    display: block;
    width: 100%;
    transition: transform 0.35s ease;
}

.home-product-card:hover .home-product-media img {
    transform: scale(1.04);
}

.home-product-body {
    padding: 1.35rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-product-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
}

.home-product-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: 1rem;
}

.why-premium-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-premium-card:hover {
    border-color: rgba(0, 102, 255, 0.18);
    box-shadow: var(--shadow-md);
}

.why-premium-card h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.75rem;
}

.why-premium-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.process-premium {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 860px;
    position: relative;
}

.process-premium::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    inset-inline-start: 1.35rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.35), rgba(0, 191, 165, 0.2));
}

.process-premium-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.75rem;
    position: relative;
}

.process-premium-step:last-child {
    margin-bottom: 0;
}

.process-premium-marker {
    position: relative;
    z-index: 1;
}

.process-premium-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 0 6px rgba(0, 102, 255, 0.08);
}

.process-premium-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.process-premium-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.process-premium-body p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.partners-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
}

.partner-logo-card {
    min-width: 240px;
    max-width: 320px;
    flex: 1 1 240px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0b;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.partner-logo-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
}

.partner-logo-card--future {
    background: var(--bg-section);
    color: var(--text-muted);
    border-style: dashed;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== Project discovery ===== */
.discovery-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.discovery-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 2rem;
}

.discovery-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.discovery-steps li span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: #fff;
}

.discovery-steps li.is-active,
.discovery-steps li.is-done {
    color: var(--text);
}

.discovery-steps li.is-active span,
.discovery-steps li.is-done span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.discovery-panel {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.discovery-panel legend {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.discovery-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.discovery-service-option {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discovery-service-option:hover,
.discovery-service-option:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.discovery-service-option input {
    margin-inline-end: 0.55rem;
}

.discovery-textarea {
    min-height: 220px;
}

.discovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.discovery-review li {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.discovery-review li:last-child {
    border-bottom: 0;
}

.discovery-review strong {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discovery-success {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}

.discovery-success-icon {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.discovery-project-number {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--bg-section);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.discovery-project-number span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discovery-project-number strong {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--primary);
}

@media (max-width: 767.98px) {
    .discovery-card {
        padding: 1.5rem 1.15rem;
    }

    .discovery-service-grid {
        grid-template-columns: 1fr;
    }

    .process-premium::before {
        inset-inline-start: 1.2rem;
    }

    .hero-corp .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
    }

    .consult-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Tech consultation ===== */
.fee-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(45, 100, 255, 0.18);
    background: linear-gradient(135deg, rgba(74, 58, 255, 0.06), rgba(0, 209, 255, 0.08));
    border-radius: var(--radius);
}

.fee-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.fee-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.fee-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}

.fee-discount-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a7a3e;
    background: rgba(10, 122, 62, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
}

.job-card {
    height: 100%;
}

.slot-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    min-height: 2.5rem;
}

.slot-option {
    appearance: none;
    border: 1px solid rgba(45, 100, 255, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.slot-option:hover {
    border-color: var(--primary);
    background: rgba(74, 58, 255, 0.06);
}

.slot-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.password-rules {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.password-rules .rule-icon {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    border: 1.5px solid currentColor;
}

.password-rules li.is-pending .rule-icon::before { content: "·"; }
.password-rules li.is-ok {
    color: #0f7a45;
}
.password-rules li.is-ok .rule-icon::before { content: "✓"; }
.password-rules li.is-bad {
    color: #c0392b;
}
.password-rules li.is-bad .rule-icon::before { content: "✕"; }

.fee-credit-note {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.consult-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-sm);
}

.consult-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    min-width: 240px;
}

.consultation-result-panel {
    padding: 1.5rem;
    border: 1px solid rgba(45, 100, 255, 0.15);
    border-radius: var(--radius);
    background: rgba(45, 100, 255, 0.04);
}

.result-meta {
    display: grid;
    gap: 0.5rem;
}

.account-choice {
    padding: 1rem 1.15rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-section);
}

/* International phone input (country dial + national number) */
.phone-field-wrap {
    width: 100%;
}

.phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    direction: ltr;
    width: 100%;
    min-height: 3.125rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-group:focus-within {
    border-color: var(--primary, #2D64FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.phone-country-picker {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 6.85rem;
    max-width: 9.25rem;
    display: flex;
    align-self: stretch;
}

.phone-country-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.phone-country-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    min-height: 3.125rem;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-inline-end: 1px solid var(--border, #e5e7eb);
    border-radius: 0;
    background: #f8fafc;
    color: var(--text, #1a1a2e);
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: var(--transition);
}

.phone-country-trigger:hover {
    background: #f1f5f9;
}

.phone-country-picker.is-open .phone-country-trigger,
.phone-country-trigger:focus-visible {
    background: #fff;
    outline: none;
}

.phone-country-flag {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.phone-country-dial {
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.phone-country-chevron {
    margin-inline-start: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.55;
    flex-shrink: 0;
}

.phone-country-menu {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.35rem);
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: min(18rem, calc(100vw - 2rem));
    max-height: 18rem;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border, #ced4da);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.phone-country-search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: #fff;
}

.phone-country-search {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text, #1a1a2e);
    background: #f8fafc;
    transition: var(--transition);
}

.phone-country-search:focus {
    outline: none;
    border-color: var(--primary, #2D64FF);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.phone-country-search::-webkit-search-cancel-button {
    cursor: pointer;
}

.phone-country-options {
    overflow: auto;
    max-height: 13.5rem;
    padding: 0.35rem;
}

.phone-country-empty {
    padding: 0.85rem 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

.phone-country-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: calc(var(--radius-sm) - 2px);
    background: transparent;
    color: inherit;
    text-align: start;
    cursor: pointer;
    transition: background 0.15s ease;
}

.phone-country-option:hover,
.phone-country-option.is-selected {
    background: rgba(45, 100, 255, 0.08);
}

.phone-country-option-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.phone-country-option-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.phone-country-option-dial {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.phone-input-group.is-valid {
    border-color: #198754;
}

.phone-input-group.is-invalid {
    border-color: #dc3545;
}

.phone-input-group.is-valid:focus-within,
.phone-input-group.is-invalid:focus-within {
    box-shadow: none;
}

.phone-input-group .phone-national-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    min-height: 3.125rem;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0.75rem 1rem;
    background: transparent;
}

.phone-input-group .phone-national-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.phone-input-group .phone-national-input.is-valid,
.phone-input-group .phone-national-input.is-invalid,
.phone-input-group.is-valid .phone-country-trigger,
.phone-input-group.is-invalid .phone-country-trigger {
    border-color: transparent;
    box-shadow: none;
}

.nexim-form .phone-input-group .phone-national-input.is-valid,
.nexim-form .phone-input-group .phone-national-input.is-invalid {
    padding-inline-end: 1rem;
    background-image: none;
}

.phone-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

/* Live-validated public forms */
.nexim-form .form-label {
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text, #1a1a2e);
}

.nexim-form .req-mark {
    color: #dc3545;
    margin-inline-start: 0.15rem;
}

.nexim-form .form-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(45, 100, 255, 0.12);
    color: var(--primary, #2D64FF);
    font-size: 1.05rem;
    font-weight: 700;
}

.nexim-form .form-section-title::before {
    content: "";
    width: 4px;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--primary, #2D64FF);
    flex-shrink: 0;
}

.nexim-form .form-field {
    position: relative;
}

/* Suppress Bootstrap validation background icons — use single ::after on .form-field */
.nexim-form .form-control.is-valid,
.nexim-form textarea.form-control.is-valid {
    border-color: #198754;
    background-image: none !important;
    padding-inline-end: 2.25rem;
}

.nexim-form .form-control.is-invalid,
.nexim-form textarea.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none !important;
    padding-inline-end: 2.25rem;
}

.nexim-form .form-select.is-valid:not([multiple]):not([size]),
.nexim-form .form-select.is-valid:not([multiple])[size="1"],
.nexim-form .form-select.is-invalid:not([multiple]):not([size]),
.nexim-form .form-select.is-invalid:not([multiple])[size="1"] {
    padding-inline-end: 2.25rem;
}

.nexim-form .form-select.is-valid:not([multiple]):not([size]),
.nexim-form .form-select.is-valid:not([multiple])[size="1"] {
    border-color: #198754;
}

.nexim-form .form-select.is-invalid:not([multiple]):not([size]),
.nexim-form .form-select.is-invalid:not([multiple])[size="1"] {
    border-color: #dc3545;
}

/* Dropdown chevron only — overrides Bootstrap ✓/✕ on selects */
.nexim-form .form-select:not([multiple]):not([size]),
.nexim-form .form-select:not([multiple])[size="1"] {
    --nexim-select-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-image: var(--nexim-select-chevron) !important;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    background-position: right 0.75rem center;
}

[dir="rtl"] .nexim-form .form-select:not([multiple]):not([size]),
[dir="rtl"] .nexim-form .form-select:not([multiple])[size="1"] {
    background-position: left 0.75rem center;
}

.nexim-form .form-field:has(> .form-control.is-valid)::after,
.nexim-form .form-field:has(> textarea.form-control.is-valid)::after,
.nexim-form .form-field:has(> .form-select.is-valid)::after,
.nexim-form .form-field:has(> .phone-input-group.is-valid)::after {
    content: "✓";
    position: absolute;
    inset-inline-end: 0.85rem;
    top: 2.35rem;
    color: #198754;
    font-weight: 700;
    pointer-events: none;
}

.nexim-form .form-field:has(> .form-control.is-invalid)::after,
.nexim-form .form-field:has(> textarea.form-control.is-invalid)::after,
.nexim-form .form-field:has(> .form-select.is-invalid)::after,
.nexim-form .form-field:has(> .phone-input-group.is-invalid)::after {
    content: "✕";
    position: absolute;
    inset-inline-end: 0.85rem;
    top: 2.35rem;
    color: #dc3545;
    font-weight: 700;
    pointer-events: none;
}

/* Selects: show validation icon opposite the dropdown chevron */
.nexim-form .form-field:has(> .form-select.is-valid)::after,
.nexim-form .form-field:has(> .form-select.is-invalid)::after {
    inset-inline-end: auto;
    inset-inline-start: 0.85rem;
}

.nexim-form .form-field:has(> .phone-input-group)::after {
    top: 50%;
    transform: translateY(-50%);
    margin-top: -0.55rem;
}

.nexim-form .field-validation-error {
    display: block;
    margin-top: 0.35rem;
    min-height: 1.1rem;
}

.nexim-form .form-char-counter {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    text-align: end;
}

.nexim-form .form-char-counter.is-warning {
    color: #b45309;
}

.nexim-form .form-char-counter.is-ok {
    color: #198754;
}

.nexim-form .discovery-textarea {
    min-height: 9rem;
    resize: vertical;
}

.nexim-form .form-actions {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.contact-form-card.nexim-form-shell {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-md);
    background: var(--card);
}

@media (max-width: 575.98px) {
    .phone-input-group {
        flex-direction: row;
    }

    .phone-country-picker {
        min-width: 6.25rem;
        max-width: 7.5rem;
    }

    .phone-country-menu {
        width: min(18rem, calc(100vw - 2rem));
    }

    .nexim-form .form-field:has(> .form-control.is-valid)::after,
    .nexim-form .form-field:has(> .form-control.is-invalid)::after,
    .nexim-form .form-field:has(> textarea.form-control.is-valid)::after,
    .nexim-form .form-field:has(> textarea.form-control.is-invalid)::after,
    .nexim-form .form-field:has(> .form-select.is-valid)::after,
    .nexim-form .form-field:has(> .form-select.is-invalid)::after,
    .nexim-form .form-field:has(> .phone-input-group.is-valid)::after,
    .nexim-form .form-field:has(> .phone-input-group.is-invalid)::after {
        display: none;
    }
}



