@layer library, reset, base, demo;
@import 'https://unpkg.com/open-props@2.0.0-beta.5' layer(library);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');

@layer reset {

  *,
  ::before,
  ::after {
    box-sizing: content21-box;
  }

  :where(:not(dialog)) {
    margin: 0;
  }
}

@layer base {
  html {
    --nav-block-size: 74px;
    --brand-gradient: linear-gradient(227deg,
        #1400c7 0%,
        #00bbff 100%);

    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  body {
    font-family: 'Inter', sans-serif;
    min-block-size: 100dvb;
  }
}

@layer demo {
  .navbar21 {
    min-block-size: var(--nav-block-size);
    display: grid;
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    background-color: white;
    z-index: var(--layer-3);
    place-items: center end;
    padding-block: var(--size-3);
    padding-inline: var(--size-5);

    @media (width >=600px) {
      padding-inline: 6dvi;
    }
  }

  
  .section21 {
    --section-block-size: max(400px, 100dvb);
    display: grid;
    background-color: white;
    min-block-size: var(--section-block-size);
    position: relative;
    block-size: 100%;
    display: grid;

    >* {
      grid-area: 1/1;
    }
  }

  .section21-wrapper21 {
    position: relative;
    display: grid;

    @media (width >=960px) {
      grid-template-columns: 40% 4fr 1fr;
    }

    @media (width < 960px) {
      padding-block-start: calc(var(--nav-block-size) + var(--size-7));
      padding-block-end: var(--size-7);
    }
  }

  .video21 {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    position: relative;
    z-index: -1;
  }

  .content21-wrapper21 {
    display: grid;

    @media (width < 960px) {
      gap: var(--size-7);
    }
  }

  .meta {
    display: grid;
    gap: var(--size-3);
  }

  .content21 {
    display: grid;
    inline-size: 100%;
    place-items: center;
    padding-block: var(--size-7);
    padding-inline: var(--size-5);

    @media (width >=960px) {
      padding: var(--size-10);
      min-block-size: 73cqb; 
       /*// this control the scroll down up  */
      place-items: center end;
    }

    @media (width < 960px) {
      gap: var(--size-5);
    }
  }

  .mobile21-visual21 {
    inline-size: 100%;
    aspect-ratio: var(--ratio-square);

    @media (width >=960px) {
      display: none;
    }
  }

  .headline21 {
    font-size: var(--font-size-7);
    font-weight: var(--font-weight-4);
    max-inline-size: var(--size-content21-1);
    text-wrap: pretty;

    @media (width < 960px) {
      font-size: var(--font-size-6);
    }
  }

  .desc21 {
    font-size: var(--font-size-4);
    line-height: 1.5;
    max-inline-size: 40ch;
    text-wrap: pretty;

    @media (width < 960px) {
      font-size: var(--font-size-3);
    }
  }

  .visual21 {
    display: grid;
    position: sticky;
    block-size: var(--section-block-size);
    inset-block-start: 0;
    container-type: size;

    @media (width < 960px) {
      display: none;
    }
  }

  .video21-visual21 {
    inline-size: 100%;
    block-size: var(--section-block-size);
    display: block;
    position: sticky;
    inset-block-start: 0;
    isolation: isolate;
    filter: hue-rotate(210deg);
  }

  .carde-wrapper21 {
    container-type: size;
    display: grid;
    place-items: center;
    overflow: clip;

    >* {
      grid-area: 1/1;
    }
  }

  .carde {
    aspect-ratio: var(--ratio-square);
    inline-size: 
   70cqi;
   /*// scroll up and down */
    border-radius: var(--radius-3);
    scale: 0.4;
  }

  .carde-img21 {
    display: block;
    inline-size: 55%;/*// carde size  */
 block-size: 55%;/*// carde size  */
    object-fit: cover;
  }

  .carde-1 {
    scale: 1;
  }

  .carde-2 {
    translate: -35cqi 30cqb;
    opacity: 0.3;
  }

  .carde-3 {
    translate: 0cqi 50cqb;
    opacity: 0.5;
  }

  .carde-4 {
    translate: 45cqi 40cqb;
    opacity: 0.5;
  }

  .content21-1 {
    --_text-gradient: linear-gradient(227deg,
        #1400c7 0%,
        #00bbff 100%);
  }

  .content21-2 {
    --_text-gradient: linear-gradient(227deg,
        #28dc28 0%,
        #00bbff 100%);
  }

  .content21-3 {
    --_text-gradient: linear-gradient(227deg,
    #db1571 0%,
    #ff7b00 100%);
  }

  .content21-4 {
    --_text-gradient: linear-gradient(227deg,
    #ff8800 20%,
    #00bbff 100%);
  }

  .text-highlight {
    background: var(--_text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-fill-color: transparent; */
  }
}

@supports (animation-timeline: scroll()) {
  body {
    timeline-scope: --content21-1, --content21-2, --content21-3, --content21-4;
  }

  .section21 {
    view-timeline-name: --section;
  }

  .content21-1 {
    view-timeline-name: --content21-1;
  }

  .content21-2 {
    view-timeline-name: --content21-2;
  }

  .content21-3 {
    view-timeline-name: --content21-3;
  }

  .content21-4 {
    view-timeline-name: --content21-4;
  }

  .carde {
    animation-timing-function: linear;
    animation-fill-mode: forwards;
  }

  .carde-1 {
    animation-timeline: --content21-1;
    animation-name: slide-up-first-carde;
  }

  .carde-2 {
    animation-timeline: --content21-2;
    animation-name: slide-up-carde;
  }

  .carde-3 {
    animation-timeline: --content21-3;
    animation-name: slide-up-carde;
  }

  .carde-4 {
    animation-timeline: --content21-4;
    animation-name: slide-up-carde;
  }

  .video21-visual21 {
    animation-timeline: --section;
    animation-range-end: exit 110%;
    animation-name: update-hue;
    animation-timing-function: step-end;
    animation-fill-mode: forwards;
  }

  @keyframes update-hue {
    0% {
      filter: hue-rotate(210deg);
    }

    25% {
      filter: hue-rotate(150deg);
    }

    45% {
      filter: hue-rotate(300deg);
    }

    60% {
      filter: hue-rotate(4deg);
    }
  }

  @keyframes slide-up-first-carde {
    50% {
      translate: 0;
      opacity: 1;
    }

    90% {
      translate: 0 -50cqi;
      scale: 0.6;
    }

    100% {
      translate: 0 -100cqi;
      opacity: 0;
    }
  }

  @keyframes slide-up-carde {
    50% {
      opacity: 1;
      translate: 0;
      scale: 1;
    }

    90% {
      opacity: 0.5;
      scale: 0.6;
      translate: 0 -50cqb;
    }

    100% {
      translate: 0 -100cqi;
      opacity: 0;
    }
  }
}
        
        
      /* Default styles (Mobile First) */
    .mobile21-visual21 {
      display: none; /* Hide by default (mobile screens) */
    }

    /* Show the element on desktop screens */
    @media (min-width: 768px) {
        .section21{
        display: block; /* Show on desktop */
      }
    }