:root {
  /* Цвета */
  --primary-color: #f1c40f;
  --primary-color-light: #ffe100;
  --secondary-color: #9b59b6;
  --dark-color: #1a1a2e;
  --light-color: #f5f5f7;
  --accent-color: #e74c3c;
  --background-dark: #0f0f1a;
  --text-light: #f5f5f7;
  --text-dark: #232342;
  --success-color: #2ecc71;
  --water-color: #3498db;
  --fire-color: #e74c3c;
  --earth-color: #2ecc71;
  --air-color: #ecf0f1;
  --ether-color: #9b59b6;
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;

  /* Дополнительные цвета для веб-документалистики */
  --doc-primary: #f3d250;
  --doc-secondary: #8675a9;
  --doc-tertiary: #5dd39e;
  --doc-quaternary: #348aa7;
  --doc-quinary: #525174;

  /* Цвета культур */
  --ancient-color: #f39c12;
  --eastern-color: #3498db;
  --abrahamic-color: #2ecc71;
  --shamanic-color: #e74c3c;
  --modern-color: #9b59b6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  cursor: none;
  /* overflow: auto;
  scrollbar-gutter: stable;
  scroll-behavior: smooth; */
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f1f2f3;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: opacity 0.5s ease;
  cursor: none;
  overflow: hidden;
}

/* Экран загрузки */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  max-width: 400px;
  padding: 20px;
}

.loader-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
}

.loader-icon .soul-essence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    var(--primary-color) 0%,
    rgba(155, 89, 182, 0.5) 60%,
    transparent 80%
  );
  border-radius: 50%;
  animation: pulsate 2s ease-in-out infinite, rotate 10s linear infinite;
  box-shadow: 0 0 30px var(--primary-color);
}

.loader-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 500;
}

.loader-progress {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.loader-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
}

/* Стиль для плашки цитаты */
.quote-card {
  position: relative;
  padding: 40px 30px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  margin: 0 0 10px;
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary-color);
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: 15px;
  font-size: 5rem;
  color: var(--primary-color);
  font-family: "Playfair Display", serif;
  line-height: 1;
}

.quote-content {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  color: var(--text-light);
}

.quote-author {
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

/* Интерактивная галерея */
.interactive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  aspect-ratio: 3/4;
  height: 450px;
  cursor: none;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.gallery-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Таймлайн для истории души */
#view {
  background: linear-gradient(0deg, #0d0d23 0%, #1a1a2e 100%);
  padding-bottom: 0;
}

.soul-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 20px;
  height: 2500px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 45%;
}

.timeline-item:nth-child(odd) {
  margin-left: auto;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: -60px;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: -60px;
}

.timeline-content {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-date,
.timeline-title {
  color: rgba(241, 196, 15, 0.85) !important;
  text-shadow: none;
}

.timeline-text {
  line-height: 1.6;
  color: rgba(245, 245, 247, 0.65);
}

/* Глоссарий души */
#glossary {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d23 100%);
}

