/* Animation Demos Section Styling */
.animations-demo {
  padding: 80px 0;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.animation-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.animation-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.animation-title {
  text-align: center;
}

.animation-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.animation-title p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 80%;
  margin: 0 auto;
}

.animation-content {
  background-color: var(--color-bg-alt);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.animation-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Browser mockups for animations */
.area-selection-demo,
.element-selection-demo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.area-selection-demo .browser-content,
.element-selection-demo .browser-content {
  height: 300px;
}

/* Mode labels */
.area-selection-demo .mode-label,
.element-selection-demo .mode-label {
  font-size: 0.8rem;
  padding: 5px 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .animation-blocks {
    flex-direction: column;
  }
  
  .animation-block {
    width: 100%;
  }
}

/* Custom animation styles for area selection demo */
.area-selection-demo .blur-overlay.selection-active {
  opacity: 1;
  visibility: visible;
}

/* Custom animation styles for element selection demo */
.element-selection-demo .element-highlight {
  position: absolute;
  border: 2px solid var(--color-primary);
  background-color: rgba(99, 102, 241, 0.05);
  border-radius: 6px;
  z-index: 15;
}

.element-selection-demo .borderless-text-blur {
  position: absolute;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(99, 102, 241, 0.04);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  z-index: 15;
}

/* Dark mode adjustments */
.dark-mode .animation-content {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .animation-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .area-selection-demo,
.dark-mode .element-selection-demo {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.dark-mode .element-selection-demo .element-highlight {
  background-color: rgba(99, 102, 241, 0.08);
}

.dark-mode .element-selection-demo .borderless-text-blur {
  background-color: rgba(99, 102, 241, 0.08);
}
