html {
  scrollbar-width: none; /* Для Firefox */
  -ms-overflow-style: none; /* Для IE и Edge */
}

html::-webkit-scrollbar {
  display: none; /* Для Chrome, Safari и Opera */
}

body {
  background-color: #000000;
    width: 100%;
    height: 300vh;
    margin: 0;

    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Для плавного скролла на iOS */
  }


.zen-kaku-gothic-new-regular {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-style: normal;
    font-kerning: normal;
  }

  
  .title {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 600;
    font-size: 800px;
    letter-spacing: -60px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: #106637;
    z-index: -10;
    margin: 0;
    will-change: transform;
    /* Оптимизация анимации */
    animation: marquee 200s linear infinite;
  }

  .name_outline_bg {
    color: #f2f2f200;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 600;
    font-size: 800px;
    top: 50%;
    left: 50%; /* Добавляем горизонтальное центрирование */
    transform: translate(-50%, -50%); /* Смещаем элемент назад на половину его размеров */
    margin: 0;
    white-space: nowrap; /* Чтобы текст не переносился */
    z-index: -5; /* Убедитесь, что элемент находится поверх других, если нужно */
    /* Создаем обводку текста */
    -webkit-text-stroke: 02px #ffffff; /* Для Safari/Chrome */
    letter-spacing: -260px;
    padding-right: 260px; /* Компенсация */
    margin-right: -130px; /* Дополнительная корректировка */
    box-sizing: border-box;
    filter: url(#wiggle-filter); /* Применяем SVG-фильтр */
    will-change: transform; /* Оптимизация анимации */
}

  .aboutFubuki {
    color: #ffffff;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    width: 400px;
    left: 12%;
    letter-spacing: -0.4px;
    line-height: 20px;
    top: 20px;
    z-index: 100;
  }
  
  .arrow-button {
    position: fixed;
    right: 12%;
    top: 40px;
    z-index: 100;
    
    width: 160px;
    height: 48px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius:0px;
    
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем текст */
    
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    letter-spacing: -0.4px;
    
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-bottom: 4px;
  }
  
  .button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/btn_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }
  
  .arrow-button:hover .button-bg {
    opacity: 1;
  }
  
  .arrow-button:hover {
    color: #000;
    border-color: transparent;
  }
  
  .button-text {
    position: relative;
    transition: color 0.1s 0.1s ease-out;
  }
  
  .arrow-button:hover .button-text {
    color: transparent;
  }
  
  .aboutFubuki3 {
    color: #ffffff;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    width: 320px;
    left: 20%;
    letter-spacing: -0.4px;
    line-height: 20px;
    top: 400px;
    z-index: 100;
  }

  .aboutFubuki2 {
    color: #ffffff;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    width: 400px;
    right: 8%;
    letter-spacing: -0.4px;
    line-height: 20px;
    top: 400px;
    z-index: 100;
  }

  .aboutFubuki4 {
    color: #ffffff;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    width: 400px;
    right: 8%;
    letter-spacing: -0.4px;
    line-height: 20px;
    bottom: 20px;
    z-index: 100;
  }

  .madeby {
    color: #ffffff;
    position: fixed;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 14px;
    width: 400px;
    left: 12%;
    letter-spacing: -0.1px;
    line-height: 20px;
    bottom: 20px;
    z-index: 100;
  }

  .cursor {
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 0%;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  #cursorImage {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    display: none;
    transform-origin: center center;
    will-change: transform;
  }
  
  #cursorImage img {
    width: 120px;
    height: auto;
    transition: 
      transform 0.3s ease-out,
      filter 0.3s ease;
    transform-style: preserve-3d;
  }



  @keyframes float {
    0% {
      transform: translate(-50%, -50%) scale(0.5);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -150%) scale(1);
      opacity: 0;
    }
  }

  @keyframes marquee {
    0% {
      transform: translateY(-50%) translateX(0);
    }

    100% {
      transform: translateY(-50%) translateX(-200%);
      /* Сдвигаем влево на 200% ширины текста */
    }
  }

  .container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
      will-change: transform;
  }

  #bodyImage {
    width: 660px;
    display: block;
    z-index: 5;
  }

  #physicsLayer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index:1;
  }

  .controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    color: white;
  }

  #physicsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }