/* Стили для кнопки переключения темы */
.theme-switcher {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.theme-switcher:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.theme-switcher::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: holographic-shine 3s infinite;
}

@keyframes holographic-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@media (max-width: 640px) {
  .theme-switcher {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Светлая тема */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.light-theme {
  background-color: #f4f4f4;
  color: #111;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.light-theme nav {
  background-color: #ffffffcc;
  transition: background-color 0.5s ease;
}

body.light-theme .gradient-text {
  color: #111;
}

.fading {
  color: #337AB7;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 30px 0;
}

.fading span {
  animation: fading 7s alternate infinite;
  opacity: 0;
}

@keyframes fading {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  50%, 100% {
    opacity: 1;
    filter: blur(0px);
  }
}

/* Стили для футера */
footer {
  background: #0A0A12;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid #1F2937;
  position: relative;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
}

.max-w-7xl {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .max-w-7xl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .max-w-7xl {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.text-xl {
  font-size: 20px;
}

.font-bold {
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(to right, #00C4FF, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-font {
  font-family: 'Roboto', sans-serif;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.text-gray-400 {
  color: #9CA3AF;
}

.text-lg {
  font-size: 18px;
}

.text-white {
  color: #FFFFFF;
}

.space-y-2 > li {
  margin-bottom: 8px;
}

.transition-colors {
  transition: color 0.3s ease;
}

.duration-300 {
  transition-duration: 300ms;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-900 {
  border-color: #111827;
}

.mt-12 {
  margin-top: 48px;
}

.pt-8 {
  padding-top: 32px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.text-gray-500 {
  color: #6B7280;
}

.text-sm {
  font-size: 14px;
}

.mb-4 {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .md\:mb-0 {
    margin-bottom: 0;
  }
}

.space-x-6 > * + * {
  margin-left: 24px;
}

.overflow-hidden {
  overflow: hidden;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.bg-gray-900 {
  background-color: #111827;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.inline-block {
  display: inline-block;
}

.space-x-10 > * + * {
  margin-left: 40px;
}

.text-2xl {
  font-size: 24px;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.bg-gray-800 {
  background-color: #1F2937;
}

.border {
  border-width: 1px;
}

.border-gray-700 {
  border-color: #374151;
}

.rounded-l-lg {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-1:focus {
  ring-width: 1px;
}

.focus\:ring-blue-500:focus {
  ring-color: #3B82F6;
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.w-full {
  width: 100%;
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-500 {
  --tw-gradient-from: #3B82F6;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-purple-600 {
  --tw-gradient-to: #7C3AED;
}

.hover\:from-blue-600:hover {
  --tw-gradient-from: #2563EB;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.hover\:to-purple-700:hover {
  --tw-gradient-to: #6D28D9;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.rounded-r-lg {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Стили для анимации скролла */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-\[scroll-left_30s_linear_infinite\] {
  animation: scroll-left 30s linear infinite;
}

.hover\:animation-pause:hover {
  animation-play-state: paused;
}

/* Стили для социальных иконок */
.social-icons-5 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin: 10px;
  padding: 0;
  list-style: none;
}

.social-icons-5 a:hover {
  animation: pulse 1.5s infinite ease-in-out, gradientColor 2s infinite ease-in-out;
}

/* Эффект пульсации */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Градиентный переход цвета */
@keyframes gradientColor {
  0% {
    color: #00C4FF;
  }
  50% {
    color: #A855F7;
  }
  100% {
    color: #00C4FF;
  }
}

/* Стили для частиц */
particle {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.atimer {
  display: none;
  background: rgba(255,255,255,0.9);
  padding: 16px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99998;
  text-align: center;
  box-shadow: 0 15px 15px 1px rgb(0 0 0 / 10%);
  box-sizing: border-box;
}

.atimer-text p {
  font-size: 16px;
  margin: 0 0 6px;
}

.atimer-time {
  margin-top: 10px;
  height: 8px;
  width: 0;
  background: #337AB7;
  transition: width 4.9s linear;
}

.atimer-time.timerun {
  width: 100%;
}

.atimer-pinguin {
  max-width: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  background: #F6FCFF;
  padding: 26px;
  border-radius: 50%;
  box-shadow: 0 15px 15px 1px rgb(0 0 0 / 10%);
  border: 8px solid #BFE2FF;
  overflow: hidden;
  display: none;
}

.cart_container {
  margin: 20px 0;
  position: relative;
}

.cart {
  height: 300px;
  width: 300px;
  position: absolute;
  top: 0;
  left: calc(50% - 150px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  z-index: 100;
  border: 1px solid #000000;
  background-image: url('https://myrules.ai/img/116953-vertical-magical-background-2000x1350.jpg');
  background-size: cover;
  background-position: center;
}

.cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: translateX(100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.cart:nth-child(1) {
  transform: rotate(-3deg);
  position: relative;
}

.cart:nth-child(2) {
  transform: rotate(4deg);
}

.cart:nth-child(3) {
  transform: rotate(10deg);
}

.cart:nth-child(4) {
  transform: rotate(-6deg);
}

.cart:nth-child(5) {
  transform: rotate(-2deg);
}

.cart:nth-child(6) {
  transform: rotate(7deg);
}

.cart:nth-child(7) {
  transform: rotate(-8deg);
}

.cart:nth-child(8) {
  transform: rotate(5deg);
}

.cart:nth-child(9) {
  transform: rotate(2deg);
}

.cart:nth-child(10) {
  transform: rotate(-9deg);
}

.cart:nth-child(11) {
  transform: rotate(6deg);
}

.cart:nth-child(12) {
  transform: rotate(-4deg);
}

.cart:nth-child(13) {
  transform: rotate(8deg);
}

.cart:nth-child(14) {
  transform: rotate(-7deg);
}

.cart:nth-child(15) {
  transform: rotate(3deg);
}

.cart:nth-child(16) {
  transform: rotate(-5deg);
}

.cart:nth-child(17) {
  transform: rotate(9deg);
}

.cart:nth-child(18) {
  transform: rotate(-2deg);
}

.cart:nth-child(19) {
  transform: rotate(4deg);
}

.cart:nth-child(20) {
  transform: rotate(-10deg);
}

.cart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom {
  z-index: 50;
  animation: move ease-in-out 1s;
}

.bottom_last {
  z-index: 30;
  animation: move_last ease-in-out 1s;
}

@keyframes move {
  0% {
    left: calc(50% - 150px);
    z-index: 150;
  }
  50% {
    left: calc(50% + 220px);
  }
  100% {
    left: calc(50% - 150px);
    z-index: 50;
  }
}

@keyframes move_last {
  0% {
    left: calc(50% - 150px);
    z-index: 150;
  }
  50% {
    left: calc(50% + 220px);
    z-index: 50;
  }
  100% {
    left: calc(50% - 150px);
    z-index: 30;
  }
}

.menu-bar {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.2s;
  background-image: linear-gradient(to right, #00C4FF, #A855F7);
  border-radius: 50%;
  border: 4px solid #BFE2FF;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 9999999;
  box-sizing: content-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-bar span {
  transition: all 0.3s ease-in-out;
  background-color: #fff;
  display: block;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
}

.menu-bar span:before,
.menu-bar span:after {
  transition: all 0.3s ease-in-out;
  background-color: #fff;
  content: '';
  display: block;
  height: 3px;
  position: absolute;
  width: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-bar span:before {
  top: -8px;
}

.menu-bar span:after {
  top: 8px;
}

.triggered .menu-bar span {
  width: 0;
}

.triggered .menu-bar span:before {
  transform: translateX(-50%) rotate(45deg);
  top: 0;
}

.triggered .menu-bar span:after {
  transform: translateX(-50%) rotate(-45deg);
  top: 0;
}

.menu {
  transition: all 0.3s ease-in-out;
  background-color: #0b4f8a;
  height: 100vh;
  opacity: 0;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  width: 100vw;
  z-index: 9999998;
  overflow-y: auto;
}

.menu ul {
  transition: all 0.3s ease-in-out;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  transition: all 0.3s ease-in-out;
}

.menu ul li a {
  color: #fff;
  display: inline-block;
  font-family: Verdana, sans-serif;
  font-size: 20px;
  padding: 8px 15px;
  position: relative;
  text-decoration: none;
  outline: none;
}

.menu ul li span {
  display: inline-block;
  height: 24px;
  top: 5px;
  position: relative;
  width: 24px;
}

.menu ul li span:before,
.menu ul li span:after {
  background-color: #BFE2FF;
  content: '';
  display: block;
  height: 3px;
  position: absolute;
  width: 15px;
}

.menu ul li span:before {
  top: 50%;
  transform: translateY(-50%);
}

.menu ul li span:after {
  transition: all 0.15s ease-in-out;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.menu ul li span.subtriggered:after {
  transform: translateY(-50%) rotate(0);
}

.menu ul li ul li a {
  padding: 8px 30px;
  font-size: 18px;
  color: #BFE2FF;
}

.triggered .menu {
  opacity: 1;
  transform: translateY(0);
}

.menu ul ul {
  display: none;
}

.menu ul .subtriggered + ul {
  display: block;
}

.apr *,
.apr *:before {
  line-height: 1.3;
}

.apr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #0A0A12;
  padding: 20px 0;
}

.apr .apr-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  flex: 0 1 330px;
  font-family: Verdana, sans-serif;
  cursor: default;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
  border-radius: 20px;
  margin: 20px;
}

@media screen and (min-width: 1080px) {
  .apr .apr-item {
    margin: 20px 0;
  }
  .apr .apr-item-left {
    border-radius: 20px 0 0 20px;
  }
  .apr .apr-item-center {
    margin: 0;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 20px 32px rgba(0,0,0,0.2);
  }
  .apr .apr-item-right {
    border-radius: 0 20px 20px 0;
  }
}

.apr .apr-deco {
  background: #2A4B7C;
  padding: 50px 0 160px;
  position: relative;
}

.apr .apr-item-center .apr-deco {
  background: #3B6A9F;
}

.apr .apr-price {
  font-size: 54px;
  font-family: 'Manrope', sans-serif;
  font-weight: bold;
  padding: 0;
  color: #FFFFFF;
}

.apr .apr-price > span {
  font-size: 48px;
}

.apr span.apr-currency {
  font-size: 42px;
  font-weight: normal;
  padding-left: 6px;
  vertical-align: top;
  color: #A3C1E0;
}

.apr .apr-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #A3C1E0;
}

.apr .apr-deco-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
}

.apr .deco-layer {
  transition: transform 0.5s;
  fill: #F5F7FA;
}

.apr .apr-item:hover .deco-layer--1 {
  transform: translate3d(15px, 0, 0);
}

.apr .apr-item:hover .deco-layer--2 {
  transform: translate3d(-15px, 0, 0);
}

.apr .apr-feature-list {
  margin: -55px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 0 35px;
  list-style: none;
  position: relative;
  z-index: 2;
}

.apr .apr-feature-list li {
  padding: 8px;
  padding-left: 34px;
  font-size: 15px;
  margin: 0 10px;
  border-bottom: 1px solid #0a0a0a;
  text-align: left;
  position: relative;
}

.apr .apr-feature-list li:before {
  position: absolute;
  left: 10px;
  content: "\2714";
  color: #28A745;
  font-weight: bold;
}

.apr .apr-action {
  border: none;
  margin: auto 40px 20px 40px;
  padding: 10px;
  color: #FFFFFF;
  border-radius: 30px;
  background: #3B6A9F;
  transition: background 0.5s;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.2);
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.apr .apr-action:hover,
.apr .apr-action:focus {
  background: #1E3556;
}

.telegram-button {
  position: fixed;
  right: 0px;
  top: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  z-index: 9999;
  background-color: #2CA5E0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23FFF' d='M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95L6.3 13.7l-5.45-1.7c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z'/%3e%3c/svg%3e");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.telegram-button:before,
.telegram-button:after {
  content: " ";
  display: block;
  position: absolute;
  border: 1px solid #2CA5E0;
  left: -20px;
  right: -20px;
  top: -20px;
  bottom: -20px;
  border-radius: 50%;
  animation: border-animate 3.5s linear infinite;
  opacity: 0;
}

.telegram-button:after {
  animation-delay: .5s;
}

@keyframes border-animate {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Базовые стили для модального окна */
#authModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 50;
}

#authModal .modal-content {
  background: #1a1a22;
  color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

#authModal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

#authModal .tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#authModal .tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

/* Фон для nav */
nav {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

/* Стили для мобильного меню */
#floatingMenu {
  transition: all 0.3s ease-in-out;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
}

#floatingMenu.hidden {
  display: none;
}

/* Плавное появление мобильного меню */
#floatingMenu {
  transform: translateY(-10px);
  opacity: 0;
}

#floatingMenu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Стили для ссылок и кнопок в мобильном меню */
#floatingまたMenu .nav-link {
  font-size: 1.2rem;
  padding: 10px;
  color: var(--text-gray);
  transition: color 0.3s ease, background 0.3s ease;
}

#floatingMenu .nav-link:hover {
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.1);
}

/* Стили для кнопок авторизации в мобильном меню */
#mobileAuthBtn, #mobileLogoutBtn {
  width: 100%;
  text-align: center;
}

#authModal .tab.active {
  border-bottom-color: #3b82f6;
}

#authModal .tab-content {
  display: none;
}

#authModal .tab-content.active {
  display: block;
}

#authModal input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #2a2a33;
  border: 1px solid #3a3a44;
  border-radius: 5px;
  color: white;
}

#authModal button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

#authModal .social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#authModal .social-buttons button {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

#authModal .user-info {
  margin-top: 20px;
  text-align: center;
  color: #22c55e;
  display: none;
}

/* Стили для кнопки ника */
#userInfo {
  display: none;
  padding: 5px 15px;
  border: 2px solid #3b82f6;
  border-radius: 20px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.cookie_notice {
  display: none;
  position: fixed;
  z-index: 9999999;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 15px;
  font-family: Verdana, sans-serif;
  color: #FFF;
  background: #337AB7;
  padding: 10px 20px;
  border-top: 4px solid #BFE2FF;
}

/* Оформление кнопок */
.cookie_btn {
  display: inline-block;
  margin: 10px 6px 4px 6px;
  text-decoration: none;
  position: relative;
  font-size: 13px;
  padding: 4px 12px;
  color: #FFF;
  font-weight: bold;
  text-transform: uppercase;
  background: #337AB7;
  border: 2px solid #BFE2FF;
}

.cookie_btn:hover {
  color: #FFF;
}

.cookie_btn:after,
.cookie_btn:before {
  position: absolute;
  height: 2px;
  left: 50%;
  background: #FFF;
  bottom: -6px;
  content: "";
  transition: all 280ms ease-in-out;
  width: 0;
}

.cookie_btn:before {
  top: -6px;
}

.cookie_btn:hover:after,
.cookie_btn:hover:before {
  width: 100%;
  left: 0;
}

.svg-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.svg-btn a {
  position: relative;
  padding: 20px;
  text-transform: uppercase;
  font-size: 15px;
  text-decoration: none;
  color: #337AB7;
  font-weight: bold;
}

.svg-btn a span:first-of-type {
  transition: 0.4s;
  transform: scale(1);
  opacity: 1;
  display: inline-block;
}

.svg-btn a svg {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  opacity: 0;
  text-transform: uppercase;
  font-size: 18px;
  transition: 0.4s;
  color: #f3f2f5;
  pointer-events: none;
}

.svg-btn a span svg {
  width: 30px;
  height: 30px;
  fill: #FF1CF7;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.svg-btn a:hover span {
  transform: scale(0);
}

.svg-btn a:hover span svg {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.svg-btn a:hover svg {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition-delay: 150ms;
  transition: all 300ms ease-in-out;
}

.svg-btn a svg g {
  transform-origin: center;
  animation: rotateSVG 6s linear infinite;
}

@keyframes rotateSVG {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.canvas-wrap {
  position: relative;
  padding: 30px;
}

#canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.plane {
  width: 100%;
  height: 500px;
}

.plane img {
  display: none;
}

.social-icons-5 {
  list-style: none;
  margin: 10px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.social-icons-5 a {
  text-decoration: none;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 6px;
  font-size: 26px;
  background: #7a4ef5;
  transition: border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
  transition: transform 0.4s linear 0s, border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
  transition: transform 0.4s linear 0s, border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
}

.social-icons-5 a img {
  width: 26px;
  height: 26px;
}

.social-icons-5 a i,
.social-icons-5 a img {
  transition: transform 0.4s linear 0s;
}

.social-icons-5 a:hover {
  transform: rotate(360deg);
  border-radius: 50%;
}

.social-icons-5 a:hover i,
.social-icons-5 a:hover img {
  transform: rotate(-360deg);
}

.block-figure-3 * {
  box-sizing: border-box;
}

.block-figure-3 {
  margin: 20px auto;
  padding: 0;
  position: relative;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

.block-figure-3 .figure-txt {
  border: 6px solid #5f98c7;
}

.block-figure-3 .image-wrap {
  border: 6px solid #1cc2ff;
  border-radius: 100%;
  width: 200px;
  height: 200px;
  position: absolute;
  top: 30px;
  background: #FFF;
  z-index: 1;
  right: 0;
}

.block-figure-3 .image-lay {
  width: 100px;
  height: 200px;
  position: absolute;
  top: -6px;
  background: #FFF;
  z-index: 2;
  right: -6px;
}

.block-figure-3 .image {
  transform-style: preserve-3d;
  perspective: 1000px;
  border-radius: 50%;
  position: absolute;
  z-index: 3;
  height: 176px;
  width: 176px;
  top: 6px;
  right: 6px;
}

.block-figure-3 .front,
.block-figure-3 .back {
  background-size: cover;
  background-position: center;
  transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
  backface-visibility: hidden;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  height: 176px;
  width: 176px;
  border: 6px solid #34536e;
  position: absolute;
}

.block-figure-3 .inner {
  transform: translateY(-50%) translateZ(60px);
  top: 50%;
  position: absolute;
  margin: auto;
  z-index: 4;
  width: 100%;
}

.block-figure-3 .image .back {
  transform: rotateY(180deg);
  transform-style: preserve-3d;
}

.block-figure-3:hover .back {
  transform: rotateY(0deg);
  transform-style: preserve-3d;
}

.block-figure-3:hover .front {
  transform: rotateY(-180deg);
  transform-style: preserve-3d;
}

.block-figure-3 .inner a {
  font-weight: bold;
  font-family: Verdana, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  color: #337AB7;
  text-align: center;
  margin: auto;
  display: block;
  font-size: 14px;
  line-height: 130px;
  height: 142px;
  width: 142px;
  border: 6px solid #34536e;
  border-radius: 50%;
  transition: all .6s ease-in-out;
  overflow: hidden;
}

.block-figure-3 .inner a::before {
  content: '';
  position: absolute;
  top: -12px;
  margin: auto;
  display: block;
  border-radius: 50%;
  width: 166px;
  height: 166px;
  left: -1px;
  transition: box-shadow .6s ease-in-out;
  z-index: -1;
}

.block-figure-3 .inner a:hover {
  color: #fff;
}

.block-figure-3 .inner a:hover::before {
  box-shadow: inset 0 0 0 166px #337AB7;
}

.block-figure-3 .figure-txt {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  margin-right: 100px;
  min-height: 260px;
}

.block-figure-3 .figure-txt h3 {
  text-transform: uppercase;
  color: #A855F7;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  font-size: 20px;
  margin: 6px 100px 12px 0;
}

.block-figure-3 .figure-txt p {
  font-family: Verdana, sans-serif;
  font-size: 16px;
  margin: 10px 100px 10px 0;
}

@media (max-width: 560px) {
  .block-figure-3 .figure-txt,
  .block-figure-3 .figure-txt h3,
  .block-figure-3 .figure-txt p {
    margin-right: 0;
  }
  .block-figure-3 .figure-txt {
    min-height: auto;
    border-bottom: none;
  }
  .block-figure-3 .image-lay {
    display: none;
  }
  .block-figure-3 .image-wrap {
    border: 6px solid #E600FF;
    border-top: none;
    border-radius: 0;
    width: 100%;
    height: 160px;
    position: static;
  }
  .block-figure-3 .image {
    border-radius: 0;
    position: static;
    height: 160px;
    width: 100%;
  }
  .block-figure-3 .front,
  .block-figure-3 .back {
    height: 154px;
    width: 100%;
    position: static;
    border-radius: 0;
    border: none;
  }
  .block-figure-3 .inner {
    transform: translateY(-100%) translateZ(60px);
    top: -6px;
  }
  .block-figure-3 .inner a::before {
    display: none;
  }
  .block-figure-3 .inner a:hover {
    color: #000;
  }
}

@import url(https://fonts.googleapis.com/css?family=Roboto);

.logotype3, .logotype3:hover {
  display: inline-block;
  font-size: 50px;
  line-height: 50px;
  color: #FFF;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}

.logotype3 b {
  color: #BDE1FF;
  font-size: 96px;
}

.logotype3 div {
  font-size: 34px;
  line-height: 20px;
  text-align: left;
  color: #FFF;
}

.logotype3:hover {
  animation: blur1 1s ease-out;
}

.logotype3:hover b {
  animation: blur2 1s ease-out;
}

.logotype3 div:hover {
  animation: pulse 1.5s infinite ease-in-out, colorChange 2s infinite ease-in-out;
}

@keyframes blur1 {
  from {
    text-shadow: 0px 0px 10px #fff,
                 0px 0px 10px #fff,
                 0px 0px 25px #fff,
                 0px 0px 25px #fff,
                 0px 0px 25px #fff,
                 0px 0px 25px #fff,
                 0px 0px 25px #fff,
                 0px 0px 25px #BDE1FF,
                 0px 0px 50px #fff,
                 0px 0px 50px #4FC3F7;
  }
}

@keyframes blur2 {
  from {
    color: #337AB7;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes colorChange {
  0% {
    color: #FFF;
  }
  50% {
    color: #00C4FF;
  }
  100% {
    color: #FFF;
  }
}

@media (max-width: 600px) {
  .logotype3, .logotype3:hover {
    font-size: 40px;
    line-height: 40px;
  }
  .logotype3 b {
    font-size: 48px;
  }
  .logotype3 div {
    font-size: 18px;
  }
}

#portfolio {
  background: #0A0A12;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
}

/* 🌞 Светлая тема */
body.light-theme #portfolio {
  background: #f4f4f4;
}

#portfolio .max-w-7xl {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  #portfolio .max-w-7xl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  #portfolio .max-w-7xl {
    padding-left: 32px;
    padding-right: 32px;
  }
}

#portfolio .text-center {
  text-align: center;
  margin-bottom: 64px;
}

#portfolio h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  #portfolio h2 {
    font-size: 48px;
  }
}

.gradient-text {
  background: linear-gradient(to right, #00C4FF, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#portfolio .text-center p {
  font-size: 20px;
  color: #D1D5DB;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

#portfolio .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  #portfolio .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #portfolio .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#portfolio .feature-panel {
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(to bottom right, #111827, #1F2937);
}

#portfolio .feature-panel:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

#portfolio .feature-panel .relative.h-64 {
  height: 256px;
}

#portfolio .feature-panel .relative canvas {
  background: #111827;
}

#portfolio .feature-panel .absolute.bottom-0 {
  bottom: 0;
  left: 0;
  padding: 24px;
}

#portfolio .feature-panel h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: white;
}

#portfolio .feature-panel .text-blue {
  color: #00C4FF;
  font-size: 14px;
}

#portfolio .feature-panel .text-purple {
  color: #A855F7;
  font-size: 14px;
}

