/* ============================================================
   KOBIT SOFTWARE — Custom Styles (Supplement to Tailwind CDN)
============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0f4c8b;
    --primary-dark: #0a3570;
    --accent: #00b4d8;
    --accent-light: #90e0ef;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.97);
    --shadow: 0 4px 24px rgba(15, 76, 139, 0.1);
    --shadow-card: 0 2px 16px rgba(15, 76, 139, 0.08);
    --grad: linear-gradient(135deg, #0f4c8b 0%, #00b4d8 100%);
    --grad-dark: linear-gradient(135deg, #061e3d 0%, #0a3570 60%, #005f7a 100%);
    --radius: 1rem;
}

html.dark {
    --text: #e2e8f0;
    --muted: #94a3b8;
    --bg: #0a0f1a;
    --card-bg: #111827;
    --border: #1e293b;
    --nav-bg: rgba(10, 15, 26, 0.97);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
}

html.high-contrast {
    filter: contrast(1.6) brightness(1.1);
}

html.grayscale-mode {
    filter: grayscale(1);
}

html.links-highlighted a {
    background: #ff0 !important;
    color: #000 !important;
    text-decoration: underline !important;
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:
        background 0.3s,
        color 0.3s;
    line-height: 1.65;
    overflow-x: hidden;
}

body.rtl {
    font-family: "Cairo", "Tajawal", sans-serif;
}

/* ---- Navbar ---- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition:
        box-shadow 0.3s,
        background 0.3s;
    height: 72px;
}
#navbar.scrolled {
    box-shadow: 0 2px 24px rgba(15, 76, 139, 0.13);
}
.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.navbar.rtl-flex {
    flex-direction: row-reverse;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}
html.dark .brand-name {
    color: #60a5fa;
}
.brand-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition:
        background 0.2s,
        color 0.2s;
}
.nav-links a:hover {
    background: rgba(15, 76, 139, 0.08);
    color: var(--primary);
}
html.dark .nav-links a:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition:
        background 0.2s,
        color 0.2s;
}
.btn-icon:hover {
    background: rgba(15, 76, 139, 0.08);
    color: var(--primary);
}
html.dark .btn-icon:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.lang-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    letter-spacing: 0.03em;
}
.lang-btn:hover {
    background: rgba(15, 76, 139, 0.08);
    color: var(--primary);
}
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}
html.dark .lang-btn.active {
    background: #1d4ed8;
}

.btn-quote-nav {
    padding: 0.45rem 1.1rem;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    white-space: nowrap;
}
.btn-quote-nav:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile menu toggle */
#menuToggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
}

#mobileMenu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    transition:
        transform 0.25s,
        opacity 0.25s;
}
#mobileMenu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
.mobile-nav-link {
    display: block;
    padding: 0.7rem 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-link:hover {
    color: var(--primary);
}
.mobile-lang-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ---- Hero ---- */
#hero {
    min-height: 100vh;
    background: var(--grad-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            ellipse 60% 50% at 80% 50%,
            rgba(0, 180, 216, 0.18) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 40% at 20% 80%,
            rgba(15, 76, 139, 0.4) 0%,
            transparent 60%
        );
    pointer-events: none;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: #90e0ef;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: linear-gradient(90deg, #90e0ef, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-num span {
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Hero right visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
    animation: floatCard 4s ease-in-out infinite alternate;
}
.hero-card:nth-child(2) {
    animation-delay: 1.2s;
}
.hero-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes floatCard {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-card-text strong {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-card-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- Section Shared ---- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-pad {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}
.text-center .section-sub {
    margin: 0 auto;
}

/* ---- Vendor Logos ---- */
#vendors {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.vendors-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}

.vendors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.vendor-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
    cursor: default;
    flex: 0 1 calc(16.666% - 2rem);
    min-width: 120px;
    min-height: 90px;
}

.vendor-logo:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
}

.vendor-logo .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.3s;
}

.vendor-logo:hover .logo-icon {
    filter: grayscale(0) opacity(1);
}

.vendor-logo-img {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(0.3) opacity(0.85);
    transition:
        filter 0.3s,
        transform 0.3s;
}

.vendor-logo:hover .vendor-logo-img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

.vendor-logo .logo-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.vendor-logo:hover .logo-name {
    color: var(--accent);
}

