/* Обнуление */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a14;
  color: #e0e0ff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Прогресс-бар */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6a5acd, #ff6b35);
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

/* Фоновая сетка */
.body-bg {
  background: 
    radial-gradient(circle at 20% 35%, rgba(106, 90, 205, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    linear-gradient(90deg, rgba(138, 125, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 125, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  animation: pulse-bg 8s infinite alternate;
}

@keyframes pulse-bg {
  0% { opacity: 0.2; }
  100% { opacity: 0.4; }
}

/* Светлячки (12 штук) */
.particle {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(138, 125, 255, 0.6);
  animation: float 8s infinite ease-in-out;
  opacity: 0.6;
  z-index: -1;
}

.particle:nth-child(7)  { background: #ff6b35; box-shadow: 0 0 15px rgba(255,107,53,0.8); animation-delay: 0s;  }
.particle:nth-child(8)  { background: #6a5acd; box-shadow: 0 0 15px rgba(106,90,205,0.8); animation-delay: 1s; }
.particle:nth-child(9)  { background: #8a7dff; box-shadow: 0 0 15px rgba(138,125,255,0.8); animation-delay: 2s; }
.particle:nth-child(10) { background: #ff6b35; box-shadow: 0 0 12px rgba(255,107,53,0.6); animation-delay: 3s; }
.particle:nth-child(11) { background: #6a5acd; box-shadow: 0 0 12px rgba(106,90,205,0.6); animation-delay: 4s; }
.particle:nth-child(12) { background: #8a7dff; box-shadow: 0 0 10px rgba(138,125,255,0.6); animation-delay: 5s; }
.particle:nth-child(13) { background: #ff6b35; box-shadow: 0 0 14px rgba(255,107,53,0.7); animation-delay: 6s; }
.particle:nth-child(14) { background: #6a5acd; box-shadow: 0 0 13px rgba(106,90,205,0.7); animation-delay: 7s; }
.particle:nth-child(15) { background: #8a7dff; box-shadow: 0 0 12px rgba(138,125,255,0.7); animation-delay: 0.5s; }
.particle:nth-child(16) { background: #ff6b35; box-shadow: 0 0 11px rgba(255,107,53,0.5); animation-delay: 1.5s; }
.particle:nth-child(17) { background: #6a5acd; box-shadow: 0 0 10px rgba(106,90,205,0.5); animation-delay: 2.5s; }
.particle:nth-child(18) { background: #8a7dff; box-shadow: 0 0 9px rgba(138,125,255,0.5); animation-delay: 3.5s; }

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0.6; }
  50% { transform: translateY(-100vh) translateX(100vw); opacity: 0.2; }
  100% { transform: translateY(-200vh) translateX(-50vw); opacity: 0; }
}

/* Переливающийся текст */
.gradient-text {
  background: linear-gradient(90deg, #ffffff, #8a7dff, #ff6b35, #8a7dff, #ffffff);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  font-size: 3.5rem;
  line-height: 1.2;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
}

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

/* Шапка */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 125, 255, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #8a7dff;
  text-shadow: 0 0 15px rgba(138, 125, 255, 0.5);
  letter-spacing: 0.5px;
}

.nav a {
  color: #b0b0d0;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #8a7dff;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #8a7dff;
  cursor: pointer;
}

/* Статистика */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: rgba(15, 15, 30, 0.8);
  padding: 12px 0;
  font-size: 0.95rem;
  color: #aaa;
  border-bottom: 1px solid rgba(138, 125, 255, 0.1);
}

.stat strong {
  color: #8a7dff;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .stats-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* Кнопки */
.btn-primary {
  background: linear-gradient(45deg, #6a5acd, #8a7dff);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(106, 90, 205, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 90, 205, 0.5);
}

.btn-outline {
  background: transparent;
  color: #8a7dff;
  border: 2px solid #8a7dff;
  padding: 14px 32px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(138, 125, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-glow {
  background: linear-gradient(45deg, #6a5acd, #ff6b35);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #6a5acd, #ff6b35);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
}

.btn-glow-sm {
  background: linear-gradient(45deg, #6a5acd, #8a7dff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.btn-glow-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 90, 205, 0.4);
}

/* Главный экран */
.hero {
  height: 100vh;
  background: url('assets/images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.85), rgba(20, 15, 40, 0.7));
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  margin-bottom: 20px;
  color: white;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccccff;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Анимации */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Секции */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 15px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
}

.portfolio-subtitle,
.contact-subtitle {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* Обо мне */
.about-wrapper {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: white;
}

.feature-list {
  margin: 25px 0;
  list-style: none;
}

.feature-list li {
  margin-bottom: 12px;
  color: #ccccff;
  position: relative;
  padding-left: 30px;
  font-size: 1.1rem;
}

.feature-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  color: #4CAF50;
}

.skills {
  margin: 30px 0;
}

.skills h3 {
  color: #8a7dff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.skills ul li {
  margin-bottom: 12px;
  color: #ccccff;
  position: relative;
  padding-left: 25px;
}

.skills ul li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff6b35;
}

.cta-group {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Портфолио */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 16px;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border-radius: 16px;
}

.portfolio-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
}

.overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.glow-shadow:hover {
  box-shadow: 0 15px 40px rgba(138, 125, 255, 0.3),
              0 0 30px rgba(138, 125, 255, 0.2);
}

/* CTA после портфолио */
.portfolio-cta {
  text-align: center;
  padding: 40px 20px;
  background: rgba(30, 30, 50, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 125, 255, 0.2);
}

.portfolio-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: white;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(30, 30, 50, 0.6);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 125, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(138, 125, 255, 0.2);
  border-color: #8a7dff;
}

.service-card h3 {
  color: #8a7dff;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  color: #bbb;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Гарантии */
.guarantee-banner {
  grid-column: 1 / -1;
  background: rgba(106, 90, 205, 0.15);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  color: #ccccff;
  font-size: 0.95rem;
  border: 1px solid rgba(106, 90, 205, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.guarantee-banner i {
  color: #8a7dff;
  font-size: 1.2rem;
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

/* Отзывы */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.testimonial-card {
  background: rgba(30, 30, 50, 0.6);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 125, 255, 0.2);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(138, 125, 255, 0.2);
}

.quote {
  font-style: italic;
  color: #e0e0ff;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.author {
  color: #8a7dff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Контакты */
.contact-content {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-info a {
  color: #8a7dff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.response-time {
  margin-top: 15px;
  color: #8a7dff;
  font-style: italic;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #3a3a5a;
  border-radius: 10px;
  background: rgba(30, 30, 50, 0.5);
  color: white;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8a7dff;
  box-shadow: 0 0 10px rgba(138, 125, 255, 0.3);
}

#successMessage {
  margin-top: 30px;
  text-align: center;
  color: #4CAF50;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.hidden {
  display: none;
}

/* Подвал */
.footer {
  background: #080810;
  padding: 30px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid rgba(100, 100, 150, 0.1);
}

.neon-footer {
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.footer-links a {
  color: #8a7dff;
  margin: 0 15px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #121222;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  text-align: center;
  color: white;
  border: 1px solid rgba(138, 125, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.4s ease;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #8a7dff;
}

.modal-content p {
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Адаптив */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 20, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(138, 125, 255, 0.2);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    margin: 10px 0;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

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

  .section {
    padding: 80px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .btn-glow {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .portfolio-cta h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 15px;
  }

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

  .btn-glow {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
