/* 
   =============================================================================
   다시, 봄 (Re-Spring) Sections Stylesheet
   ============================================================================= 
*/

/* ==========================================================================
   Section 2: Interactive Comparison
   ========================================================================== */
.comparison-section {
    background-color: var(--color-bg-alt);
}

.comparison-section .section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

.comparison-section .section-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
}

.overlap-gallery-wrapper {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    height: 550px;
}

@media (max-width: 768px) {
    .overlap-gallery-wrapper {
        height: 380px;
        margin-top: 40px;
    }
}

.overlap-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.overlap-img {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
    background-color: #fff;
}

.overlap-img:hover {
    transform: scale(1.03) translateY(-10px) !important;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25);
    z-index: 10 !important;
}

/* 낡은 사진 - 왼쪽 뒤 */
.img-old {
    width: auto;
    max-width: 45%;
    height: 70%;
    left: 2%;
    top: 5%;
    z-index: 1;
    transform: rotate(-6deg);
    border: 8px solid #fdfcf9;
}

/* 현재 사진 - 오른쪽 뒤 */
.img-current {
    width: auto;
    max-width: 45%;
    height: 70%;
    right: 2%;
    top: 5%;
    z-index: 2;
    transform: rotate(6deg);
    border: 8px solid #fdfcf9;
}

/* 식사 사진 - 중앙 앞 (메인 강조) */
.img-meal {
    width: auto;
    max-width: 60%;
    height: 85%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 3;
    border: 12px solid #fff;
}

@media (max-width: 768px) {
    .image-overlap-container {
        height: 300px;
        /* 모바일 높이 축소 */
    }

    .img-old {
        max-width: 40%;
        height: auto;
        left: 2%;
        top: 10%;
        border-width: 3px;
        transform: rotate(-4deg);
    }

    .img-current {
        max-width: 40%;
        height: auto;
        right: 2%;
        top: 10%;
        border-width: 3px;
        transform: rotate(4deg);
    }

    .img-meal {
        max-width: 65%;
        height: auto;
        bottom: 5%;
        border-width: 5px;
    }
}


/* ==========================================================================
   Section 3: Our Journey (4-Step process)
   ========================================================================== */
.process-section {
    background-color: var(--color-bg-light);
    overflow: hidden;
}

/* Custom Large Label for Process Section */
.process-label-large {
    font-size: 2.45rem;
    /* 70% of 3.5rem */
    font-weight: 900;
    margin-bottom: 48px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--color-primary-dark);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical guiding line removed for accordion layout */

.step-card {
    position: relative;
    margin-bottom: 24px;
    z-index: 1;
}

.step-card:last-child {
    margin-bottom: 0;
}

/* Accordion Button Styles */
.step-accordion {
    width: 100%;
    text-align: left;
    background-color: #fff;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
}

.step-accordion:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.step-accordion.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--color-bg-alt);
    /* slightly darker or distinct when open */
}

/* Inside Numbering */
.step-number-inside {
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
    /* 견고딕 적용 */
    margin-right: 24px;
    padding-right: 24px;
    border-right: 2px solid rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .step-accordion {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number-inside {
        margin-right: 0;
        margin-bottom: 12px;
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
        padding-bottom: 8px;
        width: 100%;
    }
}

/* Title and Subtitle wrapper inside button */
.step-title-wrap {
    flex-grow: 1;
}

.step-title-wrap h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--color-primary-dark);
    font-family: 'Noto Sans KR', sans-serif;
    /* 견고딕 적용 */
    font-weight: 900;
}

.step-subtitle {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Plus/Minus Icon */
.accordion-icon {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 300;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.step-accordion.active .accordion-icon {
    transform: rotate(45deg);
    /* cross effect instead of changing text if we want, or handle via JS */
}

/* Accordion Panel */
.step-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fff;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.step-panel-inner {
    padding: 0 32px 32px 32px;
    /* padding only at bottom and sides */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .step-panel-inner {
        padding: 0 20px 20px 20px;
    }
}

.step-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 24px;
}

/* ==========================================================================
   Section 4: AI Architecture
   ========================================================================== */
.tech-section {
    background-color: #ffffff;
    color: var(--color-text-dark);
}

.tech-label-large {
    font-size: 2.45rem;
    font-weight: 900;
    margin-bottom: 48px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #000000;
}

.tech-section .section-desc {
    color: var(--color-text-muted);
    max-width: 900px;
    /* 늘려서 한 줄 처리 */
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.diagram-node {
    background-color: #ff6a00;
    /* 강렬한 주황색 */
    border: none;
    /* 선 제거 */
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.2);
    padding: 32px;
    border-radius: var(--radius-md);
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.diagram-node:hover {
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.4);
    transform: translateY(-5px);
}

.diagram-node h4 {
    color: #ffffff;
    /* 흰색 타이틀 */
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    /* 견고딕 적용 */
    font-weight: 900;
}

.diagram-node p {
    color: rgba(255, 255, 255, 0.9);
    /* 거의 흰색 설명 */
    font-size: 0.95rem;
}

.diagram-flow {
    height: 60px;
    width: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Micro-motion particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    opacity: 0;
}

/* Animate particle down the nodes */
.p1 {
    left: 50%;
    transform: translateX(-50%);
    animation: flowDown 4s infinite linear;
}

.p2 {
    left: 50%;
    transform: translateX(-50%);
    animation: flowDown 4s infinite linear 1.3s;
}

.p3 {
    left: 50%;
    transform: translateX(-50%);
    animation: flowDown 4s infinite linear 2.6s;
}

@keyframes flowDown {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ==========================================================================
   Section 5: Footer
   ========================================================================== */

.footer {
    background-color: #ff6a00;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
}