@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Core definitions (Default dark theme) */
    --background-dark: #000000;
    --background-darker: #111111;
    --background-card: #1A1A1A;
    --background-light: #F4F4F4;
    --background-white: #FFFFFF;
    
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-dark: #000000;
    --text-dark-light: #555555;
    
    --accent-green: #86C82A; /* Deloitte green */
    --accent-green-hover: #75b323;
    
    --spacing-section: 6rem;
    --border-radius: 8px;
    --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Theme border, translucent bg and shadow variables */
    --border-color: rgba(255, 255, 255, 0.12);
    --bg-translucent: rgba(255, 255, 255, 0.05);
    --bg-translucent-hover: rgba(255, 255, 255, 0.10);
    --text-translucent: rgba(255, 255, 255, 0.60);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
    --card-overlay-color: 255, 255, 255;
}

/* Light mode overrides */
[data-theme="light"] {
    --background-dark: #FFFFFF;
    --background-darker: #F9F9F9;
    --background-card: #FFFFFF;
    --background-light: #EBEBEB;
    --background-white: #000000;
    
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-dark: #FFFFFF;
    --text-dark-light: #CCCCCC;
    
    --border-color: rgba(0, 0, 0, 0.12);
    --bg-translucent: rgba(0, 0, 0, 0.04);
    --bg-translucent-hover: rgba(0, 0, 0, 0.08);
    --text-translucent: rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --card-overlay-color: 0, 0, 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Allow text selection in inputs and textareas */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 992px) {
    .container-fullwidth {
        padding: 0 5%;
    }
}

/* Utilities */
.text-accent { color: var(--accent-green); }
.text-light { color: var(--text-secondary); }
.text-dark { color: var(--text-dark); }
.text-dark-light { color: var(--text-dark-light); }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
.fw-bold { font-weight: bold; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.section-title.dark-text {
    color: var(--text-dark);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}
.link-arrow svg {
    transition: transform 0.3s ease;
}
.link-arrow:hover svg {
    transform: translateX(4px);
}
.link-arrow.dark-link {
    color: var(--text-dark);
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Ensure the absolute header sitting on the dark banner stays white in both modes */
.header .nav-item,
.header .theme-toggle-btn {
    color: #ffffff;
}
.header .nav-item:hover,
.header .theme-toggle-btn:hover {
    color: var(--accent-green);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 90px;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.75) 0%, rgba(10, 10, 12, 0.25) 55%, var(--background-dark) 100%);
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through, mouse movements handled on container */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 2rem;
    }
}

.hero-left {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.0rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 550px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}
.hero-btn .btn-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-green);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.hero-btn:hover .btn-icon {
    transform: scale(1.05);
    background-color: var(--accent-green-hover);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.layered-text {
    position: relative;
    width: 400px;
    height: 300px;
}
.layer {
    position: absolute;
    right: 0;
    text-align: right;
}
.layer-1 {
    top: 0;
    opacity: 0.2;
    transform: translateY(0);
}
.layer-2 {
    top: 40px;
    opacity: 0.5;
    transform: translateY(0);
}
.layer-3 {
    top: 80px;
    opacity: 1;
    transform: translateY(0);
}
.deloitte-text {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: -10px;
}
.fast-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
}
.fast-container .number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.8;
}
.fast-container .fast-text {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    color: var(--accent-green);
    margin-top: 5px;
}

/* Fast Growth Section */
.fast-growth {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: var(--spacing-section) 0;
    background-color: var(--background-dark);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 1s cubic-bezier(0.25, 0.9, 0.3, 1), transform 1s cubic-bezier(0.25, 0.9, 0.3, 1), background-color 0.3s ease;
}
.fast-growth.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fast-growth-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: 
        radial-gradient(ellipse 65% 90% at 12% -10%, rgba(255,255,255,0.11), transparent 62%),
        radial-gradient(ellipse 45% 65% at 88% -20%, rgba(120,120,120,0.08), transparent 70%);
    pointer-events: none;
}
.fast-growth-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.8;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(250,250,250,0.08) 0.65px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(250,250,250,0.08) 0.65px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
}

.fast-growth-container-custom {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.fast-growth-header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .fast-growth-header-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.fast-growth-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.fast-growth-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}
.fast-growth-badge {
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.fast-growth-badge-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.fast-growth-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.fast-growth-desc {
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.fast-growth-btn-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .fast-growth-btn-row {
        flex-direction: row;
        align-items: center;
    }
}
.fast-growth-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    color: var(--text-primary);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.fast-growth-btn-primary:hover {
    background-color: var(--bg-translucent-hover);
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.fast-growth-btn-indicator {
    position: relative;
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
}
.fast-growth-btn-indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid currentColor;
    opacity: 0.3;
}
.fast-growth-btn-indicator-inner {
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
    background-color: currentColor;
    transition: transform 0.5s ease;
}
.fast-growth-btn-primary:hover .fast-growth-btn-indicator-inner {
    transform: scale(1.1);
}
.fast-growth-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.5s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}
.fast-growth-link-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.arrow-diagonal {
    font-size: 1.125rem;
    line-height: 1;
}

