* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    padding-bottom: 60px; /* space so fixed footer doesn't block last section */
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: height 0.3s ease, padding 0.3s ease;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: gap 0.3s ease;
}

/* Home image link */
.home-logo {
    height: 28px;
    width: auto;
    display: block;
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease, font-size 0.3s ease;
}

.top-nav a:hover {
    opacity: 0.7;
}

/* Hamburger Menu Styles - From Uiverse.io by JulanDeAlb */
.hamburger {
    cursor: pointer;
    display: none; /* Hidden by default */
}

.hamburger input {
    display: none;
}

.hamburger svg {
    /* The size of the SVG defines the overall size */
    height: 2.3em;
    /* Define the transition for transforming the SVG */
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    /* Define the transition for transforming the Stroke */
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Menu Text */
.menu-text {
    display: none; /* Hidden by default */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50px; /* Start below the nav */
    left: -300px; /* Hidden by default */
    width: 300px;
    height: calc(100vh - 60px); /* Full height minus nav */
    background-color: rgba(0, 0, 0, 0.7); /* Black with transparency */
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 20px 30px 30px 30px;
    box-sizing: border-box;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    font-size: larger;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #1e9bd7;
}

/* Main Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px); /* 60px header + 60px footer */
    margin-top: 60px; /* offset for fixed header */
    overflow: hidden;
    transition: margin-top 0.3s ease;
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    top: calc(50vh - 30px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
}

.logo-image {
    max-width: 350px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: max-width 0.3s ease;
}

/* Footer */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    transition: height 0.3s ease;
}

.bottom-footer p {
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

.clients-section {
    position: relative;
    width: 100%;
    /* set same gray as logo tiles */
    background: #e0e3e6;
    /* mimic previous facts band height and add spacing from previous section */
    height: 34vh;
    min-height: 240px;
    padding: 40px 0 60px 0;
    margin-top: 80px; /* add space between Who Are We and this section */
    display: flex;
    align-items: center;
}

.clients-title {
    color: #0b0b0b;
    /* match previous facts band: left aligned with underline */
    text-align: left;
    align-self: flex-start;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    padding-left: 6px;
}

/* black underline similar to previous accent but black */
.clients-title::after {
    content: '';
    display: block;
    width: 110px;
    height: 4px;
    background: #000;
    margin-top: 10px;
    border-radius: 2px;
}

.clients-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.clients-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 40px;
    will-change: transform;
    transition: transform 0.6s ease-in-out;
}

.client-item {
    flex: 0 0 140px; /* fixed step to keep many logos visible on desktop */
    height: 84px; /* a bit taller to allow padding and a consistent tile */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* tile background so logos have a consistent shape */
    background: #e0e3e6; /* tile gray matching band but slightly darker */
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset; /* subtle bevel */
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    /* make the logo image visually match the tile shade: grayscale and slightly darker */
    filter: grayscale(100%) brightness(0.85) contrast(0.95);
    transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
    transform-origin: center center;
}

.client-item:hover img {
    filter: none; /* show full color on hover */
    transform: scale(1.06);
    opacity: 1;
}

@media (max-width: 1024px) {
    .client-item { flex-basis: 120px; height: 56px; }
    .clients-track { gap: 32px; }
}

@media (max-width: 768px) {
    .clients-title { font-size: 28px; letter-spacing: 1.5px; }
    .client-item { flex-basis: 110px; height: 52px; }
    .clients-track { gap: 28px; }
    .contact-title-side { font-size: 28px; padding-left: 15px; }
}

@media (max-width: 480px) {
    .clients-title { font-size: 24px; letter-spacing: 1px; }
    .client-item { flex-basis: 96px; height: 44px; }
    .clients-track { gap: 24px; }
    .contact-title-side { font-size: 24px; padding-left: 15px; }
}

/* Overview + Values sections */
.overview-section,
.values-section {
    background: #ffffff;
    color: #111111;
    padding: 48px 24px;
}

.overview-section.dark {
    background: #000000;
    color: #ffffff;
    padding: 80px 24px; /* larger band */
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 18px;
    color: inherit;
}

.overview-text {
    max-width: 980px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
    color: inherit;
    text-align: center;
}

.overview-section.dark .section-title { font-size: 44px; letter-spacing: 2px; }
.overview-section.dark .overview-text { font-size: 18px; opacity: 0.9; }

