@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
/* star fon */
body {
  position: relative;
  overflow-x: hidden;
}

body {
  cursor:
    url("images/sakura.png") 16 16,
    auto;
}
a:hover,
button:hover,
.preview:hover,
.photo-block:hover {
  cursor:
    url("images/sakura2.png") 16 16,
    pointer;
}

/* stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 2.5s infinite ease-in-out;
}

/* flickering */
@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
}
/*____________
text
______________*/
body {
  margin: 0;

  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.5px;

  background-color: #a6aad3;
}

a {
  color: #fefefe;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.6;
}

.container {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.btn {
  font-size: 18px;
  display: inline-block;
  padding: 16px 50px;

  background: #5f3cb6;
  border-radius: 4px;
  display: inline-flex;

  align-items: center;
  gap: 10px;
}

.btn:hover {
  opacity: 0.8;
}

.btn::before {
  content: "";
  background-image: url("images/Group\ inst.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 18px;
  height: 18px;
}

/*____________
header
______________*/

.header {
  padding: 20px 0;

  background: rgba(95, 60, 182, 0.7);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  gap: 60px;
}

.header__link {
  font-weight: 700;
  font-size: 18px;
}

/*____________
main
______________*/
.main {
}

/*____________
welcome
______________*/

.welcome {
  margin-top: 80px;
}

.welcome .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome__desc {
}

.welcome__title {
  width: 580px;
  margin-bottom: 24px;
  margin-top: 0;

  font-weight: 700;
  font-size: 54px;
  line-height: 1.19;
}

.welcome__text {
  width: 530px;
  margin-bottom: 60px;
}

.welcom__btn {
}

.welcome__img {
  margin-right: 80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  object-fit: center;
}

/* Visual Explorations */
.container {
}
.page__title2 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}
.page__title {
  margin-top: 80px;
  margin-bottom: 10px;
  font-size: 40px;
}

.menu a:hover {
  opacity: 0.6;
}

/* gallery */
.gallery-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* picture */
.gallery-row img {
  width: 405px;
  height: 255px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-row img:hover {
  transform: scale(1.05);
}

/*  lightbox ( GIF)  */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* gallery title */
.gallery-title {
  font-size: 32px;
  margin-left: 40px;
  margin-bottom: 20px;
  font-weight: 500;
}

.gallery-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

/* poster */
.posters-row img {
  width: 405px;
  height: 550px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.posters-row img:hover {
  transform: scale(1.05);
}

/* lightbox? */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.container {
}
.page__title3 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}

.photo-block[data-gallery="football"] {
  background-image: url("images/r1.JPG");
}

.photo-block[data-gallery="nature"] {
  background-image: url("images/f1.jpg");
}

.photo-block {
  width: 605px;
  height: 405px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}

/* blackout */
.photo-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.49);
  transition: 0.5s;
}

.photo-block:hover::after {
  background: rgba(0, 0, 0, 0.25);
}

.photo-block p {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-size: 22px;
  font-weight: 500;
  z-index: 2;
}

/* blocks */
.two-blocks {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.photo-block:hover {
  transform: scale(1.05);
}

.photo-block p {
  font-size: 22px;
  font-weight: 500;
}

/* foto */
.gallery-set {
  display: none;
}

/* lightbox2 */
#lightbox2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox2 img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

#prev,
#next {
  font-size: 60px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}
.container {
}
.page__title4 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}
.container {
}
.page__title5 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}
.glitch-scroll {
  display: grid;
  grid-template-columns: repeat(3, auto); /* 3 сверху, 3 снизу */
  justify-content: center; /* центрируем */
  gap: 20px;
  padding: 20px;
}

.glitch-scroll img {
  width: 405px; /* фиксированная ширина, как у старых фото */
  height: auto; /* пропорционально */
  border-radius: 10px;
  object-fit: contain;
  transition: none;
}

.glitch-scroll img:hover {
  transform: none;
}

.container {
}
.page__title6 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}
.art-btn {
  font-size: 18px;
  padding: 16px 50px;
  background: #5f3cb6;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.art-btn:hover {
  opacity: 0.8;
}

.p5-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.container {
}
.page__title6 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}
.art-btn {
  font-size: 18px;
  padding: 16px 50px;
  background: #5f3cb6;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}
.art-btn:hover {
  opacity: 0.8;
}
.p5-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

#p5-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#linegame-canvas {
  display: flex;
  justify-content: center;
}

.container {
}
.page__title8 {
  margin-top: 15px;
  margin-bottom: 35px;
  font-size: 22px;
  text-align: center;
}

.threeD-block {
  text-align: center;
  margin-top: 40px;
}

.threeD-title {
  font-size: 32px;
  color: white;
  margin-bottom: 20px;
}

.threeD-btn {
  font-size: 18px;
  padding: 16px 50px;
  background: #5f3cb6;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  text-decoration: none;
}
.threeD-center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 35px;
}

.threeD-btn:hover {
  opacity: 0.8;
}

/* phone */
/* 📱 MOBILE VERSION */
@media (max-width: 600px) {
  /* Шапка — чтобы не ломалась */
  .header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header__nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Welcome — текст слева, фото справа */
  .welcome .container {
    display: flex;
    flex-direction: row-reverse; /* фото справа */
    justify-content: flex-start; /* убираем space-between */
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  /* ЖЁСТКО задаём порядок элементов */
  .welcome__desc {
    order: 1; /* текст слева */
  }

  .welcome__img {
    order: 2; /* фото справа */
    width: 150px;
    height: 150px;
    margin: 0;
  }

  .welcome__title {
    width: 100%;
    font-size: 26px;
    margin-bottom: 10px;
  }

  .welcome__text {
    width: 100%;
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* GIF галерея */
  .gallery-row {
    flex-direction: column;
    align-items: center;
  }

  .gallery-row img {
    width: 90%;
    height: auto;
  }

  /* Posters */
  .posters-row img {
    width: 90%;
    height: auto;
  }

  /* Two blocks (Photo series) */
  .two-blocks {
    flex-direction: column;
    gap: 20px;
    align-items: center; /* центрируем фото-блоки */
  }

  .photo-block {
    width: 90%;
    height: 250px;
  }

  /* Glitch Art */
  .glitch-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .glitch-scroll img {
    width: 100%;
    height: auto;
  }

  /* Lightbox */
  #lightbox2 img {
    max-width: 95%;
    max-height: 70%;
  }

  #prev,
  #next {
    font-size: 40px;
    padding: 10px;
  }
}