.fast-growth-showcase-card {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.fast-growth-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(108, 189, 69, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 10;
}
.fast-growth-showcase-card:hover::after {
    opacity: 1;
}
@media (min-width: 1024px) {
    .fast-growth-showcase-card {
        max-width: 28rem;
    }
}
.fast-growth-showcase-figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}
.fast-growth-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}
.fast-growth-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.fast-growth-image-wrapper:hover .fast-growth-showcase-img {
    transform: scale(1.02);
}
.fast-growth-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent, rgba(0,0,0,0.3));
    mix-blend-mode: soft-light;
    pointer-events: none;
}
.fast-growth-showcase-beacon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    pointer-events: none;
}
.beacon-svg {
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
}
.fast-growth-showcase-orbit {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    opacity: 0.6;
    animation: hero1-orbit 8s linear infinite;
    pointer-events: none;
    transition: border-color 0.3s ease;
}
.fast-growth-showcase-caption {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-translucent);
    transition: color 0.3s ease;
}
.fast-growth-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot-live {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: currentColor;
    animation: pulse-live 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Animations for Showcase Beacon */
.animate-pulse-custom {
    animation: hero1-pulse 4.5s ease-in-out infinite;
    transform-origin: center;
}
.animate-trace-custom {
    animation: hero1-trace 6s ease-in-out infinite;
}
.delay-custom {
    animation-delay: 0.45s;
}

@keyframes hero1-orbit {
    0% { stroke-dashoffset: 0; transform: rotate(0deg); }
    100% { stroke-dashoffset: -44; transform: rotate(360deg); }
}
@keyframes hero1-node {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.6; }
}
@keyframes hero1-trace {
    0%, 30% { stroke-dasharray: 0 160; opacity: 0; }
    45%, 65% { stroke-dasharray: 160 0; opacity: 1; }
    100% { stroke-dasharray: 0 160; opacity: 0; }
}
@keyframes hero1-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.04); opacity: 1; }
}

/* Bottom Grid (Capabilities Row) */
.fast-growth-capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}
@media (min-width: 768px) {
    .fast-growth-capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.fast-growth-cap-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.fast-growth-cap-card:hover {
    border-color: var(--accent-green);
}
.cap-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.cap-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
/* Spotlight gradient tracking the cursor */
.fast-growth-cap-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(108, 189, 69, 0.18), transparent 72%);
    pointer-events: none;
}
.fast-growth-cap-card:hover::after {
    opacity: 1;
}
.cap-circle-decoration {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0.7;
    pointer-events: none;
    transition: border-color 0.5s ease;
}
.fast-growth-cap-card:hover .cap-circle-decoration {
    border-color: rgba(255,255,255,0.1);
}

/* Client Logos Marquee Strip */
.client-logos-strip-container {
    margin-top: 5rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3.5rem;
}
.client-logos-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.client-logos-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
    /* Soft edge masks */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.client-logos-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}
/* Pause on hover for interaction */
.client-logos-marquee-wrapper:hover .client-logos-marquee-track {
    animation-play-state: paused;
}
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 160px;
    padding: 0 2.5rem;
}
.client-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Style specifically for dark mode vs light mode */
html[data-theme="light"] .client-logo-item img {
    opacity: 0.8;
}
.client-logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Business of AI Section */
.business-ai {
    padding: var(--spacing-section) 0;
    background-color: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.container-fluid-custom {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin: 0 auto;
}

.ai-header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .ai-header-container {
        flex-direction: row;
        align-items: flex-end;
    }
}

.ai-header {
    max-width: 600px;
}

.ai-slider-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.slider-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
}
.slider-btn svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}
.slider-btn:hover svg {
    transform: scale(1.1);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: -20px 0;
}

.grid-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbars on Firefox */
    padding-top: 20px; /* Allow space for hover lift */
    padding-bottom: 20px; /* Allow space for hover shadow */
    margin-top: -20px;
    margin-bottom: -20px;
}
.grid-cards::-webkit-scrollbar {
    display: none; /* Hide scrollbars on Chrome/Safari/Opera */
}

