section {
  height: 100vh;
  position: relative;
  background: url("../assets/imgs/class-2.png") no-repeat center;
  background-size: cover;
}

.first-section span {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
  font-size: 60px;
  font-family: "Work Sans";
}

.first-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  mix-blend-mode: multiply;
}

@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: border-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 {
  .nav-cta-btn {
    font-size: var(--font-size-1);
    font-weight: var(--font-weight-7);
    inline-size: max-content;
    white-space: nowrap;
    text-decoration: none;
    padding-block: var(--size-3);
    padding-inline: var(--size-7);
    border: var(--border-size-2) solid transparent;
    color: black;
    position: relative;
    isolation: isolate;

    background: linear-gradient(white, white) padding-box,
      var(--brand-gradient) border-box;
    border-radius: var(--radius-6);
    overflow: hidden;

    &::before {
      content: "";
      display: block;
      position: absolute;
      inset: 0;

      background: var(--brand-gradient);
      mix-blend-mode: screen;
    }

    &:hover {
      color: white;

      &::before {
        background: var(--brand-gradient) padding-box,
          var(--brand-gradient) border-box;
        background-repeat: no-repeat;
        background-size: contain;
        mix-blend-mode: normal;
        z-index: -1;
      }
    }
  }

  .section {
    --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;
    }
  }

  .section-wrapper {
    position: relative;
    display: grid;

    @media (width >=960px) {
      grid-template-columns: 1fr 1fr;
    }

    @media (width < 960px) {
      padding-block-start: calc(var(--nav-block-size) + var(--size-7));
      padding-block-end: var(--size-7);
    }
  }

  .video {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    position: relative;
    z-index: -1;
  }

  .content-wrapper {
    display: grid;

    @media (width < 960px) {
      gap: var(--size-7);
    }
  }

  .meta {
    display: grid;
    gap: var(--size-3);
    position: absolute;
    left: 100px;
  }

  .meta ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 0;
  }

  .content {
    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: 100cqb;
      place-items: center end;
    }

    @media (width < 960px) {
      gap: var(--size-5);
    }
  }

  .mobile-visual {
    inline-size: 100%;
    aspect-ratio: var(--ratio-square);

    @media (width >=960px) {
      display: none;
    }
  }

  .headline {
    max-inline-size: var(--size-content-1);
    text-wrap: pretty;
    color: #efc88b;
    font-weight: 700;
    font-size: 35px;
    margin-bottom: 10px;

    @media (width < 960px) {
      font-size: var(--font-size-6);
    }
  }

  .desc {
    font-size: var(--font-size-4);
    line-height: 1.5;
    max-inline-size: 40ch;
    text-wrap: pretty;
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 1);

    @media (width < 960px) {
      font-size: var(--font-size-3);
    }
  }

  .visual {
    display: grid;
    position: sticky;
    block-size: var(--section-block-size);
    inset-block-start: 0;
    container-type: size;

    @media (width < 960px) {
      display: none;
    }
  }

  .video-visual {
    inline-size: 100%;
    block-size: var(--section-block-size);
    display: block;
    position: sticky;
    inset-block-start: 0;
    isolation: isolate;
    filter: hue-rotate(210deg);
  }

  .card-wrapper {
    container-type: size;
    display: grid;
    place-items: center;
    overflow: clip;
    background: linear-gradient(0deg, #080808, #080808);
    > * {
      grid-area: 1/1;
    }
  }

  .card {
    aspect-ratio: var(--ratio-square);
    inline-size: 70cqi;
    border-radius: var(--radius-3);
    scale: 0.4;
  }

  .card-img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  .card-1 {
    scale: 1;
  }

  .card-2 {
    translate: -35cqi 30cqb;
    opacity: 0.2;
  }

  .card-3 {
    translate: 0cqi 50cqb;
    opacity: 0.2;
  }

  .card-4 {
    translate: 45cqi 40cqb;
    opacity: 0.2;
  }

  .content-1 {
    background: linear-gradient(0deg, #080808, #080808),
      linear-gradient(
        126.66deg,
        rgba(0, 0, 0, 0) 0.71%,
        rgba(239, 200, 139, 0.2) 77.43%
      );

    background-blend-mode: screen;
  }

  .content-2 {
    background: linear-gradient(0deg, #080808, #080808),
      linear-gradient(
        126.66deg,
        rgba(0, 0, 0, 0) 0.71%,
        rgba(239, 200, 139, 0.2) 77.43%
      );

    background-blend-mode: screen;
  }

  .content-3 {
    background: linear-gradient(0deg, #080808, #080808),
      linear-gradient(
        126.66deg,
        rgba(0, 0, 0, 0) 0.71%,
        rgba(239, 200, 139, 0.2) 77.43%
      );

    background-blend-mode: screen;
  }

  .content-4 {
    background: linear-gradient(0deg, #080808, #080808),
      linear-gradient(
        126.66deg,
        rgba(0, 0, 0, 0) 0.71%,
        rgba(239, 200, 139, 0.2) 77.43%
      );

    background-blend-mode: screen;
  }

  .text-highlight {
    background: var(--_text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

@supports (animation-timeline: scroll()) {
  body {
    timeline-scope: --content-1, --content-2, --content-3, --content-4;
  }

  .section {
    view-timeline-name: --section;
  }

  .content-1 {
    view-timeline-name: --content-1;
  }

  .content-2 {
    view-timeline-name: --content-2;
  }

  .content-3 {
    view-timeline-name: --content-3;
  }

  .content-4 {
    view-timeline-name: --content-4;
  }

  .card {
    animation-timing-function: linear;
    animation-fill-mode: forwards;
  }

  .card-1 {
    animation-timeline: --content-1;
    animation-name: slide-up-first-card;
  }

  .card-2 {
    animation-timeline: --content-2;
    animation-name: slide-up-card;
  }

  .card-3 {
    animation-timeline: --content-3;
    animation-name: slide-up-card;
  }

  .card-4 {
    animation-timeline: --content-4;
    animation-name: slide-up-card;
  }

  .video-visual {
    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-card {
    50% {
      translate: 0;
      opacity: 1;
    }

    90% {
      translate: 0 -50cqi;
      scale: 0.6;
    }

    100% {
      translate: 0 -100cqi;
      opacity: 0;
    }
  }

  @keyframes slide-up-card {
    50% {
      opacity: 1;
      translate: 0;
      scale: 1;
    }

    90% {
      opacity: 0.5;
      scale: 0.6;
      translate: 0 -50cqb;
    }

    100% {
      translate: 0 -100cqi;
      opacity: 0;
    }
  }
}
nav {
  background-color: #090b0e;
  color: #ffffff;
  padding: 0 20px 100px;
  padding-right: 40px;
  position: relative;
  z-index: 2;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

nav.show {
  transform: translateX(0);
  opacity: 1;
}

nav .nav-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}
nav .nav-header span:last-child {
  cursor: pointer;
}
nav .nav-header span {
  font-weight: 400;
  font-size: 15px;
}
nav .pages {
  margin: 80px 30px 0;
  list-style: none;
  font-weight: 400;
  font-size: 25px;
  padding-left: 0;
}
nav .pages li {
  margin-bottom: 20px;
  cursor: pointer;
}

nav .pages li a {
  color: #fff;
  text-decoration: none;
}
nav .pages li img {
  margin-left: 24px;
  cursor: pointer;
}

nav .timetable {
  margin-top: 30px;
  list-style: none;
  font-weight: 300;
  font-size: 20px;
  display: none;
}

nav .timetable.show {
  display: block;
}

nav button {
  background: #efc88b;
  padding: 7px 20px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin: 20px 0;
  border: none;
  margin-left: 30px;
  cursor: pointer;
}

nav button a {
  color: #fff;
  text-decoration: none;
}

nav hr {
  width: 50%;
  margin-left: 30px;
}
nav .loaction {
  font-weight: 400;
  font-size: 16px;
  margin-left: 30px;
  margin-top: 20px;
  display: block;
}

nav .sochial {
  list-style: none;
  display: flex;
  font-weight: 400;
  font-size: 16px;
  margin-top: 20px;
  padding-left: 0;
  margin-left: 30px;
  gap: 10px;
}
.navigation-section {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 120px);
  z-index: 1;
}

.navigation-bar {
  height: 4px;
  background-color: rgba(235, 235, 235, 0.3);
  border-radius: 10px;
}

.bar-fill {
  border-radius: 10px;
  width: 0%;
  height: 100%;
  background-color: #efc88b;
  transition: width 0.2s ease;
}

.header-photos {
  position: fixed;
  top: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 30px 60px;
  z-index: 1;
}

.header-photos img:first-child {
  width: 113px;
  height: 32px;
}
.header-photos img:last-child {
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: rgba(12, 12, 12, 1);
  align-items: center;
  gap: 50px;
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 1);
  padding-top: 100px;
  padding-right: 60px;
  padding-bottom: 50px;
  padding-left: 60px;
}

footer div {
  width: 33.333%;
  text-align: left;
}

footer div:nth-child(1) span {
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

footer div:nth-child(1) p {
  font-size: 50px;
  font-weight: 400;
  font-family: "Work Sans";
}

footer div:nth-child(2) span {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

footer div:nth-child(2) p {
  font-size: 16px;
  font-weight: 400;
}

footer div:nth-child(3) {
  display: flex;
  flex-direction: column;
}

footer div:nth-child(3) span:nth-child(1) {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

footer div:nth-child(3) span:nth-child(2) {
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 0%;
  margin-bottom: 5px;
  text-decoration-skip-ink: auto;
}

footer div:nth-child(3) span:nth-child(3) {
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  margin-bottom: 10px;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

@media (max-width: 960px) {
  .header-photos {
    padding: 30px;
  }
  .mobile-visual .card-img {
    width: 394px;
  }
  .mobile-visual {
    display: flex;
    justify-content: center;
    margin-top: 124px;
  }
  .meta {
    position: relative;
    margin-top: 100px;
    margin-bottom: 134px;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 0;
    padding-left: 30px;
    padding-right: 30px;
  }
  footer {
    padding-top: 100px;
    padding-right: 30px;
    padding-bottom: 50px;
    padding-left: 30px;
    flex-wrap: wrap;
  }
  footer div:nth-child(1) {
    width: 100%;
  }
}

@media (min-width: 320px) and (max-width: 768px) {
  .header-photos {
    padding: 30px 20px;
  }

  .navigation-section {
    width: calc(100% - 60px);
  }

  .mobile-visual .card-img {
    width: 250px;
  }

  footer {
    padding-top: 50px;
    padding-right: 30px;
    padding-bottom: 50px;
    padding-left: 30px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer div {
    width: 100%;
  }
}
