/* Blog section styling aligned with the supplied mock */
.blog-section {
    margin-top: 4rem;
    background: #070c19;
    border-radius: 36px;
    border: 1px solid rgba(60, 71, 122, 0.3);
    padding: 2.85rem 3rem;
    box-shadow: 0 42px 80px -50px rgba(6, 12, 34, 0.85);
    direction: rtl;
}

.blog-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    direction: rtl;
}

.blog-section-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #f4f7ff;
    letter-spacing: -0.02em;
}

.blog-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #262f73 0%, #1d2358 100%);
    border: 1px solid rgba(86, 100, 186, 0.5);
    box-shadow: 0 20px 32px -22px rgba(74, 88, 178, 0.65), inset 0 0 18px rgba(96, 108, 220, 0.3);
    color: rgba(236, 240, 255, 0.95);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-section-icon i {
    font-size: 1.2rem;
}

.blog-section:hover .blog-section-icon {
    transform: translateY(-2px);
    box-shadow: 0 26px 36px -20px rgba(82, 96, 204, 0.7), inset 0 0 26px rgba(108, 120, 255, 0.28);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 1.6rem 2rem;
    margin-top: 2.6rem;
}

.blog-post-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.35rem;
    padding: 1.45rem 1.85rem;
    background: linear-gradient(150deg, rgba(9, 12, 24, 0.92), rgba(10, 14, 27, 0.96));
    border-radius: 26px;
    border: 1px solid rgba(54, 63, 106, 0.38);
    box-shadow: 0 32px 65px -44px rgba(8, 14, 32, 0.9);
    text-decoration: none;
    min-height: 130px;
    position: relative;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.blog-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
    opacity: 0.35;
}

.blog-post-card:hover {
    border-color: rgba(122, 138, 255, 0.62);
    box-shadow: 0 46px 90px -48px rgba(46, 62, 145, 0.9);
    transform: translateY(-4px);
    background: linear-gradient(150deg, rgba(11, 15, 32, 0.95), rgba(13, 18, 38, 0.99));
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    text-align: right;
    direction: rtl;
}

.blog-post-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(240, 243, 255, 0.95);
    line-height: 1.7;
}

.blog-post-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(21, 24, 42, 0.96), rgba(18, 21, 38, 0.94));
    border: 1px solid rgba(70, 83, 152, 0.45);
    color: rgba(184, 197, 255, 0.88);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
    box-shadow: inset 0 0 14px rgba(24, 30, 58, 0.45);
}

.blog-post-link-icon i {
    font-size: 0.95rem;
}

.blog-post-card:hover .blog-post-link-icon {
    background: linear-gradient(150deg, rgba(88, 96, 220, 0.95), rgba(72, 67, 182, 0.92));
    border-color: rgba(137, 148, 255, 0.75);
    color: #fff;
    transform: scale(1.08);
    box-shadow: inset 0 0 18px rgba(98, 112, 255, 0.45), 0 14px 24px -18px rgba(72, 86, 198, 0.55);
}

.blog-post-image-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(18, 21, 36, 0.92);
    border: 1px solid rgba(70, 84, 146, 0.38);
    box-shadow: inset 0 0 16px rgba(20, 26, 48, 0.32);
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.6rem 1rem;
    color: rgba(205, 212, 255, 0.7);
}

.blog-loading i {
    font-size: 2rem;
}

@media (max-width: 1100px) {
    .blog-posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .blog-section {
        padding: 2.4rem 2.2rem;
    }

    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .blog-post-card {
        padding: 1.4rem 1.65rem;
    }

    .blog-post-title {
        font-size: 1.02rem;
    }
}

@media (max-width: 600px) {
    .blog-section {
        padding: 2.1rem 1.6rem;
        border-radius: 28px;
    }

    .blog-section-title {
        font-size: 1.7rem;
    }

    .blog-post-card {
        gap: 1.1rem;
        padding: 1.25rem 1.4rem;
    }

    .blog-post-link-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .blog-post-image-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}
