/* ============================================================================
 * File    : home.css
 * Desc    : 메인 홈 화면 관련 스타일 (Hero, Service Grid, Bottom Banner)
 * ============================================================================ */

/* 4. Hero 섹션 */
        .hero { 
            /* 화면 높이의 딱 절반(50%)만 차지하도록 설정 */
            height: 70vh; 
            min-height: 400px; /* 너무 작아지는 걸 방지하기 위한 최소 높이 */
            
            display: flex;
            flex-direction: column;
            justify-content: center; 
            align-items: center;     
            
            text-align: center; 
            padding: 0;              
            margin-bottom: 60px; 
            
            /* 배경 설정 (Home_bg1.avif) */
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/Home_bg1.avif'); 
            background-size: cover; 
            background-position: center; 
            
            /* 화면 가로 꽉 채우기 */
            width: 100vw;            
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }


.hero h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* 둥근 태그 버튼 그룹 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 60px;
    max-width: 900px;
    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);
}

/* 6개 서비스 그리드 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.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;
}

.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;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-action:hover {
    transform: scale(1.05);
    background: #00e0eb;
    box-shadow: 0 0 20px rgba(0, 194, 203, 0.4);
}

.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%; }
}

@media (max-width: 768px) {
    .hero { height: 40vh; }
    .hero h1 { font-size: 2.2rem; }
}