.soul-glossary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.glossary-item {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glossary-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.glossary-term {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.glossary-definition {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Интерактивные ключевые фигуры */
#philosophy {
  .section-intro {
    font-weight: 600;
    font-size: 15.5px;
  }
}

.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.figure-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.figure-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.figure-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.figure-content {
  padding: 20px 20px 5px;
}

.figure-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.figure-title {
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.figure-bio {
  font-size: 0.95rem;
  line-height: 1.6;
}

.figure-bio,
.figure-title {
  font-weight: 600;
}

/* Обновлённая навигация */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background-color: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  margin-right: 10px;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Подвал сайта */
.footer {
  background-color: rgba(10, 10, 20, 0.9);
  padding-top: 60px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-about {
  color: var(--text-light);
  flex: 1;

  p {
    margin-bottom: 20px;
  }
}

.footer-navigation,
.footer-resources {
  flex: 0.5;
}

.footer-navigation {
  flex: 1;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 215px;
}

.footer-link-item {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

.footer-link i {
  font-size: 0.8rem;
}

.footer-bottom {
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;

  p {
    color: var(--text-light);
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 26, 0.95);
    padding: 20px;
    gap: 15px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 85%;
    margin-left: auto !important;
  }

  .timeline-item .timeline-dot {
    left: -57px !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .quote-card {
    padding: 20px;
  }

  .key-figures {
    grid-template-columns: 1fr;
  }

  .concepts-map-container {
    height: 400px;
  }

  .header-counter {
    padding: 3px 10px;
    margin-left: 10px;
  }

  .header-counter-label {
    font-size: 0.6rem;
  }

  .header-counter-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .custom-cursor {
    display: block;
  }

  .start-experience-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .pulse-icon {
    width: 30px;
    height: 30px;
  }
}

/* Общие стили для разделов */
section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding: 50px 0 60px;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Типографика */
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f1c40f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  animation: textShimmer 3s infinite;
}

@keyframes textShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h2 {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.1)
  );
  transform: translateX(-100%);
  animation: btnShimmer 3s infinite;
}

@keyframes btnShimmer {
  0% {
    transform: translateX(-100%);
  }
  20%,
  100% {
    transform: translateX(100%);
  }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Метаболлы */
#metaballs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Навигация между разделами */
.section-nav {
  display: none;
}

/* Обновленные стили для индикаторов секций */
.section-indicators {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.section-nav-indicator {
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
  position: relative;
}

.section-nav-indicator::after {
  content: attr(data-title);
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
  opacity: 0;
  transition: opacity var(--transition-medium) ease;
  pointer-events: none;
}

.section-nav-indicator:hover::after {
  opacity: 1;
}

.section-nav-indicator.active {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

/* Секция героя */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
}

.hero-content {
  max-width: 800px;
  margin: 70px auto 50px;

  a {
    display: block;
    margin: 0 auto;
    width: 230px;

    &:first-of-type {
      margin-bottom: 25px;
      width: 160px;
    }
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.counter-container {
  display: inline-block;
  margin-top: 150px;
  margin-left: 20px;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-label {
  font-size: 1.2rem;
  color: var(--primary-color);
}

#souls-counter {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #6b46c1, #2c5282);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0rem 1rem;
  border-radius: 8px;
  text-shadow: none;
}

/* Стили для счетчика в шапке */
.header-counter {
  display: flex;
  flex-direction: column;
  width: 142px;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  margin: 0 30px 0 20px;
  transition: all 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

.fond-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;

  p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.7rem;
    line-height: 1.2;
    max-width: 250px;
  }
}

.fond-logo {
  flex-shrink: 0;
}

.fond-logo-link {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fond-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.fond-logo img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1.1);
}

.header-counter-label {
  font-size: 0.7rem;
  color: #f1c40f;
  margin-bottom: 2px;
}

.header-counter-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 5px #f1c40f;
}

#about-project {
  .container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px 50px;
    border-radius: 20px;
  }

  .about-project-content {
    display: flex;
    flex-direction: row;
    gap: 80px;

    .project-left {
      font-weight: 600;
    }

    .project-right {
      .btn {
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        font-style: italic;

        img {
          border-radius: 30px;
          width: 200px;
          height: 200px;
          box-shadow: 0 0 5px 3px rgba(0, 115, 247, 0.5);
        }
      }
    }
  }
}

/* Стили для секции о душе */
#about {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d23 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  color: var(--text-light);
}

.soul-essence-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.soul-essence {
  position: absolute;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    var(--primary-color) 0%,
    rgba(155, 89, 182, 0.5) 60%,
    transparent 80%
  );
  border-radius: 50%;
  animation: pulsate 4s ease-in-out infinite;
  box-shadow: 0 0 30px var(--primary-color);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.8s ease;
}

@keyframes pulsate {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
}

.soul-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.soul-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--primary-color);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate(-50%, -50%);
}

/* Улучшенные стили для текстов для лучшей читаемости */
#glossary p,
#concepts p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

#gallery p,
#aspects p {
  font-weight: 600;
}

#philosophy h3,
#cultures h3,
#glossary h3,
#concepts h3,
#elements h3,
#gallery h3 {
  color: var(--secondary-color);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Добавление глассморфизма к элементам */
.quote-card,
.glossary-item,
.figure-card,
.gallery-item,
.concept-node,
.culture-section {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для раздела культур в формате линейного лендинга */

/*edit */
.section-divider {
  height: 3px;
  width: 100%;
  margin: 3rem 0 1rem;
  border-radius: 3px;
}

#aspects {
  .container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px 50px;
    border-radius: 20px;
  }
}

#gallery {
  .container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 30px 50px 35px;
    border-radius: 20px;
  }
}

#philosophy {
  .container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px 20px;
    border-radius: 20px;
  }
}

.universal-concepts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.universal-concept {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
}