#portfolio .feature-panel .p-6 {
  padding: 24px;
}

#portfolio .feature-panel p {
  color: #f5f6f7;
  margin-bottom: 16px;
}

.glass-btn {
  position: relative;
  width: 220px;
  height: 50px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.glass-btn a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  padding: 0 10px;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: 16px;
  z-index: 1;
  transition: 0.5s;
  backdrop-filter: blur(15px);
}

.glass-btn:hover a {
  letter-spacing: 3px;
}

.glass-btn a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(45deg) translate(0);
  transition: 0.5s;
  filter: blur(0px);
}

.glass-btn:hover a:before {
  transform: skewX(45deg) translate(200px);
}

.glass-btn a:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  transition: 0.5s;
  border-radius: 30px;
  z-index: -1;
}

.glass-btn:hover a:after {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.glass-btn:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 30px;
  height: 10px;
  background: #00C4FF;
  border-radius: 10px;
  transition: 0.5s;
  transition-delay: 0.5s;
}

.glass-btn:hover:before {
  bottom: 0;
  height: 80%;
  width: 80%;
  border-radius: 30px;
}

.glass-btn.glass-btn-blue a:after,
.glass-btn.glass-btn-blue:before {
  background: #00C4FF;
  box-shadow: 0 0 5px #00C4FF, 0 0 15px #00C4FF, 0 0 30px #00C4FF, 0 0 60px #00C4FF;
}

