/* ==========================================================================
   REACT BITS: STEPPER COMPONENT CSS
   Interactive multi-step project walkthrough with animated connectors
   ========================================================================== */

.projects-stepper-outer-wrap {
  width: 100%;
  margin-bottom: 3.5rem;
}

.outer-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-circle-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .step-circle-container {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 20px 45px -10px rgba(100, 120, 160, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Step Indicator Row */
.step-indicator-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .step-indicator-row {
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.step-indicator {
  position: relative;
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.step-indicator-inner {
  display: flex;
  height: 2.35rem;
  width: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .step-indicator-inner {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

.step-indicator.active .step-indicator-inner {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border-color: #818cf8;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step-indicator.complete .step-indicator-inner {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.step-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.step-indicator.active .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

.step-indicator.complete .step-label {
  color: #10b981;
}

.active-dot {
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  background-color: #fff;
}

.step-number {
  font-size: 0.875rem;
}

.check-icon {
  height: 1.15rem;
  width: 1.15rem;
  color: #fff;
}

/* Animated Connector Line */
.step-connector {
  position: relative;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 1.5rem;
  height: 3px;
  flex: 1;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .step-connector {
  background: rgba(0, 0, 0, 0.1);
}

.step-connector-inner {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-connector.complete .step-connector-inner {
  width: 100%;
}

/* Step Content Wrapper */
.step-content-default {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: height 0.4s ease;
}

.step-default {
  padding: 1.5rem 2rem 1.25rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
}

.step-default.slide-enter-right {
  animation: stepSlideInRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-default.slide-enter-left {
  animation: stepSlideInLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stepSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stepper Project Content Layout */
.stepper-project-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.stepper-project-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}

.stepper-project-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stepper-project-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stepper-project-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stepper-project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.stepper-architecture-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
}

[data-theme="light"] .stepper-architecture-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.08);
}

.stepper-arch-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stepper-pipeline-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.stepper-pipeline-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10b981;
}

/* Footer Navigation */
.footer-container {
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-container {
  background: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 250ms ease;
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-2px);
}

.back-button.inactive {
  pointer-events: none;
  opacity: 0.4;
}

[data-theme="light"] .back-button {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.next-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 250ms ease;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.next-button:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 840px) {
  .stepper-project-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .step-indicator-row {
    padding: 1.25rem 1.5rem 1rem;
  }
  .step-default {
    padding: 1.5rem 1.5rem 1.25rem;
  }
  .footer-container {
    padding: 1rem 1.5rem 1.5rem;
  }
  .step-label {
    display: none;
  }
}

/* Projects View Switcher */
.projects-view-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.projects-toggle-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="light"] .projects-toggle-tab {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

.projects-toggle-tab.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.projects-toggle-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.projects-view-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-view-content.is-hidden {
  display: none !important;
}

