/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 스크롤바로 인한 레이아웃 이동 방지 */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 기본 섹션 설정 */
section {
    position: relative;
}

/* 마우스 그라데이션 오버레이 제거됨 */

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG Gothic';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SEBANG_Gothic_Bold';
    src: url('../fonts/SEBANG_Gothic_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 히어로 섹션 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
}

/* PC 인터랙션 애니메이션 */
@media (min-width: 769px) {
    .hero-title {
        opacity: 1;
        transform: translateY(0);
    }
    
    .hero-subtitle {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 1s ease-out 0.4s forwards;
    }
    
    .definition-star {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInFromLeft 0.6s ease-out 0.4s forwards;
    }
    
    .definition-card {
        opacity: 0;
        transform: translateX(50px);
        animation: slideInFromRight 0.6s ease-out 0.5s forwards;
    }
    
    /* 프로젝트 섹션 스크롤 애니메이션 */
    .portfolio-grid {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .portfolio-grid.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    
    .project-detail-section {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-detail-section.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideInFromLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideInFromRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideInFromBottom {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.hero-container {
    max-width: 1600px;
    width: 100%;
  display: flex;
  flex-direction: column;
    align-items: center;
    gap: 50px;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
}

.hero-title {
  width: 100%;
    max-width: 1600px;
    font-family: 'SEBANG Gothic', 'SEBANG_Gothic_Bold', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(60px, 12vw, 200px);
    display: block;
    text-align: center;
    color: #FBFBFB;
    text-shadow: 5px 0px 0px #FFC14D;
    margin-bottom: 30px;
    flex: none;
    align-self: stretch;
    letter-spacing: -3px;
}

.what-is {
    font-size: clamp(50px, 8vw, 120px);
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* PC에서도 PLAINPROVEN을 PLAIN PROVEN으로 분리 */
.brand-name {
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: clamp(80px, 12vw, 200px);
    font-family: 'SEBANG_Gothic_Bold', 'SEBANG Gothic', sans-serif;
    font-weight: 700;
    text-shadow: 5px 0px 0px #FFC14D;
    color: #FBFBFB;
    letter-spacing: -3px;
    line-height: 1;
}

.plain-text {
    display: block;
    font-size: clamp(80px, 12vw, 200px);
    font-family: 'SEBANG_Gothic_Bold', 'SEBANG Gothic', sans-serif;
    font-weight: 700;
    text-shadow: 8px 0px 0px #FFC14D;
    color: #FBFBFB;
    text-align: center;
    letter-spacing: -3px;
    line-height: 1;
    margin: 0;
  padding: 0;
    width: 100%;
}

.proven-text {
  display: block;
    font-size: clamp(80px, 12vw, 200px);
    font-family: 'SEBANG_Gothic_Bold', 'SEBANG Gothic', sans-serif;
    font-weight: 700;
    text-shadow: 8px 0px 0px #FFC14D;
    color: #FBFBFB;
    text-align: center;
    letter-spacing: -3px;
    line-height: 1;
    margin: 0;
    padding: 0;
  width: 100%;
}

/* 모바일에서도 두 줄로 나누기 */
@media (max-width: 768px) {
    .plain-text {
        font-size: clamp(80px, 18vw, 150px);
    }
    
    .proven-text {
        font-size: clamp(80px, 18vw, 150px);
    }
}

/* 768px 이하에서 추가 조정 */
@media (max-width: 768px) {
    .hero-title {
        display: block;
        text-align: center;
    }
    
    .definition-card {
        max-width: none;
    }
    
    .definition-title {
        font-size: 16px;
        text-align: center;
    }
    
    .definition-english {
        font-size: 14px;
        text-align: center;
    }
    
    .definition-description {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }
    
    .what-is {
        font-size: clamp(50px, 15vw, 120px);
        display: block;
        margin: 0;
    }
    
    .brand-name::before {
        font-size: clamp(80px, 18vw, 150px);
    }
    
    .brand-name::after {
        font-size: clamp(80px, 18vw, 150px);
    }
}

.hero-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: 0;
    color: #fbfbfb;
}

    .hero-definition {
        /* Auto layout */
        display: flex;
         flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        gap: 60px;
        
        width: 100%;
        max-width: 1600px;
        height: 166px;
        
        /* Inside auto layout */
        flex: none;
        order: 1;
        align-self: stretch;
        flex-grow: 0;
    }

    .definition-star {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .star-icon {
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }

.definition-card {
    max-width: 239px;
    text-align: left;
}

.definition-title {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 20px;
    letter-spacing: -0.4px;
}

/* 타이핑 효과 스타일 */
#typing-plain,
#typing-proven {
    display: inline-block;
  position: relative;
}

.typing-cursor {
    display: inline-block;
    font-weight: inherit;
    color: inherit;
    animation: blink 1s infinite;
    margin-left: 2px;
    font-size: inherit;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.definition-english {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.28px;
    color: #fbfbfb;
    text-align: left;
    margin-bottom: 20px;
}

.definition-description {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: -0.32px;
    color: #fbfbfb;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .hero-subtitle {
        font-size: 20px;
        line-height: 24px;
    }
    
    .hero-definition {
        gap: 50px;
        height: auto;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 60px;
        min-height: 200px;
    }
    
    .hero-container {
        gap: 79px;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 68px;
        line-height: 0.85;
        text-shadow: 6px 0px 0px #FFC14D;
        margin-bottom: 10px;
        justify-content: center;
        align-items: center;
    }
    
    
    .portfolio-grid {
        margin-top: 70px;
        margin: 70px auto 0;
    }
    
    .hero-definition {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 30px;
        padding: 0;
    }
    
    .hero-subtitle {
        font-family: 'Noto Serif KR', serif;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0;
        margin-bottom: 0;
    }

    .star-icon {
        width: 60px;
        height: 60px;
    }
    
    .definition-card {
        max-width: 200px;
  text-align: left;
    }
    
    .definition-title {
        font-size: 12px;
        line-height: 14px;
        letter-spacing: -0.18px;
        margin-bottom: 5px;
    }
    
    .definition-english {
        font-size: 11px;
        line-height: 13px;
        letter-spacing: -0.12px;
        margin-bottom: 5px;
    }
    
    .definition-description {
        font-size: 11px;
        line-height: 13px;
        letter-spacing: -0.16px;
    }
}

/* 500px 이하 초소형 모바일 */
@media (max-width: 500px) {
    .hero-section {
        padding: 150px 20px 60px;
        align-items: center;
        min-height: 200px;
    }
    
    .hero-container {
        /* Auto layout */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 50px 0px;
        gap: 30px;
        
  width: 100%;
        max-width: 360px;
        height: auto;
        min-height: 368px;
        
        /* Inside auto layout */
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 60px;
        text-shadow: 5px 0px 0px #FFC14D;
        margin-bottom: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        display: block;
    }

    .hero-definition {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        height: auto;
        width: 100%;
        margin: 40px 0 0 0;
        text-align: center;
    }

    .definition-card {
        max-width: none;
        text-align: center;
    }
    
    .definition-title {
        font-size: 16px;
        text-align: center;
    }
    
    .definition-english {
        font-size: 14px;
        margin: 20px 0;
        text-align: center;
    }
    
    .definition-description {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }
    
    .what-is {
        font-size: clamp(40px, 18vw, 100px) !important;
        display: block;
        margin: 0 !important;
    }
    
    .brand-name::before {
        font-size: clamp(60px, 22vw, 130px) !important;
        text-align: center;
    }
    .brand-name::after {
        font-size: clamp(60px, 22vw, 130px) !important;
        text-align: center;
    }
    
    .hero-subtitle {
        font-family: 'Noto Serif KR', serif;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0;
        margin-bottom: 0;
    }
    
    .star-icon {
        width: 60px;
        height: 60px;
    }
    
    .portfolio-grid {
        margin-top: 60px;
        margin: 60px auto 0;
    }
}

/* 레이아웃 */
.layout-row {
    display: flex;
    flex-direction: column;
    /* 중앙정렬 보강 */
    margin: 0 auto;
    max-width: 100vw;
    box-sizing: border-box;
}









/* 메인 컨텐츠 */
.main-content {
    flex: 1;
}

/* 기본 섹션 스타일 */
.main-content > section {
    position: relative;
}

.container {
    padding: 0rem;
}





/* 스크롤 띠 섹션 */
.scroll-banner {
    width: 100%;
    height: 40px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 모바일에서 스크롤 배너 크기 조정 */
@media (max-width: 768px) {
    .scroll-banner {
        height: 28px; /* 40px의 70% = 28px */
    }
    
    .scroll-text {
        font-size: 10px; /* 14px의 약 70% = 10px */
        line-height: 10px; /* 라인하이트도 비례 조정 */
        letter-spacing: -0.1px;
    }
}

.scroll-banner-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.scroll-text {
    font-family: 'SEBANG_Gothic_Bold', 'SEBANG Gothic', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 1px;
    color: #1a1a1a;
    white-space: nowrap;
    animation: scroll-horizontal 60s linear infinite;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateY(-50%) translateX(0%);
    }
    100% {
        transform: translateY(-50%) translateX(-100%);
    }
}

/* 포트폴리오 그리드 */
.portfolio-grid {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 33px;
    max-width: 1856px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 80px 3rem;
}

/* 포트폴리오 섹션이 완전히 보이지 않을 때 인터랙션 비활성화 */
.portfolio-grid:not(.fully-visible) .work-grid {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.portfolio-grid:not(.fully-visible) .project-detail-section {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.portfolio-grid.fully-visible .work-grid,
.portfolio-grid.fully-visible .project-detail-section {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}


/* PC에서 우측 디테일 확실히 보이도록 */
@media (min-width: 769px) and (max-width: 1200px) {
    .project-detail-section {
        display: flex !important;
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 1263px) {
    .project-detail-section {
        display: flex !important;
        flex: 1;
        min-width: 0;
    }
}



.projects-section {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.projects-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 1));
    pointer-events: none;
    z-index: 15;
    opacity: var(--gradient-opacity, 1);
    transition: opacity 0.3s ease;
}


.work-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 0;
    max-height: calc(100vh - 150px);
    min-height: 400px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 10;
}

.work-grid::-webkit-scrollbar {
    display: none;
}

.work-item {
    width: 100%;
    height: 73.52px;
    border-bottom: 1px solid #c5c5c5;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 10px;
    z-index: 10;
    overflow: hidden;
}

/* work-item 호버 시 무한루프 애니메이션 */
.work-item:hover {
    animation: workItemHoverLoop 2.5s ease-in-out infinite;
}

/* 무한루프 애니메이션 키프레임 */
@keyframes workItemHoverLoop {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(0);
    }
}

/* flowing-item 무한루프 애니메이션 키프레임 */
@keyframes flowingItemHoverLoop {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(0);
    }
}

.work-item.active .work-title {
    color: #ffc14d;
    margin-left: 20px;
}

.work-item.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: #ffc14d;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* 프로젝트 상세 섹션 */
.project-detail-section {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    left: -1px;

}




.detail-content-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    overflow: hidden;
    flex: 1;
}

.detail-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.detail-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.detail-image-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 3px;
}

