/* ================================================================
   Experience Page Styles
   ================================================================ */

#page-experience {
    position: relative;
    background-color: #0b0b0b;
}

#experience-sec-main {
    min-height: 100vh;
    padding: calc(var(--identity-header-h, 90px) + 14px) 0 calc(var(--identity-footer-h, 70px) + 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.exp-shell {
    width: min(1240px, 94vw);
    min-height: calc(100vh - var(--identity-header-h, 90px) - var(--identity-footer-h, 70px) - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#page-experience .content-wrapper.sub-header h1 {
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

#page-experience .content-wrapper.sub-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.7;
    margin-bottom: 14px;
}

.exp-stage {
    width: min(1380px, 96vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
}

.exp-panel {
    display: none;
    width: 100%;
}

.exp-panel.active {
    display: block;
}

.exp-category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: -24px;
    margin-bottom: 44px;
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
}

.exp-category-header::before {
    content: "";
    display: block;
    width: 2.5px;
    height: 38px;
    background: rgba(255, 255, 255, 0.48);
    margin: -6px auto 18px;
}

.exp-category-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.exp-category-ko {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: #ff2c2c;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    justify-content: center;
}

.exp-card {
    background: transparent;
    border: 0.8px solid rgba(255, 255, 255, 0.82);
    border-radius: 0;
    padding: 28px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 330px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.exp-card:hover {
    background: #ffffff;
    border-color: transparent;
}

.exp-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    width: 100%;
}

.exp-num {
    font-size: 46px;
    font-weight: 700;
    color: #ff2c2c;
    line-height: 1;
    margin-top: 0;
    display: block;
    text-align: center;
}

.exp-company {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
}

.exp-details {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.exp-details li {
    position: static;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    padding-left: 0;
    word-break: keep-all;
    text-align: center;
}

.exp-details li::before {
    content: none;
}

.exp-card:hover .exp-company,
.exp-card:hover .exp-details li {
    color: #0b0b0b;
}

.exp-nav-wrap {
    width: 100%;
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    position: static;
    --side-gap: 16px;
    align-items: center;
    justify-items: center;
    min-height: 34px;
}

.exp-arrow {
    width: 50px;
    height: 50px;
    border: 0.8px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    position: absolute;
    top: 57%;
    transform: translateY(-50%);
    z-index: 2;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-align: center;
    line-height: 0;
    font-family: Arial, sans-serif;
}

.exp-arrow:hover {
    border-color: #ff2c2c;
    color: #ff2c2c;
}

.exp-prev {
    left: -84px;
}

.exp-next {
    right: -84px;
}

.exp-arrow.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.exp-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    grid-column: 2;
}

.exp-nav-side {
    display: none;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff2c2c;
    white-space: nowrap;
    position: relative;
    top: auto;
    transform: none;
    align-self: center;
}

.exp-nav-side-left {
    grid-column: 1;
    justify-self: end;
    margin-right: var(--side-gap);
}

.exp-nav-side-right {
    grid-column: 3;
    justify-self: start;
    margin-left: var(--side-gap);
}

.exp-stage[data-current="0"] .exp-nav-side-left {
    display: inline-block;
}

.exp-stage[data-current="1"] .exp-nav-side-right {
    display: inline-block;
}

.exp-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.exp-dot.active {
    border-color: #ff2c2c;
    background: #ff2c2c;
}

/* ================================================================
   Light Mode (라이트 모드 대응)
   ================================================================ */
body.light-mode #page-experience {
    background-color: #f9f9f9;
}

body.light-mode #page-experience .content-wrapper.sub-header h1 {
    color: #0b0b0b;
}

body.light-mode #page-experience .content-wrapper.sub-header p {
    color: #444;
}

body.light-mode .exp-category-title {
    color: #ffffff;
}

body.light-mode .exp-category-header {
    border-bottom: none;
}

body.light-mode .exp-category-header::before {
    background: #0b0b0b;
}

body.light-mode .exp-card {
    background: transparent;
    border: 0.8px solid #0b0b0b;
    box-shadow: none;
}

body.light-mode .exp-card:hover {
    background: #0b0b0b;
    border-color: #0b0b0b;
    box-shadow: none;
}

body.light-mode .exp-company {
    color: #0b0b0b !important;
}

body.light-mode .exp-details li {
    color: #0b0b0b !important;
}

body.light-mode .exp-num,
body.light-mode .exp-card:hover .exp-num {
    color: #ff2c2c !important;
}

body.light-mode .exp-card:hover .exp-company,
body.light-mode .exp-card:hover .exp-details li {
    color: #ffffff !important;
}

body.light-mode .exp-details li::before {
    color: transparent;
}

body.light-mode .exp-dot {
    border-color: #ff2c2c;
    background: transparent;
}

body.light-mode .exp-dot.active {
    border-color: #ff2c2c;
    background: #ff2c2c;
}

