/* Abu Lucas - Premium Design System */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

/* CSS Variables */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent: #0a0a0a;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--black);
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--gray-600);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--black);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-consultation {
    background-color: var(--black);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-consultation:hover::before {
    left: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

/* Main */
main {
    padding-top: 80px;
}

/* Hero Section - Premium */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 3rem;
    overflow: hidden;
    background: var(--white);
}

/* Interactive Canvas Background */
#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 700px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gray-400);
}

.hero h1 {
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Large Hero Title */
.hero-title-large {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-title-large em {
    font-style: normal;
    color: var(--black);
    -webkit-text-fill-color: var(--black);
    position: relative;
}

.hero-title-large em::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--black);
    opacity: 0.2;
}

/* Centered Hero Layout */
.hero-content-full {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text-center {
    max-width: 900px;
    text-align: center;
}

.hero-text-center .hero-label {
    justify-content: center;
}

.hero-text-center .hero-label::before {
    display: none;
}

.hero-subtitle-center {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.7;
}

/* IT ↔ MARKETING Bridge Visualization */
.bridge-visual {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bridge-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.world-side {
    flex: 1;
    padding: 2.5rem;
}

.world-it {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
    border-right: 1px solid var(--gray-100);
}

.world-marketing {
    background: linear-gradient(135deg, #fdf4ff 0%, #fff 100%);
    border-left: 1px solid var(--gray-100);
}

.world-header {
    margin-bottom: 2rem;
}

.world-label {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--gray-500);
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: inline-block;
}

.world-elements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.world-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.world-item:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}

.world-item svg {
    flex-shrink: 0;
    color: var(--gray-600);
}

.world-item span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-700);
}

.world-caption {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    text-align: center;
}

/* The Bridge Center */
.bridge-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--black);
    position: relative;
    min-width: 100px;
}

.bridge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bridgeGlow 3s ease-in-out infinite;
}

@keyframes bridgeGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.bridge-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.bridge-lines {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.bridge-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    background: rgba(255, 255, 255, 0.3);
}

.bridge-line.left {
    left: 0;
    animation: flowLeft 1.5s linear infinite;
}

.bridge-line.right {
    right: 0;
    animation: flowRight 1.5s linear infinite;
}

@keyframes flowLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes flowRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.bridge-text {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--white);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .bridge-container {
        flex-direction: column;
    }

    .world-it {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
    }

    .world-marketing {
        border-left: none;
        border-top: 1px solid var(--gray-100);
    }

    .bridge-center {
        flex-direction: row;
        padding: 1.5rem 2rem;
        min-width: auto;
    }

    .bridge-text {
        writing-mode: horizontal-tb;
        margin-left: 1rem;
    }

    .bridge-lines {
        top: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .bridge-line {
        width: 100%;
        height: 30%;
    }

    .bridge-line.left {
        top: 0;
        left: 0;
    }

    .bridge-line.right {
        bottom: 0;
        top: auto;
    }
}

/* Data Flow Visualization */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-flow-diagram {
    position: relative;
    width: 100%;
    height: 100%;
}

.flow-node {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.flow-node:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--black);
}

.flow-node.primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
}

.flow-node.ad-platforms {
    top: 5%;
    left: 10%;
}

.flow-node.api-layer {
    top: 25%;
    left: 35%;
}

.flow-node.data-engine {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
}

.flow-node.crm-system {
    top: 65%;
    left: 35%;
}

.flow-node.revenue {
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
}

