/* Animations CSS for Nexus AI Partners Website */

/* Animated AI Implementation Process Diagram */
.process-diagram {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 3rem 0;
}

.process-node {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.process-node:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.process-node.active {
  background: linear-gradient(135deg, var(--secondary-color), #1ab874);
}

.process-node-1 { top: 50%; left: 10%; transform: translateY(-50%); }
.process-node-2 { top: 20%; left: 30%; }
.process-node-3 { top: 50%; left: 50%; transform: translateY(-50%); }
.process-node-4 { top: 20%; left: 70%; }
.process-node-5 { top: 50%; left: 90%; transform: translateY(-50%); }

.process-connection {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  z-index: 1;
}

.connection-1-2 {
  width: 22%;
  top: 35%;
  left: 16%;
  transform: rotate(-30deg);
}

.connection-2-3 {
  width: 22%;
  top: 35%;
  left: 36%;
  transform: rotate(30deg);
}

.connection-3-4 {
  width: 22%;
  top: 35%;
  left: 56%;
  transform: rotate(-30deg);
}

.connection-4-5 {
  width: 22%;
  top: 35%;
  left: 76%;
  transform: rotate(30deg);
}

.process-details {
  position: absolute;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3;
}

.process-details.active {
  opacity: 1;
  visibility: visible;
}

.details-1 { top: 60%; left: 5%; }
.details-2 { top: 5%; left: 25%; }
.details-3 { top: 60%; left: 45%; }
.details-4 { top: 5%; left: 65%; }
.details-5 { top: 60%; left: 85%; }

.process-animation-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  z-index: 4;
  animation: move-along-path 5s infinite linear;
}

@keyframes move-along-path {
  0% { left: 10%; top: 50%; transform: translate(-50%, -50%); }
  20% { left: 30%; top: 20%; transform: translate(-50%, -50%); }
  40% { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  60% { left: 70%; top: 20%; transform: translate(-50%, -50%); }
  80% { left: 90%; top: 50%; transform: translate(-50%, -50%); }
  100% { left: 10%; top: 50%; transform: translate(-50%, -50%); }
}

/* AI Architecture Visualization */
.architecture-visualization {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 3rem 0;
  background-color: rgba(245, 245, 245, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.architecture-layer {
  position: absolute;
  width: 80%;
  left: 10%;
  height: 80px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.architecture-layer:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.layer-1 { top: 10%; background: linear-gradient(90deg, rgba(74, 0, 224, 0.1), rgba(142, 45, 226, 0.1)); }
.layer-2 { top: 25%; background: linear-gradient(90deg, rgba(74, 0, 224, 0.2), rgba(142, 45, 226, 0.2)); }
.layer-3 { top: 40%; background: linear-gradient(90deg, rgba(74, 0, 224, 0.3), rgba(142, 45, 226, 0.3)); }
.layer-4 { top: 55%; background: linear-gradient(90deg, rgba(74, 0, 224, 0.4), rgba(142, 45, 226, 0.4)); }
.layer-5 { top: 70%; background: linear-gradient(90deg, rgba(74, 0, 224, 0.5), rgba(142, 45, 226, 0.5)); }

.architecture-connection {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-gradient-start), var(--primary-gradient-end));
  left: 50%;
  z-index: 1;
}

.connection-1-2 { top: 18%; height: 7%; }
.connection-2-3 { top: 33%; height: 7%; }
.connection-3-4 { top: 48%; height: 7%; }
.connection-4-5 { top: 63%; height: 7%; }

.data-flow {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: data-flow-animation 3s infinite ease-in-out;
}

@keyframes data-flow-animation {
  0% { top: 18%; opacity: 0; }
  10% { top: 18%; opacity: 1; }
  25% { top: 33%; }
  50% { top: 48%; }
  75% { top: 63%; }
  90% { top: 70%; opacity: 1; }
  100% { top: 70%; opacity: 0; }
}

/* Interactive Assessment Tool */
.assessment-slider-container {
  position: relative;
  padding: 2rem 0;
}

.assessment-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
}

.assessment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.assessment-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.slider-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--dark-gray);
  position: relative;
  width: 20%;
}

.slider-label::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background-color: #ddd;
}

.slider-value {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slider-value::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-gradient-end) transparent transparent transparent;
}

.assessment-slider:hover + .slider-value,
.assessment-slider:focus + .slider-value {
  opacity: 1;
}

/* Results Visualization */
.results-radar-chart {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  position: relative;
}

.radar-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  transform-origin: left center;
}

.radar-axis-1 { transform: translateY(-50%) rotate(0deg); }
.radar-axis-2 { transform: translateY(-50%) rotate(72deg); }
.radar-axis-3 { transform: translateY(-50%) rotate(144deg); }
.radar-axis-4 { transform: translateY(-50%) rotate(216deg); }
.radar-axis-5 { transform: translateY(-50%) rotate(288deg); }

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
}

.radar-circle-1 { width: 20%; height: 20%; }
.radar-circle-2 { width: 40%; height: 40%; }
.radar-circle-3 { width: 60%; height: 60%; }
.radar-circle-4 { width: 80%; height: 80%; }
.radar-circle-5 { width: 100%; height: 100%; }

.radar-data-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-gradient-end);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.radar-data-area {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 10%, 85% 30%, 80% 70%, 40% 90%, 15% 60%);
  background: linear-gradient(135deg, rgba(74, 0, 224, 0.2), rgba(142, 45, 226, 0.2));
  z-index: 1;
}

.radar-label {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.radar-label-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.radar-label-2 { top: 30%; right: 5%; }
.radar-label-3 { bottom: 30%; right: 10%; }
.radar-label-4 { bottom: 5%; left: 40%; }
.radar-label-5 { top: 30%; left: 5%; }

/* Data Visualization Animation */
.data-visualization {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 3rem 0;
  background-color: rgba(245, 245, 245, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.data-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 0.8rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.data-connection {
  position: absolute;
  height: 2px;
  background: rgba(74, 0, 224, 0.3);
  z-index: 1;
}

.data-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  z-index: 3;
  animation: pulse 2s infinite;
}

/* Hover Info Cards */
.info-card {
  position: relative;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-gradient-start);
  transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
  transform: scale(1.2);
}

.info-card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.info-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  transition: width 0.3s ease;
}

.info-card:hover .info-card-title::after {
  width: 80px;
}

.info-card-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card:hover .info-card-content {
  height: auto;
  opacity: 1;
  margin-top: 1rem;
}

/* Interactive Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(180deg, var(--primary-gradient-start), var(--primary-gradient-end));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-gradient-start);
  margin-bottom: 0.5rem;
}

/* Animated Icons */
.animated-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.icon-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--primary-gradient-start);
  animation: spin 10s linear infinite;
}

.icon-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--primary-gradient-start);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Particle Background */
.particle-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 0, 224, 0.1);
  animation: float-random 15s infinite ease-in-out;
}

@keyframes float-random {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(100px, 50px); }
  50% { transform: translate(50px, 100px); }
  75% { transform: translate(-50px, 50px); }
}
