/* ==========================================================================
   NUVACODE UNIFIED THEME - COMPLETE DESIGN SYSTEM FOR ALL PAGES
   Brand Colors: Teal (#00b594), Royal Blue (#0284c7), Deep Slate Navy (#081a2f)
   ========================================================================== */

:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-card: #ffffff;
    --surface-elevated: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --primary: #00b594;
    --primary-strong: #009e82;
    --primary-active: #00876f;
    --primary-light: #e6f7f4;
    --primary-glow: rgba(0, 181, 148, 0.32);
    --cyan: #06b6d4;
    --accent: #00b594;
    --blue-accent: #0284c7;
    --blue-deep: #1d4ed8;
    --navy: #081a2f;
    --navy-deep: #061424;
    --navy-surface: #0d2440;
    --footer: #061424;
    --radius: 14px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 181, 148, 0.14);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #081a2f;
    --surface: #0d223a;
    --surface-soft: #0a1b2e;
    --surface-card: #0f2742;
    --surface-elevated: #132e4d;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e3552;
    --line-soft: #142840;
    --primary: #00c49f;
    --primary-strong: #00b594;
    --primary-active: #009e82;
    --primary-light: rgba(0, 181, 148, 0.16);
    --primary-glow: rgba(0, 196, 159, 0.35);
    --cyan: #38bdf8;
    --accent: #00c49f;
    --blue-accent: #38bdf8;
    --blue-deep: #60a5fa;
    --navy: #05101f;
    --navy-deep: #040d18;
    --navy-surface: #0a1c32;
    --footer: #040d18;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.55);
}

html {
    scroll-padding-top: 88px;
    background-color: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Tajawal", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* ==========================================================================
   BRAND & LOGO MARK
   ========================================================================== */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.92;
}

.brand-mark,
.brand-mark--nuvacode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    border-radius: 0;
}

.brand-logo-img,
.brand-mark img {
    width: 100%;
    height: auto;
    max-height: 34px;
    object-fit: contain;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 19px;
    font-weight: 750;
    color: var(--text);
    letter-spacing: -0.4px;
}

.brand-copy small {
    font-size: 11px;
    font-weight: 550;
    color: var(--muted);
    letter-spacing: 0.2px;
}

html[lang="ar"] .brand-copy small {
    letter-spacing: 0;
    font-size: 11.5px;
}

.brand-light .brand-copy strong {
    color: #ffffff !important;
}

.brand-light .brand-copy small {
    color: #94a3b8 !important;
}

/* ==========================================================================
   HEADER & NAVBAR (Crisp white navbar with teal CTA)
   ========================================================================== */

.site-header,
.site-header--premium {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--line-soft) !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 30px);
}

.main-nav a:not(.nav-contact) {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 550;
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a:not(.nav-contact):hover,
.main-nav a.is-current:not(.nav-contact) {
    color: var(--primary);
}

.main-nav a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a.is-current:not(.nav-contact)::after {
    transform: scaleX(1);
}

/* Request a Quote CTA button */
.main-nav .nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 22px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.22s ease;
}

.main-nav .nav-contact:hover {
    background: var(--primary-strong) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 181, 148, 0.45);
    transform: translateY(-1px);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.theme-toggle,
.theme-toggle:hover,
.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   BUTTONS (Pill rounded style)
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
}

