﻿:root {
  --main-color: #6A00F4;
  --secondary-color: #00D1FF;
  --bg-color: #0F0F12;
  --secondary-bg-color: #1A1A1F;
  --accent-color: #FF2D75;
  --text-color: #FFFFFF;

  --font-text: "Rajdhani", sans-serif;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-text);
  line-height: 1.2;
  background-color: var(--bg-color);
}

h1 {
  margin: 0;
  padding: 0;
}

h2 {
  margin: 0;
  padding: 0;
}

h3 {
  margin: 0;
  padding: 0;
}

h4 {
  margin: 0;
  padding: 0;
}

h5 {
  margin: 0;
  padding: 0;
}

h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font-family: inherit;
  font-size: inherit;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(106, 0, 244, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--bg-color);
  backdrop-filter: blur(10px);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}


.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 24px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo__icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--main-color));
  animation: pulse 2s infinite;
}

.logo__text {
  position: relative;
  background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo__text::before {
  content: 'PixelBay';
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  color: var(--accent-color);
  animation: glitch 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}


.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  position: relative;
  padding: 10px 0;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  box-shadow: 0 0 10px var(--main-color);
  background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav__link:hover::before,
.nav__link.active::before {
  width: 100%;
}

.nav__link:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--secondary-color);
}

.nav__link.active {
  color: var(--main-color);
  text-shadow: 0 0 5px var(--main-color);
}


.burger {
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger__line {
  width: 100%;
  height: 3px;
  box-shadow: 0 0 5px var(--main-color);
  background: var(--text-color);
  transition: all 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  background: var(--accent-color);
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  background: var(--accent-color);
  transform: rotate(-45deg) translate(8px, -8px);
}


.footer {
  position: relative;
  border-top: 1px solid rgba(106, 0, 244, 0.3);
  overflow: hidden;
  background: var(--secondary-bg-color);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
  animation: scan 3s infinite;
}

.footer__content {
  padding: 40px 0 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__slogan {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-style: italic;
}

.footer__slogan::before {
  content: '"';
  position: absolute;
  top: -5px;
  left: -15px;
  color: var(--secondary-color);
  font-size: 24px;
}

.footer__slogan::after {
  content: '"';
  position: absolute;
  right: -15px;
  bottom: -10px;
  color: var(--secondary-color);
  font-size: 24px;
}


.footer__nav-title,
.footer__contacts-title {
  position: relative;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__nav-title::after,
.footer__contacts-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  box-shadow: 0 0 5px var(--main-color);
  background: var(--main-color);
}

@media (max-width: 768px) {

  .footer__nav-title::after,
  .footer__contacts-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  position: relative;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer__nav-link::before {
  content: '▶';
  position: absolute;
  left: 0;
  opacity: 0;
  color: var(--main-color);
  font-size: 10px;
  transition: opacity 0.3s ease;
}

.footer__nav-link:hover {
  padding-left: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--secondary-color);
}

.footer__nav-link:hover::before {
  opacity: 1;
}


.footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(106, 0, 244, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(106, 0, 244, 0.1);
  transition: all 0.3s ease;
}

.footer__contact:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 15px rgba(106, 0, 244, 0.3);
  color: var(--secondary-color);
  background: rgba(106, 0, 244, 0.2);
  transform: translateX(5px);
}

.footer__contact i {
  width: 16px;
  color: var(--main-color);
  text-align: center;
}


.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer__legal-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--accent-color);
}

.footer__legal-link:hover::before {
  width: 100%;
}


@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes glitch {

  0%,
  90%,
  100% {
    opacity: 0;
  }

  92%,
  98% {
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }


  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    transition: right 0.3s ease;
  }

  .header__nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav__link {
    padding: 15px 0;
    font-size: 24px;
  }

  .burger {
    display: flex;
  }


  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .footer__contacts-list {
    align-items: center;
  }

  .footer__contact {
    justify-content: center;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .logo__text {
    font-size: 20px;
  }

  .logo__icon {
    font-size: 24px;
  }

  .footer__contact {
    gap: 8px;
    text-align: center;
  }

  .nav__link {
    font-size: 20px;
  }
}


.header:hover .logo__text {
  animation: textGlitch 0.5s infinite;
}

@keyframes textGlitch {

  0%,
  90%,
  100% {
    transform: translate(0);
  }

  20% {
    transform: translate(-1px, 1px);
  }

  40% {
    transform: translate(-1px, -1px);
  }

  60% {
    transform: translate(1px, 1px);
  }

  80% {
    transform: translate(1px, -1px);
  }
}

@media (max-width: 768px) {
  .logo {
    justify-content: center;
    text-align: center;
  }
}