/* ==========================================================================
   REACT BITS: INFINITE SPIRAL 3D COMPONENT STYLES
   Smooth 3D helix spiral gallery with depth perspective, edge blur, and interactive drag
   ========================================================================== */

.infinite-spiral {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  border: none;
  background: transparent;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.infinite-spiral__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.infinite-spiral__item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--infinite-spiral-card-width, 115px);
  height: var(--infinite-spiral-card-height, 115px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--infinite-spiral-card-radius, 16px);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  text-decoration: none;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .infinite-spiral__item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.infinite-spiral__item:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 22px 50px rgba(59, 130, 246, 0.3), 0 0 24px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .infinite-spiral__item:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.2), 0 0 20px rgba(37, 99, 235, 0.15);
}

.infinite-spiral__glow {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(18px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.infinite-spiral__item:hover .infinite-spiral__glow {
  opacity: 0.6;
}

.infinite-spiral__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.infinite-spiral__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.infinite-spiral__item:hover .infinite-spiral__icon {
  transform: scale(1.15);
}

.infinite-spiral__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  width: 100%;
  pointer-events: none;
}

.infinite-spiral__label {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.infinite-spiral__sub {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: var(--text-tertiary, #94a3b8);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Spiral HUD controls capsule - Hidden per design request */
.infinite-spiral-hud {
  display: none !important;
}

[data-theme="light"] .infinite-spiral-hud {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.infinite-spiral-hud__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.infinite-spiral-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: pulseDot 2s infinite ease-in-out;
}

.infinite-spiral-hud__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.infinite-spiral-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.infinite-spiral-toggle-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

@media (max-width: 640px) {
  .infinite-spiral {
    min-height: 440px;
  }
  .infinite-spiral-hud {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .infinite-spiral__item {
    transition: none;
  }
}

/* ==========================================================================
   SKILLS SECTION: 2-COLUMN SPLIT LAYOUT (LEFT: 3D SWIRL • RIGHT: MATRIX CARDS)
   ========================================================================== */

.skills-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
  width: 100%;
}

/* LEFT COLUMN: 3D Spiral Helix Container */
.skills-spiral-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: sticky;
  top: 5.5rem;
}

.spiral-header-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.spiral-col-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.32);
}

[data-theme="light"] .spiral-col-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.22);
}

.spiral-pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}

.spiral-col-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Section-Wise Category Tabs for 3D Swirl */
.spiral-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.spiral-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

[data-theme="light"] .spiral-cat-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
}

.spiral-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .spiral-cat-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0f172a;
}

.spiral-cat-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.65);
  color: #a5b4fc;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .spiral-cat-btn.active {
  background: rgba(79, 70, 229, 0.14);
  border-color: rgba(79, 70, 229, 0.5);
  color: #4338ca;
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.15);
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* 3D Swirl Helix Stage Mount Container - Borderless & Boxless */
.skills-spiral-stage-wrapper {
  height: 560px;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="light"] .skills-spiral-stage-wrapper {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.spiral-canvas-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

[data-theme="light"] .spiral-canvas-hint {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
}

/* RIGHT COLUMN: Section-Wise Competency Stacks */
.skills-matrix-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.skill-category-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.45rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] .skill-category-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(100, 120, 160, 0.08);
}

.skill-category-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.14);
}

.skill-category-card.is-selected {
  border-color: rgba(99, 102, 241, 0.8) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 32px rgba(99, 102, 241, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .skill-category-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .skill-category-card.is-selected {
  border-color: rgba(79, 70, 229, 0.75) !important;
  background: rgba(79, 70, 229, 0.06) !important;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.18), inset 0 1px 1px #ffffff !important;
}

.skill-category-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
  transition: transform 0.3s ease;
}

.skill-category-card:hover .skill-cat-icon-wrap {
  transform: scale(1.08);
}

.skill-cat-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.skill-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.skill-cat-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.skill-cat-status-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  white-space: nowrap;
}

[data-theme="light"] .skill-cat-status-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

.skill-cat-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.skill-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

[data-theme="light"] .skill-chip {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.skill-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

[data-theme="light"] .skill-chip:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
}

.skill-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .skills-split-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .skills-spiral-col {
    position: static;
  }
  .skills-spiral-stage-wrapper {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .skills-split-layout {
    gap: 1.35rem;
  }
  .spiral-category-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .spiral-category-nav::-webkit-scrollbar {
    display: none;
  }
  .spiral-cat-btn {
    padding: 5px 11px;
    font-size: 0.71rem;
    flex-shrink: 0;
  }
  .skills-spiral-stage-wrapper {
    height: 330px;
  }
  .skill-category-card {
    padding: 1rem 0.9rem;
    border-radius: 16px;
    gap: 0.7rem;
  }
  .skill-category-title {
    font-size: 0.95rem;
  }
  .skill-chips-wrap {
    gap: 6px;
  }
  .skill-chip {
    padding: 4px 8px;
    font-size: 0.71rem;
  }
}

@media (max-width: 400px) {
  .skills-spiral-stage-wrapper {
    height: 290px;
  }
}