.button-primary {
    border: none;
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.button-primary:hover {
    background: var(--primary-strong) !important;
    box-shadow: 0 10px 28px rgba(0, 181, 148, 0.42);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.button-outline {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.button-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   HOME HERO SECTION (Deep navy slate background, watermark ribbons, centered)
   ========================================================================== */

.home-hero,
.home-hero--nuvacode,
.hero-section--saas,
.hero-section--saas.home-hero,
.home-hero--cinematic {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 28%, #0e2948 0%, #081a2f 70%, #061527 100%), #081a2f !important;
    color: #ffffff !important;
    padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px) !important;
}

.home-hero::before,
.home-hero::after,
.home-hero--nuvacode::before,
.home-hero--nuvacode::after,
.hero-section--saas.home-hero::before,
.hero-section--saas.home-hero::after,
.home-hero--cinematic::before,
.home-hero--cinematic::after {
    display: none !important;
}

.hero-watermark-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-watermark-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin-inline: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-hero .hero-copy {
    width: 100%;
    max-width: 760px;
    margin: 0;
    text-align: left;
}

.home-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    background: rgba(0, 181, 148, 0.12) !important;
    border: 1px solid rgba(0, 181, 148, 0.3) !important;
    color: #00c49f !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.home-hero .hero-copy h1,
.hero-section--saas .hero-copy h1 {
    margin: 0 0 20px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.2px;
    text-wrap: balance;
}

.hero-title-main {
    display: block;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.hero-title-accent {
    display: block;
    margin-top: 6px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 40%, #cbf3eb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.home-hero .hero-lead,
.hero-section--saas .hero-lead {
    max-width: 680px;
    margin: 0 0 36px;
    color: #94a3b8 !important;
    font-size: clamp(15px, 1.85vw, 18px);
    line-height: 1.85;
}

.home-hero .hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.button-hero {
    min-height: 48px;
    padding: 13px 36px;
    font-size: 14.5px;
    background: var(--primary) !important;
    color: #ffffff !important;
}

.button-hero-outline {
    min-height: 48px;
    padding: 13px 28px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.button-hero-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 181, 148, 0.15);
    color: #00c49f;
}

.hero-bottom-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    letter-spacing: 2px;
}

.hero-bottom-line i {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SERVICES SECTION (Crisp white background, 4 clean cards, centered)
   ========================================================================== */

.section {
    padding-block: clamp(70px, 8vw, 104px);
}

.section-services,
.section-white {
    background-color: var(--surface) !important;
}

.section-soft {
    background-color: var(--surface-soft);
}

.section-heading {
    margin-bottom: 44px;
}

.section-heading--centered {
    display: block;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.section-heading--centered > p {
    max-width: 560px;
    margin-inline: auto;
    margin-top: 10px;
}

.section-heading h2 {
    color: var(--text);
    font-size: clamp(30px, 3.8vw, 42px);
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin: 8px 0 0;
}

.section-heading > p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
    margin-top: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    gap: 24px;
}

.home-services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 22px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 181, 148, 0.38);
    box-shadow: 0 16px 36px rgba(0, 181, 148, 0.12);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: rgba(0, 181, 148, 0.08);
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.22s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    background: rgba(0, 181, 148, 0.14);
}

.service-svg-icon {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

.service-glyph {
    font-size: 24px;
    color: var(--primary);
}

.service-card h3 {
    color: var(--text);
    font-size: 17.5px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.service-card .text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-card .text-link:hover {
    color: var(--primary-strong);
    transform: translateX(3px);
}

html[lang="ar"] .service-card .text-link:hover {
    transform: translateX(-3px);
}

.section-footer--centered {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.button-services-more {
    padding: 13px 38px;
    font-size: 14px;
}

/* ==========================================================================
   SERVICES INDEX PAGE (/services)
   ========================================================================== */

.service-approach-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 36px;
}

.service-approach-heading h2 {
    color: var(--text);
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 750;
    margin: 6px 0 0;
}

.service-approach-heading p {
    color: var(--muted);
    font-size: 14px;
    max-width: 520px;
    line-height: 1.8;
}

.service-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.service-scope-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.24s ease;
}

.service-scope-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 181, 148, 0.4);
    box-shadow: var(--shadow-md);
}

.service-scope-card > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 181, 148, 0.09);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
}

.service-scope-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.service-scope-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}

.service-scope-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 18px;
    flex: 1 1 auto;
}

.service-scope-card > i:last-child {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    font-style: normal;
    color: rgba(0, 181, 148, 0.2);
    font-size: 18px;
    font-weight: 800;
}

.service-scope-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    border-radius: 18px;
    background: radial-gradient(circle at 85% 20%, rgba(0, 181, 148, 0.15), transparent),
                linear-gradient(135deg, #0d2540 0%, #081a2f 100%);
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(8, 26, 47, 0.18);
}

.service-scope-cta span {
    color: #00c49f;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-scope-cta h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 750;
    margin: 6px 0 6px;
}

.service-scope-cta p {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0;
}

/* ==========================================================================
   DETAIL PAGES (Service Detail, Project Detail, Blog Detail)
   ========================================================================== */

.page-hero--detail {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 80% 20%, rgba(0, 181, 148, 0.14), transparent 30rem),
                linear-gradient(125deg, #0d2540 0%, #081a2f 55%, #061424 100%) !important;
    color: #ffffff !important;
    padding: clamp(48px, 6vw, 78px) 0;
}

.page-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00c49f !important;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff !important;
}

.page-hero-copy h1 {
    color: #ffffff !important;
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 8px 0 12px;
}

.detail-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(0, 181, 148, 0.12);
    border: 1px solid rgba(0, 181, 148, 0.3);
    color: #00c49f;
    font-size: 12px;
    font-weight: 600;
}

.detail-cover--hero {
    border-radius: 18px;
    overflow: hidden;
    background: #0d2440;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.detail-cover--hero img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: clamp(32px, 5vw, 70px);
}