/* Use Avenir Next for Who Are We section and reduce weight */
.overview-section .section-title {
    font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600; /* less bold */
}
.overview-section .overview-text {
    font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

.values-list {
    max-width: 980px;
    margin: 8px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.values-list li {
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    color: #111111;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .overview-text { font-size: 15px; }
    .overview-section.dark .section-title { font-size: 34px; }
    .overview-section.dark .overview-text { font-size: 16px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 24px; }
    .overview-text { font-size: 14px; }
    .overview-section.dark .section-title { font-size: 28px; }
    .overview-section.dark .overview-text { font-size: 15px; }
}

/* Intro split section (reference-like) */
.intro-section {
    background: #0f0f0f;
    color: #e6e6e6;
    padding: 40px 0 20px 0;
    margin-top: 60px; /* more space from the hero/logo section */
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr; /* slightly narrower image column */
    gap: 56px;
    align-items: start;
    padding: 0 24px;
}

.intro-media {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    max-width: 420px; /* reduce visual width of the image stack */
}

.intro-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 1.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.intro-slide {
    flex: 0 0 100%;
    height: 100%;
}

.intro-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-active { opacity: 1; }

.intro-content { padding-top: 12px; }
.intro-title {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 3px; /* similar tracking to logo */
    text-transform: uppercase;
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; /* bold geometric sans */
    margin: 0 0 18px 0; 
}
.intro-title span { color: #ffffff; }
.intro-paragraph {
    color: #cfcfcf;
    line-height: 1.9;
    margin-bottom: 32px;
}

/* underline for Who Are We title */
.intro-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: #1e9bd7; /* accent color similar to other accents */
    margin-top: 10px;
    border-radius: 2px;
}

/* Our Service Section */
.our-service {
    /* push the services down to align with the bottom of the image column */
    margin-top: 120px;
}

.our-service-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    color: #e6e6e6;
    margin-left: 900px;
    margin: 0 0 18px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0px; /* tighter columns spacing per request */
}

.service-column p {
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.5; /* tighter vertical spacing */
    margin: 0 0 6px 0;
}

@media (max-width: 1024px) {
    .intro-container { grid-template-columns: 1fr; gap: 32px; }
    .intro-media { height: 56vh; min-height: 420px; max-width: none; }
    .intro-title { font-size: 38px; letter-spacing: 2px; }
    .our-service-title { font-size: 20px; }
    .service-grid { grid-template-columns: 1fr, 2.4fr; }
}

/* Facts parallax band */
.facts-section {
    position: relative;
    background-image: url('images/Meshraq17.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 34vh; /* smaller section height */
    min-height: 240px;
    display: flex;
    align-items: center;
    color: #ffffff;
    margin-top: 60px;
}

.facts-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.facts-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.facts-header { margin-bottom: 18px; }
.facts-pre { font-size: 28px; letter-spacing: 4px; opacity: 0.9; }
.facts-title { font-size: 34px; letter-spacing: 3px; margin: 4px 0 6px 0; }
.facts-accent { width: 100px; height: 4px; background: #1e9bd7; border-radius: 2px; }

.facts-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.fact { text-align: left; }
.fact-row { display: flex; align-items: baseline; gap: 8px; }
.fact-plus { font-size: 36px; line-height: 1; color: #1e9bd7; font-weight: 700; }
.fact-num { font-size: 68px; font-weight: 700; line-height: 1; display: inline-block; transition: transform 120ms ease-out; will-change: transform; }
.fact-label { margin-top: 6px; font-size: 16px; opacity: 0.9; }

@media (max-width: 768px) {
    .facts-section { height: 30vh; min-height: 220px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fact-num { font-size: 48px; }
    .fact-plus { font-size: 28px; }
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-right {
        display: none; /* Hide navigation links on mobile */
    }

    .hamburger {
        display: flex; /* Show hamburger menu */
        align-items: center;
        cursor: pointer;
    }

    .menu-text {
        display: inline; /* Show MENU text */
        margin-left: 10px;
    }

    .top-nav {
        padding: 0 20px;
        height: 50px;
    }

    .nav-left,
    .nav-right {
        gap: 20px;
    }

    .top-nav a {
        font-size: 11px;
    }

    .home-logo { height: 24px; }

    .hero-section {
        margin-top: 50px; /* 50px header */
        height: calc(100vh - 100px); /* 50px header + 50px footer */
    }

    .logo-image {
        max-width: 180px;
    }

    /* Keep full coverage on smaller screens */
    .carousel-slide img {
        transform: none;
    }

    .bottom-footer {
        height: 50px;
    }

    .bottom-footer p {
        font-size: 10px;
        padding: 0 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-left,
    .nav-right {
        gap: 10px;
    }

    .top-nav a {
        font-size: 9px;
    }

    .home-logo { height: 20px; }

    .logo-image {
        max-width: 150px;
    }

    .carousel-slide img {
        transform: none;
    }
}

/* Contact Section */
.contact-section {
    background: #000;
    padding: 48px 0 60px 0;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.contact-title-side {
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    padding-left: 6px;
    margin: 0 0 6px 0;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
}

.contact-title-side::after {
    content: '';
    display: block;
    width: 110px;
    height: 4px;
    background: #1e9bd7;
    margin-top: 10px;
    border-radius: 2px;
}

.contact-row {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-top: 80px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    background: transparent;
}

.contact-header {
    display: flex;
    gap: 8px;
    align-items: center;
}

.contact-icon { flex-shrink: 0; stroke: #fff; }
.contact-label { font-weight: 700; color: #fff; margin: 0; }
.contact-detail { color: #fff; font-size: 15px; line-height: 1.4; }
.contact-detail a { color: #fff; text-decoration: none; transition: opacity 160ms ease; }
.contact-detail a:hover { opacity: 0.8; }

@media (max-width: 768px) {
    .contact-row { flex-direction: column; gap: 12px; }
    .contact-section { padding: 32px 15px 40px 0; }
    .contact-title-side { font-size: 28px; padding-left: 30px; }
    .contact-detail { font-size: 14px; padding-left: 40px;}
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 700ms cubic-bezier(0.2,0.8,0.2,1);
    pointer-events: none;
}
.page-transition.cover {
    transform: translateX(0);
    pointer-events: auto;
}
.page-transition.exit {
    transform: translateX(-100%);
}
