@keyframes soundwave {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.8;
  }
  25% {
    transform: scaleY(1.5);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.8);
    opacity: 0.6;
  }
  75% {
    transform: scaleY(1.2);
    opacity: 0.9;
  }
}

@keyframes soundwave-inactive {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1.1);
    opacity: 0.5;
  }
}

/* AI Particle animation for Step 2 */
@keyframes aiParticle {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0.4;
  }
  25% {
    opacity: 0.8;
  }
  50% {
    transform: translate(var(--tx), var(--ty)) scale(1.5);
    opacity: 0.3;
  }
  75% {
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0.4;
  }
}

@keyframes aiParticle-inactive {
  0%,
  100% {
    transform: scale(0.5);
    opacity: 0.2;
  }
  50% {
    transform: scale(0.7);
    opacity: 0.4;
  }
}

@keyframes neuralLine {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.6;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

/* Studio mixer animation for Step 3 */
@keyframes slider {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 194, 0, 0.3);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 194, 0, 0.6);
  }
  75% {
    transform: translateY(5px);
  }
}

@keyframes slider-inactive {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 194, 0, 0.2);
  }
}

/* Mastering equalizer animation for Step 4 */
@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  25% {
    transform: scaleY(1.4);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.8);
    opacity: 0.4;
  }
  75% {
    transform: scaleY(1.2);
    opacity: 0.8;
  }
}

@keyframes equalizer-inactive {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1.1);
    opacity: 0.5;
  }
}

@keyframes masteringGlow {
  0%,
  100% {
    opacity: 0;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 0.5;
    transform: scaleX(1.2);
  }
}

/* Step number pulse */
@keyframes stepPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Divider animation */
@keyframes dividerPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dividerPulse-inactive {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* Connection line animation */
@keyframes connectionLine {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Background atmospheric effects */
@keyframes atmosphereFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -10px) scale(1.2);
  }
  66% {
    transform: translate(-10px, 5px) scale(0.9);
  }
}

@keyframes atmosphereFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-15px, 10px) scale(0.8);
  }
  66% {
    transform: translate(10px, -8px) scale(1.1);
  }
}

/* Ambient particles */
@keyframes ambientParticle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--dx), -100px) scale(2);
    opacity: 0.2;
  }
}

/* Moving grid */
@keyframes movingGrid {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Fade in on scroll */
@keyframes fadeInUpSec {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeftSec {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleInSec {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInY {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===== SECTION STYLES ===== */
.creative-process-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: #111d2a;
  padding: 5rem 2rem;
  overflow: hidden;
}

.container-section {
  max-width: 1152px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.section-header-section {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeInUpSec 1s ease-out;
}

.section-title-section {
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.section-title-highlight {
  color: #ffc200;
  text-shadow: 0 0 20px rgba(255, 194, 0, 0.4);
}

.section-description-section {
  max-width: 1024px;
  margin: 0 auto;
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.6;
  animation: fadeInUpSec 0.8s ease-out 0.3s backwards;
}

/* ===== PROCESS STEP ===== */
.process-step-section {
  position: relative;
  margin-bottom: 4rem;
  animation: fadeInUpSec 0.8s ease-out backwards;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-grid.reverse .step-content {
    order: 2;
  }

  .step-grid.reverse .step-visual {
    order: 1;
  }
}

/* Content Side */
.step-content {
  animation: fadeInLeftSec 0.8s ease-out backwards;
}

.step-content.right {
  animation: fadeInRight 0.8s ease-out backwards;
}

.step-number-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number-wrapper {
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2530, #0f1a25);
  border: 2px solid rgba(255, 194, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc200;
  font-size: 1.25rem;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(255, 194, 0, 0.3);
  transition: transform 0.3s ease;
}

.step-number:hover {
  transform: scale(1.05);
}

.step-number-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 194, 0, 0.5);
  animation: stepPulse 2s ease-in-out infinite;
}

.step-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 194, 0, 0.5), transparent);
  animation: dividerPulse 3s ease-in-out infinite;
}

.step-text {
  margin-top: 1.5rem;
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffc200;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(255, 194, 0, 0.3);
}

.step-description {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* Visual Side */
.step-visual {
  position: relative;
  height: 16rem;
  background: linear-gradient(135deg, #0a1218, #1a2530);
  border-radius: 1rem;
  overflow: hidden;
  animation: scaleInSec 0.8s ease-out backwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-visual:hover {
  transform: scale(1.02);
  border: 1px solid rgba(255, 194, 0, 0.3);
  box-shadow: 0 0 30px rgba(255, 194, 0, 0.1);
}

/* Visual Background Effects */
.visual-bg {
  position: absolute;
  inset: 0;
}

.visual-atmosphere-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 0, 0.1), transparent);
  filter: blur(40px);
  animation: atmosphereFloat 6s ease-in-out infinite;
}

.visual-atmosphere-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 37, 48, 0.6), transparent);
  filter: blur(30px);
  animation: atmosphereFloat2 8s ease-in-out infinite 1s;
}