.detail-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 15px;
    line-height: 1.95;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-content h2,
.detail-content h3 {
    color: var(--text);
    font-weight: 750;
    margin: 32px 0 14px;
}

.article-aside {
    position: sticky;
    top: 96px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.article-aside h2 {
    font-size: 20px;
    font-weight: 750;
    color: var(--text);
    margin: 12px 0 8px;
}

.article-aside p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.article-aside .button {
    width: 100%;
}

/* ==========================================================================
   PROJECTS SECTION & CATALOG (/projects)
   ========================================================================== */

.catalog-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.catalog-heading-mark {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.catalog-heading-label {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-grid--projects {
    grid-template-columns: repeat(12, 1fr);
}

.catalog-grid--projects > .project-card {
    grid-column: span 4;
}

.catalog-grid--projects > .project-card:only-child {
    grid-column: 1 / -1;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 181, 148, 0.38);
    box-shadow: var(--shadow-md);
}

.project-image {
    aspect-ratio: 16 / 10;
    background: #0d2238;
    overflow: hidden;
    display: block;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-content {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.project-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 181, 148, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.project-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-content h3 a:hover {
    color: var(--primary);
}

.project-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech-list span {
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.project-card .text-link {
    margin-top: auto;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.project-gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.project-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   ABOUT SECTION WITH CIRCULAR BADGE
   ========================================================================== */

.about-section {
    background: var(--surface);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 72px);
}

.about-art {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 4vw, 50px);
    border-radius: 20px;
    background: radial-gradient(circle at center, #0e2948 0%, #081a2f 100%);
    box-shadow: 0 14px 40px rgba(8, 26, 47, 0.2);
}

.about-badge-wrap {
    width: min(100%, 320px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-badge-img {
    width: 100%;
    height: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.about-copy .eyebrow {
    margin-bottom: 12px;
}

.about-copy h2 {
    color: var(--text);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.about-copy > p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
    margin: 0 0 28px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-points > div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.about-points > div span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 181, 148, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.about-points > div strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

/* ==========================================================================
   BLOG / INSIGHTS SECTION & CATALOG (/blog)
   ========================================================================== */

.catalog-grid--blog {
    grid-template-columns: repeat(12, 1fr);
}

.catalog-grid--blog > .blog-card {
    grid-column: span 4;
}

.catalog-grid--blog > .blog-card:only-child {
    grid-column: 1 / -1;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 181, 148, 0.38);
    box-shadow: var(--shadow-md);
}

.blog-image {
    aspect-ratio: 16 / 10;
    background: #0d2238;
    overflow: hidden;
    display: block;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.04);
}

.blog-content {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.post-date {
    display: inline-flex;
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.blog-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.blog-card .text-link {
    margin-top: auto;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
}

/* ==========================================================================
   CONTACT PAGE (/contact)
   ========================================================================== */

.contact-scene {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 80% 20%, rgba(0, 181, 148, 0.15), transparent 30rem),
                linear-gradient(125deg, #0d2540 0%, #081a2f 55%, #061424 100%) !important;
    color: #ffffff !important;
    padding: clamp(54px, 7vw, 90px) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(36px, 6vw, 76px);
}

.contact-intro .eyebrow {
    color: #00c49f;
    margin-bottom: 10px;
}

.contact-kicker {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 8px;
}

.contact-intro h1 {
    color: #ffffff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 16px;
}

.contact-intro-copy {
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 32px;
}

.contact-channel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-channel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.22s ease;
}

.contact-channel-item:hover {
    background: rgba(0, 181, 148, 0.12);
    border-color: rgba(0, 181, 148, 0.4);
    transform: translateY(-2px);
}

.contact-channel-item svg {
    width: 24px;
    height: 24px;
    fill: #00c49f;
    flex-shrink: 0;
}

.contact-channel-item small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}

.contact-channel-item strong {
    font-size: 14.5px;
    color: #ffffff;
}

.contact-channel-item i {
    margin-inline-start: auto;
    font-style: normal;
    color: #00c49f;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(28px, 4vw, 42px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.contact-form-heading h2 {
    color: var(--text);
    font-size: 22px;
    font-weight: 750;
    margin: 6px 0 0;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .button-primary {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
    margin-top: 8px;
}

/* ==========================================================================
   CALL TO ACTION & FOOTER
   ========================================================================== */

.cta-section {
    background: var(--navy);
    padding-block: 0;
}

.cta-inner {
    padding-block: clamp(40px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-inner .eyebrow {
    color: #00c49f;
}

.cta-inner h2 {
    color: #ffffff;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 750;
    letter-spacing: -0.8px;
    margin: 6px 0 8px;
}

.cta-inner p {
    color: #94a3b8;
    font-size: 14.5px;
    max-width: 620px;
    margin: 0;
}

.cta-inner .button-outline {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 12px 28px;
    white-space: nowrap;
}

.cta-inner .button-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 181, 148, 0.15);
    color: #00c49f;
}

.site-footer {
    background: var(--footer);
    color: #cbd5e1;
    padding: 56px 0 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.8;
    margin: 16px 0 0;
    max-width: 320px;
}

.footer-links h2,
.footer-cta h2 {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-direct-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-contact-item:hover {
    background: rgba(0, 181, 148, 0.1);
    border-color: rgba(0, 181, 148, 0.35);
    color: #ffffff;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.footer-contact-item small {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.footer-contact-item strong {
    font-size: 13px;
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.footer-social-links a {
    color: #94a3b8;
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    color: #64748b;
    font-size: 12px;
}

/* ==========================================================================
   EDITORIAL HEROES (Services, Projects, Blog)
   ========================================================================== */

.editorial-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 80% 20%, rgba(0, 181, 148, 0.12), transparent 30rem),
                linear-gradient(125deg, #0d2540 0%, #081a2f 55%, #061424 100%) !important;
    color: #ffffff !important;
    padding-block: clamp(40px, 6vw, 70px) !important;
}

.editorial-hero-top,
.editorial-hero-foot {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editorial-hero-top > span:first-child,
.editorial-hero-foot > span:last-child {
    color: #00c49f;
    font-weight: 700;
}

.editorial-hero-main {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding-block: 28px;
}

.editorial-hero .eyebrow {
    color: #00c49f;
}

.editorial-hero-title h1 {
    color: #ffffff !important;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin: 10px 0 0;
}

.editorial-hero-aside-mark {
    color: #00c49f;
    font-size: 18px;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.editorial-hero-aside p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.editorial-hero-foot-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 16px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

.not-found-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 0;
}

.not-found-card {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.not-found-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 84px;
    font-weight: 850;
    color: rgba(0, 181, 148, 0.15);
    line-height: 1;
    margin-bottom: 20px;
}

.not-found-question {
    color: var(--primary);
}

.not-found-eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.not-found-card h1 {
    font-size: 30px;
    font-weight: 750;
    color: var(--text);
    margin: 8px 0 12px;
}

.not-found-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 99;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #00b594;
    box-shadow: 0 6px 24px rgba(0, 181, 148, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.05);
    background: #009e82;
    box-shadow: 0 10px 30px rgba(0, 181, 148, 0.6);
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* ==========================================================================
   PROJECT & BLOG COVER FALLBACK ART (Navy & Teal Modern Gradients)
   ========================================================================== */

.project-cover-art,
.blog-cover-art {
    width: 100%;
    height: 100%;
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 80% 20%, rgba(0, 181, 148, 0.15), transparent),
                linear-gradient(135deg, #0d2238 0%, #081a2f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.project-cover-art--1,
.blog-cover-art--1 {
    background: radial-gradient(circle at 80% 20%, rgba(0, 181, 148, 0.25), transparent 70%),
                linear-gradient(135deg, #0d2238 0%, #081a2f 100%);
}

.project-cover-art--2,
.blog-cover-art--2 {
    background: radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.25), transparent 70%),
                linear-gradient(135deg, #081a2f 0%, #061324 100%);
}

.project-cover-art--3,
.blog-cover-art--3 {
    background: radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2), transparent 70%),
                linear-gradient(135deg, #0f2742 0%, #081a2f 100%);
}

.project-cover-kicker,
.blog-cover-kicker {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00c49f;
}

.project-cover-index,
.blog-cover-index {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    font-size: 32px;
    font-weight: 850;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.project-cover-title,
.blog-cover-title {
    font-size: 20px;
    font-weight: 750;
    color: #ffffff;
    line-height: 1.35;
    max-width: 90%;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 960px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .delivery-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-grid--projects,
    .catalog-grid--blog,
    .service-scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-grid--projects > .project-card,
    .catalog-grid--blog > .blog-card {
        grid-column: span 1;
    }
    .about-layout,
    .contact-layout,
    .page-hero-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .editorial-hero-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    .main-nav .nav-contact {
        width: 100%;
        text-align: center;
    }
    .cta-inner,
    .service-approach-heading,
    .service-scope-cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }
    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .home-services-grid,
    .delivery-steps,
    .catalog-grid--projects,
    .catalog-grid--blog,
    .service-scope-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid--projects > .project-card,
    .catalog-grid--blog > .blog-card {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
