@charset "utf-8";

/* --- [1. 기본 세팅] --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Pretendard Variable", Pretendard, sans-serif;
    background-color: #F5F5F7;
    color: #1d1d1f;
    line-height: 1.4;
    word-break: keep-all;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* --- [2. 헤더] --- */
header {
    position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); z-index: 1000; padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.menu a { margin-left: 20px; font-size: 0.85rem; font-weight: 600; color: #555; }
.menu a:hover { color: #000; }

/* --- [3. 히어로 섹션] --- */
.hero {
    padding-top: 120px; padding-bottom: 60px;
    display: flex; justify-content: center;
}
.hero-wrapper { display: flex; align-items: center; gap: 60px; width: 100%; }

.hero-image { flex: 0 0 320px; position: relative; border-radius: 20px; }
.hero-image img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: 20px; box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}
.status-badge {
    position: absolute; bottom: 20px; right: -10px;
    background: #fff; padding: 6px 14px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 700; color: #1d1d1f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 6px;
    animation: float 3s ease-in-out infinite;
}
.status-badge::before { content: ''; display: block; width: 6px; height: 6px; background-color: #27C93F; border-radius: 50%; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }

.hero-content { flex: 1; text-align: left; }
.portfolio-label {
    display: inline-block; font-size: 0.7rem; font-weight: 800; color: #0066FF;
    background: rgba(0, 102, 255, 0.1); padding: 5px 12px; border-radius: 30px;
    margin-bottom: 15px; letter-spacing: 0.5px;
}
.hero-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content h1 span { color: #0066FF; }
.hero-content p { font-size: 1.1rem; color: #6e6e73; margin-bottom: 30px; }

.stats-box {
    display: inline-flex; gap: 30px; background: #fff; padding: 20px 30px;
    border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03);
}
.stat strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: #1d1d1f; }
.stat span { font-size: 0.75rem; color: #888; font-weight: 600; text-transform: uppercase; margin-top: 5px; display: block; }


/* --- [4. 그리드 공통] --- */
.section-title { 
    font-size: 1.8rem; font-weight: 700; margin: 0 0 25px; 
    display: flex; align-items: center; gap: 10px; 
}
.section-title::before { content: ''; width: 6px; height: 24px; background: #0066FF; display: block; border-radius: 3px; }

.zone-wrapper { margin-bottom: 80px; }

.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
}

/* 카드 공통 */
.card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

.badge { 
    display: inline-block; padding: 5px 10px; border-radius: 6px; 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}
.badge.red { background: #FFEBEE; color: #FF2D55; }
.badge.blue { background: #E3F2FD; color: #0066FF; }
.badge.green { background: #E8F5E9; color: #2E7D32; }


/* --- [5. 바이럴 카드 (오버레이 스타일)] --- */
.viral-grid { grid-auto-rows: 320px; }

.viral-card {
    grid-column: span 1; background: #000; text-decoration: none; cursor: pointer;
}
.viral-card .card-bg-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top; 
    display: block; transition: transform 0.5s ease;
}
.viral-card:hover .card-bg-img { transform: scale(1.05); }

.viral-card .card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    padding-top: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: white; z-index: 2;
}
.viral-card h3 { 
    font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.viral-card .card-score { 
    font-size: 1.2rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px;
}
.viral-card .badge {
    position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); margin: 0;
}


/* --- [6. 비전 카드 (Web Service)] --- */
.vision-card {
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    height: 350px; background: #111; color: #fff; text-decoration: none;
    position: relative;
}
.vision-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, transparent 60%); z-index: 0;
}
.vision-content { position: relative; z-index: 1; max-width: 600px; padding: 20px; }
.vision-content h3 { font-size: 2rem; margin: 20px 0; line-height: 1.3; }
.vision-content .highlight-text { color: #0066FF; }
.vision-content p { color: #ccc; font-size: 1rem; margin-bottom: 30px; }
.vision-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
    background: #fff; color: #000; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: 0.3s;
}
.vision-card:hover .vision-btn { background: #0066FF; color: #fff; }


/* --- [7. 채널 카드] --- */
.channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card.channel { height: 250px; display: flex; flex-direction: row; }
.channel-text { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.channel-img { flex: 1; background: #eee; height: 100%; }
.channel-img img { width: 100%; height: 100%; object-fit: cover; }

.channel-text h3 { font-size: 1.3rem; margin-bottom: 5px; }
.social-links { display: flex; gap: 10px; margin-top: 15px; }
.icon-btn {
    display: flex; justify-content: center; align-items: center; width: 36px; height: 36px;
    border-radius: 10px; background-color: #f5f5f7; color: #1d1d1f; transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.05);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.icon-btn.insta:hover { background: #E1306C; color: white; }
.icon-btn.youtube:hover { background: #FF0000; color: white; }


/* --- [8. 현장 경험 (Field Card) - 최종] --- */
.card.field-card {
    grid-column: span 2; 
    background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 20px;
    display: flex; flex-direction: row; padding: 40px; gap: 40px; 
    align-items: stretch; overflow: hidden; height: auto;
}

.field-left { flex: 1.4; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.field-right {
    flex: 1; position: relative; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); min-height: 400px;
}
.field-right img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
.card.field-card:hover .field-right img { transform: scale(1.03); }

.field-text h3 { font-size: 1.8rem; margin-bottom: 15px; line-height: 1.3; }
.field-text p { color: #555; font-size: 1rem; margin-bottom: 25px; line-height: 1.6; }

.field-list-box {
    background: #fff; padding: 20px; border-radius: 15px; border: 1px solid #eee; margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.field-list-box strong { display: block; font-size: 0.95rem; color: #0066FF; margin-bottom: 10px; }
.field-list-box ul { list-style: none; }
.field-list-box li {
    font-size: 0.95rem; color: #444; margin-bottom: 6px; position: relative; padding-left: 15px;
}
.field-list-box li::before { content: '•'; position: absolute; left: 0; color: #ccc; }
.field-list-box li.plus-item { color: #888; font-weight: 600; margin-top: 8px; font-size: 0.9rem; }
.field-list-box li.plus-item::before { content: '+'; color: #0066FF; font-weight: 800; }

.field-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.field-tags span {
    font-size: 0.85rem; font-weight: 600; color: #666; background: #fff; border: 1px solid #ddd;
    padding: 6px 12px; border-radius: 50px;
}

.field-logos { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.partner-box { 
    background: #fff; border-radius: 12px; text-align: center; font-weight: 700; color: #444; 
    border: 1px solid #eee; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; 
    height: 50px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.2s; padding: 0 5px; word-break: keep-all; line-height: 1.2;
}
.partner-box:hover { transform: translateY(-2px); border-color: #ccc; }


/* --- [9. History 리스트] --- */
.history-list { background: #fff; padding: 40px; border-radius: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.history-item { display: flex; border-bottom: 1px solid #eee; padding: 25px 0; align-items: flex-start; }
.history-item:last-child { border-bottom: none; }
.year { width: 140px; font-weight: 800; color: #0066FF; font-size: 1.1rem; flex-shrink: 0; }
.detail h4 { font-size: 1.2rem; margin-bottom: 8px; color: #1d1d1f; }
.detail p { color: #666; font-size: 1rem; margin: 0; }
.highlight { color: #FF2D55; font-weight: 700; }

/* --- [10. 모바일 반응형 (최종_태그정리.ver)] --- */
@media (max-width: 960px) {
    
    /* 1. 레이아웃 & 여백 */
    .container { 
        padding: 0 20px; 
        width: 100%;
        overflow-x: hidden; 
    }
    
    /* 2. 헤더 */
    header { padding: 15px 0; }
    header nav {
        flex-direction: column; 
        align-items: center;    
        gap: 12px;              
    }
    .logo { font-size: 1.1rem; }
    .menu {
        display: flex;
        justify-content: center;
        gap: 18px;
        width: 100%;
    }
    .menu a { font-size: 0.85rem; letter-spacing: -0.02em; }

    /* 3. 히어로 섹션 */
    .hero { padding-top: 90px; padding-bottom: 30px; }
    .hero-wrapper { 
        flex-direction: column; 
        text-align: center; 
        gap: 25px; 
    }
    .hero-image { flex: none; width: 100%; max-width: 220px; }
    .hero-image img { height: 280px; }
    .status-badge { 
        font-size: 0.7rem; padding: 5px 12px; 
        bottom: -12px; right: 0; left: 0; margin: auto; width: fit-content;
    }
    
    .hero-content { width: 100%; }
    .portfolio-label { font-size: 0.65rem; margin-bottom: 10px; }
    
    .hero-content h1 { 
        font-size: 1.65rem; 
        line-height: 1.35;
        margin-bottom: 15px;
        word-break: keep-all; 
        letter-spacing: -0.04em; 
    } 
    .hero-content p { 
        font-size: 0.9rem; 
        padding: 0 5px; 
        margin-bottom: 25px;
        line-height: 1.55;
        word-break: keep-all;
        letter-spacing: -0.03em; 
        color: #555;
    }

    /* 통계 박스 */
    .stats-box { 
        width: 100%; padding: 15px 10px; gap: 0; 
        display: flex; justify-content: space-between; 
    }
    .stat { flex: 1; text-align: center; }
    .stat strong { font-size: 1.2rem !important; padding-top: 0 !important; letter-spacing: -0.02em; }
    .stat span { font-size: 0.65rem; display: block; margin-top: 3px; }
    
    /* 4. 섹션 타이틀 */
    .section-title { font-size: 1.35rem; margin-bottom: 20px; letter-spacing: -0.02em; }
    .zone-wrapper { margin-bottom: 60px; }

    /* 5. 바이럴 그리드 */
    .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .viral-grid { grid-auto-rows: 210px; }
    .viral-card .card-content { padding: 15px; padding-top: 30px; }
    .viral-card h3 { font-size: 0.9rem; margin-bottom: 3px; letter-spacing: -0.03em; }
    .viral-card .card-score { font-size: 0.85rem; }
    .viral-card .badge { top: 10px; left: 10px; font-size: 0.65rem; padding: 3px 8px; }
    
    /* 6. Web Service */
    .vision-card { padding: 40px 15px; height: auto; }
    .vision-content { width: 100%; padding: 0; }
    .vision-content h3 { 
        font-size: 1.35rem; line-height: 1.4; margin: 15px 0; 
        word-break: keep-all; letter-spacing: -0.03em; 
    }
    .vision-content p { 
        font-size: 0.9rem; line-height: 1.65; word-break: keep-all; 
        letter-spacing: -0.03em; color: #ccc; padding: 0 5px; 
    }
    .vision-btn { font-size: 0.85rem; padding: 10px 22px; }

    /* 7. 채널 카드 */
    .channels-grid { grid-template-columns: 1fr !important; gap: 25px; }
    .card.web-preview, .card.channel, .card.field-card { grid-column: span 1 !important; }
    .card.channel { flex-direction: column; height: auto !important; }
    .channel-img { width: 100%; height: 220px; min-height: 220px; flex: 0 0 220px; }
    .channel-text { flex: 0 0 auto; padding: 25px; width: 100%; display: block; text-align: left; }
    .channel-text .badge { margin-bottom: 10px; }
    .channel-text h3 { font-size: 1.35rem; margin-bottom: 6px; line-height: 1.25; letter-spacing: -0.03em; }
    .channel-text p { font-size: 0.9rem; margin-bottom: 15px; line-height: 1.5; color: #555; letter-spacing: -0.03em; }
    .social-links { margin-top: 0; }
    
    /* 8. [★수정] 현장 경험 (Field Card) */
    .card.field-card { padding: 30px 25px; gap: 25px; }
    .field-left, .field-right { width: 100%; }
    .field-right { height: 240px; min-height: auto; }
    
    .field-text h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.03em; }
    .field-text p { font-size: 0.9rem; margin-bottom: 20px; letter-spacing: -0.03em; word-break: keep-all; }
    
    .field-list-box { padding: 20px; margin-bottom: 20px; }
    .field-list-box strong { font-size: 0.9rem; margin-bottom: 10px; }
    .field-list-box li { font-size: 0.85rem; margin-bottom: 6px; line-height: 1.4; letter-spacing: -0.03em; }
    
    /* [★핵심 수정] 태그를 2x2 그리드로 정렬 */
    .field-tags { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
        gap: 8px; /* 태그 사이 간격 */
    }
    .field-tags span { 
        font-size: 0.8rem; 
        text-align: center; /* 글자 가운데 정렬 */
        padding: 8px 0; /* 버튼 높이 확보 */
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: #666;
        display: block; /* 박스 형태로 변경 */
    }
    
    .field-logos { gap: 10px; margin-top: 25px; } 
    .partner-box { height: 45px; font-size: 0.8rem; letter-spacing: -0.05em; }
    
    /* 9. History */
    .history-list { padding: 25px; }
    .history-item { padding: 20px 0; gap: 6px; }
    .year { font-size: 0.95rem; margin-bottom: 4px; }
    .detail h4 { font-size: 1.05rem; margin-bottom: 5px; letter-spacing: -0.03em; word-break: keep-all; }
    .detail p { font-size: 0.9rem; letter-spacing: -0.03em; word-break: keep-all; }

    /* 10. 간격 조정 */
    #web { margin-top: 60px; scroll-margin-top: 60px; }
}