/* index6 page styles */
/* index6 page styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent: #f97316;
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.72);
    --text: #f8fafc;
    --muted: rgba(241, 245, 249, 0.72);
    --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #050b1d 0%, #0f172a 100%);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

header.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--muted);
}

.brand img {
    height: 46px;
    width: 46px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 600;
    color: var(--muted);
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: #fff;
    opacity: 0.9;
}

.hero {
    position: relative;
    padding: 7rem 1.5rem 5rem;
    background:
        linear-gradient(
            135deg,
            rgba(79, 70, 229, 0.9),
            rgba(30, 64, 175, 0.85)
        ),
        url("images/bg5.png") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

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

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.82);
    margin-bottom: 1.5rem;
}

.hero-text .description {
    font-size: 1.1rem;
    max-width: 36rem;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 15px 35px -12px rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.hero-image {
    position: relative;
    justify-self: center;
    display: none;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25),
        transparent 60%
    );
    z-index: 0;
    filter: blur(1px);
}

.hero-image img {
    position: relative;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 900px) {
    .hero {
        padding: 7.5rem 1.5rem 6rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-text {
        text-align: right;
        margin: 0;
        width: 100%;
        max-width: none;
    }

    .hero-text .description {
        max-width: none;
    }

    .hero-actions {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
    }

    .hero-logos {
        max-width: none;
    }

    .hero-image {
        display: none;
    }
}

main {
    position: relative;
    z-index: 1;
}

section {
    padding: 5rem 1.5rem;
}

.section-bg {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.6);
    box-shadow: 0 20px 40px -25px rgba(15, 23, 42, 0.8);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
    font-weight: 800;
    color: #fff;
}

.section-subtitle {
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 20px 45px -18px rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    height: 80px;
    padding: 0;
}

.case-logo img {
    height: 68px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.25));
}

.case-studies-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    margin: 0;
    padding: 0 clamp(1.5rem, 5vw, 3rem) 1.5rem;
    scroll-behavior: smooth;
    scroll-padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.case-studies-scroll::-webkit-scrollbar {
    height: 6px;
}

.case-studies-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.case-studies-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 30vw);
    gap: 1.5rem;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    padding: 0 0 0.25rem;
}

.case-studies-track > .card {
    scroll-snap-align: start;
}

@media (max-width: 1280px) {
    .case-studies-track {
        grid-auto-columns: minmax(300px, 38vw);
    }
}

@media (max-width: 900px) {
    .case-studies-scroll {
        margin: 0 -1rem;
        padding: 0 1rem 1.25rem;
    }

    .case-studies-track {
        grid-auto-columns: minmax(260px, 82vw);
        padding-inline: clamp(1.5rem, 6vw, 3rem);
    }
}


@media (hover: hover) {
    .case-studies-track > .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 55px -20px rgba(2, 6, 23, 0.7);
    }
}

.card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: #fff;
}

.card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(226, 232, 240, 0.85);
}

.card ul li {
    position: relative;
    padding-right: 1.4rem;
    margin-bottom: 0.6rem;
}

.card ul li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.6rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.stat {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
}

.stat span {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.95rem;
}

.about-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.about-text {
    color: rgba(226, 232, 240, 0.9);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    position: relative;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: -16px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 24px;
    z-index: 0;
}

.about-image img {
    position: relative;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.clients-grid img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition:
        filter 0.2s ease,
        opacity 0.2s ease;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.media-grid img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.media-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.section-surface {
    background: rgba(11, 17, 28, 0.92);
    border: 1px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 20px 45px -30px rgba(2, 6, 23, 0.9);
}

.content-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.content-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px -18px rgba(15, 23, 42, 0.65);
}

.content-social span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.process-step {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.process-step span {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h4 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.process-step p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
}

.content-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.content-card img {
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quote {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 0.98rem;
}

.quote span {
    display: block;
    margin-top: 1.2rem;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.9rem;
}

.case-studies-track > .quote {
    scroll-snap-align: start;
    min-width: 320px;
    height: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .case-studies-track > .quote:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 55px -20px rgba(2, 6, 23, 0.7);
    }
}


.contact-section {
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.82), rgba(76, 29, 149, 0.82));
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem 2.5rem 2.5rem 3rem;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    min-width: 0;
}

.page-content > *:first-child {
    margin-top: 0;
}

.sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    width: 360px;
    min-height: calc(100vh - 4rem);
    background: rgba(10, 13, 20, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 30px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 32px 55px -28px rgba(2, 6, 23, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar__avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.sidebar__avatar img {
    width: 100%;
    border-radius: 24px;
    filter: grayscale(100%) brightness(0.85) contrast(1.05) !important;
}

.sidebar__menu {
    display: grid;
    gap: 1rem;
}

.sidebar__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 1.1rem 1.4rem;
    border-radius: 1.5rem;
    background: rgba(33, 41, 57, 0.75);
    color: rgba(248, 250, 252, 0.82);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: right;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar__link i {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    line-height: 1;
}

.sidebar__link i::before {
    display: inline-block;
}

.sidebar__link--active {
    background: #ffd335;
    color: #0f172a;
    box-shadow: 0 18px 40px -22px rgba(255, 211, 53, 0.85);
}

.sidebar__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px -22px rgba(33, 41, 57, 0.9);
}

.sidebar__divider {
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.15);
    margin: 2.5rem 0;
}

.sidebar__social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    font-size: 1.4rem;
}

.sidebar__social a {
    color: rgba(248, 250, 252, 0.7);
}

.sidebar__social a:hover {
    color: #ffd335;
}

            .sidebar-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(10, 13, 20, 0.92);
    color: #f8fafc;
    font-family: 'Dosis', sans-serif !important;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1100;
    cursor: pointer;
}

.sidebar-toggle__icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
}

.sidebar-toggle__icon::before {
    top: -6px;
}

.sidebar-toggle__icon::after {
    top: 6px;
}

.sidebar-toggle__label {
    font-family: 'Dosis', sans-serif;
    letter-spacing: 0.02em;
}

.sidebar-overlay {
    display: none;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .page-shell {
        gap: 2rem;
        padding: 2rem;
    }

    .sidebar {
        width: 300px;
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 900px) {
    .sidebar-toggle {
        display: inline-flex;
    }

    .page-shell {
        flex-direction: column;
        padding: 1.5rem;
        padding-top: 6rem;
    }

    .sidebar {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
        width: auto;
        min-height: auto;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        margin: 0;
        padding: 2rem 1.75rem;
        z-index: 1050;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }

    .sidebar.sidebar--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1040;
    }

    .sidebar-overlay.sidebar-overlay--active {
        opacity: 1;
        pointer-events: auto;
    }

    .page-content {
        padding-bottom: 2rem;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-toggle.is-active .sidebar-toggle__icon {
        background: transparent;
    }

    .sidebar-toggle.is-active .sidebar-toggle__icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .sidebar-toggle.is-active .sidebar-toggle__icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .sidebar-toggle.is-active .sidebar-toggle__icon::before,
    .sidebar-toggle.is-active .sidebar-toggle__icon::after {
        background: #ffd335;
    }

    .sidebar-toggle__label {
        font-family: 'Cairo', sans-serif;
    }
}

@media (max-width: 768px) {
    nav ul {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .hero {
        padding-top: 2.5rem;
    }

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

    .contact-section {
        padding: 2.25rem;
    }
}

footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(226, 232, 240, 0.65);
}

/* Hero logos marquee */
.hero-logos-wrapper {
    position: relative;
    margin-top: 1.25rem;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 8%, rgb(0, 0, 0) 92%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 8%, rgb(0, 0, 0) 92%, rgba(0, 0, 0, 0) 100%);
}