.glass-btn.glass-btn-purple a:after,
.glass-btn.glass-btn-purple:before {
  background: #A855F7;
  box-shadow: 0 0 5px #A855F7, 0 0 15px #A855F7, 0 0 30px #A855F7, 0 0 60px #A855F7;
}


#gal {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
}

#fg,
#bg {
  width: 100%;
  height: 100%;
}

#fg p {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  margin: 6px;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  border-radius: 6px;
}

#fg div,
#bg div {
  position: absolute;
  top: 0;
}

@media screen and (max-width: 767px) {
  #gal {
    height: 400px;
  }
}

/* Match your site's dark theme and fonts */
:root {
  --primary-blue: #00C4FF;
  --primary-purple: #A855F7;
  --bg-dark: #0a0a12;
  --text-gray: #d1d5db;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-gray);
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.tech-font {
  font-family: 'Orbitron', sans-serif;
}

/* Gradient Text Container to isolate styles */
.gradient-text-container .gradient-text {
  background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  color: var(--primary-blue); /* Fallback */
}

.gradient-text-container .gradient-text-reverse {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  color: var(--primary-purple);
}

.gradient-text-container .gradient-text-rainbow {
  background: linear-gradient(90deg, #00D4FF, #A855F7, #FF1CF7, #00C4FF, #A855F7);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: rainbow 8s ease infinite;
  will-change: background-position;
}

@keyframes rainbow {
  0% { background-position: 0%; }
  100% { background-position: 400%; }
}

.gradient-text-container .gradient-text-bright {
  background: linear-gradient(to right, #00FFFF, #FF00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow:
    0 0 5px rgba(0, 255, 255, 0.8),
    0 0 10px rgba(255, 0, 255, 0.8),
    0 0 15px rgba(0, 255, 255, 0.6);
  color: #00FFFF;
}

.gradient-text-container .gradient-text-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--primary-blue);
  background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  color: var(--primary-blue);
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-blue); }
}

.gradient-text-container .gradient-text-marquee {
  background: linear-gradient(90deg, #00D4FF, #A855F7, #FF1CF7, #00C4FF, #A855F7, #FF1CF7, #00D4FF);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: marquee 4s linear infinite;
  will-change: background-position;
  color: var(--primary-blue);
}

@keyframes marquee {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* Cross-browser fallback */
@supports not (background-clip: text) {
  .gradient-text-container .gradient-text,
  .gradient-text-container .gradient-text-reverse,
  .gradient-text-container .gradient-text-rainbow,
  .gradient-text-container .gradient-text-bright,
  .gradient-text-container .gradient-text-typing,
  .gradient-text-container .gradient-text-marquee {
    background: none;
    color: var(--primary-blue);
  }
}

/* Holographic effect to match your site */
.holographic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.holographic:hover {
  transform: scale(1.05);
}

.holographic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: holographic-shine 3s infinite;
}

@keyframes holographic-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Control buttons */
.controls button {
  padding: 10px 20px;
  background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.controls button:hover {
  transform: scale(1.05);
}