.concept-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.universal-concept h4 {
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

/* Ответственный дизайн для раздела культур */
@media (max-width: 992px) {
  .culture-content {
    flex-direction: column !important;
  }

  .culture-info,
  .culture-visual {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .culture-section {
    padding: 1rem;
    margin-bottom: 3rem;
  }

  .culture-details {
    padding: 1rem;
  }

  .culture-symbol {
    font-size: 2rem;
    width: 60px;
    height: 60px;
  }
}

/* Стили для кастомного курсора */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  opacity: 0.5;
  transition: width 0.3s ease, height 0.3s ease;
}

.custom-cursor.interactive {
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.interactive::after {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

.custom-cursor.cursor-down {
  transform: translate(-50%, -50%) scale(0.8);
}

/* Стили для секции истории проекта */
#history {
  background: linear-gradient(#0a0a1a 0%, #1c1c3a 100%);
  padding: 130px 0 80px;

  .history-text {
    padding: 0 10px;
  }
}

.history-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px;
  border-radius: 20px;
  background: rgba(30, 30, 60, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.timeline-development {
  margin: 50px 0;
  position: relative;
  overflow: hidden; /* Обрезаем свечение, чтобы оно не выходило за границы */
  border-radius: 8px;
  padding: 20px 20px 10px;

  .fog {
    content: "";
    position: absolute;
    top: 0; /* Начинается выше блока для плавного входа */
    left: -10%;
    width: 120%; /* Шире блока для натурального движения */
    height: 60%;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.5),
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 30%,
        rgba(200, 230, 255, 0.65),
        transparent 60%
      );
    filter: blur(15px);
    animation: fog-flow 16s infinite linear;
    opacity: 0.7;
  }

  .light {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(255, 220, 150, 0.5), transparent);
    animation: soft-glow 2s infinite ease-in-out alternate;
  }
}

@keyframes fog-flow {
  0% {
    transform: translateX(-10%) translateY(-20%) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateX(5%) translateY(-10%) rotate(2deg);
    opacity: 0.7;
  }
  50% {
    transform: translateX(10%) translateY(-15%) rotate(-1deg);
    opacity: 0.6;
  }
  75% {
    transform: translateX(-5%) translateY(-10%) rotate(3deg);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-10%) translateY(-20%) rotate(0deg);
    opacity: 0.5;
  }
}

@keyframes soft-glow {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

.timeline-development::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 25px;
  left: 40px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
}

.dev-stage {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.dev-date {
  min-width: 90px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 20px;
  margin-right: 30px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
}

.dev-content {
  flex: 1;
  padding: 10px 20px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-content h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary-color);
}

/* Стили для секции благодарности */
#acknowledgments {
  background: linear-gradient(#1c1c3a 0%, #0a0a1a 100%);
  padding: 130px 0 0;
}

.acknowledgments-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  background: rgba(30, 30, 60, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  justify-content: center;
}

.partner-card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.partner-logo {
  margin-bottom: 20px;
}

.partner-logo a {
  display: inline-block;
  width: 333px;
  transition: all 0.3s ease;
  padding: 10px;

  img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
  }
}

.partner-logo a:hover {
  transform: rotate(0.5deg);
}

.partner-card h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.partner-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: rgba(241, 196, 15, 0.2);
  color: var(--primary-color);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.partner-link:hover {
  background: rgba(241, 196, 15, 0.3);
  transform: translateY(-3px);
}

/* Стиль для стеклянных карточек */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Дополнительные декоративные элементы */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 10px var(--primary-color);
  animation: float 15s infinite linear;
}

.floating-particles-culture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-particle-culture {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 10px var(--primary-color);
}

#scrollbar {
  overflow-y: scroll;
  top: 0;
  right: 0;
  display: none;
  height: 100%;
  position: fixed;
  z-index: 10001;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(200px, 0) rotate(180deg);
  }
  75% {
    transform: translate(100px, 50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Респонсивные стили для новых секций */
@media (max-width: 768px) {
  .dev-stage {
    flex-direction: column;
  }

  .dev-date {
    margin-bottom: 20px;
    align-self: flex-start;
  }

  .partners-container {
    flex-direction: column;
    align-items: center;
  }

  .partner-card {
    width: 100%;
  }
}

/* Стили для анимированных метаболлов в первой секции */
#hero .floating-metaballs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.metaball {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(106, 70, 193, 0.4),
    rgba(44, 82, 130, 0.4)
  );
  filter: blur(30px);
  opacity: 0.6;
  animation: floatMetaball 15s infinite ease-in-out;
}