/* Technical Marketing Debt Visualization */
.debt-visualization {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.debt-side {
    flex: 1;
    padding: 1.5rem;
    border-radius: 4px;
}

.debt-before {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.debt-after {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.debt-label {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--gray-500);
}

.debt-status {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
}

.status-problem {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.status-solved {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.debt-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric-bad,
.metric-good {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
}

.metric-bad {
    border-left: 3px solid #dc2626;
}

.metric-good {
    border-left: 3px solid #16a34a;
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.metric-bad .metric-icon {
    color: #dc2626;
}

.metric-good .metric-icon {
    color: #16a34a;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    min-width: 60px;
}

.metric-bad .metric-value {
    color: #dc2626;
}

.metric-good .metric-value {
    color: #16a34a;
}

.metric-desc {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

/* System Diagram */
.system-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
}

.sys-node {
    padding: 0.5rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--white);
    border: 1px solid var(--gray-300);
}

.sys-node.warning {
    border-color: #f59e0b;
    color: #f59e0b;
    animation: pulse-warning 2s ease-in-out infinite;
}

.sys-node.error {
    border-color: #dc2626;
    color: #dc2626;
    animation: pulse-error 2s ease-in-out infinite;
}

.sys-node.success {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.05);
}

@keyframes pulse-warning {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-error {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

.sys-connector {
    width: 30px;
    height: 2px;
    position: relative;
}

.broken-line {
    background: repeating-linear-gradient(90deg, #dc2626 0, #dc2626 4px, transparent 4px, transparent 8px);
    animation: broken-pulse 1s ease-in-out infinite;
}

@keyframes broken-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.success-line {
    background: #16a34a;
    position: relative;
}

.success-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-50%);
    animation: data-flow 1s linear infinite;
}

@keyframes data-flow {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.debt-caption {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.5;
}

/* The Bridge */
.debt-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.bridge-arrow {
    width: 50px;
    height: 50px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 0.75rem;
    animation: bridge-pulse 2s ease-in-out infinite;
}

@keyframes bridge-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

.bridge-label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--black);
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* Responsive */
@media (max-width: 1024px) {
    .debt-visualization {
        flex-direction: column;
    }

    .debt-bridge {
        flex-direction: row;
        padding: 1rem 0;
    }

    .bridge-arrow {
        margin-bottom: 0;
        margin-right: 0.75rem;
    }

    .bridge-label {
        writing-mode: horizontal-tb;
    }
}

/* About Section */
.about-section {
    padding: 10rem 3rem;
    background: var(--gray-50);
    position: relative;
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.6s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--gray-300);
    pointer-events: none;
}

.about-content {
    max-width: 600px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gray-400);
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-text strong {
    color: var(--black);
    font-weight: 600;
}

/* Credentials */
.credentials {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.credential {
    flex: 1;
}

.credential-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.credential-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

/* Systems Matrix - Premium */
.matrix-section {
    padding: 10rem 3rem;
    background: var(--white);
}

.matrix-container {
    max-width: 1600px;
    margin: 0 auto;
}

.matrix-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: end;
}

.matrix-header h2 {
    line-height: 1.1;
}

.matrix-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 500px;
}

.systems-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
}

.matrix-category {
    padding: 3rem;
    border-right: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.matrix-category:last-child {
    border-right: none;
}

.matrix-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gray-50);
    transition: height 0.4s ease;
    z-index: -1;
}

.matrix-category:hover::before {
    height: 100%;
}

.matrix-category:hover {
    transform: translateY(-4px);
}

.matrix-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    color: var(--white);
}

.matrix-category h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--black);
}

.matrix-category ul {
    list-style: none;
}

.matrix-category li {
    font-size: 0.9375rem;
    padding: 0.625rem 0;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.matrix-category li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.matrix-category:hover li {
    color: var(--black);
}

.matrix-category:hover li::before {
    background: var(--black);
}

/* Protocol Section - Premium */
.protocol-section {
    padding: 10rem 3rem;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.protocol-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    pointer-events: none;
}

.protocol-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.protocol-header {
    text-align: center;
    margin-bottom: 8rem;
}

.protocol-header .section-label {
    color: var(--gray-500);
}

.protocol-header .section-label::before {
    background: var(--gray-600);
}

.protocol-header h2 {
    color: var(--white);
}

.protocol-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.protocol-item {
    padding: 4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.protocol-item:last-child {
    border-right: none;
}

.protocol-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.protocol-number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.protocol-item:hover .protocol-number {
    color: rgba(255, 255, 255, 0.1);
}

.protocol-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.protocol-content p {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* Infographic Bar */
.protocol-infographic {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.infographic-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.infographic-item::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gray-600);
}

.infographic-item:last-child::after {
    display: none;
}

.infographic-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.infographic-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 4rem 3rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Page Headers - Premium with Micro-Interactions */
.page-header {
    padding: 12rem 3rem 6rem;
    background: var(--gray-50);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Background */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Floating Particles */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03) 0%, transparent 8%),
        radial-gradient(circle at 80% 40%, rgba(0, 0, 0, 0.03) 0%, transparent 6%),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 10%),
        radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 12%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 7%),
        radial-gradient(circle at 10% 60%, rgba(0, 0, 0, 0.02) 0%, transparent 9%);
    animation: particleFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: translateY(5px) scale(0.98);
        opacity: 0.6;
    }
}

/* Gradient Overlay Wave */
.page-header>* {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin-bottom: 1.5rem;
    animation: titleSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    animation: subtitleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes subtitleFadeIn {
    to {
        opacity: 1;
    }
}

/* Article List */
.article-section {
    padding: 6rem 3rem;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
}

.article-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-item:hover {
    padding-left: 1rem;
}

.article-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    transition: color 0.3s ease;
}

.article-item:hover .article-number {
    color: var(--black);
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1rem;
    color: var(--gray-600);
}

/* Case Studies */
.case-section {
    padding: 6rem 3rem;
}

.case-container {
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--gray-50);
    margin-bottom: 4rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.case-study-visual {
    background: var(--black);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-visual h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.case-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-metric-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
}

.case-metric-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-study-content {
    padding: 4rem;
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-section:last-child {
    margin-bottom: 0;
}

.case-study-section h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.case-study-section p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Form */
.form-section {
    padding: 6rem 3rem;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--black);
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--black);
    color: var(--white);
    padding: 1.25rem 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Toolkit */
.toolkit-section {
    padding: 6rem 3rem;
}

.toolkit-container {
    max-width: 1200px;
    margin: 0 auto;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.toolkit-category {
    padding: 3rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.toolkit-category:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.toolkit-category h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--black);
    color: var(--gray-600);
}

