:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;  
    --space-2xl: 160px;  
}

@font-face {
    font-family: 'pretendard';
    src: url('./fonts/PretendardVariable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'uwu';
    src: url('./fonts/UwU.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'departure';
    src: url('./fonts/DepartureMono-Regular.otf') format('OpenType');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'aprilLife';
    src: url('./fonts/April16thTTF-Life.ttf') format('trueType');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'deltaGlass';
    src: url('./fonts/DeltaGlassKR.ttf') format('trueType');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    font-family:'pretendard',sans-serif;
    background-color: #FAFAFA;
    color: #1A1A1A;
}


.header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 1000px;
    transform: translateX(-50%);
    height: 214px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    z-index: 1000;
    
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* 텍스트보다 뒤로 배치 */
  
  /* 1. 기본 배경색 그라데이션 (위쪽은 불투명, 아래쪽은 완전 투명) */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 100%
  );

  /* 2. 블러 처리 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* 3. 블러 강도를 위에서 아래로 점차 약해지게 마스킹 */
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,      /* 위쪽: 블러 100% 적용 */
    rgba(0, 0, 0, 0.2) 70%,   /* 중간: 블러 서서히 감소 */
    rgba(0, 0, 0, 0) 100%     /* 아래쪽: 블러 완전 제거(투명) */
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.headerLeft {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#myName {
    font-family: 'departure';
    font-size: 16px;
    font-weight: 100;
    color: #1A1A1A;
}

#langSwitch {
    position: absolute;
    top: 24px;
    right: 0;
    display: flex;
    background-color: #F0F0EC;
    border-radius: 20px;
    padding: 4px;
}

.langBtn {
    position: relative;
    z-index: 1;
    width: 36px;
    font-family: 'pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 16px;
    transition: color 0.3s ease;
}

.langBtn.active {
    color: #FAFAFA;
}

.langIndicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 36px;
    height: calc(100% - 8px);
    background-color: #1A1A1A;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.langIndicator.en-active {
    transform: translateX(36px);
}

.content {
    padding-top: 240px;
}

#myCharacter {
    height: 150px;
    width: auto;
}

#mainSlogan {
    display: flex;
    justify-content: left;
    margin-bottom: var(--space-md);
}

#displaySloganText {
    display: flex;
    flex-direction: column;
    font-size: 28px;
    font-weight: 500;
}

#subSlogan {
    display: flex;
    justify-content: left;
    margin-bottom: var(--space-2xl);
}

#displaySubSloganText {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
}

.capsuleTitle {
    border: 1.3px solid black;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 18px;
}

.myThing {
    text-align: left;
    margin-bottom: var(--space-md);
}

#googleIntroBlock {
    max-width: 640px;
    margin-bottom: var(--space-xl);
}

#googleIntroShort,
#googleIntroExtra {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #666;
    word-break: keep-all;
    margin: 0;
}

#googleIntroExtra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

#googleIntroBlock.expanded #googleIntroExtra {
    max-height: 400px;
    opacity: 1;
    margin-top: var(--space-sm);
}

.readMoreBtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1A1A1A;
    padding: 0;
    margin-top: var(--space-sm);
}

.readMoreBtn .lessLabel {
    display: none;
}

#googleIntroBlock.expanded .moreLabel {
    display: none;
}

#googleIntroBlock.expanded .lessLabel {
    display: inline;
}

.toggleIcon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#googleIntroBlock.expanded .toggleIcon {
    transform: rotate(180deg);
}


.thingBox {
    position: absolute;
    top: 100px;
    left: 62%;
    transition: transform 0.5s;
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}
.thingImage {
    width: 450px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0px 4px 12px;
}
#careerText {
    font-family: 'uwu';
    text-align: center;
    margin: var(--space-sm);
}

#myLife {
    text-align: center;
    padding: 10px;
    margin-bottom: var(--space-xl);
}

#thumbnailClick {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#thumbnailClick:hover {
    transform: scale(1.1);
}

/* 애니메이션*/

.deck {
    position: relative;
    width: 450px;
    height: 400px;
    margin-bottom: var(--space-2xl);
    cursor: pointer;
    transition: transform 0.5s ease;
}

.deck.wider {
    position: relative;
    width: 450px;
    height: 1550px;
    cursor: pointer;
}

.card {
    position: absolute;
}

.textPosition {
    position: absolute;
    z-index: 1;
    width: 400px;
    text-align: center;
    transition: transform 0.5s ease;
    opacity: 0;
}

.textPositionLeft {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 400px;
    text-align: center;
    transition: transform 0.5s ease;
    opacity: 0;
}

