* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.page {
  background: linear-gradient(135deg,rgb(61, 22, 58),rgb(24, 15, 34));
  background-size: 200% 200%;
  animation: gradientBG 10s ease infinite;
  color: white;
  min-height: 100vh;
  line-height: 1.6;
  padding: 0 10%;
}

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

.header__title,
.section__title,
.section__subtitle {
  font-weight: bold;
  margin-top: 1.5em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
  color: white;
}

.header__title {
  position: relative;
  display: inline-block;
  background-color: #1a0033;
  padding: 0.5em 1em;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(255, 0, 170, 0.3);
  color: transparent;
  overflow: hidden;
}

.header__title::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #ff00dd, #6600cc, #00e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  padding: 0.5em 1em;
  border-radius: 15px;
  box-sizing: border-box;
}

.header__title:hover {
  color: #ff00dd;
  text-shadow: 0 0 3px #ff00dd;
}

.section__title:hover,
.section__subtitle:hover {
  color: #ff00dd;
  text-shadow: 0 0 8px #ff00dd;
}

.nav {
  background-color: rgba(30, 0, 60, 0.7);
  padding: 1em;
  margin: 1em 0;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.nav__list {
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.nav__link {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #ff00dd;
}

.nav__link--active {
  color: #ff00dd;
  text-shadow: 0 0 5px #ff00dd;
}

.nav__item:hover {
  backdrop-filter: blur(12px);
}

.main {
  padding: 2em 0;
}

.section {
  background-color: rgba(30, 0, 60, 0.8);
  border-radius: 12px;
  padding: 3%;
  box-shadow: 0 4px 10px rgba(255, 0, 221, 0.3);
  margin-bottom: 2%;
  animation: fadeIn 0.5s ease-in-out both;
}

.section__text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 1em;
}

.section__list {
  list-style: disc inside;
  margin-bottom: 1em;
}

.section__item {
  margin-bottom: 0.5em;
}

.section__code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.1em;
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre-wrap;
}

.section__pre {
  background-color: rgba(30, 0, 60, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 0, 221, 0.4);
  box-shadow:
    inset 0 0 10px rgba(255, 0, 221, 0.7),
    0 4px 15px rgba(255, 0, 221, 0.3);
  padding: 1.5em;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  position: relative;
  box-shadow: 0 8px 20px rgba(255, 0, 221, 0.3);
  margin-bottom: 2em;

  transition: transform 0.3s ease;
  transform-origin: center center;
  cursor: pointer;

  animation: neonGlow 3s ease-in-out infinite;
  border: 3px solid;
  border-image-slice: 1;
  border-width: 3px;
  border-image-source: linear-gradient(90deg, #ff00dd, #6600cc, #00e1ff, #ff00dd);
  animation: borderMove 5s linear infinite;
  background: #1e1e1e url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat;
  background-color: rgba(30, 0, 60, 0.6);
  box-shadow:
    inset 0 0 10px rgba(255, 0, 221, 0.7),
    0 4px 15px rgba(255, 0, 221, 0.3);
}

.section__pre:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px #ff00dd,
    0 0 40px #ff00dd,
    0 0 60px #6600cc;
  background-color: rgba(30, 0, 60, 0.9);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonGlow {
  0%, 100% {
    box-shadow:
      0 0 5px #ff00dd,
      0 0 10px #ff00dd,
      0 0 20px #ff00dd,
      0 0 40px #6600cc;
  }
  50% {
    box-shadow:
      0 0 10px #ff00dd,
      0 0 20px #ff00dd,
      0 0 30px #ff00dd,
      0 0 50px #6600cc;
  }
}

@keyframes borderMove {
  0% {
    border-image-source: linear-gradient(90deg, #ff00dd, #6600cc, #00e1ff, #ff00dd);
  }
  100% {
    border-image-source: linear-gradient(450deg, #ff00dd, #6600cc, #00e1ff, #ff00dd);
  }
}

.btn {
  background-color: #ff00dd;
  color: white;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #00e1ff;
  transform: scale(1.05);
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(30, 0, 60, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 0, 221, 0.3);
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.footer:hover {
  background-color: rgba(30, 0, 60, 0.9);
  box-shadow: 0 4px 20px rgba(255, 0, 221, 0.5);
}
