/* =================== PROCESS SECTION (Galaxy Orbit Theme) - Upgraded =================== */

.about-process {
  position: relative;
  overflow: hidden;
}

.about-process .section-title {
  margin-bottom: 2rem !important;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-primary-color);
  text-shadow: 0 1px 3px rgba(0,0,0,0.1); 
  position: relative;
  z-index: 2;
}

body[data-theme="dark"] .about-process .section-title {
  text-shadow: 0 1px 2px rgba(255,255,255,0.1);
}

.process-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.process-galaxy-container {
    width: 50%;
    height: 500px;
    position: relative;
    border-radius: 15px;
    transition: height 0.4s ease-in-out;
}

.process-galaxy-visual {
    position: absolute;
    top: 5%; left: 5%;
    width: 90%; height: 90%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.6) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.5) 0%, transparent 50%),
                #0a0a0a;
    border-radius: 70% 25% 65% 30% / 65% 30% 70% 25%;
    transform: rotate(1deg) skewX(-1deg) scale(1.02); 
    filter: blur(8px) contrast(1.5); 
    opacity: 0.85; 
    transition: all 0.7s ease-out;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

.process-galaxy-container:hover .process-galaxy-visual {
    border-radius: 65% 20% 50% 20% / 60% 25% 65% 20%; 
    transform: rotate(-0.5deg) skewX(0.5deg) scale(1.03); 
    filter: blur(6px) contrast(1.8); 
    opacity: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); 
}

.process-galaxy-content {
    position: absolute;
    top: 5%; left: 5%;
    width: 90%; height: 90%;
    z-index: 2;
    overflow: visible; 
}

.star-field {
  position: absolute; width: 100%; height: 100%;
  filter: blur(0.5px); opacity: 0.6; 
  z-index: 1;
}

.star {
  position: absolute; background: white; border-radius: 50%;
  opacity: 0.8; animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.3; transform: scale(1); }
  to { opacity: 1; transform: scale(1.2); }
}

.process-orbit-svg {
  position: absolute; top: 50%; left: 50%;
  overflow: visible; z-index: 3;
}

#orbitPath {
  fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5;
}

.process-planet {
  position: absolute; width: 70px; height: 70px;
  border-radius: 50%; display: flex;
  justify-content: center; align-items: center;
  background: rgba(30, 30, 30, 0.8);
  box-shadow: 0 0 15px rgba(255,255,255,0.08), inset 0 0 5px rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: var(--cursor-grab2); z-index: 4;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.process-planet:hover {
  background: rgba(50, 50, 50, 0.9);
  box-shadow: 0 0 20px rgba(255,255,255,0.15), inset 0 0 8px rgba(255,255,255,0.1);
}
.process-planet.is-active {
  background: rgba(80, 80, 80, 0.95);
  box-shadow: 0 0 25px rgba(255,255,255,0.2), 0 0 10px var(--brand-secondary), inset 0 0 10px rgba(255,255,255,0.2);
}

/* [FIX] 불필요한 transform 속성을 제거하여 JS가 회전을 완전히 제어하도록 함 */
.planet-content {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  transition: transform 0.3s ease;
}
.process-planet .planet-icon,
.process-planet .planet-label {
  color: rgba(227, 227, 227, 0.9);
  transition: color 0.3s ease, opacity 0.3s ease;
}
.process-planet .planet-label {
  font-size: 0.7rem; font-weight: bold; line-height: 1.1; opacity: 0.8; margin-top: 4px;
}
.process-planet:hover .planet-icon,
.process-planet:hover .planet-label,
.process-planet.is-active .planet-icon,
.process-planet.is-active .planet-label {
  color: white; opacity: 1;
}

/* --- Card styles --- */
.about-process-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 1.2rem 1rem;
  width: 50%;
  z-index: 2;
}

.process-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 2rem;
  color: var(--text-primary-color);
  cursor: var(--cursor-grab2);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="dark"] .process-card {
  background: rgba(42, 42, 42, 0.75); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: none;
}

.process-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.process-card.is-active,
.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-secondary);
  box-shadow: 0 15px 35px rgba(217, 101, 112, 0.15);
}
body[data-theme="dark"] .process-card.is-active,
body[data-theme="dark"] .process-card:hover {
    box-shadow: 0 10px 30px rgba(217, 101, 112, 0.2);
}

.process-card h3 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--text-primary-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.process-card.is-active h3 {
  color: var(--brand-secondary);
}

.card-divider {
  width: 50px; height: 2px;
  background: var(--brand-secondary);
  margin: 0.5rem 0;
}

.process-body {
  font-size: 1rem; line-height: 1.6;
  color: var(--text-secondary-color);
}

.process-card.is-active .process-body {
  color: var(--text-primary-color);
}

.confetti-particle {
  position: fixed; pointer-events: none; z-index: 10001;
  opacity: 1; will-change: transform, opacity;
  background-color: var(--text-primary-color);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
}

@media (max-width: 820px) {
  .process-container {
      flex-direction: column;
      align-items: center;
      gap: 2.5rem; 
  }
  .process-galaxy-container {
      width: 90vw;
      height: 60vw;
      max-width: 450px;
      max-height: 400px;
  }
  .about-process-cols {
      width: 100%;
      max-width: 500px;
      grid-template-columns: 1fr;
      gap: 1.3rem;
  }
  .process-card {
      padding: 1.2rem 1.5rem;
  }
  .process-card h3 {
      font-size: 1.05rem;
  }
  .process-body {
      font-size: 0.95rem;
  }
}