.textPosition ,
.textPositionLeft  {
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: -0.01em;
    word-break: keep-all;
    color: #444;
    margin: 0;
}

.careerTextPosition {
    text-align: right;
    font-size: 40px;
}

.imageZIndex {
    z-index: 2;
}

.thumbnailZIdenx {
    z-index: 3;
}

.textPosition.open {
    transform: translateX(600px) scale(1);
    text-align: left;
    margin-top: 10%;
    opacity: 1;
    
}

.textPositionLeft.open{
    transform: translateX(-600px) scale(1);
    text-align: left;
    margin-top: 10%;
    opacity: 1;
    
}

.thingBox:nth-child(1) {
    z-index: 6;
    transform: scale(1.3);
}

.thingBox:nth-child(2) {
    z-index: 5;
    transform: scale(0.7);
}

.thingBox:nth-child(3) {
    z-index: 4;
    transform: scale(0.7);
}

.thingBox:nth-child(4) {
    z-index: 3;
    transform: scale(0.7);
}

/* 1번 카드: 제자리 */
.thingBox:nth-child(1).move {
    transform: translate(-62%, -20%) rotate(0deg) scale(1);
}

/* 2번 카드: 기본 -50%에서 아래로 250px 이동 */
.thingBox:nth-child(2).move {
    transform: translate(calc(-52% + 500px), calc(-50% + 500px)) rotate(0deg);
}

/* 3번 카드: 2번의 2배(500px) 이동 */
.thingBox:nth-child(3).move {
    transform: translate(-62%, calc(-50% + 900px)) rotate(0deg);
}

/* 4번 카드: 2번의 3배(750px) 이동 */
.thingBox:nth-child(4).move {
    transform: translate(calc(-52% + 500px), calc(-50% + 1300px)) rotate(0deg);
}

.careerTable {
    display: flex;
    flex-flow: row;
    align-items: center;
    overflow: visible;
    position: relative;
    padding: 20px 0px 20px;
    border-bottom: 1px solid #111;
    width: 100%;
}


.careerRole {
    flex: 0 0 320px; /* 늘어나지 않고 320px 고정 */
    text-align: left;
    font-size: 20px;
}

/* 2열 (회사/내용): 남은 공간을 채우면서 왼쪽 정렬 */
.careerContent {
    flex: 0 0 500px;   /* 남은 여백 모두 차지 */
    text-align: left;
    font-size: 20px;
}

/* 3열 (연도): 글자 크기만큼만 차지하고 오른쪽 끝 정렬 */
.careerYear {
    flex: 140px 0 0;
    text-align: right;
    font-size: 20px;
}

.careerBox {
    font-size: 24px ;
}

#pomoBox {
    display: flex;
    flex-flow: row;
    justify-content: center;
    justify-content: space-between;
}

#moreThing {
    margin-top: 40px;
    font-family: 'departure';
    font-size: 16px;
    margin-bottom: var(--space-xl);
}

.pomoImg {
    width: 280px;
    height: auto;
    border-radius: 30px;
    border: 0.5px solid black;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pomoImg:hover {
    transform: scale(1.1);
}

#touchBtn {
    border: 1px solid black;
    border-radius: 20px;
    padding: 10px 20px;
    background-color: #1A1A1A;
    color: #FAFAFA;
    text-decoration: none;
}

.roundedBox {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: #1A1A1A;
  border-radius: 4px; /* 둥글기 조절 */
  vertical-align: middle;
  margin-bottom: 3px;
}

#metaStatSection {
    margin-bottom: var(--space-2xl);
}

#metaStatDesc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;             /* 본문보다 한 단계 옅은 톤 */
    max-width: 560px;
    word-break: keep-all;
    margin-bottom: var(--space-lg);
}

.statGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.statCard {
    background-color: #F0F0EC;   /* body(#FAFAFA)보다 살짝 진한 카드 배경 */
    border-radius: 16px;
    padding: 24px 20px;
}

.statLabel {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
}

.statNumber {
    font-size: 32px;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -0.02em;
}

.statSub {
    font-size: 13px;
    color: #999;
    margin: 6px 0 0;
}

#metaTrendChart {
    position: relative;
    height: 200px;
    margin-top: var(--space-lg);
}
#pomoLinkSection {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

#pomoStoreLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1A1A1A;
    color: #FAFAFA;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pomoStoreLink:hover {
    transform: scale(1.1);
}

#pomoTechStack {
    display: flex;
    gap: 6px;
}

.techBadge {
    font-size: 12px;
    color: #666;
    background-color: #F0F0EC;
    border-radius: 12px;
    padding: 4px 10px;
}

#siteFooter {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 0.5px solid #E5E5E5;
    margin-top: var(--space-2xl);
}

