* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1e2a3e;
    scroll-behavior: smooth;
    padding-top: 85px;   /* 고정 헤더 높이만큼 여백 (데스크톱) */
}

/* ===== 헤더 블록 (하나의 독립된 블록) ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #eef2f5;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    flex-wrap: wrap;
}

.logo h1 {
    color: #1e4660;
    font-size: 1.6rem;
    font-weight: 800;
}

.logo p {
    color: #4a5568;
    font-size: 0.75rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #1e4660;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: #ffcc00;
    color: #ffcc00;
}

/* ===== 회사소개 블록 (독립된 카드) ===== */
.about-card {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    line-height: 1.7;
}

.about-card h1 {
    font-size: 2rem;
    color: #1e4660;
    border-left: 4px solid #ffcc00;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.about-card h2 {
    font-size: 1.5rem;
    color: #1e4660;
    margin: 2rem 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
}

.about-card p {
    margin: 1rem 0;
}

.about-card ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.about-card li {
    margin: 0.3rem 0;
}

.about-card hr {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background: #e2e8f0;
}

/* ===== 슬라이드 배너 블록 (직각, cover) ===== */
.slider-container {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1300px;
    margin: 100px auto 50px;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1rem;
}

.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    background-color: #f0f4f8;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #ffcc00;
    transform: scale(1.2);
}

/* ===== 통계 수치 ===== */
.stats {
    background: #003366;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; line-height: 1.2; }
.stat-number span { font-size: 1.2rem; font-weight: normal; }
.stat-label { font-size: 1rem; opacity: 0.9; margin-top: 0.3rem; }

/* ===== 주요 장비 섹션 (홈페이지) ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1e4660;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #ffcc00;
    margin: 0.8rem auto 0;
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.equip-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}
.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}
.equip-card img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.equip-card h3 {
    font-size: 1.3rem;
    color: #1e4660;
}
.equip-card p {
    font-size: 0.9rem;
    color: #4a5568;
}

/* ===== 푸터 ===== */
footer {
    background: #0f1720;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ===== 플로팅 버튼 ===== */
.float-btn {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}
.float-btn:hover { transform: scale(1.05); }
.call-btn { bottom: 100px; background: #ff0000; color: white; }
.kakao-btn { bottom: 30px; background: #fee500; color: #3c1e1e; }

/* ===== 떠다니는 문구 창 ===== */
.floating-message {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: linear-gradient(135deg, #ff6600, #ffcc00);
    padding: 18px 28px;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #1e2a3e;
    font-weight: bold;
    text-align: center;
    z-index: 9998;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 320px;
    width: auto;
}
.floating-message:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.floating-message span { display: block; }
.floating-message .main-text {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.floating-message .sub-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    body {
        padding-top: 110px;   /* 모바일 헤더 높이 증가 */
    }
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .logo h1 { font-size: 1.3rem; }
    .logo p { font-size: 0.7rem; }
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li a { font-size: 0.85rem; padding: 0.2rem 0; }
    .about-card {
        padding: 1.2rem;
        margin: 0 1rem 40px;
    }
    .about-card h1 { font-size: 1.6rem; }
    .about-card h2 { font-size: 1.3rem; }
    .slider-container {
        width: calc(100% - 20px);
        margin: 80px auto 30px;
        padding: 0.5rem;
    }
    .slider { height: 50vh; }
    .floating-message {
        left: 10px;
        bottom: 20px;
        padding: 12px 18px;
        max-width: 260px;
    }
    .floating-message .main-text { font-size: 1.1rem; }
    .floating-message .sub-text { font-size: 0.75rem; }
    .equipment-grid { grid-template-columns: 1fr; }
    .float-btn { width: 50px; height: 50px; font-size: 24px; }
    .call-btn { bottom: 80px; }
}