* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #f3f3f1;
    color: #111;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.project-header {
    width: 100%;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
    font-weight: 600;
}

.project-logo {
    width: 52px;
    height: auto;
}

.project-page {
    width: 100%;
    padding: 10px 40px 100px;
}

.project-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 80px;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.project-hero-image video{
    width: 100%;
    height: 590px;
    object-fit: cover;
    border-radius: 20px;
}

.project-hero-content {
    padding-top: 10px;
}

.project-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
    font-weight: 700;
}

.project-hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    max-width: 700px;
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
}

.project-meta div span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.project-meta div strong {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.project-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.primary-btn {
    background: #111;
    color: #fff;
}

.primary-btn:hover {
    background: #4c5eff;
}

.secondary-btn {
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #111;
    background: transparent;
}

.secondary-btn:hover {
    border-color: #4c5eff;
    color: #4c5eff;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.7;
    cursor: pointer;
    transform: translateY(0) scale(1);
    filter: grayscale(18%);
    transition:
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;
}

.project-gallery img:hover {
    opacity: 1;
    transform: translateY(-6px) scale(1.04);
    filter: grayscale(0%);
}
.project-pdf-section {
    margin-top: 20px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -1px;
}


.images-section .single-image{
    width: 80%;
    margin: auto;
}


        /* body {
  margin: 0;
  overflow: hidden;
  background: #000;
} */

.slider {
  position: relative;
  height: 100vh;
  width: 100%;
}

.slide {
  position: absolute;
  width: 400px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.6s ease;
  border-radius: 20px;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* الحالة النشطة */
.slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

/* اللي فوق */
.slide.prev {
  transform: translate(-50%, -120%) scale(0.7);
  opacity: 0.4;
  z-index: 2;
}

/* اللي تحت */
.slide.next {
  transform: translate(-50%, 20%) scale(0.7);
  opacity: 0.4;
  z-index: 1;
}

/* ============================================
   CASE STUDY SECTIONS
   ============================================ */

.case-study {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual section block */
.cs-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 56px 0;
    border-top: 1px solid #e0dedd;
}

.cs-section .section-head {
    margin-bottom: 0;
}

.cs-section .section-head p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-bottom: 10px;
}

.cs-section .section-head h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #111;
    position: sticky;
    top: 30px;
}

/* Body text inside sections */
.cs-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.cs-body p:last-child {
    margin-bottom: 0;
}

/* Barrier cards — 3 fears */
.cs-barriers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.cs-barrier-card {
    background: #fff;
    border: 1px solid #e0dedd;
    border-radius: 14px;
    padding: 20px 18px;
    transition: border-color 0.25s ease;
}

.cs-barrier-card:hover {
    border-color: #bbb;
}

.cs-barrier-num {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b04040;
    margin-bottom: 10px;
}

.cs-barrier-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

/* Pull quote */
.cs-pull-quote {
    padding: 56px 0;
    border-top: 1px solid #e0dedd;
}

.cs-pull-quote blockquote {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #111;
    max-width: 720px;
    padding-left: 28px;
    border-left: 3px solid #111;
}

/* Pillars grid */
.cs-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.cs-pillar {
    background: #fff;
    border: 1px solid #e0dedd;
    border-radius: 14px;
    padding: 20px 20px;
    transition: border-color 0.25s ease;
}

.cs-pillar:hover {
    border-color: #bbb;
}

.cs-pillar-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}

.cs-pillar-sub {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.55;
}

/* AI components box */
.cs-ai-box {
    background: #fff;
    border: 1px solid #e0dedd;
    border-radius: 14px;
    padding: 24px 22px;
    margin: 24px 0;
}

.cs-ai-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 14px;
}

.cs-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-ai-tag {
    font-size: 0.85rem;
    font-weight: 600;
    background: #f3f3f1;
    border: 1px solid #e0dedd;
    border-radius: 999px;
    padding: 6px 16px;
    color: #333;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cs-ai-tag:hover {
    background: #eeecea;
    border-color: #bbb;
}

