@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --app-black: #000000;
    --app-white: #ffffff;

    --bs-black: var(--app-black);
    --bs-white: var(--app-white);
    --bs-body-bg: var(--app-black);
    --bs-body-color: var(--app-white);

    --text-black: var(--bs-black);
    --text-white: var(--bs-white);
    --bg-color-black: var(--bs-black);
}

.text-black {
    color: var(--text-black) !important;
}

.text-white {
    color: var(--text-white) !important;
}

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

body {
    font-family: "Montserrat", sans-serif;}

/* ================= CUSTOM SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ================= VIDEO ================= */
video {
    opacity: 0.3;
    transition: 1.5s ease;
}

.intro.final video {
    opacity: 1;
}

/* ================= H1 ================= */
.intro h1 {
    left: 50%;
    transform: translate(-50%, -50%);
    top: -100vh;
    font-size: clamp(6.2px, 3.1vw, 63px);
    transition: 2s ease;
    font-weight: 700;
    z-index: 10001;
    /* Higher than global overlay */
}

/* المرحلة الأولى */
.intro.start h1 {
    top: 50%;
}

/* المرحلة التانية */
.intro.scale h1 {
    top: 86%;
    transform: translate(-50%, 0%) scale(2.8);
}

/* ================= OVERLAY STRIPS ================= */
.overlay {
    left: -20vw;
    width: 140vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.overlay span {
    flex: 1;
    height: 100%;
    background: #000;
    transform: skewX(12deg) scaleX(1.1);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* حركة الشرايط - عند التفعيل */
.overlay.active span {
    transform: skewX(15deg) scaleX(1.1) translate(20%, -100%);
    opacity: 0;
}



/* ================= BRAND HEADING ================= */
.brand-heading {
    font-size: clamp(32px, 8vw, 87px);
    font-weight: 900;
    line-height: 1.2;
}


/* ================= SCROLL SECTION ================= */
.scrolling-section {
    gap: 20px;
    position: relative;
}

.scroll-row {
    white-space: nowrap;
    width: max-content;
}

.scroll-row h1 {
    font-size: clamp(45px, 10vw, 150px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    padding: 0 10px;
    letter-spacing: -2px;
    position: relative;
    display: flex;
    align-items: center;
}


.scroll-row h1:not(:last-child)::after {
    content: "/";
    margin-left: 33px;
    font-weight: 500;
    color: var(--text-white);
}

.progress-bar-container {
    position: absolute;
    bottom: 40px;
    left: 5%;
    width: 90%;
    height: 1px;
    z-index: 10;
}

.progress-bar {
    transform-origin: left;
    transform: scaleX(0);
}

/* ================= STATS SECTION ================= */
.stats-section .stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -2px;
}

.counter-wrapper {
    display: inline-flex;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}

.digit-column {
    display: flex;
    flex-direction: column;
    /* transition removed to favor GSAP */
    width: 0.6em;
    /* Fixed width per digit to prevent overlapping */
    text-align: center;
}

.digit-column span {
    display: block;
    height: 1em;
    width: 100%;
}

.stat-suffix {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}



.stats-section .stat-divider {
    height: 1px;
}

.custom-bg-img {
    background-image: url('/images/IMG_0409-scaled-1\ \(1\).webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
    background-attachment: fixed;
    position: relative;

}

.custom-bg-img .bg-overlay {
    background-color: var(--bg-color-black);
    opacity: 0.78;
    transition: background 0.3s,
        border-radius 0.3s,
        opacity 0.3s;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

}

.custom-bg-img .bg-overlay h1 {
    position: absolute;
    top: 58%;
    left: 38%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -2px;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

/* ================= HORIZONTAL SCROLL SLIDER ================= */
.horizontal-scroll-container {
    height: 600vh;
    /* Increased from 400vh for slower scroll */
    background-color: #0b0b0b;
}


.horizontal-track {
    padding-left: 50vw;
    will-change: transform;
}

.project-item {
    min-width: 600px;
    height: 400px;
    margin-right: 150px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: brightness(0.3);
}

.project-item.active {
    filter: brightness(1);
    transform: scale(1.2);
}

.project-item img,
.project-item video {

    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ================= NEW FIXED TITLES ================= */
.project-titles-fixed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    /* overflow hidden here clips the sliding titles */
    overflow: hidden;
    height: clamp(60px, 10vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.title-item {
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    position: absolute;
    white-space: nowrap;
    /* Start hidden below the container */
    transform: translateY(110%);
    transition:
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s ease;
    opacity: 0;
}

.title-item.active {
    transform: translateY(0%);
    opacity: 1;
}

.title-item.exit {
    transform: translateY(-110%);
    opacity: 0;
}

.horizontal-progress-bar-container {
    bottom: 40px;
    left: 5%;
    width: 90%;
    height: 1px;
    z-index: 10;
}

.horizontal-progress-bar {
    transform-origin: left;
    transform: scaleX(0);
}



/* ================= AWARD SECTION ================= */
.award-text-overlap {
    z-index: 10;
}

@media (min-width: 992px) {
    .award-text-overlap {
        margin-left: -9%;
        /* السحب ناحية الشمال عشان النص يغطي على الصورة */
    }
}

@media (max-width: 991px) {
    .award-text-overlap {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .brand-heading {
        font-size: clamp(32px, 8vw, 50px);
    }

    .project-item {
        min-width: 85vw;
        height: 300px;
        margin-right: 50px;
    }
}

@media (min-width: 768px) {
    .scroll-row h1 {
        letter-spacing: -4px;
    }
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}