
:root {
    --primary-color: #239BA7;
    --secondary-color: #ECECBB;
    --font-inter: 'Inter', sans-serif;
    --font-bebas: 'Bebas Neue', sans-serif;
		cursor: url('assets/cursor-fill3.png') 1 1, auto !important;
		
}
/* При наведении на кликабельное */
a:hover,
button:hover,
input:hover,
textarea:hover,
.play-btn:hover,
.tags span:hover {
    cursor: url('assets/pointer2.png') 12 12, pointer !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

*{
  font-size: 1em;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.nickname {
  position: absolute;
  top: 25px;
  left: 40px;
  font-size: 2em;
  font-weight: 400;
}

.main {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  background-color: var(--primary-color);
  >*{
    color: var(--secondary-color);
  }
}

.eye-gif {
  width: 140px;
  margin-bottom: 10px;
}

.main h4 {
  font-size: 2em;
  margin: 0 0 40px;
}

.main h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24em;
  margin: -20px 0 0;
  line-height: .8;
}

.main h1.title-animated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.015em;
}

.main h1.title-animated .title-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(46px) scale(0.9) rotateX(-75deg);
  transform-origin: center bottom;
  filter: blur(8px);
  will-change: transform, opacity, filter;
  animation: portfolioLetterIn 0.72s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--letter-index, 0) * 0.085s + 0.12s);
}

.main h1.title-animated .title-letter.space-letter {
  width: 0.2em;
}