@keyframes floatMetaball {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, 50px) scale(1.1);
  }
  50% {
    transform: translate(0, 100px) scale(0.9);
  }
  75% {
    transform: translate(-50px, 50px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Улучшаем стили для плавного скролла */
.smooth-scroll {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* высота шапки */
}

/* Цвета текста для разных секций */
/* ЗАГОЛОВКИ И ВАЖНЫЕ ЭЛЕМЕНТЫ - ЖЕЛТЫЙ ЦВЕТ */
h1,
h2,
h3,
h4,
.nav-link,
.footer-heading,
.counter-label,
.glossary-term,
.figure-name,
.culture-title,
.partner-card h4,
.concept-node,
.quote-author,
.nav-logo,
.partner-link,
.logo-icon {
  color: #f1c40f !important; /* Желтый */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Специфичные классы для выделенного текста */
.culture-details h4,
.universal-concept h4,
.nav-link.active,
.nav-link:hover,
.footer-link:hover,
.header-counter-label,
#progressPercentage {
  color: #f1c40f !important; /* Желтый */
}

/* ОСНОВНОЙ ТЕКСТ В ТЕМНЫХ СЕКЦИЯХ - БЕЛЫЙ ЦВЕТ */
#hero p,
#philosophy p,
#cultures p,
#glossary p,
#concepts p,
#elements p,
#gallery p,
.glossary-definition,
.figure-bio,
.hero-subtitle,
.header-counter-value,
.culture-description,
.culture-practices,
.culture-concepts-list li,
.universal-concept p,
.culture-quote,
.nav-link,
.progress-percentage {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ТЕКСТ В СВЕТЛЫХ СЕКЦИЯХ - ЧЕРНЫЙ ЦВЕТ */
#about p,
#history p,
#acknowledgments p,
.footer p,
.footer-link,
.dev-content p,
.partner-card p,
.acknowledgments-content p,
.history-content p,
.footer-bottom {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

a,
button,
input,
select,
textarea,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
  cursor: none;
}

#cultures {
  background: linear-gradient(0deg, #1a1a2e 0%, #0d0d23 100%);
  padding-bottom: 0;
  color: var(--text-light);
  position: relative;
  padding-top: 95px;
  overflow: hidden;

  h2 {
    margin-bottom: 1rem;
  }

  .cultures-intro {
    font-weight: 600;
  }

  .compass-items-horizontal {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 900px;
    margin: 0 auto;
  }

  .compass-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
    outline: 2px solid var(--primary-color);
    border-radius: 100%;

    .compass-count {
      position: absolute;
      top: 50%;
      left: 50%;
      margin: auto;
      transform: translate(-50%, -50%);
      color: var(--primary-color);
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
      z-index: 3;
      font-size: 1.5rem;
      font-weight: 700;
    }

    img {
      width: 100%;
      height: auto;
      border-radius: 100%;
    }
  }

  .compass-hover {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    background: transparent;
    display: none;
    transition: all 0.7s;

    &:hover {
      background-color: rgba(255, 255, 255, 0.5);
    }
  }

  .cultures-container {
    width: 100%;

    .culture-container {
      display: none;
      padding-top: 130px;

      .culture-item {
        position: relative;
        display: flex;
        flex-direction: row;
        padding-bottom: 40px;

        &:nth-child(even) {
          flex-direction: row-reverse;
        }

        .culture-left {
          padding: 0 40px;
          flex: 2;

          ul,
          ol {
            padding-left: 40px;
            margin-bottom: 2rem;
            display: block;
          }

          h3 {
            font-size: 3rem;
          }

          h4 {
            font-size: 2rem;
          }
        }

        .culture-right {
          flex: 1;

          img {
            height: 100%;
            width: 100%;
          }
        }
      }
    }
  }

  #cultures-observer {
    width: 1px;
    height: 1px;
    bottom: 0;
  }
}

.mt-2 {
  margin-top: 2rem;
}

.ml-2 {
  margin-left: 2rem;
}

.counter-section {
  position: relative;
  left: 50%;
  transform: translateX(-50%) !important;
  margin: 70px 0 0;
  padding: 40px 60px;
}

.glow-circle {
  --glow-size-1: 8px;
  --glow-size-2: 16px;
  --glow-opacity-1: 0.7;
  --glow-opacity-2: 0.4;
  --scale-factor: 1.02;

  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.95;

  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  background: white;

  /* Единая анимация */
  animation: glow-pulse 3s infinite ease-in-out;

  /* Плавные изменения переменных */
  transition: --glow-size-1 1.6s ease-out, --glow-size-2 1.6s ease-out,
    --glow-opacity-1 1.6s ease-out, --glow-opacity-2 1.6s ease-out,
    --scale-factor 1.4s ease;
}

/* Общая анимация */
@keyframes glow-pulse {
  0%,
  100% {
    filter: drop-shadow(
        0 0 var(--glow-size-1) rgba(255, 255, 255, var(--glow-opacity-1))
      )
      drop-shadow(
        0 0 var(--glow-size-2) rgba(255, 255, 255, var(--glow-opacity-2))
      );
    transform: scale(var(--scale-factor));
  }
  50% {
    filter: drop-shadow(
        0 0 calc(var(--glow-size-1) * 1.5)
          rgba(255, 255, 255, calc(var(--glow-opacity-1) * 1.2))
      )
      drop-shadow(
        0 0 calc(var(--glow-size-2) * 1.5)
          rgba(255, 255, 255, calc(var(--glow-opacity-2) * 1.2))
      );
    transform: scale(calc(var(--scale-factor) * 1.05));
  }
}

/* Плавное усиление при hover */
.glow-circle:hover {
  --glow-size-1: 12px;
  --glow-size-2: 24px;
  --glow-opacity-1: 0.9;
  --glow-opacity-2: 0.6;
  --scale-factor: 1.05;
}

@keyframes neon-flash {
  0% {
    filter: drop-shadow(0 0 2px var(--secondary-color));
  }
  20% {
    filter: drop-shadow(0 0 15px var(--secondary-color))
      drop-shadow(0 0 30px var(--secondary-color));
  }
  100% {
    filter: drop-shadow(0 0 2px var(--secondary-color));
  }
}

.counter-section {
  animation: neon-flash 6s infinite;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }

  .cultures-landing-header {
    margin-bottom: 2rem;
  }

  .culture-section {
    padding: 1.5rem;
    margin-bottom: 4rem;
  }

  .culture-title {
    font-size: 1.8rem;
  }

  .universal-concepts {
    gap: 1rem;
  }

  #cultures {
    .compass-items-horizontal {
      flex-direction: column;
      width: 100%;
    }

    & .cultures-container {
      & .culture-container {
        & .culture-item {
          flex-direction: column;

          &:nth-child(2n) {
            flex-direction: column;
          }
        }
      }
    }
  }

  .gallery-item {
    width: 100%;
  }

  .interactive-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  #gallery {
    & .container {
      padding: 30px;
    }
  }

  .partner-logo a {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    padding: 0 40px;
  }

  .hero-content {
    max-width: 350px;
  }

  #about-project {
    .about-project-content {
      flex-direction: column;
      gap: 20px;
    }
  }

  .about-grid {
    gap: 90px;
    grid-template: none;
  }

  .nav-links {
    margin-left: 0;
  }

  .mobile-nav {
    display: block;

    .nav-subcont {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
    }

    .header-counter {
      display: none;
      margin: 10px auto;
    }

    .fond-text {
      display: none;
      font-size: 0.8rem;
      text-align: justify;
      flex-direction: column;
      gap: 10px;
    }

    .fond-logo img {
      height: 55px;
      max-width: 160px;
    }
  }

  .mobile-open {
    .header-counter {
      display: flex;
    }

    .fond-text {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .fond-logo img {
      height: 60px;
      max-width: 170px;
    }
  }

  .hero-content {
    h1 {
      font-size: 2.5rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }
  }

  #hero {
    min-height: 70vh;
  }
}

.bible-modal {
  ol,
  ul {
    padding-bottom: 20px;

    li {
      padding-bottom: 5px;
    }
  }
}

.nav-dots {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;

  &.blu {
    background-color: rgba(15, 15, 26, 0.5);
  }
}

.dot.active {
  background-color: white;

  &.blu {
    background-color: rgba(15, 15, 26, 1);
  }
}

.dot.large {
  border-radius: 10px;
  height: 30px;
}

html,
body {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

section {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow-y: auto;
  padding: 125px 0 20px;
}

.fullpage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 992px) {
  section {
    width: 100%;
    height: auto;
    position: unset;
    overflow: hidden;
    padding: 25px 0 20px;
  }

  body,
  html {
    overflow-y: auto;
  }

  .fullpage {
    height: 100%;
    overflow: auto;
  }
}