.detail-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;
    border-radius: 8px;
    left: -1px;
    top:-1px;
}





.work-thumbnail {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: gap 0.3s ease;
}





.work-thumbnail img {
    display: none;
}

/* Work Tags */
.work-tags {
    position: static;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 0;
    font-size: 14.25px;
    font-weight: 400;
    color: #ffffff;
    line-height: 20px;
    font-family: 'Inter', sans-serif;
    text-align: right;
    margin-left: auto;
}

.work-tag {
    background-color: transparent;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1.5px solid #ffffff;
    font-family: 'Inter', sans-serif;
}

/* 앱, 웹, 로고 태그는 노란색으로 */


.work-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 29.87px;
    text-transform: uppercase;
    letter-spacing: 0.213px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}



/* 기존 상세페이지 스타일 제거 - 새로운 레이아웃 사용 */

.detail-image-container {
    /* 기존 상세페이지 스타일 제거 - 새로운 레이아웃 사용 */

}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 빙그레 상세 콘텐츠 스타일 */
.binggrae-detail-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FBA202, #FBDB02);
    border-radius: 8px;
}

.binggrae-detail-content .content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.binggrae-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.binggrae-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.binggrae-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 아트뮤지엄 상세 콘텐츠 스타일 */
.art-museum-detail-content {
    width: 100%;
    height: 100%;
}