.toolkit-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.toolkit-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toolkit-item-name {
    font-weight: 700;
    color: var(--black);
}

.toolkit-item-desc {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Ventures */
.venture-section {
    padding: 6rem 3rem;
}

.venture-container {
    max-width: 1200px;
    margin: 0 auto;
}

.venture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.venture-card {
    background: var(--gray-50);
    overflow: hidden;
    transition: all 0.4s ease;
}

.venture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.venture-header {
    padding: 2rem;
    background: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venture-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
}

.status-sold {
    background-color: var(--white);
    color: var(--black);
}

.status-coming {
    background-color: var(--gray-700);
    color: var(--gray-400);
}

.venture-body {
    padding: 2rem;
}

.venture-section-item {
    margin-bottom: 1.5rem;
}

.venture-section-item:last-child {
    margin-bottom: 0;
}

.venture-section-item h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.venture-section-item p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.venture-specs {
    list-style: none;
}

.venture-specs li {
    padding: 0.375rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.venture-specs li::before {
    content: '→';
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .systems-matrix {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-category {
        border-bottom: 1px solid var(--gray-200);
    }

    .matrix-category:nth-child(2) {
        border-right: none;
    }

    .protocol-list {
        grid-template-columns: 1fr;
    }

    .protocol-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .protocol-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-image img {
        height: 400px;
    }

    .matrix-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-card {
        grid-template-columns: 1fr;
    }

    .toolkit-grid,
    .venture-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Systems Matrix - Interactive Redesign
   ============================================ */

.matrix-section {
    padding: 8rem 3rem;
    background: var(--white);
}

.matrix-container {
    max-width: 1200px;
    margin: 0 auto;
}

.matrix-header-new {
    text-align: center;
    margin-bottom: 4rem;
}

.matrix-header-new h2 {
    margin-bottom: 1rem;
}

.matrix-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.matrix-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Matrix Card */
.matrix-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.matrix-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.matrix-card:hover {
    border-color: var(--black);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* Card Number */
.card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gray-300);
}

.matrix-card:hover .card-number {
    color: var(--black) !important;
}


/* Card Icon */
.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-icon svg {
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.matrix-card:hover .card-icon {
    background: var(--black);
    border-color: var(--black);
}

.matrix-card:hover .card-icon svg {
    color: var(--white);
}

/* Card Title */
.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--black);
}

/* Skill Tags */
.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Card Line (decorative) */
.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.matrix-card:hover .card-line {
    width: 100%;
}

/* Matrix Responsive */
@media (max-width: 900px) {
    .matrix-grid-new {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Protocol / Methodology Section
   ============================================ */

.protocol-section {
    padding: 8rem 3rem;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.protocol-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    user-select: none;
}

.protocol-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.protocol-header {
    text-align: center;
    margin-bottom: 4rem;
}

.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.protocol-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.protocol-number {
    flex-shrink: 0;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--gray-400);
    line-height: 1;
    min-width: 80px;
    transition: color 0.3s ease;
}

.protocol-item:hover .protocol-number {
    color: var(--black);
}


.protocol-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.protocol-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .systems-matrix {
        grid-template-columns: 1fr;
    }

    .matrix-category {
        border-right: none;
    }

    .protocol-infographic {
        flex-direction: column;
        gap: 2rem;
    }

    .infographic-item::after {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .article-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .hero,
    .about-section,
    .matrix-section,
    .protocol-section {
        padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* CRITICAL: Card number visibility override */
.matrix-section .matrix-card .card-number,
.matrix-section .matrix-card:hover .card-number {
    color: #d4d4d4 !important;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0 8rem;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--black);
}

.legal-section p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    margin-bottom: 2rem;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
    font-size: 1.125rem;
}

.legal-section ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.last-updated {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 3rem;
    display: block;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    border: 1px solid var(--gray-200);
    border-radius: 0.25rem;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.lang-switcher:hover {
    background: var(--gray-50);
    border-color: var(--black);
}

/* RTL Support */
html[dir="rtl"] {
    text-align: right;
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-subtitle::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .hero-subtitle {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .hero-stats {
    flex-direction: row-reverse;
}

html[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid var(--gray-200);
}

html[dir="rtl"] .stat-item:last-child {
    border-left: none;
}

html[dir="rtl"] .matrix-category {
    border-right: none;
    border-left: 1px solid var(--gray-200);
}

html[dir="rtl"] .matrix-category:last-child {
    border-left: none;
}

html[dir="rtl"] .article-excerpt {
    border-left: none;
    border-right: 3px solid var(--gray-200);
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .article-excerpt:hover {
    border-right-color: var(--black);
}

html[dir="rtl"] .tech-note {
    border-left: none;
    border-right: 4px solid var(--black);
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .hero-title-large,
html[dir="rtl"] .hero h1 {
    line-height: 1.35;
}

html[dir="rtl"] .hero-title-large span,
html[dir="rtl"] .hero h1 span {
    padding-bottom: 0.25em; /* Preempts gradient clipping */
    margin-bottom: -0.25em;
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        flex-direction: column;
    }
}