/* --- Video Portfolio Filterable Gallery --- */
.portfolio-gallery-container {
    padding: 6rem 5% 4rem;
    background: var(--light-gray);
    min-height: 100vh;
}

.gallery-header {
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.case-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-color);
    background: rgba(255, 87, 34, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    vertical-align: middle;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.gallery-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.gallery-card.hidden {
    display: none;
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.gallery-card:hover .card-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-color);
    background: rgba(255, 87, 34, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.gallery-card .card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.gallery-card .card-desc {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- Cooperation Process Section (PRD 2.2) --- */
.cooperation-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0e 100%);
    color: white;
    padding: 6rem 5%;
    text-align: center;
}

.cooperation-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 87, 34, 0.2);
    color: var(--theme-color);
    border: 1px solid rgba(255, 87, 34, 0.4);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cooperation-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cooperation-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
}

.cooperation-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.coop-step {
    flex: 1 1 200px;
    max-width: 240px;
    text-align: center;
}

.coop-step-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 87, 34, 0.15);
    line-height: 1;
    margin-bottom: -0.5rem;
}

.coop-step-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-color);
    margin: 0 auto 1.2rem;
    transition: all 0.3s ease;
}

.coop-step:hover .coop-step-icon {
    background: var(--theme-color);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.4);
    transform: translateY(-5px);
}

.coop-step h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
}

.coop-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.coop-step p strong {
    color: rgba(255, 87, 34, 0.9);
}

.coop-arrow {
    color: rgba(255, 87, 34, 0.4);
    font-size: 1.5rem;
    padding-top: 2.5rem;
    flex-shrink: 0;
}

.cooperation-cta {
    margin-top: 1rem;
}

.inquiry-cta-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.inquiry-cta-btn:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.5);
}

@media (max-width: 768px) {
    .cooperation-steps {
        flex-direction: column;
        align-items: center;
    }

    .coop-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }
}

/* --- Modal Scroll Indicator --- */
.modal-scroll-indicator {
    position: absolute;
    bottom: calc(5vh + 0.8rem);
    right: calc(5vw + 1.2rem);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0px;
    pointer-events: none;
    animation: bounceIndicatorSmall 1.5s infinite ease-in-out;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 100;
    background: var(--bg-color);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.modal-scroll-indicator i {
    font-size: 0.9rem;
}

.modal-scroll-indicator.hidden {
    opacity: 0;
}

@keyframes bounceIndicatorSmall {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}
