/**
 * Interactive Demo Styles
 * Styling for the interactive chat demo on the homepage
 */

/* Demo container */
.demo-container {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.demo-container:hover {
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 242, 255, 0.2);
  transform: translateY(-5px);
}

/* Demo header */
.demo-header {
  background: linear-gradient(to right, rgba(0, 242, 255, 0.1), rgba(138, 43, 226, 0.1));
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

/* Demo chat area */
.demo-chat {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 255, 0.3) rgba(30, 30, 46, 0.5);
}

.demo-chat::-webkit-scrollbar {
  width: 6px;
}

.demo-chat::-webkit-scrollbar-track {
  background: rgba(30, 30, 46, 0.5);
}

.demo-chat::-webkit-scrollbar-thumb {
  background-color: rgba(0, 242, 255, 0.3);
  border-radius: 6px;
}

/* Demo input area */
.demo-input-container {
  border-top: 1px solid rgba(0, 242, 255, 0.2);
  background: rgba(30, 30, 46, 0.8);
}

.demo-input {
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(0, 242, 255, 0.2);
  transition: all 0.3s ease;
}

.demo-input:focus {
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.2);
}

.demo-send {
  background: linear-gradient(to right, #00f2ff, #8a2be2);
  transition: all 0.3s ease;
}

.demo-send:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: #00f2ff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
  animation: pulse 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation: pulse 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation: pulse 1s infinite 0.4s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

/* Suggestions */
.demo-suggestions-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.demo-suggestions-container::-webkit-scrollbar {
  display: none;
}

.demo-suggestions-container:active {
  cursor: grabbing;
}

.demo-suggestions button {
  transition: all 0.3s ease;
}

.demo-suggestions button:hover {
  background-color: rgba(0, 242, 255, 0.2);
  transform: translateY(-2px);
}

/* Feature cards animation */
.feature-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 242, 255, 0.1),
    transparent
  );
  transition: all 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

/* Interactive image showcase */
.image-showcase {
  position: relative;
  overflow: hidden;
}

.image-showcase-item {
  transition: all 0.5s ease;
}

.image-showcase-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: all 0.3s ease;
}

.image-showcase-item:hover .image-overlay {
  opacity: 0.5;
}

/* Interactive statistics */
.stat-counter {
  transition: all 0.5s ease;
}

.stat-counter:hover {
  transform: scale(1.1);
}

/* Animated section dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 242, 255, 0.5), transparent);
  margin: 3rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #00f2ff;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #00f2ff;
}

/* Animated background for sections */
.animated-bg {
  position: relative;
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animated-bg:hover::before {
  opacity: 1;
}
