/* Process Scroll Animation Styles */

/* Transparent header in process section - increased specificity to avoid !important */
body .site-header.header-transparent,
html body header.header-transparent {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  --tw-bg-opacity: 0;
}

body .site-header.header-transparent::after,
html body header.header-transparent::after {
  background: transparent;
  background-color: transparent;
  --tw-bg-opacity: 0;
  opacity: 0;
}

/* Dark mode - consolidated with higher specificity */
html[data-theme="dark"] body header.header-transparent,
html[data-theme="dark"] body header.header-transparent::after {
  background: transparent;
  background-color: transparent;
  --tw-bg-opacity: 0;
}

/* Light mode - consolidated with higher specificity */
html[data-theme="light"] body header.header-transparent,
html[data-theme="light"] body header.header-transparent::after {
  background: transparent;
  background-color: transparent;
  --tw-bg-opacity: 0;
}
/* Enhanced styles for scroll-triggered process showcase */

/* Main Section Enhancements */
.section-processes {
  /* Minimal GPU acceleration - GSAP handles animation optimization */
  transform: translate3d(0,0,0);
}

/* Remove the horizontal line - increased specificity */
body .section-processes::before,
html body section.section-processes::before {
  display: none;
}

.section-processes.is-pinned {
  /* Visual feedback when section is pinned */
  position: relative;
}

/* GSAP handles process element animations - CSS transitions removed to prevent conflicts */
/* Enhanced card animations */
.processes-content-cards > div {
  transform-origin: center center;
}

/* Navigation button transitions */
.process-nav-btn {
  position: relative;
  padding: 0.5rem 0;
  overflow: hidden;
}

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

.process-nav-btn:hover::before {
  left: 100%;
}

/* Active state enhancement */
.process-nav-btn p.text-accent-100 {
  position: relative;
  font-weight: 500;
}

.process-nav-btn p.text-accent-100::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 100%;
  background: var(--color-accent-100, #ffa500);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50%) scaleY(0);
  }
  to {
    transform: translateY(-50%) scaleY(1);
  }
}

/* Progress Indicator Styles - reduced !important usage */
body .process-scroll-indicator {
  position: absolute;
  left: 16px;
  top: 14px;
  right: auto;
  transform: none;
  z-index: var(--z-fixed);
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1280px) {
  .process-scroll-indicator {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .process-scroll-indicator {
    display: none; /* Hide on mobile */
  }
}

/* Progress Track */
.indicator-track {
  position: relative;
  width: 2px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.indicator-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, 
    var(--color-accent-100, #ffa500) 0%, 
    var(--color-accent-200, #ff8800) 100%
  );
  border-radius: 1px;
  transition: height 0.3s ease-out;
}

/* Progress Dots */
.indicator-dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.indicator-dot {
  position: relative;
  width: 14px;
  height: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.indicator-dot.active {
  background: var(--color-accent-100, #ffa500);
  border-color: #fff;
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.7);
}

.indicator-dot.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 30%, rgba(255,165,0,0.4) 100%);
  animation: pulse 2s infinite;
}

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

/* Dot Numbers (hidden) - increased specificity */
body .dot-number {
  display: none;
}

/* Process Labels - increased specificity */
body .indicator-labels {
  display: none;
}

.indicator-label {
  font-size: 10px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 12px;
  line-height: 12px;
}

.indicator-label.active {
  color: var(--color-accent-100, #ffa500);
  opacity: 1;
  transform: translateX(0);
  font-weight: 600;
}

/* Skip Link for Accessibility */
.skip-processes-link {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--color-background);
  color: var(--color-foreground);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  z-index: var(--z-sticky);
  transition: top 0.3s ease;
}

.skip-processes-link:focus {
  top: 10px;
  outline: 2px solid var(--color-accent-100);
  outline-offset: 2px;
}

/* Loading State for Images */
.process-image-loading {
  position: relative;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0.1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Parallax Effects */
.processes-heading {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Mobile Optimizations */
@media (max-width: 1023px) {
  .section-processes {
    /* Disable pin on mobile */
    position: relative !important;
  }
  
  .processes-content-cards > div {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .processes-content-cards > div.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scroll Enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Debug Mode Styles */
body.debug-mode .section-processes {
  outline: 2px solid red;
}

body.debug-mode .indicator-dot {
  outline: 1px solid yellow;
}

body.debug-mode .processes-content-cards > div {
  outline: 1px solid cyan;
}

/* Performance Optimizations */
.section-processes * {
  /* Prevent text selection during scroll */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.section-processes img {
  /* Optimize image rendering - will-change removed (GSAP handles animation optimization) */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Custom Scrollbar for Process Section */
.section-processes::-webkit-scrollbar {
  width: 8px;
}

.section-processes::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.section-processes::-webkit-scrollbar-thumb {
  background: var(--color-accent-100, #ffa500);
  border-radius: 4px;
}

.section-processes::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-200, #ff8800);
}

/* Transition Disable Utility */
.disable-transitions,
.disable-transitions * {
  transition: none !important;
  animation: none !important;
}
