:root {
    --brand-blue: #005f86;
    --brand-green: #1a9956;
    --brand-orange: #f08a00;
    --text: #0f172a;
    --muted: #475569;
    --bg-1: #f2f2f2;
    --bg-2: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-brd: rgba(255, 255, 255, 0.45);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f2f2f2 0%, #e8f4f8 50%, #f0f8ff 100%);
    min-height: 100vh;
    color: #333;
    font-family: "Noto Sans Arabic","Segoe UI",Tahoma,Arial,system-ui,sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 95, 134, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 153, 86, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(240, 138, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

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

.container {
    width: min(1200px,94vw);
    margin-inline: auto;
}

/* Glass */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
              0 4px 16px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
              0 6px 20px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand-blue), #004a6b);
    color: #fff;
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: 0 4px 15px rgba(0, 95, 134, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #004a6b, var(--brand-blue));
    box-shadow: 0 6px 20px rgba(0, 95, 134, 0.4);
    transform: translateY(-2px);
}

.btn.light {
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
    color: var(--brand-blue);
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn.light:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.85));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

section {
    padding: 64px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-head h3 {
    margin: 0;
    font-size: 28px;
    color: var(--brand-blue);
}

.section-desc {
    color: var(--muted);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 40px;
    width: auto;
}

.menu {
    display: flex;
    gap: 22px;
    align-items: center;
}

.menu a {
    color: var(--text);
    font-weight: 700;
    opacity: .9;
}

.menu a:hover {
    opacity: 1;
    color: var(--brand-blue);
}

.cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
    padding: 40px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(0, 95, 134, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(26, 153, 86, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-green), #148a4a);
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 15px rgba(26, 153, 86, 0.3);
}

h2.hero-title {
    font-size: 44px;
    line-height: 1.2;
    margin: 16px 0 12px;
    color: var(--brand-blue);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-card {
    padding: 18px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(0, 95, 134, 0.2);
    color: var(--brand-blue);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: var(--brand-blue);
}

.metric p {
    margin: 0;
    color: var(--muted);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.card {
    padding: 18px;
    color: var(--text);
}

.card h4 {
    margin: 10px 0 8px 0;
    color: var(--brand-blue);
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(26, 153, 86, 0.2);
    color: var(--brand-green);
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(26, 153, 86, 0.3);
}

/* Solutions */
.solutions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.solution {
    padding: 18px;
    color: var(--text);
}

.solution h4 {
    margin: 8px 0;
    color: var(--brand-blue);
}

.solution ul {
    margin: 10px 0 0 0;
    padding: 0 18px;
    color: var(--muted);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.quote {
    padding: 18px;
    color: var(--text);
}

.quote p {
    margin: 0 0 12px 0;
    color: var(--muted);
}

/* CTA band */
.cta-band {
    padding: 28px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--brand-orange);
    color: #fff;
}

.cta-band h3 {
    color: #fff;
}

.cta-band p {
    color: #fff;
}

.cta-band .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 30px 0 50px;
    color: var(--muted);
    background: var(--bg-2);
}

.foot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
}

.foot h5 {
    margin: 0 0 10px 0;
    color: var(--brand-blue);
}

.foot a {
    color: var(--muted);
}

.foot a:hover {
    color: var(--brand-blue);
}

.copy {
    margin-top: 16px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 980px){
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .solutions {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials {
        grid-template-columns: 1fr 1fr;
    }

    .foot {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px){
    h2.hero-title {
        font-size: 32px;
    }

    .cards,
    .solutions,
    .testimonials {
        grid-template-columns: 1fr;
    }

    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* Fallback when backdrop-filter is not supported */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
    body {
        background: #f7f9fc;
        color: #0f172a;
    }

    .glass {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(2,6,23,.08);
    }

    .menu a {
        color: #0f172a;
    }

    .section-head h3 {
        color: #0f172a;
    }

    .section-desc,
    .hero-sub,
    footer {
        color: #475569;
    }
}


/* Accessibility */
.skip-link{
    position:absolute;
    top:-50px;
    right:16px;
    padding:10px 14px;
    background:#0b1220;
    color:#fff;
    border-radius:12px;
    z-index:9999;
    transition:top .2s ease;
}
.skip-link:focus{ top:16px; outline:3px solid rgba(26,153,86,.35); }

.hamburger{
    background: transparent;
    border: 0;
    line-height: 1;
}

/* Mobile menu open state */
@media (max-width: 640px){
    .menu.open{
        display:flex;
        flex-direction:column;
        gap: 10px;
        position:absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255,255,255,.85);
        border: 1px solid rgba(255,255,255,.55);
        box-shadow: 0 18px 45px rgba(2,6,23,.16);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .menu.open a{ padding: 10px 12px; border-radius: 12px; }
    .menu.open a:hover{ background: rgba(0,95,134,.08); }
}