/* ---- About ---- */
#about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 12px 48px rgba(15, 76, 139, 0.18);
    display: block;
}

.about-main-card {
    background: var(--grad);
    border-radius: 20px;
    padding: 2.5rem;
    color: #fff;
}

.about-main-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-main-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.about-stat {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.about-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.72rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.about-content .mission-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

html[dir="rtl"] .about-content .mission-box {
    border-left: none;
    border-right: 4px solid var(--accent);
}

.mission-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.mission-box p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- Solutions ---- */
#solutions {
    background: var(--card-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

html[dir="rtl"] .solution-card::before {
    transform-origin: right;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 180, 216, 0.3);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.sol-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
    overflow: hidden;
}

.sol-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sol-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.sol-desc {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
}
.btn-learn-more:hover {
    gap: 0.7rem;
}

/* ---- Why Us ---- */
#why {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: rgba(15, 76, 139, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

html.dark .why-icon {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---- How It Works ---- */
#how {
    background: var(--card-bg);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.how-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--primary),
        var(--accent)
    );
    opacity: 0.25;
    z-index: 0;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* New bubble wrapper */
.how-step-bubble {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
}

.how-step-icon-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c8b 0%, #00b4d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    box-shadow:
        0 0 0 6px rgba(0, 180, 216, 0.12),
        0 8px 28px rgba(0, 180, 216, 0.3);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.how-step:hover .how-step-icon-ring {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 0 0 8px rgba(0, 180, 216, 0.18),
        0 16px 36px rgba(0, 180, 216, 0.4);
}

.how-step-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.how-step h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.how-step p {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---- Industries ---- */
#industries {
    background: var(--bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.industry-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 180, 216, 0.25);
}

.ind-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(
        135deg,
        rgba(15, 76, 139, 0.1) 0%,
        rgba(0, 180, 216, 0.1) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ind-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

/* ---- News ---- */
#news {
    background: var(--card-bg);
}

.news-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.news-filter-btn {
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.news-filter-btn:hover,
.news-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-card-header {
    height: 6px;
    background: var(--grad);
}

.news-card-body {
    padding: 1.5rem;
}

.news-cat-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 180, 216, 0.12);
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.btn-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}
.btn-read-more:hover {
    gap: 0.6rem;
}

/* ---- Contact ---- */
#contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(15, 76, 139, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}
html.dark .contact-info-icon {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.contact-info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: var(--text);
    width: 100%;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.2s;
    margin-top: 0.5rem;
}
.btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ---- FAQ ---- */
#faq {
    background: var(--card-bg);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    gap: 1rem;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- Footer ---- */
#footer {
    background: #061525;
    color: rgba(255, 255, 255, 0.75);
}

.footer-top {
    padding: 4rem 0 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition:
        background 0.2s,
        color 0.2s;
}
.footer-social-btn:hover {
    background: var(--accent);
    color: #fff;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-contact-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
}

.footer-contact-list i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---- Accessibility Panel ---- */
#a11y-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

#a11y-toggle {
    pointer-events: all;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
    z-index: 1110;
    transition: transform 0.2s;
}
#a11y-toggle:hover {
    transform: scale(1.1);
}

#a11y-panel {
    pointer-events: all;
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    width: 260px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 1105;
    display: none;
    transition: opacity 0.2s;
}

#a11y-panel.open {
    display: block;
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.a11y-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

#a11y-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 6px;
}
#a11y-close:hover {
    background: var(--border);
}

.a11y-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.a11y-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.a11y-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.a11y-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.a11y-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Toast ---- */
.kobit-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition:
        opacity 0.3s,
        transform 0.3s;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
}
.kobit-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Animate On Scroll ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-steps::before {
        display: none;
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-visual {
        display: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .btn-quote-nav {
        display: none;
    }
    #menuToggle {
        display: flex;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .how-steps {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .lang-switcher {
        display: none;
    }
    #a11y-toggle {
        right: 1rem;
        bottom: 1rem;
    }
    #a11y-panel {
        right: 1rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full {
        grid-column: 1;
    }
}

/* ---- CTA Banner ---- */
.cta-section {
    background: var(--grad);
    padding: 4rem 0;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: #fff;
}

.cta-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-inner p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    padding: 0.85rem 2rem;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-white-outline {
    padding: 0.85rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.btn-white-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
