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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

.main-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 배경 이미지 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/case_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 헤더 영역 */
.header {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    text-align: center;
}

.header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header .logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.header .company-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header .company-name-ko {
    font-size: clamp(18px, 4vw, 32px);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.header .company-name-en {
    font-size: clamp(16px, 3.5vw, 28px);
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

/* 메인 컨텐츠 영역 */
.content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    justify-items: center;
}

@media (min-width: 768px) {
    .business-cards {
        grid-template-columns: repeat(2, max-content);
        gap: 60px;
        justify-content: center;
        width: auto;
    }
}

/* 비즈니스 카드 아이템 (카드 + 텍스트 래퍼) */
.business-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* 비즈니스 카드 - 540:360 비율 (3:2) */
.business-card {
    width: 100%;
    max-width: 540px;
    aspect-ratio: 360 / 540;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.business-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover img {
    transform: scale(1.1);
}

/* 카드 아래 텍스트 영역 */
.business-card-item .card-content {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.business-card-item .card-title {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: #fbb03b;
    margin-bottom: 10px;
}

.business-card-item .card-link {
    display: inline-block;
    font-size: clamp(13px, 2vw, 18px);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.business-card-item .card-link:hover {
    color: var(--primary-color, #ff6b35);
}

.business-card-item .card-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.business-card-item .card-link:hover::after {
    transform: translateX(5px);
}

/* 반응형 디자인 */
/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .header {
        padding: 20px 10px;
    }

    .header .logo {
        width: 80px;
    }

    .header .company-name-ko {
        font-size: 18px;
    }

    .header .company-name-en {
        font-size: 16px;
    }

    .content {
        padding: 20px 10px;
    }

    .business-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .business-card {
        max-width: 100%;
    }

    .business-card-item .card-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .business-card-item .card-link {
        font-size: 11px;
    }

    .business-card-item .card-content {
        margin-top: 10px;
    }
}

/* 모바일 (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .header {
        padding: 25px 15px;
    }

    .header .logo {
        width: 90px;
    }

    .header .company-name-ko {
        font-size: 20px;
    }

    .header .company-name-en {
        font-size: 18px;
    }

    .content {
        padding: 25px 15px;
    }

    .business-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .business-card {
        max-width: 100%;
    }

    .business-card-item .card-title {
        font-size: 16px;
    }

    .business-card-item .card-link {
        font-size: 13px;
    }

    .business-card-item .card-content {
        margin-top: 15px;
    }
}

/* 태블릿 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        padding: 35px 20px;
    }

    .header .logo {
        width: 110px;
    }

    .header .company-name-ko {
        font-size: 24px;
    }

    .header .company-name-en {
        font-size: 22px;
    }

    .business-card-item .card-title {
        font-size: 18px;
    }

    .business-card-item .card-link {
        font-size: 15px;
    }

    .business-cards {
        gap: 40px;
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .header .company-name-ko {
        font-size: 28px;
    }

    .header .company-name-en {
        font-size: 24px;
    }

    .business-card-item .card-title {
        font-size: 20px;
    }

    .business-card-item .card-link {
        font-size: 16px;
    }
}

/* 큰 데스크톱 (1440px 이상) */
@media (min-width: 1440px) {
    .header .company-name-ko {
        font-size: 32px;
    }

    .header .company-name-en {
        font-size: 28px;
    }

    .business-card-item .card-title {
        font-size: 20px;
    }

    .business-card-item .card-link {
        font-size: 18px;
    }
}

