:root {
    --bg: #f4f8fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #5f6b7a;
    --line: rgba(15, 23, 42, 0.08);
    --primary: #0f7bff;
    --primary-deep: #064b9b;
    --accent: #14c6b7;
    --accent-soft: rgba(20, 198, 183, 0.16);
    --warning: #ffb347;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

html.theme-dark {
    --bg: #08111f;
    --surface: rgba(12, 20, 36, 0.82);
    --surface-strong: #101b30;
    --text: #edf3ff;
    --muted: #9db0ca;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #61a6ff;
    --primary-deep: #9ccbff;
    --accent: #2fe0cf;
    --accent-soft: rgba(47, 224, 207, 0.12);
    --warning: #ffc56d;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 123, 255, 0.16), transparent 28%),
        radial-gradient(circle at 100% 20%, rgba(20, 198, 183, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0)),
        var(--bg);
    min-height: 100vh;
}

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

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

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary-deep);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-pill {
    border-radius: 999px;
    padding-inline: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #18a0fb);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(15, 123, 255, 0.28);
}

.btn-outline-primary {
    border-color: rgba(15, 123, 255, 0.24);
    color: var(--primary);
}

.btn-outline-light-soft {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.site-navbar {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

html.theme-dark .site-navbar {
    background: rgba(8, 17, 31, 0.65);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.brand-mark span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 123, 255, 0.25);
}

.nav-link {
    color: var(--muted);
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text);
}

.hero-section,
.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1,
.inner-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-copy p,
.inner-hero .lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
    max-width: 62ch;
}

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

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.metric-tile,
.showcase-card,
.floating-panel,
.service-card,
.project-card,
.testimonial-card,
.blog-card,
.content-card,
.plan-card,
.article-card,
.info-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.metric-tile {
    padding: 1rem;
}

.metric-tile strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.metric-tile span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.showcase-card {
    overflow: hidden;
}

.showcase-card img,
.image-frame img,
.project-card img,
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-card.primary {
    position: absolute;
    inset: 0 6rem 4rem 0;
    border-radius: var(--radius-xl);
}

.showcase-card.secondary {
    position: absolute;
    width: 45%;
    height: 42%;
    inset-block-end: 0;
    inset-inline-end: 0;
    border-radius: var(--radius-xl);
    border: 8px solid var(--bg);
}

.floating-panel {
    position: absolute;
    inset-block-start: 1.5rem;
    inset-inline-end: 0;
    width: 52%;
    padding: 1.2rem;
}

.floating-panel h5 {
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.floating-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-block {
    padding: 4rem 0;
}

.section-soft {
    background: linear-gradient(180deg, transparent, rgba(15, 123, 255, 0.03), transparent);
}

.section-head {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.section-head p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

.service-card,
.project-card,
.testimonial-card,
.blog-card,
.content-card,
.plan-card,
.article-card,
.info-card {
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.content-card:hover,
.plan-card:hover,
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    border-color: rgba(15, 123, 255, 0.22);
}

.service-card {
    padding: 1.6rem;
}

.service-icon {
    width: 62px;
    height: 62px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 123, 255, 0.18), rgba(20, 198, 183, 0.18));
    color: var(--primary);
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.service-card h3,
.project-card h3,
.blog-card h3,
.plan-card h3,
.content-card h3,
.job-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.service-card p,
.project-card p,
.blog-card p,
.testimonial-card p,
.content-card p,
.article-card,
.job-card p {
    color: var(--muted);
    line-height: 1.9;
}

.project-card,
.blog-card {
    overflow: hidden;
}

.project-card img,
.blog-card img {
    height: 250px;
    transition: transform 0.5s ease;
}

.project-card:hover img,
.blog-card:hover img,
.image-frame:hover img,
.showcase-card:hover img {
    transform: scale(1.06);
}

.project-body,
.blog-body {
    padding: 1.4rem;
}

.project-tag,
.blog-date,
.plan-badge,
.job-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 123, 255, 0.10);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.testimonial-card {
    padding: 1.5rem;
}

.stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-card strong {
    display: block;
    font-weight: 800;
}

.testimonial-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.partner-chip {
    padding: 1rem;
    text-align: center;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.image-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.image-frame.tall img {
    height: 620px;
    object-fit: cover;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.stats-strip strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.stats-strip span {
    color: var(--muted);
}

.split-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    padding: 1.2rem 1.4rem;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.plan-card {
    padding: 1.8rem;
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(15, 123, 255, 0.10), var(--surface));
    border-color: rgba(15, 123, 255, 0.25);
}

.plan-badge {
    min-height: 2rem;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.plan-price strong {
    font-size: 2.4rem;
    font-weight: 900;
}

.plan-price span {
    color: var(--muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    color: var(--muted);
}

.plan-features i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.article-card {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 2;
}

.form-card {
    padding: 1.6rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
}

html.theme-dark .form-control,
html.theme-dark .form-select {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.contact-aside {
    padding: 1.6rem;
}

.contact-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.contact-points li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.faq-accordion .accordion-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-accordion .accordion-button,
.faq-accordion .accordion-body {
    background: transparent;
    color: var(--text);
}

.job-card {
    padding: 1.5rem;
}

.job-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 1.2rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.32);
}

html.theme-dark .site-footer {
    background: rgba(255, 255, 255, 0.02);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--line);
}

.footer-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: min(100%, 540px);
}

.footer-main {
    padding: 2rem 0;
}

.footer-heading {
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-copy,
.footer-links li {
    color: var(--muted);
    line-height: 1.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.narrow {
    max-width: 860px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

    .hero-visual {
        min-height: 440px;
    }

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

@media (max-width: 991px) {
    .hero-metrics,
    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-top,
    .newsletter-form,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .inner-hero {
        padding-top: 4.25rem;
    }

    .showcase-card.primary {
        inset: 0 3rem 3rem 0;
    }

    .showcase-card.secondary {
        width: 48%;
        height: 38%;
    }

    .floating-panel {
        width: 70%;
    }

    .project-card img,
    .blog-card img {
        height: 220px;
    }

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

@media (max-width: 575px) {
    .hero-metrics,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .floating-panel {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .showcase-card.primary,
    .showcase-card.secondary {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .hero-visual {
        min-height: 0;
    }
}
