/* Twojj Design Slater CSS  */
.dj_button-link {
  -webkit-appearance: button;
  background-image: none;
}

[tw-website="dj-constructon"] {

  :root {
    --clip-y: 0;
    --clip-x: 0;
    --clip-r: 0;
  }

  .projects-item:nth-child(2n+1) {
    transform: translateY(20%);
  }

  header {
    opacity: 0;
  }

  [data-menu-toggle="toggle"] {
    min-width: 122px;
  }

  .floating-elements {
    display: flex;
    pointer-events: none;
  }

  .floating-tile {
    overflow: hidden;
    transform: translateY(-110%) rotate(-3deg) scaleX(1.2) scaleY(1.05);
    transform-origin: right top;
    transition: all 0.8s cubic-bezier(0.87, 0, 0.13, 1);
    border-radius: 4px;

    &:nth-child(1) {
      transition-delay: 0.3s;
    }

    &:nth-child(2) {
      transition-delay: 0.325s;
    }

    &:nth-child(3) {
      transition-delay: 0.35s;
    }

    &:nth-child(4) {
      transition-delay: 0.375s;
    }

    &:nth-child(5) {
      transition-delay: 0.4s;
    }
  }

  .wrap-float-link {
    transition: opacity 0.3s cubic-bezier(.7, 0, .3, 1);

    .float-link {
      transform: translateY(130%) rotate(3deg);
      transition: transform 0.75s cubic-bezier(.7, 0, .3, 1);

      span {
        display: block;
        transition: transform 0.3s cubic-bezier(.7, 0, .3, 1);
        transform: translateY(0%) rotate(0.001deg);
      }

      /*&:hover {
        span {
          transform: translateY(-100%) rotate(0.001deg);
        }
      }*/

    }

    &:nth-child(1) {
      .float-link {
        transition-delay: 0.2s;
      }
    }

    &:nth-child(2) {
      .float-link {
        transition-delay: 0.15s;
      }
    }

    &:nth-child(3) {
      .float-link {
        transition-delay: 0.1s;
      }
    }

    &:nth-child(4) {
      .float-link {
        transition-delay: 0.05s;
      }
    }

  }

  .floating-menu {
    &:has(.wrap-float-link:hover) .wrap-float-link {
      opacity: 0.15;

      &:hover {
        opacity: 1;
      }
    }
  }

  .floating-bottom {
    overflow: hidden;

    .float-bottom-link {
      transform: translateY(100%) rotate(3deg);
      transition: transform 0.75s cubic-bezier(.7, 0, .3, 1);
      transition-delay: 0.4s;
    }
  }

  &[data-menu-status="active"] {
    [data-menu-toggle="toggle"] {
      .btn-text.btn-text-close {
        display: block;
      }

      .btn-text:not(.btn-text-close) {
        display: none;
      }
    }

    .floating-tile {
      transform: translateY(0%) rotate(0.001deg) scaleX(1.02) scaleY(1.05);

      &:nth-child(1) {
        transition-delay: 0s;
      }

      &:nth-child(2) {
        transition-delay: 0.025s;
      }

      &:nth-child(3) {
        transition-delay: 0.05s;
      }

      &:nth-child(4) {
        transition-delay: 0.075s;
      }

      &:nth-child(5) {
        transition-delay: 0.1s;
      }
    }

    .floating-menu,
    .floating-bottom {
      pointer-events: all;
    }

    .wrap-float-link {
      .float-link {
        transform: translateY(0%) rotate(0.001deg);
        transition-delay: 0.3s;
      }

      &:nth-child(1) {
        .float-link {
          transition-delay: 0.3s;
        }
      }

      &:nth-child(2) {
        .float-link {
          transition-delay: 0.35s;
        }
      }

      &:nth-child(3) {
        .float-link {
          transition-delay: 0.4s;
        }
      }

      &:nth-child(4) {
        .float-link {
          transition-delay: 0.45s;
        }
      }
    }

    .floating-bottom {
      .float-bottom-link {
        transform: translateY(0%) rotate(0.001deg) scaleX(1.02) scaleY(1.05);
      }
    }

  }

  .hero-mask {
    clip-path: inset(calc(var(--clip-y) * 1%) calc(var(--clip-x) * 1%) calc(var(--clip-y) * 1%) calc(var(--clip-x) * 1%) round calc(var(--clip-r) * 1px));
  }

  #loader {
    display: block;
  }

  .dj_button-link {
    transition: all .6s;

    .btn__text {
      transition: all .6s cubic-bezier(.625, .05, 0, 1);
    }

    &:hover {
      .btn__text {
        transform: translateY(-100%);
        transition: transform .4s cubic-bezier(.625, .05, 0, 1);
      }
    }
  }

  .word-mask>.word {
    display: flex !important;

    .char_wrap {
      overflow: hidden;
    }
  }

  [data-text-stagger] span {
    color: var(--colors--accent-color);
  }

  .sticky-morph path {
    stroke-width: 0.5;
  }

  .gallery-item {
    @media (min-width:480px) {
      &:nth-child(2) {
        .gallery-item-inner {
          margin-top: 10vw;
        }
      }

      &:nth-child(4),
      &:nth-child(6) {
        .gallery-item-inner {
          margin-top: -10vw;
        }
      }
    }
  }

  [data-stack-card] {
    transition: all .5s ease;

    &:not(.stack-card-active) {
      opacity: 0.35;
      transform: translateY(12px);
    }

    &..stack-card-active {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .footer-credit {
    &>div {
      transition: all .6s cubic-bezier(.625, .05, 0, 1);
    }

    &:hover {
      &>div {
        transform: translateY(-100%);
        transition: transform .4s cubic-bezier(.625, .05, 0, 1);
      }
    }
  }

  .project-description {
    * {
      font-size: 16px;
    }
  }

  .project-title {
    &>div {
      width: 100%;
      text-align: center !important;
    }
  }

  .char-wrap {
    overflow: hidden;
    display: inline-block;
  }

  .inspiration-three-canvas {
    position: absolute;
    z-index: 2;
    inset: 0;
  }

  /* LIGHTBOX STYLES */
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lightbox-overlay.is-open .lightbox-content {
    transform: scale(1);
  }

  .lightbox-img-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.25);
    background-color: var(--bg-card);
  }

  .lightbox-img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    will-change: transform, opacity;
  }

  .lightbox-caption {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .lightbox-badge {
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent-blueprint);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
  }

  .lightbox-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
  }

  .lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10000;
  }

  .lightbox-close:hover {
    background: var(--accent-blueprint);
    color: #000000;
    border-color: var(--accent-blueprint);
    transform: rotate(90deg);
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
  }

  .lightbox-nav:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blueprint);
    color: var(--accent-blueprint);
    transform: translateY(-50%) scale(1.1);
  }

  .lightbox-prev {
    left: 2rem;
  }

  .lightbox-next {
    right: 2rem;
  }

  /* CSS Keyframe Animation */
  @keyframes translateX {
    to {
      transform: translateX(-100%);
    }
  }

  [data-css-marquee-list] {
    animation: translateX 35s linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
  }

  @media (max-width: 768px) {
    .lightbox-close {
      top: 1rem;
      right: 1rem;
      width: 40px;
      height: 40px;
      font-size: 1.4rem;
    }

    .lightbox-nav {
      width: 42px;
      height: 42px;
      font-size: 1.1rem;
    }

    .lightbox-prev {
      left: 0.75rem;
      projects-item
    }

    .lightbox-next {
      right: 0.75rem;
    }

    .lightbox-caption {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
  }

}
