/* texthero.css */

/* #first-gap {
  border-top: 1px solid rgba(251, 251, 251, 0.9);
} */

#skills-showcase-section {
  background-color: transparent;
  padding: 50px 0px 0px 0px;
  position: relative;
  min-height: calc(100vh + 15rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10rem;
}
body[data-theme="light"] #skills-showcase-section {
    background-color: var(--light-bg);
}

.skills-3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background-color 0.5s ease;
  z-index: 2;
  background-color: var(--overlay-light-mode-color);
}

@media (prefers-color-scheme: dark) {
  .color-overlay {
    background-color: var(--overlay-dark-mode-color);
  }
}

:root {
  --overlay-light-mode-color: transparent;
  --overlay-dark-mode-color: transparent;
}

.work-experience-intro.center {
    color: var(--dark-text);
    font-size: 2.25rem;
    font-weight: 800;
    padding: 28px 20px 24px 28px;
    border-radius: 18px;
    text-align: center;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    position: relative;
    z-index: 3;
    line-height: 1.3;
    transition: box-shadow 0.2s, margin-left 0.3s ease-out;
    width: auto;
    box-sizing: border-box;
}
body[data-theme="light"] .work-experience-intro.center {
    color: var(--light-text);
}

.work-experience-intro .meaning-chunk {
    font-family: 'Noto Serif TC', serif;
    color: var(--dark-text);
    margin: 0 6px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}
body[data-theme="light"] .work-experience-intro .meaning-chunk {
    color: var(--light-text);
}


/* --- List Wrapper Styles --- */
#list-item-wrapper {
  list-style: none;
  margin: 0 3rem;
  padding: 0rem 0rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* --- Individual List Item Styles --- */
.list-item {
  font-family: 'Noto Serif TC', serif;
  display: inline-block;
  font-weight: 600;
  /* [수정됨] clamp()를 사용하여 폰트 크기를 유동적으로 조절 */
  font-size: clamp(18px, 1rem + 1.8vw, 32px);
  color: var(--dark-list-item-inactive-text);
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
  padding-left: 50px;
  margin-right: 25px;
  margin-bottom: 12px;
 /* [수정됨] line-height의 최댓값을 1.8에서 2.0으로 늘렸습니다. */
  line-height: clamp(1.8, 1.9, 2);
  cursor: var(--cursor-grab2);
}

@media (min-width: 768px) {
  #list-item-wrapper {
      margin: 3rem 5rem;
      max-width: 1100px;
  }
  /* .list-item font-size는 clamp()로 대체되어 더 이상 필요하지 않음 */
}

body[data-theme="light"] .list-item {
    color: var(--light-list-item-inactive-text);
}

.list-item:hover {
    color: var(--dark-text);
    text-shadow: 0 2px 12px var(--light-text);
}
body[data-theme="light"] .list-item:hover {
    color: var(--light-text);
    text-shadow: 0 2px 12px var(--dark-text);
}

.list-item#on {
  color: var(--dark-text);
  text-shadow: 0 2px 12px var(--light-text);
}
body[data-theme="light"] .list-item#on {
    color: var(--light-text);
    text-shadow: 0 2px 12px var(--dark-text);
}

.list-item::before {
    content: " ";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    filter: grayscale(100%) brightness(50%);
    transition: filter 0.3s ease;
}

body[data-theme="light"] .list-item::before {
    filter: brightness(100%) saturate(0%) opacity(0.5);
}

.list-item:hover::before,
.list-item#on::before {
    filter: none;
}

#panel1-img,
#grape-img {
  display: none;
}