/* CTA block */
.cs-cta {
    border-top: 1px solid #e0dedd;
    padding: 56px 0 0;
}

.cs-cta-inner {
    background: #111;
    border-radius: 20px;
    padding: 48px 52px;
}

.cs-cta-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 14px;
}

.cs-cta-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cs-cta-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #888;
    max-width: 540px;
    margin-bottom: 28px;
}

.cs-cta-inner .primary-btn {
    background: #fff;
    color: #111;
    font-size: 0.9rem;
}

.cs-cta-inner .primary-btn:hover {
    background: #4c5eff;
    color: #fff;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* --- Base states (hidden before animating in) --- */
[data-anim] {
    transition-property: opacity, transform, clip-path;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-duration: 0.75s;
    transition-delay: var(--delay, 0s);
}

[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(36px);
}
[data-anim="fade-in"] {
    opacity: 0;
}
[data-anim="slide-left"] {
    opacity: 0;
    transform: translateX(-28px);
}
[data-anim="scale-up"] {
    opacity: 0;
    transform: scale(0.93) translateY(20px);
}
[data-anim="reveal-line"] {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
}
[data-anim="pop"] {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
}

/* --- Visible state (JS adds this class) --- */
[data-anim].is-visible {
    opacity: 1;
    transform: none;
    clip-path: none;
}

/* Hero entrance — fires on load, not scroll */
.hero-anim-kicker  { opacity: 0; transform: translateY(18px); animation: heroIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards; }
.hero-anim-h1      { opacity: 0; transform: translateY(24px); animation: heroIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s forwards; }
.hero-anim-desc    { opacity: 0; transform: translateY(20px); animation: heroIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.36s forwards; }
.hero-anim-meta    { opacity: 0; transform: translateY(16px); animation: heroIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.5s forwards; }
.hero-anim-img     { opacity: 0; transform: scale(0.97) translateY(16px); animation: heroIn 0.85s cubic-bezier(0.22,1,0.36,1) 0.05s forwards; }

@keyframes heroIn {
    to { opacity: 1; transform: none; }
}

/* Border-top reveal on .cs-section and .cs-pull-quote */
.cs-section,
.cs-pull-quote,
.cs-cta {
    position: relative;
}
.cs-section::before,
.cs-pull-quote::before,
.cs-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 1px;
    width: 100%;
    background: #e0dedd;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--line-delay, 0s);
}
.cs-section.is-visible::before,
.cs-pull-quote.is-visible::before,
.cs-cta.is-visible::before {
    transform: scaleX(1);
}
/* Remove the static border-top since we're animating it */
.cs-section,
.cs-pull-quote,
.cs-cta {
    border-top: none;
}

/* Slider arrows — mobile only */
.slider-arrow {
    display: none;
    position: absolute;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.slider-arrow:hover { background: #fff; }
.slider-arrow--prev { top: calc(50% - 56px); }
.slider-arrow--next { top: calc(50% + 12px); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .slider-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-hero-image img {
        height: 480px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery img {
        height: 280px;
    }

    .pdf-frame-wrap {
        height: 700px;
    }

    .cs-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cs-section .section-head h2 {
        position: static;
    }

    .cs-barriers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .project-header,
    .project-page {
        padding-left: 24px;
        padding-right: 24px;
    }

    .project-hero-image img {
        height: 320px;
        border-radius: 16px;
    }

    .project-description {
        font-size: 0.98rem;
    }

    .pdf-frame-wrap {
        height: 560px;
        border-radius: 16px;
    }

    .cs-pillars {
        grid-template-columns: 1fr;
    }

    .cs-cta-inner {
        padding: 32px 28px;
    }

    .project-meta {
        flex-wrap: wrap;
        gap: 20px;
    }
}
