/* 홈페이지 제작 포트폴리오 */

.portfolio-page {
    background: #000;
    min-height: 100vh;
}

/* Hero Section */
.portfolio-hero {
    position: relative;
    min-height: 400px;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease-out;
}

.hero-label {
    font-size: 2.5rem;
    font-weight: 500;
    color: #10B981;
    margin-bottom: 1rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Section */
.filter-wrap {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
}

.filter-item {
    display: block;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-item:hover {
    color: #fff;
}

.filter-item.active {
    color: #10B981;
    font-weight: 600;
}

/* Portfolio Grid */
.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.portfolio-item {
    animation: fadeInUp 0.6s ease-out both;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.15s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.25s; }
.portfolio-item:nth-child(5) { animation-delay: 0.3s; }
.portfolio-item:nth-child(6) { animation-delay: 0.35s; }
.portfolio-item:nth-child(7) { animation-delay: 0.4s; }
.portfolio-item:nth-child(8) { animation-delay: 0.45s; }
.portfolio-item:nth-child(9) { animation-delay: 0.5s; }
.portfolio-item:nth-child(10) { animation-delay: 0.55s; }
.portfolio-item:nth-child(11) { animation-delay: 0.6s; }
.portfolio-item:nth-child(12) { animation-delay: 0.65s; }

.portfolio-item a {
    display: block;
    text-decoration: none;
}

.portfolio-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 175%; /* 세로형 비율 */
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.portfolio-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 1.25rem 0 0;
    line-height: 1.4;
    word-break: keep-all;
    transition: text-decoration 0.3s ease;
}

.portfolio-item:hover .portfolio-title {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 6rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #10B981;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-num:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.page-num.active {
    color: #000;
    background: #10B981;
    font-weight: 600;
}

.page-dots {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.25rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .portfolio-hero {
        min-height: 300px;
        padding: 5rem 2rem 3rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-label {
        font-size: 2rem;
    }

    .filter-wrap {
        top: 60px;
    }

    .filter-list {
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .filter-item {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .portfolio-hero {
        min-height: 200px;
        padding: 4rem 1.5rem 2rem;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }

    .hero-label {
        font-size: 1.5rem;
    }

    .portfolio-container {
        padding: 2rem 1.5rem 6rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-thumb {
        padding-bottom: 150%;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .pagination {
        gap: 0.5rem;
    }

    .page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .page-btn {
        width: 40px;
        height: 40px;
    }
}