/* --- Specific Icon Paths for Each List Item (변동 없음) --- */
.ux-ui-design-icon::before { background-image: url('../icons/1.png'); }
.user-experience-icon::before { background-image: url('../icons/2.png'); }
.user-interface-icon::before { background-image: url('../icons/3.png'); }
.business-strategy-icon::before { background-image: url('../icons/4.png'); }
.data-analysis-icon::before { background-image: url('../icons/5.png'); }
.market-research-icon::before { background-image: url('../icons/6.png'); }
.consumer-insights-icon::before { background-image: url('../icons/7.png'); }
.customer-journey-icon::before { background-image: url('../icons/8.png'); }
.branding-icon::before { background-image: url('../icons/9.png'); }
.marketing-strategy-icon::before { background-image: url('../icons/10.png'); }
.digital-transformation-icon::before { background-image: url('../icons/11.png'); }
.app-development-icon::before { background-image: url('../icons/12.png'); }
.flutter-icon::before { background-image: url('../icons/13.png'); }
.frontend-development-icon::before { background-image: url('../icons/14.png'); }
.project-management-icon::before { background-image: url('../icons/15.png'); }
.leadership-icon::before { background-image: url('../icons/16.png'); }
.entrepreneurship-icon::before { background-image: url('../icons/17.png'); }
.client-management-icon::before { background-image: url('../icons/18.png'); }
.problem-solving-icon::before { background-image: url('../icons/19.png'); }
.user-centered-icon::before { background-image: url('../icons/20.png'); }
.omnichannel-icon::before { background-image: url('../icons/21.png'); }
.design-thinking-icon::before { background-image: url('../icons/22.png'); }
.prototyping-icon::before { background-image: url('../icons/23.png'); }
.user-testing-icon::before { background-image: url('../icons/24.png'); }
.communication-icon::before { background-image: url('../icons/25.png'); }
.hospitality-icon::before { background-image: url('../icons/26.png'); }
.retail-icon::before { background-image: url('../icons/27.png'); }
.startup-icon::before { background-image: url('../icons/28.png'); }

/* Layout for sections (Desktop horizontal, Mobile vertical) */
.section-row {
    display: flex;
    width: 100vw;
    height: auto;
    min-height: calc(100vh - var(--header-height, 0px));
    overflow: hidden;
}

/* Section Content Area styling (the scrollable right panel) */
.section-content-area {
    flex: 1 1 75%;
    min-width: 0;
    background: var(--dark-timeline-content-bg);
    color: var(--dark-timeline-content-text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 48px;
    padding-left: clamp(16px, 2vw, 48px);
    padding-right: clamp(16px, 2vw, 48px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.5s, flex-basis 0.5s;
    opacity: 1;
    z-index: 1;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #888 var(--dark-timeline-content-bg);
    min-height: calc(100vh - var(--header-height, 0px));
}
body[data-theme="light"] .section-content-area {
    background: var(--light-timeline-content-bg);
    color: var(--light-timeline-content-text);
    scrollbar-color: #888 var(--light-timeline-content-bg);
}

.section-content-area::-webkit-scrollbar {
    width: 8px;
}
.section-content-area::-webkit-scrollbar-track {
    background: var(--dark-timeline-content-bg);
}
body[data-theme="light"] .section-content-area::-webkit-scrollbar-track {
    background: var(--light-timeline-content-bg);
}

.section-content-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.section-content-area::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    gap: 22px;
    box-sizing: border-box;
}

.ease-cubic {
    transition-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
}

.phrase span {
    display: inline-flex;
    overflow: hidden;
    margin-right: 5px;
}

.phrase span span {
    display: inline-block;
    transform: translateY(100%);
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    text-align: left;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    transition: none !important;
}

.sub-description {
    font-size: 1.125rem;
    font-weight: 300;
    width: 100%;
    line-height: 1.6;
    transition: none !important;
}

.items-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1200px;
}

.item-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 3rem 2rem;
    gap: 0.5rem;
    border-top: 1px solid var(--dark-item-border);
    cursor: var(--cursor-default2);
    transition: all 0.3s ease-in-out;
    border-radius: 0.5rem;
}
body[data-theme="light"] .item-container {
    border-top: 1px solid var(--light-item-border);
}

.item-column-left {
    width: 100%;
}

.item-column-right {
    width: 100%;
    margin-top: 1rem;
}

.item-heading {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0;
}

.item-subtitle {
    color: var(--dark-item-subtitle-text);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}
body[data-theme="light"] .item-subtitle {
    color: var(--light-item-subtitle-text);
}

.item-description-text {
    font-size: 1rem;
    font-weight: 300;
    margin-top: 0;
    margin-right: 2rem;
    line-height: 1.7;
}

