/* ========================================
   OCTO-STYLE WEBSITE CSS
   Неоновый фиолетовый вместо красного
   ======================================== */

/* === ROOT VARIABLES === */
:root {
  /* Основные фиолетовые цвета */
  --neon-purple: #A855F7;
  --neon-purple-light: #C084FC;
  --neon-purple-dark: #7E22CE;
  --neon-purple-glow: rgba(168, 85, 247, 0.5);
  
  /* Дополнительные цвета */
  --dark-bg: #0A0A0F;
  --darker-bg: #050509;
  --text-white: #FFFFFF;
  --text-gray: #A0A0B0;
  --gradient-purple: linear-gradient(135deg, #A855F7 0%, #C084FC 100%);
  
  /* Типография */
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* === БАЗОВЫЕ СТИЛИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === НЕОНОВЫЕ ЭФФЕКТЫ === */
.neon-glow {
  text-shadow: 
    0 0 10px var(--neon-purple-glow),
    0 0 20px var(--neon-purple-glow),
    0 0 40px var(--neon-purple-glow);
}

.neon-border {
  border: 2px solid var(--neon-purple);
  box-shadow: 
    0 0 10px var(--neon-purple-glow),
    inset 0 0 10px rgba(168, 85, 247, 0.2);
}

.neon-button {
  background: var(--gradient-purple);
  border: none;
  padding: 18px 45px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.neon-button:hover::before {
  left: 100%;
}

.neon-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px var(--neon-purple-glow);
}

/* === ХЕДЕР / НАВИГАЦИЯ === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 45px;
  align-items: center;
}

.nav a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-purple);
  transition: width 0.3s;
}

.nav a:hover {
  color: var(--neon-purple);
}

.nav a:hover::after {
  width: 100%;
}

/* === HERO СЕКЦИЯ === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--neon-purple-glow) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--neon-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-gray);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === СЕКЦИИ === */
.section {
  padding: 120px 60px;
  position: relative;
}

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 60px;
  text-align: center;
}

.section-title span {
  color: var(--neon-purple);
}

/* === КАРТОЧКИ УСЛУГ === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-purple);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-purple);
  box-shadow: 0 20px 60px var(--neon-purple-glow);
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-icon {
  font-size: 60px;
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.service-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* === БОЛЬШИЕ ТЕКСТОВЫЕ БЛОКИ === */
.text-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

.large-text {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.large-text .highlight {
  color: var(--neon-purple);
  position: relative;
  display: inline-block;
}

/* === СТАТИСТИКА / ЦИФРЫ === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 900;
  color: var(--neon-purple);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 15px;
}

.stat-label {
  font-size: 18px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === ФУТЕР === */
.footer {
  background: var(--darker-bg);
  padding: 80px 60px 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.footer-section h3 {
  color: var(--neon-purple);
  font-size: 20px;
  margin-bottom: 25px;
  font-family: var(--font-heading);
}

.footer-section a {
  color: var(--text-gray);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--neon-purple);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  color: var(--text-gray);
  font-size: 14px;
}

/* === АНИМАЦИИ === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .header {
    padding: 20px 30px;
  }
  
  .nav {
    gap: 25px;
  }
  
  .section {
    padding: 80px 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 100px 30px 40px;
  }
}

/* Mobile H1 fix for Octo theme */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2rem !important;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
}
