/* Enhanced Methodology Page Styles */

/* Main methodology visualization */
.methodology-hero {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.methodology-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-dots.svg');
  background-size: 20px;
  opacity: 0.1;
  z-index: 0;
}

.methodology-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.methodology-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.methodology-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Interactive methodology timeline */
.methodology-timeline {
  position: relative;
  padding: 3rem 0;
  margin-bottom: 4rem;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-center-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 1;
}

.timeline-phase {
  position: relative;
  margin-bottom: 6rem;
  display: flex;
  align-items: center;
}

.timeline-phase:last-child {
  margin-bottom: 0;
}

.timeline-phase:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-phase:nth-child(even) {
  justify-content: flex-end;
}

.timeline-phase-content {
  width: 45%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-phase:nth-child(odd) .timeline-phase-content {
  margin-right: 2rem;
}

.timeline-phase:nth-child(even) .timeline-phase-content {
  margin-left: 2rem;
}

.timeline-phase-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--primary-color), 0 0 0 8px rgba(106, 17, 203, 0.1);
  z-index: 3;
  transition: transform 0.3s ease;
}

.timeline-phase-icon:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-phase-icon i {
  font-size: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-phase-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

.timeline-phase-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  padding-top: 1rem;
}

.timeline-phase-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.timeline-phase-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.timeline-phase-activities,
.timeline-phase-deliverables {
  flex: 1;
  min-width: 200px;
}

.timeline-phase-activities h3,
.timeline-phase-deliverables h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.timeline-phase-activities h3::before,
.timeline-phase-deliverables h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.timeline-phase-activities h3::before {
  background: var(--primary-color);
}

.timeline-phase-deliverables h3::before {
  background: var(--secondary-color);
}

.timeline-phase-activities ul,
.timeline-phase-deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-phase-activities li,
.timeline-phase-deliverables li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

.timeline-phase-activities li::before,
.timeline-phase-deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.timeline-phase-activities li::before {
  background: var(--primary-color);
}

.timeline-phase-deliverables li::before {
  background: var(--secondary-color);
}

.timeline-phase-case {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
  border-radius: 8px;
}

.timeline-phase-case h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.timeline-phase-case p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* AI Use Cases Section */
.ai-use-cases {
  padding: 4rem 0;
  background-color: #f9f9f9;
  border-radius: 20px;
  margin-bottom: 4rem;
}

.use-cases-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.use-cases-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.use-case-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.use-case-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.use-case-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.use-case-icon.automation {
  background-color: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.use-case-icon.perception {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.use-case-icon.generative {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

.use-case-icon.analysis {
  background-color: rgba(156, 39, 176, 0.1);
  color: #9C27B0;
}

.use-case-icon i {
  font-size: 28px;
}

.use-case-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

.use-case-body {
  padding: 1.5rem;
}

.use-case-purpose {
  margin-bottom: 1.5rem;
}

.use-case-purpose h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.use-case-purpose p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.use-case-examples {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.use-case-examples h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.use-case-examples p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Interactive phase navigation */
.phases-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.phase-tab {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.phase-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.phase-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 6px 15px rgba(106, 17, 203, 0.2);
}

.phase-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.8rem;
  transition: all 0.3s ease;
}

.phase-tab:not(.active) .phase-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.phase-tab.active .phase-number {
  background-color: white;
  color: var(--primary-color);
}

.phase-tab h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Mobile styles */
@media (max-width: 992px) {
  .timeline-phase-content {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .methodology-title {
    font-size: 2.5rem;
  }
  
  .timeline-center-line {
    left: 30px;
  }
  
  .timeline-phase {
    justify-content: flex-start !important;
  }
  
  .timeline-phase-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
  
  .timeline-phase-icon {
    left: 30px;
    transform: translateY(-50%);
  }
  
  .timeline-phase-icon:hover {
    transform: translateY(-50%) scale(1.1);
  }
  
  .phases-navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .phase-tab {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .methodology-title {
    font-size: 2rem;
  }
  
  .methodology-subtitle {
    font-size: 1rem;
  }
  
  .timeline-phase-details {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation for icons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(106, 17, 203, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}
