:root {
    --navy: #061a2d;
    --navy-2: #0b2540;
    --navy-3: #102f4d;
    --teal: #12b8b6;
    --teal-soft: #7ee4df;
    --gold: #d8af5a;
    --gold-2: #f1d28a;
    --white: #ffffff;
    --muted: #b9c8d6;
    --card: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .14);
    --shadow: 0 24px 80px rgba(0, 0, 0, .30);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Cairo", "Tahoma", "Arial", sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.75;
}
body.ltr { font-family: "Inter", "Arial", sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 26, 45, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.main-nav a:hover { color: var(--white); }
.lang-switch { color: var(--teal-soft) !important; font-weight: 800; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 0; font-size: 28px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #082033;
    font-weight: 800;
    box-shadow: 0 12px 36px rgba(216,175,90,.22);
}
.btn.secondary {
    background: rgba(255,255,255,.06);
    color: var(--white);
    border-color: rgba(126,228,223,.35);
    box-shadow: none;
}
.btn-small { padding: 9px 16px; font-size: 13px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 76px;
    background:
      radial-gradient(circle at 18% 25%, rgba(18,184,182,.26), transparent 32%),
      radial-gradient(circle at 82% 10%, rgba(216,175,90,.17), transparent 26%),
      linear-gradient(135deg, #061a2d 0%, #08243d 48%, #071827 100%);
}
.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 70px 70px;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 54px;
}
.hero h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.18;
    margin: 0 0 22px;
    letter-spacing: -1px;
}
.hero .accent { color: var(--teal-soft); }
.lead {
    font-size: 18px;
    color: #d1dce7;
    max-width: 650px;
    margin: 0 0 30px;
}
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.service-strip {
    margin-top: 26px;
    color: var(--teal-soft);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .2px;
}
.visual-panel {
    position: relative;
    min-height: 420px;
}
.orb {
    position: absolute;
    inset: 50px 60px;
    border-radius: 50%;
    border: 1px solid rgba(126,228,223,.22);
    box-shadow: inset 0 0 80px rgba(18,184,182,.10), 0 0 70px rgba(18,184,182,.14);
}
.orb:before, .orb:after {
    content: "";
    position: absolute;
    inset: 35px;
    border-radius: 50%;
    border: 1px dashed rgba(216,175,90,.28);
}
.orb:after { inset: 82px; border-color: rgba(126,228,223,.22); }
.float-card {
    position: absolute;
    padding: 16px 18px;
    min-width: 190px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--white); }
.float-card span { color: var(--muted); font-size: 13px; }
.float-card:nth-child(2){ top: 30px; right: 20px; }
.float-card:nth-child(3){ top: 150px; left: 10px; animation-delay: .5s; }
.float-card:nth-child(4){ right: 0; bottom: 105px; animation-delay: 1s; }
.float-card:nth-child(5){ left: 80px; bottom: 30px; animation-delay: 1.5s; }

@keyframes floaty {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.section { padding: 88px 0; position: relative; overflow: hidden; }
.section.alt { background: linear-gradient(135deg, #081d31, #092c42); }
.section.light { background: #eef5f7; color: #082033; }
.section-title { text-align: center; margin-bottom: 42px; }
.eyebrow { color: var(--gold); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; margin: 8px 0 12px; }
.section-title p { color: var(--muted); max-width: 760px; margin: auto; }
.light .section-title p { color: #496174; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 16px 50px rgba(0,0,0,.18);
    transition: .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(126,228,223,.35); }
.light .card {
    background: #fff;
    color: #082033;
    border-color: rgba(8,32,51,.10);
}
.icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(18,184,182,.12);
    color: var(--teal-soft);
    border: 1px solid rgba(126,228,223,.22);
    margin-bottom: 18px;
    font-weight: 900;
}
.card h3 { margin: 0 0 10px; font-size: 21px; }
.card p { margin: 0; color: #c7d4df; }
.light .card p { color: #536b7b; }

.problem-card { border-inline-start: 3px solid var(--gold); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-featured { grid-column: span 2; background: linear-gradient(135deg, rgba(18,184,182,.16), rgba(255,255,255,.07)); }
.process-line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    position: relative;
}
.step { text-align: center; }
.step .number {
    margin: 0 auto 14px;
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(18,184,182,.13);
    border: 1px solid rgba(216,175,90,.55);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-2);
    font-weight: 900;
}
.industries-grid { grid-template-columns: repeat(5, 1fr); }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.article-featured { grid-column: span 2; }

.contact-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: start;
}
.form-card input, .form-card select, .form-card textarea {
    width: 100%;
    border: 1px solid rgba(126,228,223,.22);
    background: rgba(255,255,255,.06);
    color: var(--white);
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 13px;
    outline: none;
    font-family: inherit;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input::placeholder, .form-card textarea::placeholder { color: #9eb0bf; }
.form-note { color: var(--muted); font-size: 13px; }

.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(126,228,223,.25);
    background: rgba(18,184,182,.10);
}

.site-footer {
    background: #041320;
    padding: 70px 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 58px; width: auto; margin-bottom: 18px; }
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a { display: block; margin: 8px 0; }
.site-footer h4 { margin: 0 0 16px; color: var(--white); }
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px;
    text-align: center;
    color: var(--muted);
}

.page-hero {
    padding: 82px 0 52px;
    background: linear-gradient(135deg, #061a2d, #0b2d47);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-hero h1 { font-size: clamp(36px, 4vw, 58px); margin: 0 0 12px; }
.page-hero p { color: var(--muted); max-width: 760px; }

.detail-content {
    max-width: 920px;
    margin: auto;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
}

@media (max-width: 980px) {
    .hero-grid, .contact-wrap { grid-template-columns: 1fr; }
    .visual-panel { min-height: 330px; }
    .grid-3, .grid-4, .services-grid, .why-grid, .industries-grid, .process-line, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-featured, .article-featured { grid-column: span 1; }
    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #061a2d;
        padding: 20px;
        border-radius: 18px;
        border: 1px solid var(--border);
    }
    .main-nav.active { display: flex; }
    .nav-toggle { display: block; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 26px, 1160px); }
    .hero { padding: 62px 0 54px; }
    .grid-3, .grid-4, .services-grid, .why-grid, .industries-grid, .process-line, .footer-grid { grid-template-columns: 1fr; }
    .float-card { position: relative; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; margin: 12px 0; }
    .orb { display: none; }
    .visual-panel { min-height: auto; }
    .actions .btn { width: 100%; }
}


/* V2 visual fixes */
.light {
    background:
      radial-gradient(circle at 18% 20%, rgba(18,184,182,.10), transparent 30%),
      linear-gradient(135deg, #eaf3f5 0%, #f7fbfc 100%);
}

.light .btn.secondary {
    background: rgba(18,184,182,.10);
    color: #082033;
    border-color: rgba(18,184,182,.35);
    box-shadow: none;
}

.light .btn.secondary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    border-color: transparent;
}

.light .card {
    box-shadow: 0 24px 70px rgba(8,32,51,.13);
}

.light .card h3 {
    color: #071b2d;
}

.light .card .btn {
    color: #082033;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #071b2d;
}

.article-featured img {
    max-height: 360px;
}

.site-header .brand img {
    max-height: 58px;
    opacity: 1;
}

.form-card .btn,
.card .btn {
    min-width: 132px;
}

body.rtl .main-nav {
    direction: rtl;
}

body.ltr .main-nav {
    direction: ltr;
}

@media (max-width: 620px) {
    .card img {
        aspect-ratio: 16 / 10;
    }
}
