/**
 * Methodology Section Enhanced - Visual Timeline Design
 * Transforms the tabbed methodology into an elegant visual journey
 * 
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* ===================================
   METHODOLOGY SECTION - Premium Redesign
   =================================== */
.methodology-simple {
  background: var(--bg-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Section Header - Enhanced */
.methodology-simple .section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.methodology-simple .section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(3rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-primary) !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

.methodology-simple .section-description {
  font-family: var(--font-body) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center !important;
}

/* Hide the old tab navigation */
.methodology-tabs {
  display: none;
}

/* Swipe hint - keep for mobile */
.swipe-hint {
  display: none;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-top: 2rem;
  font-style: italic;
}

/* Enhanced Methodology Content - Timeline Layout */
.methodology-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Create visual timeline */
.methodology-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    var(--primary-subtle) 10%, 
    var(--primary-subtle) 90%, 
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Methodology Panels - Timeline Cards */
.methodology-panel {
  display: block !important;
  opacity: 1 !important;
  position: relative;
  margin-bottom: 4rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.methodology-panel:last-child {
  margin-bottom: 0;
}

/* Alternating layout */
.methodology-panel:nth-child(odd) .panel-content {
  flex-direction: row;
}

.methodology-panel:nth-child(even) .panel-content {
  flex-direction: row-reverse;
}

/* Panel Content - Enhanced Layout */
.panel-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Timeline Node - Numbers removed per user request */
.methodology-panel::after {
  display: none;
}

/* Panel Header with Illustration */
.panel-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* Enhanced Panel Illustration */
.panel-illustration {
  width: 300px;
  height: 300px;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-illustration svg {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Animate SVG elements */
.panel-illustration svg circle,
.panel-illustration svg path,
.panel-illustration svg rect {
  animation: svgDraw 2s ease-out forwards;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@keyframes svgDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Panel Title */
.panel-title {
  margin-bottom: 1rem;
}

.panel-title h3 {
  font-family: var(--font-display) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  margin: 0 !important;
}

/* Panel Description & Points Container */
.methodology-panel:nth-child(odd) .panel-description,
.methodology-panel:nth-child(odd) .panel-points {
  text-align: left;
}

.methodology-panel:nth-child(even) .panel-description,
.methodology-panel:nth-child(even) .panel-points {
  text-align: right;
}

.panel-description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Panel Points - Enhanced Cards */
.panel-points {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.methodology-panel:nth-child(even) .panel-points {
  justify-content: flex-end;
}

.point-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  flex: 1;
  min-width: 150px;
  max-width: 180px;
  text-align: center !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1) !important;
  box-shadow: var(--glass-shadow-light) !important;
}

.point-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary) !important;
  box-shadow: var(--glass-shadow-medium), 0 0 0 1px var(--primary-subtle) !important;
}

.point-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.point-card h4 {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin: 0 0 0.5rem 0 !important;
  text-align: center !important;
}

.point-card p {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* Panel Content Details */
.methodology-panel:nth-child(odd) .panel-content > div:last-child {
  flex: 1;
  padding-left: 2rem;
}

.methodology-panel:nth-child(even) .panel-content > div:last-child {
  flex: 1;
  padding-right: 2rem;
}

/* Scroll Animation */
.methodology-panel {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.methodology-panel.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the animations */
.methodology-panel:nth-child(1).in-view { transition-delay: 0s; }
.methodology-panel:nth-child(2).in-view { transition-delay: 0.1s; }
.methodology-panel:nth-child(3).in-view { transition-delay: 0.2s; }
.methodology-panel:nth-child(4).in-view { transition-delay: 0.3s; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .methodology-content::before {
    left: 40px;
  }
  
  /* .methodology-panel::after {
    left: 40px;
  } */
  
  .panel-content {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .methodology-panel:nth-child(odd) .panel-description,
  .methodology-panel:nth-child(odd) .panel-points,
  .methodology-panel:nth-child(even) .panel-description,
  .methodology-panel:nth-child(even) .panel-points {
    text-align: center !important;
  }
  
  .methodology-panel:nth-child(odd) .panel-content > div:last-child,
  .methodology-panel:nth-child(even) .panel-content > div:last-child {
    padding: 0 !important;
  }
  
  .panel-points {
    justify-content: center !important;
  }
  
  .panel-illustration {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .methodology-simple {
    padding: 4rem 0;
  }
  
  .methodology-content::before {
    display: none;
  }
  
  /* .methodology-panel::after {
    display: none;
  } */
  
  .methodology-panel {
    margin-bottom: 3rem;
  }
  
  .panel-content {
    gap: 2rem;
  }
  
  .panel-header {
    padding: 1rem;
  }
  
  .panel-illustration {
    width: 200px;
    height: 200px;
  }
  
  .panel-title h3 {
    font-size: 1.5rem !important;
  }
  
  .panel-description {
    font-size: 1rem;
  }
  
  .panel-points {
    flex-direction: column;
    align-items: center;
  }
  
  .point-card {
    max-width: 100%;
    width: 100%;
  }
  
  .swipe-hint {
    display: block;
  }
}

/* ===================================
   ENHANCED INTERACTIONS
   =================================== */
/* Floating animation for illustrations */
.panel-illustration {
  animation: float 6s ease-in-out infinite;
}

.methodology-panel:nth-child(even) .panel-illustration {
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Glow effect on hover */
.methodology-panel:hover .panel-illustration svg {
  filter: drop-shadow(0 0 20px var(--primary-subtle));
}

/* Progress line animation */
.methodology-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transform-origin: top;
  transition: height 0.3s ease;
  z-index: 1;
}

/* Parallax effect on scroll */
.panel-illustration {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Focus states */
.point-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .panel-illustration {
    animation: none;
  }
  
  .panel-illustration svg circle,
  .panel-illustration svg path,
  .panel-illustration svg rect {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  
  .methodology-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}