:root {
    --bg-0: #08111d;
    --bg-1: #0d6774;
    --bg-2: #0b2541;
    --bg-3: #102945;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --surface-soft: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.92);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(23, 167, 181, 0.2);
    --ink: #ffffff;
    --ink-soft: #e2e8f0;
    --muted: #94a3b8;
    --brand: #17a7b5;
    --brand-2: #0f3f67;
    --brand-3: #f68b1f;
    --brand-glow: rgba(23, 167, 181, 0.34);
    --shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 35px 55px -15px rgba(0, 0, 0, 0.3);
    --radius-xl: 48px;
    --radius-lg: 32px;
    --radius-md: 28px;
    --radius-sm: 22px;
    --container: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

@page {
    size: A4 portrait;
    margin: 10mm;
}

body {
    font-family: "Inter", "IBM Plex Sans Arabic", sans-serif;
    background: var(--bg-0);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    overflow: hidden;
}

.animated-bg::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(23, 167, 181, 0.16) 0%, transparent 60%);
    animation: rotateBg 40s linear infinite;
}

.animated-bg::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 8px);
    animation: shiftBg 30s ease-in-out infinite;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(23, 167, 181, 0.34);
    animation: floatParticle linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shiftBg {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(2%, 1%) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    90% {
        opacity: 0.55;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
}

.glass,
.card,
.map-card,
.doc-card,
.timeline-card,
.reference-card,
.portal-card,
.stat-card,
.mini-item,
.process-box,
.entry-panel,
.hero-panel,
.quote-box,
details.detail-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.glass:hover,
.card:hover,
.map-card:hover,
.doc-card:hover,
.timeline-card:hover,
.reference-card:hover,
.portal-card:hover,
.stat-card:hover,
.mini-item:hover,
.process-box:hover,
.entry-panel:hover,
.hero-panel:hover,
.quote-box:hover,
details.detail-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.11);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.02);
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-shell {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(23, 167, 181, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(246, 139, 31, 0.45);
    transform: translateY(-1px);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-shell.open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-shell.open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-shell.open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.brand-copy strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -0.3px;
}

.brand-copy span {
    display: block;
    color: #c7eef2;
    font-size: 0.72rem;
}

.nav {
    position: absolute;
    top: calc(100% + 14px);
    inset-inline-end: 0;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(7, 12, 20, 0.94);
    border: 1px solid rgba(23, 167, 181, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 120;
}

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

.nav a {
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.nav a:hover,
.nav a.active {
    background: var(--brand-2);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 63, 103, 0.4);
}

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

main section {
    padding: 28px 0;
}

.hero {
    padding: 80px 0 60px;
}

.hero-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.hero-shell:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.home-hero {
    min-height: auto;
}

.home-copy {
    padding: 0;
}

.home-brandline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.home-brandline .logo-frame {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 6px;
}

.home-brandline .logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-brandline strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.8rem;
    color: white;
}

.home-brandline span {
    color: #c7eef2;
    font-size: 0.85rem;
}

.eyebrow,
.section-label,
.portal-badge,
.page-tag {
    color: var(--brand);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.eyebrow {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

h1,
.hero h1 {
    font-family: "Sora", sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c7eef2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: none;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.lead,
.hero p.lead {
    font-size: 1.08rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 58ch;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

.btn-row,
.page-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
}

.btn-solid {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: white;
    box-shadow: 0 8px 20px rgba(15, 63, 103, 0.35);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(246, 139, 31, 0.32);
}

.btn-outline {
    border: 1.5px solid var(--brand);
    color: var(--brand);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(23, 167, 181, 0.1);
    transform: translateY(-2px);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
}

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

.hero-tags,
.pill-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tags {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-tag,
.pill {
    background: rgba(23, 167, 181, 0.12);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--brand);
    border: 1px solid rgba(23, 167, 181, 0.3);
}

.home-visual {
    padding: 0;
}

.visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 40px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.visual-stack,
.logo-showcase {
    display: contents;
}

.visual-card ul {
    list-style: none;
}

.visual-card li {
    margin-bottom: 18px;
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.floating-note {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 28px;
    margin-top: 24px;
    border-inline-start: 3px solid var(--brand);
    color: #e2e8f0;
}

.floating-note strong {
    display: block;
    margin-bottom: 8px;
    color: white;
}

.hero-panel {
    padding: 28px;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7eef2;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.panel-title {
    font-family: "Sora", sans-serif;
    color: white;
    font-size: 1.3rem;
    line-height: 1.45;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.metric-card,
.kpi {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card strong,
.kpi strong {
    display: block;
    color: white;
    font-family: "Sora", sans-serif;
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.metric-card span,
.kpi span {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.92rem;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 80px auto 48px;
}

.section-head h2,
.entry-panel h2,
.banner h2,
.footer h2 {
    font-family: "Sora", sans-serif;
    color: white;
}

.section-head h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-head p,
.entry-panel p,
.card p,
.map-card p,
.doc-card p,
.timeline-card p,
.reference-card p,
.quote-box p,
.process-box p,
.footer p,
.footer li,
.stat-card p,
.mini-item span,
.portal-card p {
    color: var(--muted);
}

.banner-list,
.bullet-list,
.meta-list,
.check-list,
.footer ul,
.process-box ul,
.visual-card ul {
    list-style: none;
}

.banner-list li,
.bullet-list li,
.check-list li,
.process-box li,
.meta-list li {
    color: #e2e8f0;
    margin-bottom: 14px;
    position: relative;
    padding-inline-start: 28px;
}

.banner-list li::before,
.bullet-list li::before,
.check-list li::before,
.process-box li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--brand);
    font-weight: 700;
}

.meta-list li {
    padding-inline-start: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-section-grid,
.card-grid,
.two-column,
.reference-grid,
.stats-grid,
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 48px 0;
}

.entry-panel,
.card,
.map-card,
.doc-card,
.timeline-card,
.reference-card,
.portal-card,
.stat-card,
.mini-item,
.process-box,
.quote-box {
    padding: 32px;
}

.portal-card {
    display: block;
}

.portal-card h3,
.card h3,
.map-card h3,
.doc-card h3,
.timeline-card h3,
.reference-card h3,
.stat-card h3,
.process-box strong,
.mini-item strong,
details.detail-box h3 {
    color: white;
    font-family: "Sora", sans-serif;
}

.portal-card h3,
.reference-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.card h3,
.map-card h3,
.doc-card h3,
.timeline-card h3,
.stat-card h3,
.process-box strong,
.mini-item strong,
details.detail-box h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
}

.portal-link {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand);
}

.portal-badge,
.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 30px;
    background: rgba(246, 139, 31, 0.14);
    color: var(--brand);
    margin-bottom: 20px;
}

.map-grid,
.doclink-grid,
.timeline,
.mini-board,
.kpi-strip {
    display: grid;
    gap: 18px;
}

.map-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

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

.mini-board {
    grid-template-columns: 1fr;
}

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

.banner {
    background: linear-gradient(135deg, rgba(15, 63, 103, 0.95), rgba(246, 139, 31, 0.9));
    padding: 56px;
    border-radius: var(--radius-xl);
    margin: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border: 1px solid rgba(246, 139, 31, 0.28);
}

.quote-box {
    border-inline-start: 3px solid var(--brand);
}

details.detail-box {
    overflow: hidden;
}

details.detail-box + details.detail-box {
    margin-top: 16px;
}

details.detail-box summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

details.detail-box summary::-webkit-details-marker {
    display: none;
}

details.detail-box summary::after {
    content: "+";
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(246, 139, 31, 0.14);
    color: var(--brand);
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

details.detail-box[open] summary::after {
    content: "−";
}

.detail-content {
    padding: 0 24px 24px;
    color: #cbd5e1;
}

.detail-content ul {
    list-style: none;
    margin-top: 10px;
}

.detail-content li {
    margin-bottom: 12px;
    position: relative;
    padding-inline-start: 20px;
}

.detail-content li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.pdf-frame {
    width: 100%;
    height: 860px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 60px 0 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(23, 167, 181, 0.18);
}

.footer-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.footer-shell:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.footer h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer ul li {
    margin-bottom: 14px;
}

.pill-row {
    margin-top: 24px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

@media (max-width: 1100px) {
    .hero-grid,
    .banner,
    .footer-grid,
    .stats-grid,
    .home-section-grid,
    .card-grid,
    .two-column,
    .reference-grid,
    .timeline,
    .doclink-grid,
    .kpi-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(var(--container), calc(100% - 40px));
    }

    .topbar-inner {
        align-items: center;
    }

    .hero {
        padding: 40px 0;
    }

    h1,
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    main {
        width: calc(100% - 14px);
        max-width: 210mm;
        min-height: calc((100vw - 14px) * 1.4142);
        margin: 10px auto 20px;
        padding-bottom: 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 28px;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .topbar {
        padding: 12px 0;
    }

    .topbar-inner {
        gap: 14px;
    }

    .nav-shell {
        width: auto;
        justify-content: flex-end;
    }

    .nav {
        width: min(320px, calc(100vw - 40px));
        min-width: 0;
    }

    .nav a {
        width: 100%;
    }

    .hero-grid,
    .banner,
    .footer-grid,
    .stats-grid,
    .home-section-grid,
    .card-grid,
    .two-column,
    .reference-grid,
    .timeline,
    .doclink-grid,
    .kpi-strip,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 22px 0 18px;
    }

    .visual-card,
    .entry-panel,
    .card,
    .map-card,
    .doc-card,
    .timeline-card,
    .reference-card,
    .portal-card,
    .stat-card,
    .mini-item,
    .process-box,
    .quote-box,
    .hero-panel,
    .banner {
        padding: 24px;
        border-radius: 28px;
    }

    .home-brandline {
        align-items: flex-start;
    }

    .home-brandline .logo-frame {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .btn,
    .page-nav .btn {
        width: 100%;
    }

    .pdf-frame {
        height: 560px;
        border-radius: 22px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .animated-bg,
    .particles,
    .topbar {
        display: none !important;
    }

    main {
        width: auto;
        max-width: none;
        min-height: auto;
        margin: 0;
        padding: 0;
        background: #fff;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .container {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animated-bg::before,
    .animated-bg::after,
    .particle,
    .reveal,
    .home-brandline,
    .eyebrow,
    h1,
    .hero h1,
    .lead,
    .hero p.lead,
    .hero-tags,
    .visual-card {
        animation: none !important;
        transition: none !important;
    }
}
