/* ==========================================================================
   Process Page - Independent Styles
   ========================================================================== */

/* Process Page Variables */
:root {
    --process-color-background: #0a0a0a;
    --process-color-background-dark: #050505;
    --process-color-text-primary: #ffffff;
    --process-color-text-secondary: #a0aec0;
    --process-color-text-tertiary: #718096;
    --process-color-border: #2d3748;
    --process-color-border-light: #1a202c;
    --process-font-main: 'Pretendard', sans-serif;
}

/* ==========================================================================
   Process Main Content
   ========================================================================== */
.process-main-content {
    background-color: var(--process-color-background);
    color: var(--process-color-text-primary);
    font-family: var(--process-font-main);
    overflow-x: hidden;
}

/* ==========================================================================
   Process Animations
   ========================================================================== */
@keyframes processFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-fade-in {
    animation: processFadeIn 1s ease-out forwards;
}

.process-fade-in--delay {
    animation-delay: 0.2s;
}

.process-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.process-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Process Custom Cursor
   ========================================================================== */
.process-custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out,
                width 0.2s ease-out, height 0.2s ease-out;
}

.process-cursor--dot {
    width: 8px;
    height: 8px;
    background-color: var(--process-color-text-primary);
    transform: translate(-4px, -4px);
}

.process-cursor--outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translate(-20px, -20px);
    transition-property: transform, border-color, width, height;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

body:hover .process-custom-cursor {
    opacity: 1;
}

/* ==========================================================================
   Process Section Header (Reusable)
   ========================================================================== */
.process-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.process-section-header__subtitle {
    font-size: 0.875rem;
    color: var(--process-color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
}

.process-section-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.process-section-header__description {
    margin-top: 1.5rem;
    color: var(--process-color-text-secondary);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ==========================================================================
   Process Hero Section
   ========================================================================== */
.process-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/images/process-hero.jpeg');
    background-size: cover;
    background-position: center 70%;
    background-attachment: fixed;
}

/* ==========================================================================
   Process Timeline Section
   ========================================================================== */
.process-timeline {
    padding: 6rem 0;
    position: relative;
}

.process-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--process-color-border);
    transform: translateX(-50%);
}

.process-timeline__line-progress {
    width: 100%;
    height: 0;
    background-color: var(--process-color-text-primary);
    transition: height 0.1s linear;
}

.process-timeline__items-wrapper {
    position: relative;
}

.process-timeline__item {
    position: relative;
    width: 50%;
    padding: 2rem 4rem;
    margin-bottom: 4rem;
}

.process-timeline__item--odd {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.process-timeline__item--even {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}

.process-timeline__item.process-reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-timeline__item--odd.process-reveal {
    transform: translateX(-20px);
}

.process-timeline__item--even.process-reveal {
    transform: translateX(20px);
}

.process-timeline__item.process-reveal.is-visible {
    transform: translateX(0);
}

.process-timeline__item::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    width: 14px;
    height: 14px;
    background-color: var(--process-color-border);
    border-radius: 50%;
    transition: background-color 0.4s;
}

.process-timeline__item--odd::after {
    right: -7px;
}

.process-timeline__item--even::after {
    left: -7px;
}

.process-timeline__item.is-visible::after {
    background-color: var(--process-color-text-primary);
}

.process-timeline__step {
    font-size: 1rem;
    font-weight: 600;
    color: var(--process-color-text-tertiary);
    margin-bottom: 1rem;
}

.process-timeline__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.process-timeline__description {
    color: var(--process-color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.process-timeline__deliverables {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.process-timeline__item--odd .process-timeline__deliverables {
    text-align: right;
}

.process-timeline__item--even .process-timeline__deliverables {
    text-align: left;
}

.process-timeline__deliverable-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--process-color-text-secondary);
}

.process-timeline__item--odd .process-timeline__deliverable-item {
    justify-content: flex-end;
}

.process-timeline__item--even .process-timeline__deliverable-item {
    justify-content: flex-start;
}

.process-timeline__deliverable-item svg {
    width: 18px;
    height: 18px;
    color: var(--process-color-text-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Process FAQ Section
   ========================================================================== */
.process-faq-section {
    padding: 6rem 0;
    background-color: var(--process-color-background-dark);
}

.process-faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.process-faq__item {
    border-bottom: 1px solid var(--process-color-border);
}

.process-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    background: none;
    border: none;
    color: var(--process-color-text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
    cursor: none;
    font-family: var(--process-font-main);
}

.process-faq__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.process-faq__item.is-active .process-faq__icon {
    transform: rotate(45deg);
}

.process-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    color: var(--process-color-text-secondary);
    line-height: 1.8;
}

.process-faq__answer p {
    margin: 0;
}

.process-faq__item.is-active .process-faq__answer {
    padding-bottom: 2rem;
}

/* ==========================================================================
   Process Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    .process-timeline__line {
        left: 1rem;
    }

    .process-timeline__item,
    .process-timeline__item--even,
    .process-timeline__item--odd {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 1rem;
        text-align: left;
    }

    .process-timeline__item::after,
    .process-timeline__item--even::after,
    .process-timeline__item--odd::after {
        left: calc(1rem - 7px);
        right: auto;
    }

    .process-timeline__item--odd .process-timeline__deliverables,
    .process-timeline__item--even .process-timeline__deliverables {
        text-align: left;
    }

    .process-timeline__item--odd .process-timeline__deliverable-item,
    .process-timeline__item--even .process-timeline__deliverable-item {
        justify-content: flex-start;
    }

    .process-hero {
        min-height: 60vh;
        padding: 6rem 1rem 3rem;
    }

    .process-section-header__title {
        font-size: 1.75rem;
    }

    .process-timeline__title {
        font-size: 1.5rem;
    }

    .process-faq__question {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .process-timeline__item,
    .process-timeline__item--even,
    .process-timeline__item--odd {
        padding-left: 2.5rem;
    }

    .process-section-header {
        margin-bottom: 3rem;
    }
}