/* ==========================================================================
   1. 초기화 및 기본 설정 (Global Styles)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 섹션 공통 타이틀 스타일 (index.html 스타일 이식) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a2a40;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff8c00; /* 대신이엔씨 브랜드 컬러 적용 */
}

/* ==========================================================================
   2. 헤더 섹션 (상단바 & 메뉴) - index.html과 규격 통일
   ========================================================================== */
#main-header {
    height: 75px; /* 80px에서 75px로 수정 */
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container { 
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

#main-logo {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    transition: 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #ff8c00; /* 파란색에서 주황색으로 변경 */
}

.nav-menu li a.highlight {
    color: #ff8c00 !important;
    font-weight: 700;
}

/* ==========================================================================
   3. 메인 히어로 섹션 - 배경 및 버튼 컬러 동기화
   ========================================================================== */
#hero-main {
    height: 800px;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('images/hero-bg.png') no-repeat center center/cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 75px;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: keep-all;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.9;
}

.hero-action {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 버튼 스타일 */
.btn-main {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-main.orange { background: #ff8c00; color: #fff; border: 2px solid #ff8c00; }
.btn-main.white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* ==========================================================================
   4. 회사소개 (ABOUT US)
   ========================================================================== */
#about { padding: 100px 0; background: #fcfcfc; }
.about-flex { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 1.2; min-width: 300px; }
.about-text h4 { font-size: 2.2rem; line-height: 1.4; color: #1a2a40; margin-bottom: 25px; }
.about-text p { font-size: 1.1rem; color: #555; line-height: 1.9; word-break: keep-all; }
.about-img { flex: 0.8; min-width: 300px; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: 20px 20px 0px #ff8c00; }

/* ==========================================================================
   5. 서비스 & 포트폴리오 그리드
   ========================================================================== */
#services { padding: 100px 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); }
.service-img img { width: 100%; height: 220px; object-fit: cover; }
.service-txt { padding: 30px; text-align: center; }

#portfolio { padding: 100px 0; background: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portfolio-item { border-radius: 12px; overflow: hidden; height: 280px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.portfolio-item img:hover { transform: scale(1.1); }

/* ==========================================================================
   6. 푸터
   ========================================================================== */
.main-footer { background: #222; color: #999; padding: 60px 0 50px; font-size: 14px; }
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-center img { width: 150px; filter: grayscale(1) brightness(1.2); opacity: 0.8; }

/* ==========================================================================
   7. 반응형 디자인 (모바일 최적화 고도화)
   ========================================================================== */
@media (max-width: 768px) {
    #main-header {
        height: auto !important; 
        padding: 15px 0 !important;
    }

    .header-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .nav-menu {
        display: flex !important;
        gap: 10px 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .nav-menu li a {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    #hero-main {
        margin-top: 130px !important; /* 헤더가 길어진 만큼 밀어줌 */
        height: 650px !important;
    }

    .hero-content h2 { font-size: 2.2rem !important; }
    .hero-content p { font-size: 1.1rem !important; }
    
    .section-title { font-size: 2rem !important; }
    .about-text h4 { font-size: 1.8rem !important; }
}