.card {
    flex: 0 0 350px;
    width: 350px;
    min-width: 350px;
    background-color: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 480px) {
    .card {
        flex: 0 0 280px;
        width: 280px;
        min-width: 280px;
    }
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-card-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.card:hover .card-icon {
    border-color: var(--accent-green);
    background-color: rgba(134, 200, 42, 0.05);
}

.card-title {
    font-size: 1.3rem;
}

.card-text {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Case Study Section */
.case-study {
    padding: var(--spacing-section) 0;
    position: relative;
}

.case-study-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.case-study-header {
    max-width: 600px;
}

.case-study-desc {
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: #6cbd45;
}

.btn-arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.view-all-btn:hover .btn-arrow-circle {
    border-color: #6cbd45;
    background-color: #6cbd45;
    color: #000000;
}

.case-study-slider-wrapper {
    position: relative;
    width: 100%;
}

.case-study-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding-top: 20px;
    padding-bottom: 30px;
    margin-top: -20px;
    margin-bottom: -30px;
}

.case-study-slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.case-study-card {
    position: relative;
    height: 480px;
    width: 280px;
    flex-basis: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease,
                width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                flex-basis 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 189, 69, 0.12), transparent 80%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.case-study-card:hover {
    border-color: #6cbd45;
    box-shadow: 0 12px 30px rgba(108, 189, 69, 0.25);
    transform: translateY(-8px);
}

.case-study-card:hover::after {
    opacity: 1;
}

.case-study-card.active {
    width: 650px;
    flex-basis: 650px;
}

.case-study-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 0.6s ease;
    filter: grayscale(100%) brightness(0.7);
}

.case-study-card.active .case-study-bg-img {
    filter: grayscale(0%) brightness(0.85);
}

.case-study-card:hover .case-study-bg-img {
    transform: scale(1.05);
}

.case-study-card.active:hover .case-study-bg-img {
    transform: scale(1.03);
}

.case-study-card:not(.active):hover .case-study-bg-img {
    filter: grayscale(0%) brightness(0.85);
}

.case-study-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 80%);
    z-index: 2;
    transition: opacity 0.4s ease;
    opacity: 0.6;
}

.case-study-card.active .case-study-overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.case-study-card:hover .case-study-overlay {
    opacity: 0.9;
}

.case-study-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 130px; /* lower height to reveal more image */
    transform: translateY(0);
    transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card.active .case-study-content {
    height: 180px; /* expanded height to fit the action button */
}

.case-study-tag {
    background: #ffffff;
    color: #000000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.25rem;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    z-index: 4;
}

/* Inactive cards: tag is hidden by default and fades in on hover */
.case-study-card:not(.active) .case-study-tag {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card:not(.active):hover .case-study-tag {
    opacity: 1;
    transform: translateY(0);
}

/* Active cards: tag is statically visible */
.case-study-card.active .case-study-tag {
    opacity: 1;
    transform: none;
}

.case-study-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease, font-size 0.5s ease, margin-bottom 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.case-study-card.active .case-study-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    height: 0;
    overflow: hidden;
}

.case-study-link:hover {
    color: #6cbd45;
}

.case-study-card.active .case-study-link {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    height: auto;
    margin-top: 1.5rem;
    overflow: visible;
}

