/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Colors - Premium Corporate Theme */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    /* Very light cool gray */
    --color-bg-dark: #0f172a;
    /* Midnight Blue - Deep and Premium */
    --color-bg-darker: #020617;
    /* Almost black for footer */

    --color-text: #1e293b;
    /* Slate 800 */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-text-light: #f1f5f9;
    /* Slate 100 */

    --color-primary: #0f172a;
    /* Midnight Blue as primary brand color */
    --color-accent: #16a34a;
    /* BCG-like green for subtle highlights, or keep Blue if preferred. */
    --color-highlight: #38bdf8;
    /* Bright Blue for dark backgrounds */

    --color-border: #e2e8f0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Editorial feel */
    --font-body: 'Cairo', sans-serif;
    /* Clean, modern */

    /* Border Radius */
    --radius-sm: 2px;
    /* Sharper, more corporate */
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    /* Slightly wider for modern screens */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.text-white {
    color: #ffffff !important;
}

.text-gray {
    color: var(--color-text-muted) !important;
}

.text-left {
    text-align: left !important;
}

.section__header {
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
}

.section__title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.section__subtitle {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0;
    /* Square/Sharp buttons for corporate feel */
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #ffffff !important;
}

.btn--primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.btn--white {
    background-color: #ffffff;
    color: var(--color-primary) !important;
    border: 1px solid #ffffff;
}

.btn--white:hover {
    background-color: transparent;
    color: #ffffff !important;
}

.btn--outline {
    border-color: #ffffff;
    color: #ffffff !important;
    background: transparent;
}

.btn--outline:hover {
    background-color: #ffffff;
    color: var(--color-primary) !important;
}

.btn--full {
    width: 100%;
    text-align: center;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.link-arrow:hover {
    border-bottom-color: var(--color-primary);
}

.link-arrow .arrow {
    transition: transform 0.2s ease;
}

.link-arrow:hover .arrow {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.header--scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo__image {
    height: 60px;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__lang-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.nav__lang-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    margin-top: 0;
    /* Reset */
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__content {
    max-width: 800px;
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--color-highlight);
}

.hero__subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-highlight);
    font-weight: 600;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.hero .highlight {
    color: #ffffff;
    font-style: italic;
    /* Use italic for differentiation */
    background: linear-gradient(120deg, var(--color-highlight) 0%, transparent 100%);
    /* Subtle gradient highlight */
    padding-right: 10px;
}

.hero__description {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Expertise / Services Grid */
.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    /* Gap for border effect */
    background-color: var(--color-border);
    /* Grid lines color */
    border: 1px solid var(--color-border);
}

.expertise__item {
    background-color: #ffffff;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: background-color 0.3s ease;
}

.expertise__item:hover {
    background-color: #f8fafc;
}

.expertise__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.expertise__desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    min-height: 4.5em;
    /* Align buttons */
}

/* Impact / How We Help (Split Layout) */
.impact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.impact__content {
    padding-right: var(--spacing-md);
}

.impact__text-block {
    margin-bottom: var(--spacing-lg);
}

.impact__heading {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 1rem;
}

.impact__heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 2px;
    height: 1.2em;
    background-color: var(--color-primary);
}

.impact__desc {
    color: var(--color-text-muted);
}

.impact__values {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
}

.impact__value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.impact__value-item .value-icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.impact__image-wrapper {
    position: relative;
}

.impact__img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    /* Editorial look */
}

/* Insights (Card Grid) */
.insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.insight-card {
    background: #ffffff;
    border-top: 2px solid var(--color-primary);
    /* Accent top border */
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.insight-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.insight-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.insight-excerpt {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

/* Team (Showcase Layout) */
.team__showcase {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    background: #ffffff;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.team__photo {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team__showcase:hover .team__photo {
    filter: grayscale(0%);
}

.team__name {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.team__role {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
}

.team__desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Clients */
.clients__intro {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.clients__grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
}

.client__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 90px;
}

.client__logo {
    max-height: 70px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.client__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact__details {
    margin-top: var(--spacing-lg);
}

.contact__item {
    margin-bottom: var(--spacing-md);
}

.contact__label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.contact__link {
    font-size: 1.5rem;
    font-weight: 300;
    text-decoration: none;
}

.dark-form .form__input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-form .form__input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.form__group {
    margin-bottom: var(--spacing-md);
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border-radius: 0;
    font-family: var(--font-body);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invert-logo {
    filter: brightness(0) invert(1);
}

.footer__links {
    display: flex;
    gap: var(--spacing-md);
}

.footer__links a:hover {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 900px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
    }

    .nav__list.open {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__content {
        border-left: none;
        padding-left: 0;
    }

    .impact__layout,
    .team__showcase,
    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .impact__img {
        height: 300px;
    }

    .team__showcase {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}