/* Work 페이지 스타일 */

/* 페이지 헤더 */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
    background-color: #000;
    color: #fff;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #aaa;
}

/* 작업 목록 섹션 */
.works-section {
    padding: 80px 0;
    background-color: #000;
    margin-bottom: -48px;
}

/* 작업 그리드 레이아웃 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 기본 2열 */
    gap: 30px;
}

/* 작업 항목 스타일 */
.work-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    /*border-radius: 10px;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.work-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-image {
    height: 0;
    padding-bottom: 75%; /* 4:3 비율 */
    position: relative;
    overflow: hidden;
}

.work-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 20px;
}

.work-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}

.work-desc {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.5;
}

.work-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* 작업 없음 메시지 */
.no-works {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #aaa;
}

/* 콘택트 섹션 */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: #111;
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #aaa;
}

/* 반응형 스타일 */
@media (min-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr); /* 데스크탑에서 3열 */
    }
}

@media (max-width: 767px) {
    .works-grid {
        grid-template-columns: 1fr; /* 모바일에서 1열 */
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .work-title {
        font-size: 16px;
    }
}

/* 애니메이션 효과 */
.work-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 각 항목마다 지연시간 다르게 적용 */
.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }
.work-item:nth-child(4) { animation-delay: 0.4s; }
.work-item:nth-child(5) { animation-delay: 0.5s; }
.work-item:nth-child(6) { animation-delay: 0.6s; }
.work-item:nth-child(7) { animation-delay: 0.7s; }
.work-item:nth-child(8) { animation-delay: 0.8s; }
.work-item:nth-child(9) { animation-delay: 0.9s; }
.work-item:nth-child(10) { animation-delay: 1.0s; }