/* ============================================
   СТИЛИ ДЛЯ ЛЕНДИНГА АВТОМАТИЗАЦИИ
   Cyberpunk / Futuristic Theme
   ============================================ */

/* ---------- RESET & BASE ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0D0118;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0D0118;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 122, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 122, 0.5);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-delay {
  0%, 30% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-delay2 {
  0%, 50% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fade-in 0.8s ease-out forwards; }
.animate-fade-in-delay { animation: fade-in-delay 1s ease-out forwards; }
.animate-fade-in-delay2 { animation: fade-in-delay2 1.2s ease-out forwards; }
.animate-gradient { animation: gradient-shift 3s ease infinite; }
.animate-glow-pulse { animation: glow-pulse 2s ease-in-out infinite; }

/* ---------- SERVICE CARDS ---------- */
.service-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-8px);
}

/* ---------- CONTACT ITEMS ---------- */
.contact-item:hover {
  transform: translateX(4px);
}

/* ---------- MODALS ---------- */
.modal-overlay {
  animation: fade-in 0.2s ease-out;
}
.modal-content {
  animation: modal-in 0.3s ease-out;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- PARTICLES CANVAS ---------- */
#particlesCanvas {
  z-index: 0;
}

/* ---------- DEMO PLACEHOLDERS ---------- */
.demo-img-placeholder {
  position: relative;
  overflow: hidden;
}
.demo-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 0, 122, 0.03) 25%,
    transparent 50%,
    rgba(0, 240, 255, 0.03) 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  pointer-events: none;
}
.demo-img-placeholder img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.demo-img-placeholder:hover img {
  transform: scale(1.03);
}

/* ---------- LIGHTBOX ---------- */
#imageLightbox {
  animation: fade-in 0.2s ease-out;
}
#imageLightbox img {
  animation: lightbox-in 0.3s ease-out;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .service-card:hover {
    transform: translateY(-4px);
  }
  #chatBox {
    width: calc(100vw - 48px);
    right: -8px;
  }
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(255, 0, 122, 0.3);
  color: white;
}

/* ============================================
   INLINE EDITOR — админка на странице
   ============================================ */

/* Статус-бар админки */
#adminStatus {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #FF007A, #00F0FF);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
}
body.edit-mode #adminStatus {
  display: block;
}
body.edit-mode {
  padding-top: 28px;
}

/* Кнопка админки */
#adminToggleBtn {
  transition: all 0.3s ease;
  z-index: 10000;
}
#adminToggleBtn:hover {
  transform: scale(1.1);
}

/* Подсветка редактируемых элементов */
body.edit-mode [data-edit-key]:hover,
body.edit-mode [data-edit-project]:hover {
  outline: 2px dashed rgba(255, 0, 122, 0.5);
  outline-offset: 2px;
  cursor: pointer;
}

body.edit-mode [data-edit-key]:focus {
  outline: 2px solid #FF007A;
  outline-offset: 2px;
  background: rgba(255, 0, 122, 0.08);
  border-radius: 4px;
}

body.edit-mode img[data-edit-key]:hover,
body.edit-mode img[data-edit-project]:hover,
body.edit-mode .project-card img:hover {
  outline: 2px dashed #00F0FF;
  outline-offset: 2px;
  cursor: pointer;
  filter: brightness(0.8);
}

body.edit-mode a[data-edit-key]:hover,
body.edit-mode a[data-edit-project]:hover,
body.edit-mode button[data-edit-key]:hover {
  outline: 2px dashed #FF007A;
  outline-offset: 2px;
  cursor: pointer;
}

/* Индикатор, что элементы в режиме редактирования */
.edit-indicator {
  opacity: 0;
  transition: opacity 0.3s;
}
body.edit-mode .edit-indicator {
  opacity: 0.3;
}