.art-museum-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.art-museum-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-museum-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.art-museum-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 아트뮤지엄 디테일에서만 1px 문제 해결 */
.art-museum-detail-content .content-image,
.art-museum-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 사랑의 열매 상세 콘텐츠 스타일 */
.love-fruit-detail-content {
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, #FF6B6B, #FF8E8E); */
    border-radius: 8px;
}

.love-fruit-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.love-fruit-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.love-fruit-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.love-fruit-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 사랑의 열매 디테일에서만 1px 문제 해결 */
.love-fruit-detail-content .content-image,
.love-fruit-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 코코브루니 상세 콘텐츠 스타일 */
.coco-bruni-detail-content {
    width: 100%;
    height: 100%;
}

.coco-bruni-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.coco-bruni-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coco-bruni-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.coco-bruni-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 코코브루니 디테일에서만 1px 문제 해결 */
.coco-bruni-detail-content .content-image,
.coco-bruni-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 재무관리 시스템 상세 콘텐츠 스타일 */
.dashboard-detail-content {
    width: 100%;
    height: 100%;
}

.dashboard-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.dashboard-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 재무관리 시스템 디테일에서만 1px 문제 해결 */
.dashboard-detail-content .content-image,
.dashboard-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 현대 상세 콘텐츠 스타일 */
.hyundai-detail-content {
    width: 100%;
    height: 100%;
}

