/* ============================================================================
 * File    : home.css
 * Desc    : 메인 홈 화면 (영상 배너, 태그, 서비스 그리드, 하단 배너, 인트로 오버레이)
 * ============================================================================ */

/* 히어로 비디오 배너 */
.hero-video-banner {
    display: none;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
    background: #000;
}

.hero-video-banner.active {
    display: block;
}

.hero-video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 모바일: 고정 height 제거, 영상 비율로 자연스럽게 */
@media (max-width: 768px) {
    .hero-video-banner {
        height: auto;
        min-height: unset;
        aspect-ratio: 16 / 9;
    }
}

/* 모바일 landscape: 뷰포트 높이 기준으로 조정 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-video-banner {
        aspect-ratio: unset;
        height: 55vw;
    }
}

/* 둥근 태그 버튼 그룹 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

.tag-break {
    width: 100%;
    height: 0;
}

/* 6개 서비스 그리드 — 항상 3열 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .service-grid { grid-template-columns: 1fr; }
}

.service-card {
    background: #111;
    border: 1px solid #222;
    padding: 40px 30px;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-card h4 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #fff;
}

.service-card p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: keep-all;
}

.service-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    opacity: 0.3;
    filter: grayscale(1) invert(1);
    transition: 0.3s;
    width: 50px;
}

.service-card:hover .service-icon {
    opacity: 0.8;
    filter: none;
}

/* 하단 배너 */
.bottom-banner {
    margin-top: 80px;
    padding: 80px 50px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/Home_bg2.avif');
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
}

.banner-text h2 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}

.banner-text p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.banner-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 220px;
}

.btn-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

/* Start with us — solid */
.banner-btns .btn-action:first-child {
    background: var(--primary);
    color: #000;
}
.banner-btns .btn-action:first-child:hover {
    transform: scale(1.05);
    background: #33CC99;
    box-shadow: 0 0 20px rgba(0, 183, 165, 0.4);
}

/* View works — outline */
.banner-btns .btn-action:last-child {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary) !important;
}
.banner-btns .btn-action:last-child:hover {
    transform: scale(1.05);
    background: rgba(0, 183, 165, 0.12);
    box-shadow: 0 0 20px rgba(0, 183, 165, 0.25);
}

.btn-action span {
    font-size: 1.2rem;
    margin-left: 10px;
}

/* 홈 반응형 */
@media (max-width: 900px) {
    .bottom-banner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 30px;
    }
    .banner-btns { width: 100%; }
}

/* =====================================================
   INTRO OVERLAY (관리자 미리보기)
   ===================================================== */
.btn-intro-admin {
    background: transparent;
    border: 1px solid rgba(0, 183, 165, 0.4);
    color: var(--primary);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    white-space: nowrap;
}
.btn-intro-admin:hover {
    background: rgba(0, 183, 165, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 183, 165, 0.2);
}

.intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgb(4, 4, 7);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.intro-overlay.active { display: flex; }

.intro-admin-badge {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 0.62rem;
    color: rgba(0, 183, 165, 0.35);
    letter-spacing: 3px;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}

.intro-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.intro-close:hover { color: #ddd; background: rgba(255, 255, 255, 0.1); }

/* Stage — video-only container */
.intro-stage {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