@keyframes portfolioLetterIn {
  0% {
    opacity: 0;
    transform: translateY(46px) scale(0.9) rotateX(-75deg);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02) rotateX(0deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

.transition{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: var(--primary-color);
  height: 150px;
  pointer-events: none;
  /* .transitionPath{
    position: absolute;
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  } */
}

.base{
  background-color: var(--secondary-color);
}

header{
  color: var(--secondary-color);
  position: relative;
  z-index: 10;
}

.star {
  position: absolute;
  width: auto;
}

.star-left {
  top: 30%;
  left: 10%;
}

.star-right {
  bottom: 20%;
  right: 10%;
}

.menu {
  position: absolute;
  bottom: 200px;
  display: flex;
  gap: 40px;
}

.menu a {
  font-size: 2em;
  color: #ECECBB;
  text-decoration: none;
  transition: .3s;
}

.menu a:hover {
  transform: scale(1.1);
  color: white;
}


.hero-scroll {
  position: absolute;
  right: 44px;
  bottom: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(236, 236, 187, 0.72);
  text-decoration: none;
  z-index: 3;
  opacity: 0.78;
  transition: transform 0.28s ease, opacity 0.28s ease, color 0.28s ease;
}

.hero-scroll__text {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.88;
}

.hero-scroll__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(236, 236, 187, 0.34);
  background: rgba(236, 236, 187, 0.04);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1;
  animation: heroScrollBounce 2.1s ease-in-out infinite;
}

.hero-scroll:hover {
  transform: translateY(-3px);
  opacity: 1;
  color: var(--secondary-color);
}

.hero-scroll:hover .hero-scroll__icon {
  background: rgba(236, 236, 187, 0.08);
  border-color: rgba(236, 236, 187, 0.54);
}

.hero-scroll:focus-visible {
  outline: 2px solid rgba(236, 236, 187, 0.55);
  outline-offset: 5px;
  border-radius: 999px;
}

@keyframes heroScrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.line {
  position: absolute;
  bottom: 250px;
  width: 300px;
  left: 50%;
  transform: translateX(-50%);
}

/* адаптив */
@media (max-width: 1400px) {
  .main h1 { font-size: 14em; }

}


@media (max-width: 768px) {
  .main h1 { font-size: 150px; }
  .main h4 { font-size: 22px; }
  .eye-gif { width: 90px; }
  .hero-scroll { right: 18px; bottom: 22px; gap: 6px; opacity: 0.86; }
  .hero-scroll__text { font-size: 0.9rem; }
  .hero-scroll__icon { width: 38px; height: 38px; font-size: 1.25rem; }
  .menu { bottom: 100px; gap: 25px; }
  .menu a { font-size: 22px; }
  .hero-scroll {
    bottom: 20px;
    gap: 8px;
  }
  .hero-scroll__text {
    font-size: 0.82rem;
    letter-spacing: 0.13em;
  }
  .hero-scroll__icon {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  .star-left { top: 25%; left: 5%; }
  .star-right { bottom: 15%; right: 5%; }
}

@media (max-width: 480px) {
  .main h1 { font-size: 80px; }
  .nickname { font-size: 20px; left: 20px; }
  .menu { position: static; margin-top: 40px; }
  .menu a { font-size: 18px; }
  .hero-scroll {
    bottom: 18px;
  }
  .hero-scroll__icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}



/* ------------------- SCROLLBAR ------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(236, 236, 187, 0.45);
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background: rgba(236, 236, 187, 0.45);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, #1f848d 100%);
  border-radius: 999px;
  border: 2px solid rgba(236, 236, 187, 0.75);
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1f848d 0%, var(--primary-color) 100%);
}


@media (prefers-reduced-motion: reduce) {
  .main h1.title-animated .title-letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}



html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(236, 236, 187, 0.65);
  border-radius: 50%;
  background: rgba(35, 155, 167, 0.92);
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bebas);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(26, 91, 98, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 999;
}

.back-to-top span {
  transform: translateY(-1px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1f848d;
  box-shadow: 0 16px 34px rgba(26, 91, 98, 0.34);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(236, 236, 187, 0.9);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top,
  .hero-scroll {
    transition: none;
  }

  .hero-scroll__icon {
    animation: none;
  }
}


/* ------------------- iPhone adaptive polish ------------------- */
@media (max-width: 768px) {
  .main {
    min-height: 100svh;
    height: auto;
    padding: 92px 18px 138px;
    justify-content: center;
  }

  .nickname {
    top: 20px;
    left: 20px;
    font-size: 1.9rem;
  }

  .eye-gif {
    width: clamp(74px, 18vw, 96px);
    margin-bottom: 8px;
  }

  .main h4 {
    font-size: clamp(1.3rem, 4.8vw, 1.7rem);
    margin: 0 0 24px;
  }

  .main h1 {
    font-size: clamp(5.2rem, 21vw, 9.4rem);
    line-height: 0.9;
    margin: 0;
    letter-spacing: 0.01em;
    max-width: 100%;
    text-wrap: balance;
  }

  .stars-wrap {
    width: min(100%, 360px);
    height: 180px;
    position: relative;
    margin: 18px auto 0;
  }

  .star-left,
  .star-right {
    width: 72px;
  }

  .star-left {
    top: 18px;
    left: 10px;
  }

  .star-right {
    right: 8px;
    bottom: 6px;
  }

  .line {
    width: min(72vw, 280px);
    bottom: 122px;
  }

  .menu {
    bottom: 78px;
    gap: 28px;
  }

  .menu a {
    font-size: 1.45rem;
  }

  .transition {
    height: 112px;
  }

  .hero-scroll {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .main {
    padding: 84px 16px 124px;
  }

  .nickname {
    font-size: 1.65rem;
    left: 16px;
  }

  .main h1 {
    font-size: clamp(4.3rem, 19vw, 5.9rem);
  }

  .main h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  .stars-wrap {
    height: 150px;
    width: min(100%, 310px);
  }

  .star-left,
  .star-right {
    width: 64px;
  }

  .menu {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    width: auto;
    gap: 24px;
  }

  .menu a {
    font-size: 1.28rem;
  }

  .line {
    width: min(68vw, 250px);
    bottom: 112px;
  }

  .hero-scroll__text {
    display: none;
  }
}

@media (max-width: 390px) {
  .main {
    padding: 78px 14px 116px;
  }

  .main h1 {
    font-size: clamp(4rem, 18vw, 5.1rem);
  }

  .stars-wrap {
    height: 136px;
  }

  .star-left,
  .star-right {
    width: 56px;
  }

  .menu a {
    font-size: 1.18rem;
  }

  .line {
    bottom: 104px;
  }
}


/* ------------------- SCROLL REVEAL ------------------- */
[data-scroll-reveal] {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  filter: blur(8px);
  transition: opacity 0.78s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.78s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.78s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

[data-scroll-reveal="left"] {
  transform: translate3d(-56px, 0, 0);
}

[data-scroll-reveal="right"] {
  transform: translate3d(56px, 0, 0);
}

[data-scroll-reveal="scale"] {
  transform: translate3d(0, 34px, 0) scale(0.94);
}

[data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal],
  [data-scroll-reveal="left"],
  [data-scroll-reveal="right"],
  [data-scroll-reveal="scale"] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ------------------- responsive tune-up v28 ------------------- */
@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main {
    overflow: hidden;
    padding-top: calc(78px + env(safe-area-inset-top));
    padding-bottom: 128px;
  }

  .nickname {
    top: calc(18px + env(safe-area-inset-top));
    left: 18px;
    right: 18px;
    font-size: 1.45rem;
    line-height: 1;
  }

  .eye-gif {
    width: clamp(76px, 19vw, 96px);
    margin-bottom: 6px;
  }

  .main h4 {
    margin: 0 0 14px;
    font-size: clamp(1.1rem, 4.4vw, 1.45rem);
  }

  .main h1 {
    margin: 0;
    line-height: 0.9;
    letter-spacing: 0.015em;
  }

  .stars-wrap {
    width: min(100%, 320px);
    height: 126px;
    margin-top: 12px;
  }

  .star-left,
  .star-right {
    width: 58px;
  }

  .star-left {
    top: 10px;
    left: 22px;
  }

  .star-right {
    right: 22px;
    bottom: 0;
  }

  .line {
    width: min(66vw, 250px);
    bottom: 88px;
  }

  .menu {
    bottom: 44px;
    gap: 22px;
    align-items: center;
  }

  .menu a {
    font-size: 1.2rem;
    line-height: 1;
  }

  .transition {
    height: 94px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .main {
    min-height: 100svh;
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: 112px;
  }

  .nickname {
    font-size: 1.2rem;
    left: 16px;
  }

  .main h1 {
    font-size: clamp(3.8rem, 17.6vw, 5.2rem);
  }

  .main h1.title-animated {
    gap: 0.01em;
  }

  .stars-wrap {
    width: min(100%, 286px);
    height: 104px;
    margin-top: 10px;
  }

  .star-left,
  .star-right {
    width: 48px;
  }

  .star-left {
    left: 18px;
  }

  .star-right {
    right: 18px;
    bottom: -2px;
  }

  .line {
    width: min(62vw, 220px);
    bottom: 82px;
  }

  .menu {
    bottom: 42px;
    gap: 24px;
  }

  .menu a {
    font-size: 1.1rem;
  }
}

@media (max-width: 390px) {
  .main {
    padding-top: calc(68px + env(safe-area-inset-top));
    padding-bottom: 108px;
  }

  .main h1 {
    font-size: clamp(3.4rem, 16.8vw, 4.7rem);
  }

  .line {
    bottom: 78px;
  }

  .menu {
    bottom: 38px;
    gap: 20px;
  }
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  border: 2px solid #239BA7;
  color: #239BA7;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cv-btn:hover {
  background: #239BA7;
  color: #ECECBB;
}

body {
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ------------------- LANG TOGGLE ------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.lang-toggle {
	 position: fixed !important;;
	 z-index: 1 !important;;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: #ECECBB;
  font-family: var(--font-inter);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding:20px 14px;
	top: 20px;
	right: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
	align-items: center;
}

.lang-toggle:hover {
  background: solid var(--primary-color);
  color: #ECECBB;
}