.item-period-text {
    color: var(--dark-item-period-text);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}
body[data-theme="light"] .item-period-text {
    color: var(--light-item-period-text);
}

.item-container:hover .item-heading,
.item-container:hover .item-column-left .item-subtitle {
    transform: translateX(-10px);
    transition: transform 400ms ease;
}

.item-container:hover .item-column-right .item-description-text,
.item-container:hover .item-column-right .item-period-text {
    transform: translateX(10px);
    transition: transform 400ms ease;
}
.item-container:hover {
    background: var(--dark-item-hover-bg);
}
body[data-theme="light"] .item-container:hover {
    background: var(--light-item-hover-bg);
}

.section-content .main-section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1200px;
}

@media (min-width: 1101px) {
    .section-content .main-section-header .sub-description {
        width: 80%;
        max-width: 900px;
    }
}


/* --- Mobile Styles (Breakpoint: max-width: 768px) --- */
@media (max-width: 768px) {
    #list-item-wrapper {
        margin: 0 1.5rem; 
    }

    .list-item {
        padding-left: 45px;
        margin-right: 15px;
        margin-bottom: 15px;
    }
    
    .section-row {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: auto;
    }
    .section-title {
        flex: none;
        max-width: none;
        min-width: unset;
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-shadow: none;
        position: static;
        padding-bottom: 0;
        padding-right: 0;
        cursor: var(--cursor-grab2);
        overflow-y: hidden;
        background: var(--dark-section-title-inactive-bg);
    }
    body[data-theme="light"] .section-title {
        background: var(--light-section-title-inactive-bg);
    }

    .section-title .section-title-text {
        writing-mode: horizontal-tb;
        font-size: 2.5em;
        letter-spacing: -0.02em;
        padding: 0;
        margin: 0;
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        color: var(--dark-section-title-inactive-text);
        top: auto;
        transform: translateX(-20px);
    }
    body[data-theme="light"] .section-title .section-title-text {
        color: var(--light-section-title-inactive-text);
    }

    .section-title.active {
        box-shadow: none;
        position: sticky;
        top: 0;
        background: var(--dark-timeline-content-bg);
        color: var(--dark-timeline-content-text);
        z-index: 10;
    }
    body[data-theme="light"] .section-title.active {
        background: var(--light-timeline-content-bg);
        color: var(--light-timeline-content-text);
    }

    .section-content-area {
        flex: none;
        min-width: unset;
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 16px;
        padding-right: 16px;
        overflow-y: visible;
        opacity: 1;
        transition: none;
        min-height: auto;
    }
    .section-content {
        gap: 16px;
    }

    .item-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 16px;
    }
    .item-column-left, .item-column-right {
        width: 100%;
    }
    .item-heading {
        font-size: 2.2em;
    }
    .item-subtitle, .item-description-text, .item-period-text {
        font-size: 0.9em;
    }
    .item-column-right {
        margin-top: 0rem;
    }

    .item-container:hover .item-heading,
    .item-container:hover .item-column-left .item-subtitle {
        transform: translateY(-10px);
        transition: transform 400ms ease;
    }

    .item-container:hover .item-column-right .item-description-text,
    .item-container:hover .item-container:hover .item-column-right .item-period-text {
        transform: translateY(10px);
        transition: transform 400ms ease;
    }

    .section-content .main-section-header .sub-description {
        width: 70%;
        max-width: none;
    }
}

/* Tablet/Intermediate Desktop Styles (769px to 1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
    .item-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 16px;
    }
    .item-column-left, .item-column-right {
        width: 100%;
    }

    .item-heading {
        font-size: 2.2em;
    }
    .item-subtitle, .item-description-text, .item-period-text {
        font-size: 0.9em;
        margin-right: 1rem;
    }
    .item-column-right {
        margin-top: 1rem;
    }
}

/* Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
    .item-container {
        flex-direction: row;
    }
    .item-column-left {
        width: 40%;
    }
    .item-column-right {
        width: 60%;
        margin-top: 0;
    }
    .item-heading {
        font-size: 2.25rem;
    }
    .main-title {
        font-size: 3.75rem;
    }
    .sub-description {
        width: 70%;
    }
}