.hero-logos {
    --marquee-gap: clamp(2rem, 3vw, 3rem);
    --marquee-duration: 30s;
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
    gap: var(--marquee-gap);
    direction: ltr;
    will-change: transform;
}

.hero-logos-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--marquee-gap);
    min-width: 100%;
    animation: marquee-scroll var(--marquee-duration) linear infinite;
}

.hero-logos img {
    height: 40px;
    width: auto;
    min-width: 80px;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.9;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--marquee-gap)));
    }
}

@media (max-width: 900px) {
    .hero-logos { --marquee-gap: 2rem; }
    .hero-logos img { height: 34px; }
}

@media (max-width: 600px) {
    .hero-logos { --marquee-gap: 1.5rem; }
    .hero-logos img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logos { animation: none; }
}

/* Products Grid Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 45px -18px rgba(2, 6, 23, 0.65);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.8);
}

.product-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(38, 47, 115, 0.95), rgba(29, 35, 88, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ai-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(249, 115, 22, 0.95);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-badge::before {
    content: "⚡";
    font-size: 0.9rem;
}

.product-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-badge {
    display: inline-block;
    width: fit-content;
    background: rgba(79, 70, 229, 0.15);
    color: rgba(165, 180, 252, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.product-content h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.4;
}

.product-content p {
    color: rgba(226, 232, 240, 0.8);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.product-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.product-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }
}