.visual-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.visual-grid-section {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(rgba(255, 194, 0, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 194, 0, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ===== STEP 1: SOUNDWAVE ===== */
.soundwave-container {
  width: 100%;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soundwave-bar {
  width: 4px;
  background-color: #ffc200;
  margin: 0 2px;
  border-radius: 9999px;
  animation: soundwave 2s ease-in-out infinite;
  transform-origin: center;
}

/* ===== STEP 2: AI PARTICLES ===== */
.ai-particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #ffc200;
  border-radius: 50%;
  opacity: 0.4;
  animation: aiParticle 4s ease-in-out infinite;
}

.neural-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 194, 0, 0.4),
    rgba(255, 194, 0, 0.2),
    transparent
  );
  transform-origin: left center;
  animation: neuralLine 3s ease-in-out infinite;
}

/* ===== STEP 3: STUDIO MIXER ===== */
.studio-container {
  width: 100%;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mixer-faders {
  display: flex;
  gap: 0.5rem;
}

.fader {
  width: 12px;
  height: 64px;
  background: linear-gradient(to top, #1a2530, #2a3842);
  border-radius: 9999px;
  border: 1px solid rgba(255, 194, 0, 0.2);
  position: relative;
}

.fader:hover {
  transform: scale(1.1);
}

.fader-slider {
  position: absolute;
  width: 16px;
  height: 8px;
  background-color: #ffc200;
  border-radius: 9999px;
  left: 50%;
  transform: translateX(-50%);
  animation: slider 2s ease-in-out infinite;
}

/* ===== STEP 4: MASTERING EQUALIZER ===== */
.mastering-container {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.eq-bar {
  width: 16px;
  background: linear-gradient(
    to top,
    rgba(255, 194, 0, 0.6),
    rgba(255, 194, 0, 0.2)
  );
  border-radius: 4px 4px 0 0;
  animation: equalizer 1.5s ease-in-out infinite;
  transform-origin: bottom;
}

.mastering-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 194, 0, 0.1),
    transparent
  );
  border-radius: 0.5rem;
  animation: masteringGlow 3s ease-in-out infinite;
}

/* ===== CONNECTION LINE ===== */
.connection-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  animation: scaleInY 0.6s ease-out backwards;
}

.connection-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 194, 0, 0.5),
    rgba(255, 194, 0, 0.3),
    transparent
  );
  animation: connectionLine 3s ease-in-out infinite;
}

/* ===== SUMMARY ===== */
.summary {
  text-align: center;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 194, 0, 0.2);
  animation: fadeInUpSec 0.8s ease-out backwards;
}

.summary-content {
  max-width: 768px;
  margin: 0 auto;
}

.summary-text {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.summary-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 194, 0, 0.3);
  border-radius: 0.5rem;
  color: #ffc200;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.summary-badge:hover {
  border-color: rgba(255, 194, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 194, 0, 0.2);
  transform: scale(1.02);
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-atmosphere-1 {
  position: absolute;
  top: 33%;
  right: 16.67%;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 37, 48, 0.1), transparent);
  filter: blur(60px);
  animation: atmosphereFloat 20s ease-in-out infinite;
}

.bg-atmosphere-2 {
  position: absolute;
  bottom: 25%;
  left: 16.67%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 26, 37, 0.08), transparent);
  filter: blur(50px);
  animation: atmosphereFloat2 18s ease-in-out infinite 3s;
}

/* Floating ambient particles */
.ambient-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: #ffc200;
  border-radius: 50%;
  opacity: 0.2;
  animation: ambientParticle ease-in-out infinite;
}

/* Moving grid pattern */
.moving-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(rgba(255, 194, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 194, 0, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: movingGrid 40s linear infinite;
}

@media only screen and (max-width: 600px) {
  .step-description {
    font-size: 1rem;
    color: #d1d5db;
  }
}
