.reflection {
    position: absolute;
    top: 45rem;
    left: 10rem;
    transform: scaleY(-1); /* ✅ 여기서 상하 반전 */
}

.main {
    position: relative;
    overflow: clip;
    /* ✅ wave가 clip되는 영역을 제한 */
    background: url("./assets/home/Background.png") center / cover no-repeat;
    height: clamp(25rem, 50vw, 36rem);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    flex-wrap: wrap;

    border: #fff 1px
}

/* 오버레이 애니메이션 정의 */
@keyframes pulseOverlay {
    0%   { opacity: 0; }
    50%  { opacity: 0.25; }
    100% { opacity: 0; }
  }
  
  /* 오버레이 스타일 */
  .main .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
    background: url("./assets/home/Background3.jpg") no-repeat;  /* 원하는 컬러, 예: 검정 */
    pointer-events: none;
    mix-blend-mode: difference;
  
    animation: pulseOverlay 6s ease-in-out infinite;
    z-index: 1;
  }

.circle-group {
    width: 100%;
    height: 50%;

    position: absolute;
    z-index: 0;
    overflow: visible;
    mix-blend-mode: overlay;
}

.circle-1 {
    width: clamp(10rem, 24vw, 20rem);
    top: 0%;
    position: absolute;
}

.circle-2 {
    width: clamp(15rem, 24vw, 30rem); ;
    position: absolute;
    top: 0%;
    right: 13%;
}

.circle-3 {
    width: clamp(5rem, 24vw, 10rem); 
    position: absolute;
    top: -20%;
    left: 30%;
}

.circles-1 {
    position: absolute;
    bottom: 0%;
    left: 50%;
}

.circles-2 {
    position: absolute;
    bottom: 50%;
    left: 8%;
}

.circles-3 {
    position: absolute;
    top: -40%;
    right: 10%;
}

.phrase {
    position: absolute;
    width: clamp(40rem, 60vw, 64rem);

    top: clamp(8rem, 18vw, 16rem);
}

/* wave + couple 그룹 */
.wave-group {
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.wave-group .wave {
    position: absolute;
    bottom: calc(-13rem + 10vw);
    right: 0;
    width: clamp(120rem, 100vw, 140rem);
    height: auto;
    z-index: 1;
}

.wave-group .couple {
    position: absolute;
    /* bottom → top으로 대체하거나 고정 위치로만 사용 */
    bottom: calc(7rem + 6vw);
    right: 15%;
    width: clamp(16rem, 24vw, 32rem);   
    height: auto;
    z-index: 0;

    /* 여기! transform으로 움직이게 */
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.wave-group .solo {
    position: absolute;
    bottom: 1rem;
    left: 15%;
    width: clamp(6rem, 24vw, 12rem);   
    height: auto;
    z-index: 0;

    transition: bottom 0.5s ease;
}

/* 콘텐츠 */
.main .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;

    width: 100%;
    max-width: 60rem;
    gap: 2rem;
    color: white;
    padding: 2rem
}

/* 좌측 로고 + 텍스트 */
.main .left {
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
    text-align: left;
}

.main .logo {
    align-self: center;
    width: clamp(18rem, 50vw, 42rem);
    margin-bottom: 1rem;
}

.main .left p {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
}

/* 우측 캐릭터 이미지 */
.main .right {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main .illustration {
    width: 100%;
    max-width: 400px;
}



.circle-1,
.circle-2,
.circle-3,
.circles-1,
.circles-2,
.circles-3,
.couple,
.solo,
.phrase,
.logo {
  transition: transform 750ms ease-out;
  will-change: transform;
}

@media (max-width: 768px) {
    .main {
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      height: 12rem;
      padding-top: 2rem;
    }

    .main .left {
        height: 100%;
        gap: 1rem;
    }
  
    .main .logo {
      width: 85vw;
      
      order: 1;
    }
  
    .phrase {
      position: static;
      width: 150vw;
      text-align: center;
      order: 2;
    }
  
    .wave-group .couple {
      position: static;
      margin-top: 2rem;
      order: 3;
      width: 60vw;
      height: auto;
      transform: translateY(6rem);

      opacity: 0.8;
    }

    .wave-group .wave {
        bottom: -8rem; /* ✅ 더 아래로 내려가게 */
        width: 100%;
        height: 100%;   /* ✅ 높이를 줄임 */
    }
  
    .circle-group,
    .circle-1,
    .circle-2,
    .circle-3,
    .circles-1,
    .circles-2,
    .circles-3,
    .solo {
      display: none;
    }
  
    .main .content {
      padding: 0;
      align-items: center;
      text-align: center;
    }
  }