/* ========================================
   RESET & COMMON
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Noto Sans KR", sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden; /* 가로 스크롤 잘림 방지 */
}

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

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-label {
    margin-bottom: 12px;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -1px;
}

/* BUTTONS */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 50px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.button-white { color: #111; background: #fff; }
.button-white:hover { background: #ddd; }
.button-outline { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }
.button-outline:hover { color: #111; background: #fff; }
.button-dark { color: #fff; background: #111; }
.button-dark:hover { background: #333; }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.nav a {
    font-size: 14px;
    font-weight: 600;
}

.menu-button { display: none; }

/* HERO */
.hero {
    min-height: 600px;
    padding-top: 80px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #111;
}

.hero-label { margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #ff4d4d; }
.hero h1 { margin-bottom: 20px; font-size: clamp(30px, 5vw, 64px); line-height: 1.2; }
.hero-description { margin-bottom: 30px; color: #aaa; font-size: 18px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ABOUT */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text p { margin-bottom: 20px; color: #555; font-size: 17px; }
.text-link { display: inline-block; font-weight: 700; border-bottom: 1px solid #111; margin-top: 10px; }
.about-number { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
.about-number strong { font-size: 90px; line-height: 0.8; color: #eee; }
.about-number span { font-size: 13px; font-weight: 700; letter-spacing: 2px; }

/* PRODUCT SECTION (가로형 카드 방식) */
.product { background: #f8f9fa; }
.product-grid { display: flex; flex-direction: column; gap: 32px; }

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.product-card-info { flex: 1; }
.product-card-label { font-size: 12px; font-weight: 700; color: #ff4d4d; margin-bottom: 8px; display: block; }
.product-card-info h3 { font-size: 24px; margin-bottom: 12px; }
.product-card-info p { color: #666; margin-bottom: 20px; font-size: 15px; }

.product-card-specs { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.product-card-specs span { color: #888; margin-right: 10px; font-weight: 600; }

.product .product-card-image {
    flex: 0 0 320px;
    width: 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
}

/* PORTFOLIO SECTION */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.portfolio-card, .portfolio-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.portfolio-visual, .portfolio-image {
    width: 100%;
    height: 240px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-visual img, .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

/* CONTACT & FOOTER */
.contact { background: #111; color: #fff; padding: 80px 0; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.contact h2 { font-size: 32px; margin-bottom: 8px; }
.contact p { color: #aaa; }

.footer { background: #0a0a0a; color: #666; padding: 40px 0; text-align: center; font-size: 14px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.copyright { margin-top: 16px; color: #444; font-size: 12px; }

/* ==========================================
   📱 모바일 디바이스(768px 이하) 전용 반응형 CSS
   ========================================== */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .container {
        width: calc(100% - 32px);
    }

    /* 1. 네비게이션 메뉴 자동 조절 */
    .nav {
        gap: 12px;
    }
    .nav a {
        font-size: 12px;
    }

    /* 2. ABOUT 영역 1열 변환 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 3. 제품 카드 모바일 세로 배치 (잘림 현상 핵심 해결) */
    .product-card {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 20px;
    }
    .product .product-card-image {
        flex: none;
        width: 100% !important;
        height: 240px !important;
    }

    /* 4. 포트폴리오 그리드 모바일 대응 */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 5. CONTACT 영역 모바일 정렬 */
    .contact-inner {
        flex-direction: column;
        text-align: center;
    }
    
    /* 6. 줄바꿈 보정 */
    .pc-only {
        display: none;
    }
}
