/* Enhanced AI Hero Section */

/* AI Typing Indicator */
.ai-typing-indicator {
  text-align: center;
  margin-bottom: 20px;
}

.cursor {
  font-size: 2rem;
  color: var(--ai-primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* AI Stats */
.ai-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.ai-stat {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  min-width: 120px;
  transition: all 0.3s ease;
}

.ai-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.ai-counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ai-primary);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 10px var(--ai-primary);
}

.ai-stat span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* AI Brain Visual */
.ai-brain {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  animation: brainFloat 6s infinite ease-in-out;
}

@keyframes brainFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.brain-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: var(--ai-gradient-neural);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 30px var(--ai-primary),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: coreGlow 3s infinite alternate;
}

@keyframes coreGlow {
  0% { 
    box-shadow: 
      0 0 30px var(--ai-primary),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  100% { 
    box-shadow: 
      0 0 50px var(--ai-primary),
      0 0 70px var(--ai-secondary),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

.brain-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border: 2px solid var(--ai-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Brain Connections */
.brain-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.connection {
  position: absolute;
  width: 2px;
  background: var(--ai-gradient-neural);
  border-radius: 1px;
  animation: connectionPulse 3s infinite ease-in-out;
}

.connection:nth-child(1) {
  top: 20%;
  left: 10%;
  height: 60px;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.connection:nth-child(2) {
  top: 30%;
  right: 15%;
  height: 50px;
  transform: rotate(-30deg);
  animation-delay: 0.5s;
}

.connection:nth-child(3) {
  bottom: 25%;
  left: 20%;
  height: 40px;
  transform: rotate(-60deg);
  animation-delay: 1s;
}

.connection:nth-child(4) {
  bottom: 20%;
  right: 10%;
  height: 55px;
  transform: rotate(30deg);
  animation-delay: 1.5s;
}

@keyframes connectionPulse {
  0%, 100% { 
    opacity: 0.3;
    box-shadow: 0 0 5px var(--ai-primary);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 15px var(--ai-primary);
  }
}

/* Floating AI Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ai-element {
  position: absolute;
  font-size: 2rem;
  animation: aiElementFloat 8s infinite ease-in-out;
  animation-delay: var(--delay);
  opacity: 0.8;
  filter: drop-shadow(0 0 10px var(--ai-primary));
}

.ai-element:nth-child(1) { top: 10%; left: 20%; }
.ai-element:nth-child(2) { top: 20%; right: 25%; }
.ai-element:nth-child(3) { bottom: 30%; left: 15%; }
.ai-element:nth-child(4) { bottom: 20%; right: 20%; }
.ai-element:nth-child(5) { top: 60%; left: 50%; }

@keyframes aiElementFloat {
  0%, 100% { 
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
  50% { 
    transform: translateY(-10px) scale(0.9);
    opacity: 0.8;
  }
  75% { 
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
}

/* Hero Layout Adjustments */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* Enhanced Hero Title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background-size: 300% 300%;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Enhanced Hero Actions */
.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-actions .ai-btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
    min-height: 300px;
  }
  
  .ai-brain {
    width: 150px;
    height: 150px;
  }
  
  .brain-core {
    width: 60px;
    height: 60px;
  }
  
  .brain-pulse {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .ai-stats {
    gap: 20px;
  }
  
  .ai-stat {
    padding: 15px;
    min-width: 100px;
  }
  
  .ai-counter {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .ai-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .ai-brain {
    width: 120px;
    height: 120px;
  }
  
  .ai-element {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .ai-stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .ai-stat {
    width: 100%;
    max-width: 200px;
  }
}