.btn-arrow-circle.small {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.case-study-link:hover .btn-arrow-circle.small {
    background-color: #6cbd45;
    border-color: #6cbd45;
    color: #000000;
}

/* Inactive Card content transitions: content (including tag) and title slide up on hover */
.case-study-card:not(.active) .case-study-content {
    transform: translateY(25px);
}

.case-study-card:not(.active):hover .case-study-content {
    transform: translateY(0);
}

.case-study-card:not(.active) .case-study-title {
    font-size: 1.25rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-card:not(.active):hover .case-study-title {
    opacity: 1;
    transform: translateY(0);
}

.case-study-next-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-study-next-btn:hover {
    background-color: #6cbd45;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(108, 189, 69, 0.4);
}

.case-study-next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .case-study-card {
        width: 240px;
        flex-basis: 240px;
        padding: 1.5rem;
        height: 380px;
    }
    .case-study-content {
        height: 110px;
    }
    .case-study-card.active .case-study-content {
        height: 155px;
    }
    .case-study-card.active {
        width: 320px;
        flex-basis: 320px;
    }
    .case-study-title {
        font-size: 1.1rem;
    }
    .case-study-card.active .case-study-title {
        font-size: 1.3rem;
    }
    .case-study-next-btn {
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    .case-study-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .view-all-btn {
        align-self: flex-start;
    }
}

/* Quote Section */
.quote-section {
    display: flex;
    flex-direction: column;
}
@media (min-width: 900px) {
    .quote-section {
        flex-direction: row;
    }
}

.explore-col {
    background-color: #F4F4F4;
    color: #000000;
    padding: 6rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.explore-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000000;
}
.explore-text {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 3rem;
    max-width: 400px;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}
.btn-outline {
    border: 2px solid #000;
    color: #000;
    background: transparent;
}
.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.quote-col {
    background-color: #1A1A1A;
    padding: 6rem 4rem;
    flex: 1.5;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.quote-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(108, 189, 69, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.testimonial-carousel {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.testimonial-track {
    position: relative;
    min-height: 280px;
    width: 100%;
}

@media (max-width: 768px) {
    .testimonial-track {
        min-height: 340px;
    }
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.testimonial-slide.active {
    position: absolute;
    opacity: 1;
    pointer-events: auto;
}

.quote-mark {
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-green);
    opacity: 0.12;
    font-family: Georgia, serif;
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    pointer-events: none;
    user-select: none;
}

.quote-text {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(108, 189, 69, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.testimonial-slide:hover .author-avatar {
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.author-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.author-role {
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.carousel-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.carousel-control-btn:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(108, 189, 69, 0.3);
}

.carousel-control-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent-green);
}

/* Sustainability Section */
.sustainability-section {
    padding: var(--spacing-section) 0;
    background-color: #E8ECEF; /* Light grayish blue from ref */
}

.sustainability-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
@media (min-width: 900px) {
    .sustainability-container {
        flex-direction: row;
    }
}

.sustainability-img-wrapper {
    flex: 1;
}

.sustainability-img {
    width: 100%;
    border-radius: var(--border-radius);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.sustainability-content {
    flex: 1;
}
.sustainability-content .text-dark {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Startups Section */
.clients-section {
    padding: var(--spacing-section) 0;
    background-color: #ffffff;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #EEE;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.clients-subtitle {
    color: var(--text-dark-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.client-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .client-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.client-card {
    border: 1px solid #EAEAEA;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.client-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.prophaze-logo { color: #0052CC; }
.guardarcs-logo { color: #8A2BE2; }

.client-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tag {
    background-color: #F4F4F4;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.client-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Footer */
/* Footer */
.footer {
    background-color: var(--background-darker);
    padding: 5rem 0 0; /* Let canvas bleed to bottom */
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand-col {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo-svg {
    color: #6bc235; /* Vibrantly matching Reflections GCC green */
    width: 42px;
    height: 24px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-item:hover {
    transform: translateY(-4px);
}

.badge-img {
    height: 38px;
    width: auto;
    max-width: 110px;
    display: block;
    object-fit: contain;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 3rem;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-links-grid {
        width: auto;
        min-width: 450px;
        grid-template-columns: repeat(3, 140px);
        gap: 3.5rem;
    }
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.footer-link-item:hover {
    color: var(--text-primary);
}

.footer-link-item:hover .link-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Flickering Canvas Container */
.footer-flicker-container {
    position: relative;
    width: calc(100% + 10%); /* Offsets the 5% left + 5% right container padding */
    margin-left: -5%; /* Pulls the canvas to bleed completely to the left screen edge */
    height: 160px;
    margin-top: 3rem;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-flicker-container {
        height: 240px;
    }
}

.flicker-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #111 0%, transparent 60%, #111 100%);
    z-index: 2;
    pointer-events: none;
}

#flickering-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Who We Are Section */
.who-we-are {
    padding: var(--spacing-section) 0;
    background-color: var(--background-darker);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.who-we-are .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%; /* Fluid margins for full width design */
}

.who-we-are-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.who-we-are-title .text-green {
    color: #6bc235; /* Exact vibrant green from reference */
}

.who-we-are-top {
    display: grid;
    grid-template-columns: 4fr 6fr; /* Always side-by-side */
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: flex-start;
    margin-bottom: -11vw; /* Pull card up by a predictable fluid amount */
    position: relative;
    z-index: 2;
}

.who-we-are-image-container {
    width: 100%;
    position: relative;
    z-index: 10; /* Sits on top of the bottom card */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.who-we-are-img {
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto; /* Preserve natural landscape shape with rounded corners */
}

.who-we-are-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 12vw; /* Pushes text up so it isn't covered by the overlapping card */
}

.who-we-are-p {
    font-size: clamp(0.8rem, 1.8vw, 1.02rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Bottom Card */
.who-we-are-card {
    display: block;
    background-image: linear-gradient(to right, rgb(var(--card-overlay-color)) 25%, rgba(var(--card-overlay-color), 0.7) 60%, rgba(var(--card-overlay-color), 0) 95%), url('../assets/who_we_are_architecture.png');
    background-repeat: no-repeat;
    background-position: 70% bottom; /* Prioritize the arches and lantern */
    background-size: cover;
    position: relative;
    z-index: 1; /* Sits below the overlapping meeting image */
    background-color: var(--background-white);
    border-radius: 28px;
    overflow: hidden;
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.who-we-are-card-content {
    max-width: clamp(55%, 60vw, 65%);
    padding: max(10rem, calc(11vw + 4rem)) 2rem clamp(6rem, 10vw, 10rem) clamp(1.5rem, 4vw, 4.5rem); /* Top padding clears overlap fluidly, bottom clears skyline */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.who-we-are-card-title {
    font-size: clamp(1.1rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.who-we-are-card-title .text-green {
    color: #6bc235; /* Matching vibrant green */
}

.who-we-are-card-p {
    font-size: clamp(0.75rem, 1.8vw, 1.02rem);
    line-height: 1.6;
    color: var(--text-dark-light);
    transition: color 0.3s ease;
    font-weight: 400;
}

.who-we-are-card-image {
    display: none; /* Always hide inline image, we always use background overlay */
}

/* What We Do Section */
.what-we-do {
    padding: var(--spacing-section) 0;
    background-color: var(--background-dark);
    color: var(--text-primary);
}

.what-we-do .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5%; /* Fluid margins for full width design matching 'Who We Are' */
}

.what-we-do .section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.what-we-do .section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 4rem;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 900px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr); /* 2/2 grid layout on desktop */
    }
    .reveal-item.full-width {
        grid-column: span 2; /* Spans across both columns for odd items */
    }
}

.reveal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.reveal-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.reveal-content {
    max-width: 60%; /* Leaves space for the images on the right */
    transition: opacity 0.5s ease;
}

.reveal-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.reveal-item:hover .reveal-title {
    color: var(--accent-green);
}

.reveal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.reveal-item:hover .reveal-desc {
    color: var(--text-primary);
}

/* Image reveal effects matching React styling */
.reveal-images-container {
    position: absolute;
    right: 1.5rem; /* Moves the reveal container closer to the right card edge */
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
    height: 220px;
    pointer-events: none;
    z-index: 10;
}

.reveal-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px; /* Smoother, modern roundness */
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image-inner {
    width: 100%;
    height: 100%;
}

.reveal-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back image (index 1 in react component) */
.img-back {
    transition-delay: 0.05s;
    z-index: 11;
}

/* Front image (index 0 in react component, rotates and translates on hover) */
.img-front {
    transition-delay: 0.1s;
    z-index: 12;
}

/* Hover States */
.reveal-item:hover .reveal-image-wrapper {
    opacity: 1;
}

/* Back card: slightly grows, shifts left and up, and rotates counter-clockwise */
.reveal-item:hover .img-back {
    transform: scale(1.05) translate(-15px, -10px) rotate(-6deg);
}

/* Front card: slightly grows, shifts right and down, and rotates clockwise (popping out of boundaries) */
.reveal-item:hover .img-front {
    transform: scale(1.05) translate(35px, 20px) rotate(12deg);
}

@media (max-width: 768px) {
    .reveal-item {
        padding: 2.5rem 2rem;
    }
    
    .reveal-content {
        max-width: 100%;
    }
    
    .reveal-images-container {
        display: none; /* Hide hover image effects on mobile */
    }
}

/* ==========================================================================
   Leadership Page Specific Styles
   ========================================================================== */

.leadership-intro {
    max-width: 800px;
    margin: 0 auto 5rem auto;
    text-align: center;
}
.leadership-intro .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: var(--spacing-section);
}

@media (min-width: 640px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.leader-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--background-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leader-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(134, 200, 42, 0.12), transparent 80%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.leader-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 35px rgba(134, 200, 42, 0.18);
    transform: translateY(-8px);
}

.leader-card:hover::after {
    opacity: 1;
}

.leader-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 0.6s ease;
}

.leader-card:hover .leader-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.leader-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}

.leader-role {
    color: var(--accent-green);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.leader-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.leader-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.leader-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.leader-socials {
    display: flex;
    gap: 1rem;
}

.leader-social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.leader-social-link:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

.leader-btn-link {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s ease;
}

.leader-card:hover .leader-btn-link {
    color: var(--accent-green);
}

.leader-btn-link svg {
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-btn-link svg {
    transform: translateX(3px);
}

/* Modal Dialog Styling */
dialog.leader-dialog {
    background: transparent;
    border: none;
    max-width: 950px;
    width: 90%;
    margin: auto;
    padding: 0;
    outline: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

dialog.leader-dialog[open] {
    opacity: 1;
    transform: scale(1);
}

/* Fallback/Modern backdrop styling */
dialog.leader-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

dialog.leader-dialog[open]::backdrop {
    opacity: 1;
}

.dialog-content {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .dialog-content {
        flex-direction: row;
    }
}

.dialog-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.dialog-close-btn:hover {
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
    transform: rotate(90deg);
}

.dialog-left {
    flex: 0 0 100%;
    max-height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dialog-left {
        flex: 0 0 42%;
        max-height: none;
        height: auto;
    }
}

.dialog-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-right {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dialog-right {
        padding: 4rem 3.5rem;
    }
}

.dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dialog-role {
    color: var(--accent-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.dialog-name {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.dialog-quote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-green);
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.dialog-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.dialog-bio p {
    margin-bottom: 1rem;
}
.dialog-bio p:last-child {
    margin-bottom: 0;
}

.dialog-expertise {
    margin-top: 1rem;
}

.dialog-expertise-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.dialog-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dialog-badge {
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Chairman Section Styling */
.chairman-section {
    width: 100%;
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.chairman-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--background-card);
    overflow: hidden;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.chairman-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 200, 42, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.chairman-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px rgba(134, 200, 42, 0.08);
}

.chairman-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .chairman-container {
        grid-template-columns: 420px 1fr;
    }
}

.chairman-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1.15;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.chairman-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.chairman-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chairman-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chairman-role {
    color: var(--accent-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.chairman-name {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.chairman-quote {
    position: relative;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-green);
    margin: 0.5rem 0;
}

.chairman-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chairman-bio p {
    margin-bottom: 1rem;
}

.chairman-bio p:last-child {
    margin-bottom: 0;
}

.chairman-expertise {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.chairman-expertise-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
}

.chairman-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chairman-badge {
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.chairman-card:hover .chairman-badge {
    border-color: rgba(134, 200, 42, 0.3);
    background-color: rgba(134, 200, 42, 0.03);
    color: var(--accent-green);
}

/* Leadership Groups Styling */
.leadership-section-group {
    width: 100%;
    margin-bottom: 4.5rem;
}

.leadership-section-group:last-child {
    margin-bottom: 2rem;
}

.leadership-group-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: block;
    width: 100%;
}

.leadership-group-title span.text-green {
    color: var(--accent-green);
}

/* Footer Awards/Recognition Styling */
.footer-right-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-awards {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-awards {
        justify-content: flex-end;
    }
}

.award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-item:hover {
    transform: translateY(-4px);
}

.footer-awards-img {
    height: 42px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

/* Footer Link Columns Right Alignment */
@media (min-width: 768px) {
    .footer-col {
        text-align: right;
    }
    .footer-col ul {
        align-items: flex-end;
    }
}

/* Footer Link Hover Chevron Left Slide-in on Desktop */
@media (min-width: 768px) {
    .footer-link-item {
        flex-direction: row-reverse;
    }
    .footer-link-item .link-chevron {
        transform: translateX(-6px) rotate(180deg);
    }
    .footer-link-item:hover .link-chevron {
        transform: translateX(0) rotate(180deg);
    }
}

/* Search Overlay Styling */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-green);
}

.search-container {
    width: 90%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-green);
}

.search-icon-inside {
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
}

.search-input-wrapper:focus-within .search-icon-inside {
    color: var(--accent-green);
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: inherit;
    padding-left: 2.5rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-results {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--bg-translucent);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    background-color: var(--bg-translucent-hover);
    border-color: rgba(134, 200, 42, 0.3);
}

.search-result-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.search-result-item:hover .search-result-title {
    color: var(--accent-green);
}

.search-result-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-result-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-green);
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   Arabic RTL Adjustments
   ========================================================================== */

html[dir="rtl"] {
    --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[dir="rtl"] body {
    font-family: var(--font-family);
}

/* Directional translations & alignments */
html[dir="rtl"] .hero-left {
    text-align: right;
}

html[dir="rtl"] .hero-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-btn .btn-icon svg,
html[dir="rtl"] .link-arrow svg,
html[dir="rtl"] .link-chevron svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .link-arrow:hover svg {
    transform: scaleX(-1) translateX(4px); /* in RTL, moving to the left on hover */
}

/* Deloitte Fast 50 layers in Hero */
html[dir="rtl"] .layered-text {
    direction: ltr; /* keep numeric and name layout consistent but positioned properly */
}

html[dir="rtl"] .layer {
    right: auto;
    left: 0;
    text-align: left;
}

html[dir="rtl"] .fast-container {
    justify-content: flex-start;
}

html[dir="rtl"] .fast-container .fast-text {
    text-align: left;
}

/* Who We Are section overrides */
html[dir="rtl"] .who-we-are-text-container {
    text-align: right;
}

html[dir="rtl"] .who-we-are-card-content {
    text-align: right;
}

html[dir="rtl"] .who-we-are-card {
    background-image: none;
}

html[dir="rtl"] .who-we-are-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgb(var(--card-overlay-color)) 25%, rgba(var(--card-overlay-color), 0.7) 60%, rgba(var(--card-overlay-color), 0) 95%), url('../assets/who_we_are_architecture.png');
    background-repeat: no-repeat;
    background-position: 70% bottom;
    background-size: cover;
    transform: scaleX(-1);
    z-index: -1;
}

/* What We Do section overrides */
html[dir="rtl"] .reveal-content {
    text-align: right;
}

html[dir="rtl"] .reveal-images-container {
    right: auto;
    left: 1.5rem;
}

html[dir="rtl"] .reveal-item:hover .img-back {
    transform: scale(1.05) translate(15px, -10px) rotate(6deg);
}

html[dir="rtl"] .reveal-item:hover .img-front {
    transform: scale(1.05) translate(-35px, 20px) rotate(-12deg);
}

/* Fast Growth section overrides */
html[dir="rtl"] .fast-growth-details {
    text-align: right;
}

html[dir="rtl"] .fast-growth-btn-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .fast-growth-showcase-beacon {
    left: auto;
    right: 1.5rem;
}

html[dir="rtl"] .fast-growth-showcase-orbit {
    right: auto;
    left: 2.5rem;
}

html[dir="rtl"] .fast-growth-showcase-caption {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cap-circle-decoration {
    right: auto;
    left: -3rem;
}

html[dir="rtl"] .fast-growth-cap-card {
    text-align: right;
}

/* Why Reflections GCC overrides */
html[dir="rtl"] .ai-header {
    text-align: right;
}

html[dir="rtl"] .ai-header-container {
    align-items: flex-end;
}

html[dir="rtl"] .slider-btn svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .card {
    text-align: right;
}

/* Case Study Section overrides */
html[dir="rtl"] .case-study-header {
    text-align: right;
}

html[dir="rtl"] .case-study-header-container {
    flex-direction: row-reverse;
    align-items: flex-end;
}

@media (max-width: 768px) {
    html[dir="rtl"] .case-study-header-container {
        flex-direction: column;
        align-items: flex-end;
    }
}

html[dir="rtl"] .case-study-next-btn {
    right: auto;
    left: 2rem;
}

@media (max-width: 768px) {
    html[dir="rtl"] .case-study-next-btn {
        right: auto;
        left: 1rem;
    }
}

html[dir="rtl"] .case-study-next-btn svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .case-study-content {
    align-items: flex-start;
    text-align: right;
}

html[dir="rtl"] .case-study-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .case-study-link svg {
    transform: scaleX(-1);
}

/* Quote Section / Testimonials overrides */
html[dir="rtl"] .explore-col {
    text-align: right;
}

html[dir="rtl"] .quote-col {
    text-align: right;
}

html[dir="rtl"] .testimonial-slide {
    text-align: right;
}

html[dir="rtl"] .author-info {
    flex-direction: row-reverse;
}

html[dir="rtl"] .prev-testimonial svg,
html[dir="rtl"] .next-testimonial svg {
    transform: scaleX(-1);
}

/* Footer overrides */
html[dir="rtl"] .footer-brand-col {
    text-align: right;
}

html[dir="rtl"] .footer-description {
    text-align: right;
}

html[dir="rtl"] .footer-badges {
    justify-content: flex-start;
}

html[dir="rtl"] .footer-col {
    text-align: right;
}

html[dir="rtl"] .footer-awards {
    justify-content: flex-start;
}

html[dir="rtl"] .link-chevron {
    transform: translateX(4px);
}

html[dir="rtl"] .footer-link-item:hover .link-chevron {
    transform: translateX(-2px);
}

/* Modals / Dialogs overrides */
html[dir="rtl"] .dialog-close-btn {
    right: auto;
    left: 1.25rem;
}

html[dir="rtl"] .dialog-right {
    text-align: right;
}

html[dir="rtl"] .dialog-quote {
    border-right: 3px solid var(--accent-green);
    border-left: none;
    padding-right: 1.25rem;
    padding-left: 0;
}

html[dir="rtl"] .chairman-info {
    text-align: right;
}

html[dir="rtl"] .chairman-quote {
    border-right: 3px solid var(--accent-green);
    border-left: none;
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .chairman-badge-container,
html[dir="rtl"] .dialog-badge-container {
    justify-content: flex-start;
}

/* Search overrides */
html[dir="rtl"] .search-close-btn {
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .search-input-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .search-input {
    text-align: right;
}

html[dir="rtl"] .search-results {
    text-align: right;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    outline: none;
}

.theme-toggle-btn:hover {
    color: var(--accent-green);
}

/* Hide/show icons based on active theme */
[data-theme="dark"] .moon-icon {
    display: none;
}
[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: none;
}
[data-theme="light"] .moon-icon {
    display: block;
}

/* Footer logo on light mode (since footer background changes to light gray) */
[data-theme="light"] .footer .logo-img {
    filter: invert(1) brightness(0.2);
}

/* Search overlay light-mode styling */
[data-theme="light"] .search-overlay {
    background-color: rgba(255, 255, 255, 0.98);
}
[data-theme="light"] .search-input-wrapper {
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .search-icon-inside {
    color: rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .search-input {
    color: #000;
}
[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .search-close-btn {
    color: #000;
}

/* Footer flicker canvas light-mode styling */
[data-theme="light"] .footer-flicker-container {
    background-color: #FFFFFF;
}
[data-theme="light"] .flicker-gradient-overlay {
    background: linear-gradient(to bottom, #FFFFFF 0%, transparent 60%, #FFFFFF 100%);
}

/* Chairman Section light-mode overrides */
[data-theme="light"] .chairman-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .chairman-card:hover {
    box-shadow: 0 15px 40px rgba(134, 200, 42, 0.06);
}
[data-theme="light"] .chairman-image-wrapper {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Case Study Template Styling
   ========================================================================== */

.cs-meta-bar {
    background-color: transparent;
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.cs-meta-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .cs-meta-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-meta-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(134, 200, 42, 0.08);
}

.cs-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-translucent);
    font-weight: 600;
}

.cs-meta-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.cs-section {
    padding: 3rem 0;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .cs-grid.two-cols {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .cs-grid.two-cols.reverse {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.cs-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cs-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cs-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cs-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-list-item {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

[dir="rtl"] .cs-list-item {
    padding-left: 0;
    padding-right: 2rem;
}

.cs-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

[dir="rtl"] .cs-list-item::before {
    left: auto;
    right: 0;
}

.cs-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4 / 3;
}

.cs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cs-image-wrapper:hover .cs-img {
    transform: scale(1.05);
}

.cs-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .cs-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .cs-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cs-benefit-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 35px rgba(134, 200, 42, 0.08);
}

.cs-benefit-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(134, 200, 42, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.cs-benefit-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.cs-benefit-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.cs-cta-section {
    background: linear-gradient(135deg, rgba(16, 16, 18, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%), url('../assets/cta_backdrop.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .cs-cta-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.95) 100%), url('../assets/cta_backdrop.jpg');
    background-size: cover;
    background-position: center;
}

.cs-cta-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cs-cta-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 2;
}

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--accent-green);
    color: var(--background-dark);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.cs-cta-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

.cs-cta-btn svg {
    transition: transform 0.3s ease;
}

.cs-cta-btn:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .cs-cta-btn:hover svg {
    transform: translateX(-4px);
}

/* Light mode adjustments */
[data-theme="light"] .cs-benefit-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .cs-benefit-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .cs-image-wrapper {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   No-Fade Banner Section (.hero-no-fade) for Main Pages
   ========================================================================== */
.hero.hero-no-fade {
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay.hero-overlay-no-fade {
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.4) 100%);
}

/* ==========================================================================
   Clients & Partners Page Styles
   ========================================================================== */
.clients-showcase {
    padding: 6rem 0;
    position: relative;
}

.clients-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.clients-intro .section-title {
    margin-bottom: 1.5rem;
}

.clients-intro .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Filter Bar */
.clients-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.clients-filter-btn {
    background-color: var(--bg-translucent);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
}

.clients-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.clients-filter-btn.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #0b0c10;
    font-weight: 600;
}

[data-theme="light"] .clients-filter-btn.active {
    color: #ffffff;
}

/* Clients Grid & Cards */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.client-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-translucent);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.client-showcase-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

/* Card Spotlight cursor tracking (radial glow background on hover) */
.client-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 189, 69, 0.12), transparent 72%);
    pointer-events: none;
    z-index: 1;
}

.client-showcase-card:hover::after {
    opacity: 1;
}

.client-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .client-logo-wrapper {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.client-showcase-card:hover .client-logo-wrapper {
    background-color: #ffffff;
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(108, 189, 69, 0.15);
}

[data-theme="light"] .client-showcase-card:hover .client-logo-wrapper {
    background-color: #ffffff;
}

.client-logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.client-showcase-card:hover .client-logo-wrapper img {
    opacity: 1;
    transform: scale(1.03);
}

.client-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.client-sector-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    font-weight: 600;
}

.client-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.client-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.client-card-link:hover {
    color: var(--accent-green-hover);
}

.client-card-link .arrow-diagonal {
    display: inline-block;
    transition: transform 0.3s ease;
}

.client-card-link:hover .arrow-diagonal {
    transform: translate(2px, -2px);
}

[dir="rtl"] .client-card-link:hover .arrow-diagonal {
    transform: translate(-2px, -2px);
}

/* Filter Card Transition Animation classes */
.client-showcase-card.hide {
    display: none;
}

.client-showcase-card.show {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Showcase Tabs Styling */
.showcase-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.showcase-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px;
    gap: 4px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .showcase-tabs {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.showcase-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.showcase-tab-btn:hover {
    color: var(--text-primary);
}
.showcase-tab-btn.active {
    background-color: var(--accent-green);
    color: #ffffff;
}
.showcase-content-wrapper {
    display: none;
}
.showcase-content-wrapper.active {
    display: block;
    animation: tabFadeIn 0.5s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partners Grid & Cards */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.partner-showcase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
[data-theme="light"] .partner-showcase-card {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.partner-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 189, 69, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] .partner-showcase-card:hover {
    background-color: rgba(0, 0, 0, 0.02);
}
.partner-showcase-card.hide {
    display: none;
}
.partner-showcase-card.show {
    display: flex;
    animation: fadeInScale 0.4s ease forwards;
}







