/* ==========================================================================
   Ali Elbaz CFO Portfolio - Style System (Premium Vanilla CSS)
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    /* Color Palette - Sophisticated Slate/Deep Teal (No Cheap Gold) */
    --bg-base: #070a13;
    --bg-surface: #0f1524;
    --bg-surface-elevated: #161e31;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accent & Brand Colors (Financial Credibility) */
    --accent: #8f94fb; /* Refined Indigo/Blue */
    --accent-glow: rgba(143, 148, 251, 0.15);
    --accent-gradient: linear-gradient(to right, #8f94fb 0%, #4e54c8 100%);
    --accent-gradient-hover: linear-gradient(to right, #a5a9ff 0%, #6369d8 100%);
    
    /* Status & Utility Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    
    /* Fonts */
    --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ar: 'Almarai', -apple-system, sans-serif;
    
    /* Transitions & Physics */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --glow-effect: 0 0 30px rgba(143, 148, 251, 0.2);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

/* Font Assignments based on Language */
html[lang="en"] {
    font-family: var(--font-en);
}

html[lang="ar"] {
    font-family: var(--font-ar);
}

/* Language Visibility Rules */
html[lang="en"] [data-lang="ar"] {
    display: none !important;
}

html[lang="ar"] [data-lang="en"] {
    display: none !important;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Ambient Background Glow */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    mix-blend-mode: screen;
}

.sphere-1 {
    top: -10%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.sphere-2 {
    bottom: 10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #4e54c8 0%, transparent 70%);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Layout Utilities */
.main-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-spring);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(78, 84, 200, 0.25);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(78, 84, 200, 0.4), var(--glow-effect);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 10, 19, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

html[lang="ar"] .logo-sub {
    margin-left: 0;
    margin-right: 6px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav-contact {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-nav-contact:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: rotate(15deg) scale(1.05);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    min-height: calc(100vh - 140px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(143, 148, 251, 0.08);
    border: 1px solid rgba(143, 148, 251, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

.name-text {
    display: block;
    letter-spacing: -0.03em;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Portrait Card Grid layout */
.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portrait-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.portrait-card:hover {
    border-color: rgba(143, 148, 251, 0.3);
    transform: translateY(-5px);
}

.portrait-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 60%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.portrait-card:hover .portrait-glow {
    opacity: 0.15;
}

.portrait-image-wrapper {
    width: 100%;
    aspect-ratio: 10 / 12;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-surface-elevated);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition-smooth);
    filter: saturate(0.9) contrast(1.05);
}

.portrait-card:hover .portrait-img {
    transform: scale(1.03);
}

.portrait-info {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portrait-info .info-item:last-child {
    text-align: right;
}

html[lang="ar"] .portrait-info .info-item:last-child {
    text-align: left;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Sections Global Styling */
section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Financial Impact Dashboard */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 380px;
}

.metric-card:hover {
    border-color: rgba(143, 148, 251, 0.35);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--accent-glow);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.m-icon {
    width: 20px;
    height: 20px;
}

.trend-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.trend-indicator.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.trend-indicator.solid {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.trend-indicator.down {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.metric-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.metric-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: auto;
}

.metric-chart {
    width: 100%;
    height: 60px;
    margin-top: 20px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

/* Active CFO Appointment Focus */
.cfo-section {
    background: linear-gradient(180deg, rgba(15, 22, 38, 0.4) 0%, transparent 100%);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    padding: 60px;
}

.cfo-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.cfo-meta-panel {
    display: flex;
    flex-direction: column;
}

.cfo-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.cfo-role-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cfo-org {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.org-name {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.org-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.cfo-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

html[lang="ar"] .cfo-quote {
    border-left: none;
    border-right: 3px solid var(--accent);
    padding-left: 0;
    padding-right: 20px;
}

.cfo-details-panel {
    display: flex;
    flex-direction: column;
}

.details-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cfo-duties {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cfo-duties li {
    display: flex;
    gap: 20px;
    align-items: start;
}

.duty-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(143, 148, 251, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(143, 148, 251, 0.15);
}

.duty-txt strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.duty-txt p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Strategic Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-smooth);
}

.skill-card:hover {
    border-color: rgba(143, 148, 251, 0.3);
    box-shadow: var(--shadow-md);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.skill-icon-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(143, 148, 251, 0.06);
    border: 1px solid rgba(143, 148, 251, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-title {
    font-size: 1.25rem;
}

.skill-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline Journey */
.journey-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.timeline-item {
    position: relative;
    width: 50%;
    display: flex;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 45px;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    justify-content: flex-end;
    padding-right: 45px;
}

/* Mirror details on opposite directions */
html[lang="ar"] .timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: 45px;
}

html[lang="ar"] .timeline-item:nth-child(odd) {
    padding-right: 0;
    padding-left: 45px;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -7px;
}

/* Switch Dot Position for RTL */
html[lang="ar"] .timeline-item:nth-child(even) .timeline-dot {
    right: -7px;
    left: auto;
}

html[lang="ar"] .timeline-item:nth-child(odd) .timeline-dot {
    left: -7px;
    right: auto;
}

.timeline-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: rgba(143, 148, 251, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.timeline-org {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.7;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Section & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.contact-detail-card:hover {
    border-color: rgba(143, 148, 251, 0.3);
    background: var(--bg-surface-elevated);
    transform: translateX(5px);
}

html[lang="ar"] .contact-detail-card:hover {
    transform: translateX(-5px);
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
}

.detail-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Advisory Focus Panel & Services */
.advisory-focus-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.advisory-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.advisory-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advisory-card {
    display: flex;
    gap: 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-spring);
}

.advisory-card:hover {
    border-color: rgba(143, 148, 251, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(143, 148, 251, 0.05);
}

.advisory-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(143, 148, 251, 0.08);
    border: 1px solid rgba(143, 148, 251, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.advisory-card:hover .advisory-card-icon {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(143, 148, 251, 0.4);
}

.advisory-card-icon svg {
    width: 22px;
    height: 22px;
}

.advisory-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advisory-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.advisory-card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-brand .tagline {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 6px;
}

html[lang="ar"] .footer-brand .tagline {
    margin-left: 0;
    margin-right: 6px;
}

.copyright {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Floating Actions */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-spring);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}

/* Mobile-only / Desktop-only Helpers */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Offerings Box Client-Focused Widget */
.offerings-box {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.5) 0%, rgba(15, 21, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0 32px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.offerings-box:hover {
    border-color: rgba(143, 148, 251, 0.25);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(143, 148, 251, 0.05);
}

.offerings-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gradient);
}

html[lang="ar"] .offerings-box::before {
    left: auto;
    right: 0;
}

.offerings-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.offerings-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offerings-list li {
    display: flex;
    gap: 14px;
    align-items: start;
}

.offering-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(143, 148, 251, 0.6);
}

.offering-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.offering-content p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* RTL Layout Fixes */
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .nav-menu,
html[dir="rtl"] .skill-icon-title,
html[dir="rtl"] .cfo-org,
html[dir="rtl"] .cfo-duties li,
html[dir="rtl"] .contact-detail-card {
    flex-direction: row;
}

/* ==========================================================================
   Responsive & Device-Specific Layouts (The "Dynamic Phone" layout)
   ========================================================================== */

/* Tablet Screens (1024px and down) */
@media (max-width: 1024px) {
    .main-layout {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .nav-container, .footer-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cfo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cfo-section {
        padding: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100% !important;
        align-self: flex-start !important;
        justify-content: flex-start !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item .timeline-dot {
        left: 23px !important;
        right: auto !important;
    }
    
    html[lang="ar"] .timeline-item {
        padding-right: 60px !important;
        padding-left: 0 !important;
    }
    
    html[lang="ar"] .timeline-item .timeline-dot {
        right: 23px !important;
        left: auto !important;
    }
}

/* Phone/Mobile Screens (768px and down - custom app-like experience) */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Leave space for bottom nav dock */
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .main-layout {
        padding-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .navbar {
        height: 70px;
        background: rgba(7, 10, 19, 0.9);
    }
    
    .nav-container {
        height: 70px;
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none !important; /* Managed by bottom navigation dock */
    }
    
    .btn-nav-contact {
        display: none;
    }
    
    /* Hero layout adjustment for mobile */
    .hero-section {
        display: flex;
        flex-direction: column; /* Text and intro first, portrait card at bottom */
        gap: 32px;
        padding-top: 20px;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .badge {
        margin-top: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 24px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .portrait-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        background: var(--bg-surface-elevated);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }
    
    .portrait-image-wrapper {
        width: 80px;
        height: 80px;
        aspect-ratio: 1 / 1;
        border-radius: 50%; /* circular avatar for clean executive look */
        overflow: hidden;
        border: 2px solid rgba(143, 148, 251, 0.3);
        flex-shrink: 0;
    }

    .portrait-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }
    
    .portrait-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        flex-grow: 1;
    }
    
    .portrait-info .info-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    
    .portrait-info .info-item:last-child {
        text-align: inherit;
    }
    
    html[lang="ar"] .portrait-info .info-item:last-child {
        text-align: inherit;
    }

    .portrait-info .info-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        font-weight: 700;
    }

    .portrait-info .info-val {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    /* Custom Swipable Metrics Dashboard Carousel */
    .swipe-indicator {
        font-size: 0.8rem;
        color: var(--accent);
        text-align: center;
        margin-bottom: 12px;
        display: block;
        opacity: 0.8;
    }
    
    .metrics-carousel-container {
        width: 100vw;
        margin-left: -16px; /* Bleed outside container margins */
        margin-right: -16px;
        padding: 0 16px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbars */
    }
    
    .metrics-carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .metrics-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        width: max-content;
    }
    
    .metric-card {
        width: calc(100vw - 48px); /* Keep next slide peek visible */
        max-width: 320px;
        height: auto;
        min-height: 330px;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 20px;
    }
    
    .metric-value {
        font-size: 2.5rem;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: -10px;
        margin-bottom: 24px;
    }
    
    .carousel-dots .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: var(--transition-smooth);
        cursor: pointer;
    }
    
    .carousel-dots .dot.active {
        width: 20px;
        border-radius: 10px;
        background: var(--accent);
    }
    
    /* Mobile Accordion Style for Strategic Competencies */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skill-card {
        padding: 20px;
        border-radius: 16px;
        cursor: pointer;
        overflow: hidden;
    }
    
    .skill-header {
        margin-bottom: 0;
    }
    
    .skill-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    
    .skill-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .skill-title {
        font-size: 1.05rem;
    }
    
    .accordion-chevron {
        color: var(--text-muted);
        transition: var(--transition-smooth);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }
    
    .accordion-chevron svg {
        width: 20px;
        height: 20px;
    }
    
    .skill-card.active .accordion-chevron {
        transform: rotate(180deg);
        color: var(--accent);
    }
    
    .skill-content {
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
        padding-top: 0;
    }
    
    .skill-card.active .skill-content {
        max-height: 200px; /* Accordion expand */
        opacity: 1;
        padding-top: 16px;
    }
    
    /* Current Appointment Focus Mobile */
    .cfo-section {
        padding: 24px;
        border-radius: 20px;
    }
    
    .cfo-role-title {
        font-size: 1.75rem;
    }
    
    .cfo-quote {
        font-size: 1rem;
    }
    
    .cfo-duties {
        gap: 24px;
    }
    
    .duty-txt strong {
        font-size: 1rem;
    }
    
    .duty-txt p {
        font-size: 0.88rem;
    }
    
    /* Mobile Floating Dock (Bottom Bar Navigation) */
    .mobile-nav-dock {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 32px);
        max-width: 480px;
        height: 64px;
        background: rgba(15, 21, 36, 0.88);
        border: 1px solid var(--border-color);
        border-radius: 50px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 12px;
    }
    
    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        text-decoration: none;
        gap: 4px;
        flex-grow: 1;
        transition: var(--transition-smooth);
    }
    
    .dock-item.active {
        color: var(--accent);
    }
    
    .dock-icon {
        width: 20px;
        height: 20px;
    }
    
    .dock-label {
        font-size: 0.68rem;
        font-weight: 600;
    }
    
    /* Scroll To Top Hidden on mobile */
    .scroll-top-btn {
        display: none !important;
    }
    
    /* Advisory Focus Panel Mobile adjustments */
    .advisory-focus-panel {
        padding: 24px;
        border-radius: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   Scroll Entrance Animations (Premium Interaction)
   ========================================================================== */
.metric-card, 
.timeline-item, 
.skill-card, 
.cfo-grid,
.advisory-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:nth-child(odd) {
    transform: translate3d(-30px, 0, 0);
}
.timeline-item:nth-child(even) {
    transform: translate3d(30px, 0, 0);
}

@media (max-width: 1024px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        transform: translateY(30px) !important;
    }
}

/* When visible / triggered by intersection observer */
.metric-card.animated-in, 
.skill-card.animated-in, 
.cfo-grid.animated-in,
.advisory-card.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.animated-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
}

/* Delay modifiers for grids */
.metric-card:nth-child(2) { transition-delay: 0.1s; }
.metric-card:nth-child(3) { transition-delay: 0.2s; }
.metric-card:nth-child(4) { transition-delay: 0.3s; }

.skill-card:nth-child(2) { transition-delay: 0.1s; }
.skill-card:nth-child(3) { transition-delay: 0.2s; }
.skill-card:nth-child(4) { transition-delay: 0.3s; }

.advisory-card:nth-child(2) { transition-delay: 0.1s; }
.advisory-card:nth-child(3) { transition-delay: 0.2s; }

/* Enforce LTR rendering on standard quantitative indicators to prevent RTL reversing */
.metric-value,
.info-val,
.timeline-date,
.detail-val,
.org-duration,
.logo-sub {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* ==========================================================================
   Video Loading Screen
   ========================================================================== */
body.loader-active {
    overflow: hidden !important;
}

.video-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #070a13;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    visibility: visible;
}

.video-loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.video-loader-container video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Scales 16:9 perfectly on all screen aspect ratios */
}

/* Entrance Animations for Main Components once loader ends */
.navbar,
.main-layout {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav-dock {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

body.loader-finished .navbar {
    opacity: 1;
    transform: translateY(0);
}

body.loader-finished .main-layout {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

body.loader-finished .mobile-nav-dock {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.3s;
}

/* Fallback for environments with disabled JS or video loading failure */
body.no-js .video-loader-container {
    display: none !important;
}

body.no-js .navbar,
body.no-js .main-layout {
    opacity: 1 !important;
    transform: none !important;
}

body.no-js .mobile-nav-dock {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