#footerQuote {
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    max-width: 480px;
    text-align: left;
    word-break: keep-all;
    margin: 0 auto var(--space-lg);
}

#footerLinks {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

#footerLinks a {
    font-size: 14px;
    color: #1A1A1A;
    text-decoration: none;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 2px;
}

#footerCopyright {
    font-size: 12px;
    color: #999;
}
#footerHook {
    font-family: 'deltaGlass';
    font-size: 44px;
    font-weight: 400;
    line-height: 1.3;
    color: #1A1A1A;
    text-align: left;
    margin-bottom: var(--space-lg);
}

.clickHint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 26, 0.75);
    color: #FAFAFA;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnailZIdenx:hover .clickHint {
    opacity: 1;
}

.thumbnailZIdenx::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 12px;
    height: 12px;
    background-color: #1A1A1A;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(26, 26, 26, 0);
    }
}

@media (max-width: 768px) {
    /* 헤더 - 고정 높이 대신 유동적으로, 좌우 여백 확보 */
    .header {
        box-sizing: border-box;
        height: auto;
        min-height: 100px;
        padding: 16px 20px;
        gap: 10px;
    }

    .content {
        padding-top: 150px;
    }

    #myCharacter {
        height: 70px;
    }

    #myName {
        font-size: 13px;
    }

    #langSwitch {
        position: static;
        top: auto;
        right: auto;
    }

    .headerLeft {
        flex: 1 1 auto;
        min-width: 0;
        gap: var(--space-xs);
    }

    #touchBtn {
        font-size: 13px;
        padding: 8px 14px;
        white-space: nowrap;
    }

    /* 슬로건 */
    #displaySloganText {
        font-size: 22px;
    }

    #displaySubSloganText {
        font-size: 13px;
    }

    #mainSlogan {
        margin-bottom: var(--space-sm);
    }

    #subSlogan {
        margin-bottom: var(--space-xl);
    }

    .capsuleTitle {
        font-size: 15px;
        padding: 8px 18px;
    }

    /* 구글/메타 서술 문단 - 고정 max-width 해제 */
    #googleIntroBlock,
    #metaStatDesc {
        max-width: 100%;
    }

    /* 커리어 테이블 - 고정 flex-basis(320/500/140px) 깨고 세로 스택 */
    .careerTable {
        flex-wrap: wrap;
        row-gap: 4px;
        padding: 16px 0;
    }

    .careerRole,
    .careerContent,
    .careerYear {
        flex: 1 1 100%;
        text-align: left;
    }

    .careerRole {
        font-size: 17px;
    }

    .careerContent {
        font-size: 14px;
        color: #666;
    }

    .careerYear {
        font-size: 13px;
        color: #999;
    }

    .careerBox {
        font-size: inherit;
    }

    .careerTextPosition {
        font-size: 28px;
    }

    /* 포모 앱 스크린샷 - 3장 가로 배치 → 세로 스택 */
    #pomoBox {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .pomoImg {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }

    #pomoLinkSection {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    #moreThing {
        font-size: 14px;
    }

    /* 푸터 */
    #footerHook {
        font-size: 26px;
    }

    #footerQuote {
        max-width: 100%;
    }

    #metaTrendChart {
        height: 160px;
    }

    .deck, .deck.wider {
    position: static;      /* absolute 배치 포기 */
    width: 100%;
    height: auto;
  }
  .thingBox {
    position: static;      /* 절대좌표 → 그냥 위에서 아래로 쌓기 */
    transform: none !important;
    width: 100%;
    flex-direction: column; /* 이미지-텍스트를 세로로 */
    margin-bottom: var(--space-lg);
  }

  /* 카드 2·4번처럼 데스크탑에서 텍스트가 먼저 오던 카드도
     모바일에서는 이미지가 항상 먼저 보이도록 순서 강제 */
  .thingBox .imageZIndex,
  .thingBox .thumbnailZIdenx {
    order: -1;
  }
  .textPosition, .textPositionLeft {
    position: static;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
  }
  .thingImage { width: 100%; max-width: 400px; }

    .statGrid {
        grid-template-columns: 1fr;   /* 3열 → 1열로 세로 쌓기 */
    }
}

@media (max-width: 420px) {
    #displaySloganText {
        font-size: 19px;
    }

    #myCharacter {
        height: 56px;
    }

    #myName {
        display: none;   /* 아주 좁은 화면에서는 캐릭터만 남기고 이름 텍스트 생략 */
    }

    .capsuleTitle {
        font-size: 14px;
        padding: 7px 16px;
    }

    #footerHook {
        font-size: 22px;
    }
}