body.light-mode .exp-arrow {
    color: #0b0b0b;
    border-color: #0b0b0b;
}

body.light-mode .exp-arrow:hover {
    color: #ff2c2c;
    border-color: #ff2c2c;
}

body.light-mode .exp-nav-side {
    color: #ff2c2c !important;
}

/* ================================================================
   Responsive (반응형 모바일)
   ================================================================ */
@media (max-width: 1024px) {
    #experience-sec-main {
        padding-top: calc(var(--identity-header-h, 90px) + 12px);
    }

    .exp-shell {
        width: min(1120px, 94vw);
    }

    .exp-stage {
        width: min(1180px, 94vw);
    }

    .exp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .exp-card {
        min-height: 300px;
    }

    .exp-num {
        font-size: 42px;
    }

    .exp-prev {
        left: -68px;
    }

    .exp-next {
        right: -68px;
    }
}

@media (max-width: 768px) {
    #experience-sec-main {
        padding: calc(var(--identity-header-h, 90px) + 18px) 0 calc(var(--identity-footer-h, 70px) + 14px);
    }

    .exp-shell {
        min-height: calc(100vh - var(--identity-header-h, 90px) - var(--identity-footer-h, 70px) - 28px);
        justify-content: flex-start;
        padding-top: 8px;
    }

    #page-experience .content-wrapper.sub-header h1 {
        font-size: clamp(34px, 10vw, 48px);
        margin-bottom: 6px;
    }

    #page-experience .content-wrapper.sub-header p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .exp-stage {
        width: min(700px, 96vw);
        padding-inline: clamp(34px, 9vw, 56px);
        box-sizing: border-box;
    }

    .exp-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .exp-card {
        padding: 16px 14px;
    }

    .exp-card-top {
        gap: 10px;
        margin-bottom: 8px;
    }

    .exp-company {
        font-size: 16px;
    }

    .exp-details li {
        font-size: 13px;
    }

    .exp-nav-wrap {
        margin-top: 20px;
        min-height: 48px;
        --side-gap: 10px;
    }

    .exp-arrow {
        width: 44px;
        height: 44px;
        font-size: 26px;
        top: 53%;
    }

    .exp-prev {
        left: 0;
    }

    .exp-next {
        right: 0;
    }

    .exp-nav-side {
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .exp-dot {
        width: 14px;
        height: 14px;
    }

    .exp-card {
        min-height: 0;
        padding: 25px 20px;
    }

    .exp-num {
        font-size: 38px;
    }

    .exp-company {
        font-size: 20px;
    }

    .exp-details li {
        font-size: 14px;
    }

    .exp-category-header {
        margin-top: -10px;
        margin-bottom: 24px;
    }
}

@keyframes expRiseUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.exp-shell.exp-seq-initial .content-wrapper.sub-header h1,
.exp-shell.exp-seq-initial .exp-panel.active .exp-category-header,
.exp-shell.exp-seq-initial .exp-panel.active .exp-card,
.exp-shell.exp-seq-cards .exp-panel.active .exp-card {
    opacity: 0;
    animation: expRiseUp 0.5s ease forwards;
}

.exp-shell.exp-seq-initial .exp-arrow,
.exp-shell.exp-seq-initial .exp-dots,
.exp-shell.exp-seq-initial .exp-nav-side {
    opacity: 0;
    animation: expFadeIn 0.35s ease forwards;
}

.exp-shell.exp-seq-initial .content-wrapper.sub-header h1 {
    animation-delay: 0s;
}

.exp-shell.exp-seq-initial .exp-panel.active .exp-category-header {
    animation-delay: 0.12s;
}

.exp-shell.exp-seq-initial .exp-panel.active .exp-card:nth-child(1) {
    animation-delay: 0.24s;
}

.exp-shell.exp-seq-initial .exp-panel.active .exp-card:nth-child(2) {
    animation-delay: 0.34s;
}

.exp-shell.exp-seq-initial .exp-panel.active .exp-card:nth-child(3) {
    animation-delay: 0.44s;
}

.exp-shell.exp-seq-initial .exp-panel.active .exp-card:nth-child(4) {
    animation-delay: 0.54s;
}

.exp-shell.exp-seq-initial .exp-arrow {
    animation-delay: 0.66s;
}

.exp-shell.exp-seq-initial .exp-dots,
.exp-shell.exp-seq-initial .exp-nav-side {
    animation-delay: 0.78s;
}

.exp-shell.exp-seq-cards .exp-panel.active .exp-card:nth-child(1) {
    animation-delay: 0s;
}

.exp-shell.exp-seq-cards .exp-panel.active .exp-card:nth-child(2) {
    animation-delay: 0.1s;
}

.exp-shell.exp-seq-cards .exp-panel.active .exp-card:nth-child(3) {
    animation-delay: 0.2s;
}

.exp-shell.exp-seq-cards .exp-panel.active .exp-card:nth-child(4) {
    animation-delay: 0.3s;
}