.hyundai-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hyundai-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hyundai-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.hyundai-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 현대 디테일에서만 1px 문제 해결 */
.hyundai-detail-content .content-image,
.hyundai-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 의료기기1 상세 콘텐츠 스타일 */
.medical-device1-detail-content {
    width: 100%;
    height: 100%;
}

.medical-device1-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.medical-device1-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-device1-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.medical-device1-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 의료기기1 디테일에서만 1px 문제 해결 */
.medical-device1-detail-content .content-image,
.medical-device1-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

/* 의료기기2 상세 콘텐츠 스타일 */
.medical-device2-detail-content {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.medical-device2-detail-content .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.medical-device2-detail-content .content-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-device2-detail-content .content-image {
    max-width: 100%;
    height: auto;
}

.medical-device2-detail-content .content-video {
    max-width: 100%;
    height: auto;
}

/* 의료기기2 디테일에서만 1px 문제 해결 */
.medical-device2-detail-content .content-image,
.medical-device2-detail-content .content-video {
    margin: 0;
    padding: 0;
    display: block;
}

.detail-image-container iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
}







/* 포트폴리오 섹션이 밀려나는 효과 */
.portfolio-grid.shifted {
    transform: translateX(-25%);
}

/* 썸네일 이미지 숨기기 */
.work-thumbnail img.shifted {
    opacity: 1;
}

/* 썸네일 텍스트와 태그만 보이게 */
.work-item.shifted .work-thumbnail {
    background-color: transparent;
    display: block;
    align-items: normal;
    justify-content: normal;
    min-height: auto;
}

.work-item.shifted .work-title {
    margin-top: 10px;
    text-align: left;
}

.work-item.shifted .work-tags {
    position: absolute;
    justify-content: flex-start;
    margin-top: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .detail-content {
        padding: 20px;
    }
    
    .work-grid {
        max-height: none;
        /* max-height: calc(100vh - 250px); */
    }
    
    .portfolio-grid {
        flex-direction: column;
        gap: 20px;
        max-width: none;
    }
    
    .projects-section {
    width: 100%;
        max-width: none;
        flex: 1;
    }
    
    .projects-section::after {
        display: none;
    }
    
    .project-detail-section {
        display: none !important;
    }
    
    .work-grid {
        max-height: 60vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .load-more-container {
        display: block;
    }
    
    .work-item {
        height: 60px;
        padding: 15px 10px;
    }
    
    .work-title {
        font-size: 18px;
    }
    
    .work-tag {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .section-title {
        font-size: 16px;
        top: 10px;
    }
    
    .detail-section-title {
        font-size: 16px;
    }
    
    .detail-image {
    max-width: 100%;
        height: auto;
    }
    

}

@media (max-width: 800px) {
    .portfolio-grid {
        padding: 10px 1rem;
    }
}

@media (max-width: 480px) {
    
    .main-content {
        padding: 0;
    }
    
    .portfolio-grid {
        padding: 10px 1rem;
        gap: 15px;
        max-width: none;
    }
    
    .projects-section {
        flex: 1;
    }
    
    .projects-section::after {
        display: none;
    }
    
    .work-grid {
        max-height: 60vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .load-more-container {
        display: block;
    }
    
    .work-item {
        height: 55px;
        padding: 12px 8px;
    }
    
    .work-title {
        font-size: 15px;
    }
    
    .work-tag {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    .section-title,
    .detail-section-title {
        font-size: 14px;
    }
    
    .detail-image {
        max-width: 100%;
        height: auto;
    }
    
    .work-thumbnail img {
        max-width: 100%;
        height: auto;
    }
    
    .portfolio-grid {
        margin-bottom: 60px;
    }
    
    .mobile-footer {
        display: block;
    }
    
    .modal-content {
        margin: 5vh auto;
        /* padding: 20px; */
        width: 95%;
        height: 90vh;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item {
    animation: fadeIn 0.6s ease-out;
}

.work-item:nth-child(2) { animation-delay: 0.1s; }
.work-item:nth-child(3) { animation-delay: 0.2s; }
.work-item:nth-child(4) { animation-delay: 0.3s; }
.work-item:nth-child(5) { animation-delay: 0.4s; }
.work-item:nth-child(6) { animation-delay: 0.5s; }
.work-item:nth-child(7) { animation-delay: 0.6s; }
.work-item:nth-child(8) { animation-delay: 0.7s; }
.work-item:nth-child(9) { animation-delay: 0.8s; }

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5vh auto;
    /* padding: 30px; */
    /* border: 1px solid #333333; */
    border-radius: 12px;
    width: 90%;
    /* max-width: 600px; */
    height: 90vh;
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.modal-close:hover {
    color: #ffc14d;
}

.modal-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.modal-content-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* 모바일 모달에서 동적 콘텐츠 스타일 */
.modal-content-container .binggrae-detail-content,
.modal-content-container .art-museum-detail-content,
.modal-content-container .love-fruit-detail-content {
    width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-content-container .content-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 1rem;
}

.modal-content-container .content-item {
    width: 100%;
    margin-bottom: 1rem;
}

.modal-content-container .content-image,
.modal-content-container .content-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Price 모달 스타일 */
.price-modal-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
}

.price-coming-soon h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.price-coming-soon p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Price 페이지 스타일 */
.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.price-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.price-content .price-coming-soon h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.price-content .price-coming-soon p {
    font-size: 1.3rem;
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .price-content .price-coming-soon h1 {
        font-size: 2.5rem;
    }
    
    .price-content .price-coming-soon p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .price-content .price-coming-soon h1 {
        font-size: 2rem;
    }
    
    .price-content .price-coming-soon p {
        font-size: 1rem;
    }
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px 0;
}

.modal-tag {
    background-color: rgba(255, 193, 77, 0.1);
    color: #ffc14d;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ffc14d;
}

/* Footer */
.footer {
    width: 100%;
    background: #1a1a1a;
    padding: 30px 0;
    border-top: 1px solid #c5c5c5;
}

.footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo,
.footer-info {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo-img {
    width: 120px !important;
    opacity: 0.3 !important;
    height: 40px !important;
    display: block !important;
    object-fit: contain !important;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    color: #cccccc;
    margin-bottom: 0.3rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #191919;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #FFC14D;
}

/* 모바일 푸터 */
.mobile-footer {
    display: none;
    height: 60px;
    background-color: #1a1a1a;
}

/* 로딩 컨테이너 */
.load-more-container {
    text-align: center;
    padding: 20px 0;
}

.load-more-btn {
    background: none;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #666666;
    color: #ffffff;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #666666;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 서비스 섹션 스타일 (피그마 디자인) */
.services-section {
    padding: 80px 0 150px 0;
    background: #1a1a1a;
    margin: 0;
    color: white;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 스티키 효과는 JavaScript로 동적 제어 */
.services-section.sticky-active {
    position: sticky;
        top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-container {
        width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* 상단 구분선 */
.services-divider {
    display: flex;
        align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}

.divider-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    width: 1514px;
    height: 1px;
    background: #777777;
    margin: 0 20px;
}

/* 제목 */
.services-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    justify-content: center;
    padding: 0px;
    gap: 19px;
    width: 347.19px;
    height: 102px;
    margin: 0 auto 80px auto;
}

.title-star {
    width: 75.75px;
    height: 75.75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.title-star img {
    width: 75.75px;
    height: 75.75px;
}

.title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    width: 254px;
    height: 102px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.title-line1 {
    width: 229px;
    height: 51px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 51px;
    color: #707070;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.title-line2 {
    width: 254px;
    height: 51px;
    font-family: 'SEBANG Gothic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 51px;
    color: #FFFFFF;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Stagger Text 효과 */
.stagger-text {
    overflow: hidden;
}

.stagger-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-text.animate .char {
    opacity: 1;
    transform: translateY(0);
}

/* 각 글자마다 지연 시간 적용 */
.stagger-text .char:nth-child(1) { transition-delay: 0.1s; }
.stagger-text .char:nth-child(2) { transition-delay: 0.2s; }
.stagger-text .char:nth-child(3) { transition-delay: 0.3s; }
.stagger-text .char:nth-child(4) { transition-delay: 0.4s; }
.stagger-text .char:nth-child(5) { transition-delay: 0.5s; }
.stagger-text .char:nth-child(6) { transition-delay: 0.6s; }
.stagger-text .char:nth-child(7) { transition-delay: 0.7s; }
.stagger-text .char:nth-child(8) { transition-delay: 0.8s; }
.stagger-text .char:nth-child(9) { transition-delay: 0.9s; }
.stagger-text .char:nth-child(10) { transition-delay: 1.0s; }
.stagger-text .char:nth-child(11) { transition-delay: 1.1s; }
.stagger-text .char:nth-child(12) { transition-delay: 1.2s; }
.stagger-text .char:nth-child(13) { transition-delay: 1.3s; }
.stagger-text .char:nth-child(14) { transition-delay: 1.4s; }
.stagger-text .char:nth-child(15) { transition-delay: 1.5s; }

/* Fade In Typography 효과 */
.fade-in-text {
    overflow: hidden;
}

.fade-in-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-text.animate .word {
    opacity: 1;
    transform: translateY(0);
}

/* 각 단어마다 지연 시간 적용 */
.fade-in-text .word:nth-child(1) { transition-delay: 0.1s; }
.fade-in-text .word:nth-child(2) { transition-delay: 0.2s; }
.fade-in-text .word:nth-child(3) { transition-delay: 0.3s; }
.fade-in-text .word:nth-child(4) { transition-delay: 0.4s; }
.fade-in-text .word:nth-child(5) { transition-delay: 0.5s; }

/* Portfolio Title Link */
.portfolio-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (max-width:500px) {
   .portfolio-title-link {
    font-size: 1.5rem;
   }
}

.portfolio-title-link:hover {
    color: #ffc14d;
}

/* Contact Title 줄바꿈 처리 */
.contact-title .fade-in-text {
    white-space: pre-line;
    line-height: 1.2;
    display: block;
}

.contact-title h2 {
    font-family: 'SEBANG_Gothic_Bold', 'SEBANG Gothic', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333;
    margin: 0;
    text-align: left;
}

/* ScrollReveal 애니메이션 - 블러와 불투명도 */
.scroll-reveal {
    opacity: 0.3;
    filter: blur(5px);
    transition: all 0.3s ease-out;
}

/* 서비스 그리드 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: start;
    justify-items: stretch;
    transition: grid-template-columns 0.3s ease;
        width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 1200px 이하에서도 4열 유지 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* 500px 이하에서 2열 */
@media (max-width: 500px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: stretch;
        width: 100%;
    }
    .services-container {
        padding: 0;
    }
    .service-card {
        width: 100%;
        min-width: unset;
    }

    /* 모바일에서만 컨텐츠 제목 중앙정렬 */
    .contact-title h2 {
        text-align: center;
    }
}

/* 400px 이하에서 1열 중앙정렬 */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* 서비스 카드 */
.service-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px 30px 20px;
        gap: 0;
    width: 100%;
    height: 450px;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    flex: none;
    order: 1;
    flex-grow: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    aspect-ratio: unset;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* 서비스 카드 애니메이션 */
.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: #ffc14d;
    background: rgba(26, 26, 26, 0.85);
}

.service-card:hover .card-content h3 {
    color: #ffc14d;
}

.service-card:hover .tag {
    border-color: #ffc14d;
    background: rgba(255, 193, 77, 0.1);
    color: #ffc14d;
}

.service-card:hover .card-content p {
    color: #f0f0f0;
}

/* 카드 컨텐츠 래퍼 */
.card-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    order: 2;
        width: 100%;
}

/* 카드 컨텐츠 */
.card-content {
    width: 100%;
    display: flex;
        flex-direction: column;
        align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* 카드 헤더 콘텐츠 */
.card-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 태그를 위쪽으로 이동 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
        justify-content: center;
    margin-bottom: 5px;
    order: 1;
    width: 100%;
}


.card-content h3 {
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #ffffff;
    margin: 0;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.card-content p {
    font-family: 'Pretendard GOV', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
    letter-spacing: -0.3px;
}

/* 텍스트 정렬은 중앙 유지 */

/* 서비스 상세 내용 */
.service-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 45px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    flex: 1;
}

.service-item {
    background: transparent;
        border: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.service-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
    flex: 0 0 auto;
    width: 70px;
}

.title-kr {
    font-family: 'SEBANG Gothic', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fefefe;
    letter-spacing: -0.32px;
    line-height: 1.2;
}

.title-en {
    font-family: 'Pretendard GOV', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #fefefe;
    letter-spacing: -0.26px;
    line-height: 1.2;
}

.service-desc {
    font-family: 'Pretendard GOV', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #fefefe;
    margin: 0;
    letter-spacing: -0.24px;
    line-height: 1.3;
    flex: 1;
    text-align: left;
    padding-left: 8px;
        display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card:hover .service-details {
    opacity: 1;
}

.service-card:hover .title-kr,
.service-card:hover .title-en {
    color: #ffc14d;
}

.service-card:hover .service-desc {
    color: #f0f0f0;
}

/* 태그 */
.tag {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 9999px;
    padding: 4px 8px;
    font-family: 'Pretendard GOV', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.26px;
    line-height: 15.51px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.service-card:hover .tag::before {
    left: 100%;
}

/* 상세 정보 (기본적으로 숨김) */
/* 디테일 섹션 제거됨 - 호버 효과만 유지 */

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
    }
    
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }
    
    .services-title h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .service-card {
        height: 120px;
        padding: 20px;
    }
    
    
    .divider-line {
        width: 200px;
    }
    
    .card-content h3 {
        font-size: 20px;
    }
}
    
    .card-content p {
        font-size: 14px;
    }



/* 플로윙 포트폴리오 섹션 */
.portfolio-flowing-section {
    background: #1a1a1a;
    padding: 80px 0;
    overflow: hidden;
    min-height: 80vh;
}

.portfolio-flowing-container {
    width: 100vw;
    margin: 0;
    padding: 0;
}

.portfolio-flowing-title {
        text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.portfolio-flowing-title h2 {
    font-size: 35px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.portfolio-flowing-title p {
    font-size: 18px;
    color: #999999;
    margin: 0;
}

.flowing-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flowing-item {
    position: relative;
    height: 120px;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #c5c5c5;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.flowing-item:first-child {
    border-top: 1px solid #c5c5c5;
}

.flowing-item:hover {
    background: #ffffff;
    box-shadow: none;
}

.flowing-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 기본 상태 - 정적 콘텐츠 */
.static-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    text-align: center;
}

.flowing-item:hover .static-content {
    opacity: 0;
}

/* 호버 상태 - 플로윙 패턴 */
.flowing-pattern {
    position: absolute;
        top: 0;
        left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.flowing-item:hover .flowing-pattern {
    opacity: 1;
}

.flowing-text {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    min-width: fit-content;
}

.flowing-item:hover .flowing-text {
    animation: flow-left 16s linear infinite;
}

@keyframes flow-left {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-640px);
    }
}

.project-name {
    font-family: 'Se Bang Gothic', 'Noto Sans KR', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    transition: color 0.4s ease;
    min-width: fit-content;
    letter-spacing: 1px;
}

.project-type {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.flowing-item:hover .project-name {
    color: #000000;
}

.flowing-item:hover .project-type {
    color: #666666;
}

.project-image {
    width: 125px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  display: flex;
    align-items: center;
  justify-content: center;
}

.project-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: none;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .portfolio-flowing-section {
        padding: 60px 0;
    }
    
    .portfolio-flowing-title {
        margin-bottom: 60px;
    }
    
    .portfolio-flowing-title h2 {
        font-size: 35px;
    }
    
    .flowing-item {
        height: 100px;
    }
    
    .project-name {
        font-size: 36px;
    }
    
    .project-type {
        font-size: 12px;
    }
    
    .flowing-text {
        gap: 40px;
    }
    
    .flowing-item:hover .flowing-text {
        animation: flow-left 16s linear infinite;
    }
    
    .project-image {
        width: 100px;
        height: 40px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 500px) {
    .portfolio-flowing-section {
        padding: 40px 0;
    }

    .portfolio-flowing-container {
        padding: 0;
    }

    .portfolio-flowing-title {
        padding: 0;
    }

    .portfolio-flowing-title h2 {
        font-size: 35px;
    }

    .portfolio-flowing-title p {
        font-size: 16px;
    }
    
    .flowing-item {
        height: 80px;
    }
    
    .project-name {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .project-type {
        font-size: 11px;
    }
    
    .flowing-text {
        gap: 30px;
    }
    
    .flowing-item:hover .flowing-text {
        animation: flow-left 16s linear infinite;
    }
    
    .project-image {
        width: 75px;
        height: 30px;
    }
}

/* 포트폴리오 페이지 히어로 섹션 */
.portfolio-hero {
    background: #1a1a1a;
    padding: 120px 0 80px;
    text-align: center;
}

.portfolio-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-hero h1 {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.portfolio-hero p {
    font-size: 20px;
    color: #999999;
    margin: 0;
}

/* 반응형 - 포트폴리오 히어로 */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 100px 0 60px;
    }
    
    .portfolio-hero h1 {
        font-size: 48px;
    }
    
    .portfolio-hero p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 80px 0 40px;
    }
    
    .portfolio-hero h1 {
        font-size: 36px;
    }
    
    .portfolio-hero p {
        font-size: 16px;
    }
}
