/* =========================================
           [INTEGRATED DESIGN SYSTEM]
           ========================================= */
        :root {
            --bg-white: #ffffff;
            --bg-light: #f8f9fc; /* 밝은 배경색 */
            --bg-dark: #0f1219;

            --navy-deep: #0A1128;
            --gold-primary: #d4af37;

            --text-body: #333333;
            --text-sub: #555555;
            --text-white: #ffffff;

            /* 문의 폼 전용 변수 (이미지 참조) */
            --input-bg: #f3f5f7;
            --req-blue: #3b82f6;

            --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

            /* [타이포그래피 밸런스] */
            --fs-h1: 3.4rem;
            --fs-h2: 2.25rem;
            --fs-h3: 1.5rem;
            --fs-body: 1.0625rem;
        }

        @media (max-width: 1024px) {
            :root { --fs-h1: 2.75rem; --fs-h2: 2rem; --fs-h3: 1.35rem; }
        }
        @media (max-width: 768px) {
            :root { --fs-h1: 2.1rem; --fs-h2: 1.75rem; --fs-h3: 1.25rem; --fs-body: 1rem; }
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
        html { font-size: 16px; scroll-behavior: smooth; }

        body {
            background-color: var(--bg-white);
            color: var(--text-body);
            line-height: 1.75;
            word-break: keep-all;
            overflow-x: hidden;
            font-weight: 400;
        }

        a { text-decoration: none; color: inherit; transition: var(--transition); cursor: pointer; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
        .section-padding { padding: 120px 0; }
        @media (max-width: 768px) { .container { padding: 0 20px; } .section-padding { padding: 80px 0; } }

        .txt-point { color: var(--navy-deep); font-weight: 800; margin: 0 2px; }

        .page-section { display: none; }
        .page-section.active { display: block; animation: fadeIn 0.5s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* Header */
        header {
            position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0;
            transition: all 0.4s ease; opacity: 1; pointer-events: auto;
        }
        body.scrolled header { opacity: 0; pointer-events: none; transform: translateY(-20px); }

        .nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
        .logo-area { display: flex; align-items: center; gap: 10px; cursor: pointer;}
        .logo-img { height: 50px; width: auto; }
        .logo-text { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1;}
        .logo-text span { color: var(--gold-primary); }

        .gnb { display: flex; gap: 40px; }
        .gnb li a { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.8); position: relative; padding-bottom: 5px; }
        .gnb li a:hover, .gnb li a.current { color: var(--gold-primary); font-weight: 700; }
        .gnb li a.current::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gold-primary); }

        /* Hamburger */
        .hamburger-btn {
            position: fixed; top: 18px; right: 24px; z-index: 9999;
            width: 46px; height: 46px; background: var(--navy-deep); color: #fff; border-radius: 8px;
            display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; transform: translateY(-20px) scale(0.9);
            pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @media (min-width: 1360px) { .hamburger-btn { right: calc(50% - 640px + 24px); } }
        body.scrolled .hamburger-btn { opacity: 1; top: 8px; transform: translateY(0) scale(1); pointer-events: auto; }
        @media (max-width: 1024px) {
            .hamburger-btn { opacity: 1 !important; top: 8px !important; transform: translateY(0) scale(1) !important; pointer-events: auto !important; }
            header { display: none; }
        }

        /* Side Menu */
        .side-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2500; opacity: 0; visibility: hidden; transition: 0.3s; }
        .side-menu-overlay.open { opacity: 1; visibility: visible; }
        .side-menu { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background: var(--bg-white); z-index: 3000; padding: 40px 30px; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
        .side-menu.open { right: 0; }
        .side-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
        .side-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
        .side-logo .logo-text { color: var(--navy-deep); font-size: 20px; }
        .side-close { font-size: 24px; color: var(--text-body); cursor: pointer; transition: 0.3s; }
        .side-close:hover { color: var(--ci-red); transform: rotate(90deg); }

        .side-gnb { display: flex; flex-direction: column; gap: 0; }
        .side-gnb li { position: relative; }
        .side-gnb-item { display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid #eee; padding: 18px 0; }
        .side-gnb-item a, .side-gnb-item span { font-size: 18px; font-weight: 600; color: var(--navy-deep); flex-grow: 1; }
        .side-gnb-item:hover a, .side-gnb-item:hover span { color: var(--gold-primary); }
        .menu-arrow { font-size: 14px; color: #999; transition: 0.3s; }
        .side-gnb li.active .menu-arrow { transform: rotate(180deg); color: var(--gold-primary); }

        .side-sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #f9f9f9; border-radius: 8px; }
        .side-sub-menu li a { font-size: 15px; color: #666; padding: 12px 15px; border-bottom: 1px solid rgba(0,0,0,0.03); display: block; transition: 0.2s; font-weight: 400; }
        .side-sub-menu li a:last-child { border-bottom: none; }
        .side-sub-menu li a:hover { color: var(--navy-deep); font-weight: 700; background: #f0f0f0; padding-left: 20px; }
        .side-sub-menu li a::before { content: '•'; margin-right: 8px; color: var(--gold-primary); font-size: 12px; }

        /* Common Elements */
        .section-header { text-align: center; margin-bottom: 70px; }
        .section-header h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--navy-deep); margin-bottom: 18px; line-height: 1.3; word-break: keep-all; letter-spacing: -0.5px; }
        .section-header p { font-size: 1.125rem; color: var(--text-sub); max-width: 700px; margin: 0 auto; opacity: 0.9; font-weight: 300; }

        .value-highlight { display: inline-block; position: relative; z-index: 1; }
        .value-highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px; background: rgba(212, 175, 55, 0.35); z-index: -1; border-radius: 2px; transform: skewX(0); }

        /* Home Hero */
        .hero { height: 100vh; min-height: 700px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; background-color: var(--navy-deep); overflow: hidden; }
        .hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center/cover; background-attachment: fixed; z-index: 0; animation: heroReveal 3s ease-out forwards; }
        .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(31, 37, 51, 0.7) 100%); z-index: 1; }
        .hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 1000px; padding: 60px 20px 0; }

        .hero-slogan { font-size: var(--fs-h1); font-weight: 800; line-height: 1.25; margin-bottom: 50px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); letter-spacing: -1px; }
        .hero-dynamic-desc { height: 80px; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }

        .desc-text { font-size: 1.35rem; font-weight: 300; color: rgba(255,255,255,0.95); opacity: 0; transition: opacity 0.5s ease; position: absolute; width:100%; text-align: center; max-width: 800px; line-height: 1.6; }
        .desc-text.active { opacity: 1; }

        .core-values { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;}
        .val-item { text-align: center; color: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s; position: relative; font-size: 1.15rem; font-weight: 400; }
        .val-item.active { color: var(--gold-primary); transform: scale(1.1); font-weight: 700; opacity: 1; }
        .val-item::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold-primary); transition: 0.3s; }
        .val-item.active::after { width: 100%; }

        /* Philosophy Section */
        .home-philosophy {
            position: relative;
            padding: 120px 0;
            background-color: var(--bg-light);
            color: var(--text-body);
            text-align: center;
        }
        .value-slogan {
            font-size: 2.6rem;
            font-weight: 800;
            color: var(--navy-deep);
            line-height: 1.35;
            margin-bottom: 45px;
            letter-spacing: -1px;
        }
        @media (max-width: 1024px) { .value-slogan { font-size: 2rem; } }
        @media (max-width: 768px) { .value-slogan { font-size: 1.6rem; } }

        .home-philosophy .txt-point {
            color: var(--gold-primary) !important;
            position: relative;
            display: inline-block;
        }
        .home-philosophy .value-highlight::after {
            background: rgba(212, 175, 55, 0.6);
            height: 15px;
            bottom: 5px;
        }
        .value-desc {
            font-size: 1.25rem;
            max-width: 840px;
            margin: 0 auto;
            color: #444;
            line-height: 1.8;
            font-weight: 300;
        }

        /* Greeting Section */
        .greeting-section {
            background-color: #fff;
            position: relative;
            overflow: hidden;
        }
        .greeting-grid {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 80px;
            align-items: flex-start;
            margin-top: 40px;
        }
        .greeting-left-col {
            position: sticky;
            top: 150px;
            text-align: right;
            border-right: 1px solid #eee;
            padding-right: 40px;
        }
        .greeting-title-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--gold-primary);
            margin-bottom: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        .greeting-main-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--navy-deep);
            line-height: 1.25;
            margin-bottom: 30px;
            letter-spacing: -0.5px;
        }
        .greeting-logo-box img {
            max-width: 140px;
            transition: 0.3s;
            margin-left: auto;
        }

        .greeting-content {
            position: relative;
            padding: 10px 0;
        }
        .quote-watermark {
            position: absolute;
            top: -60px;
            left: -40px;
            font-size: 140px;
            color: #f4f4f4;
            font-family: serif;
            font-weight: 900;
            z-index: 0;
            line-height: 1;
            pointer-events: none;
        }
        .greeting-body {
            position: relative;
            z-index: 1;
        }
        .greeting-body p {
            margin-bottom: 26px;
            color: #444;
            line-height: 1.9;
            font-size: 1.125rem;
            text-align: justify;
            font-weight: 300;
        }
        .greeting-body p:first-of-type {
            font-size: 1.25rem;
            color: var(--navy-deep);
            font-weight: 500;
            line-height: 1.6;
        }
        .greeting-body strong {
            background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(212, 175, 55, 0.2) 60%);
            color: var(--navy-deep);
            font-weight: 600;
            padding: 0 2px;
        }

        /* 반응형 */
        @media (max-width: 1024px) {
            .greeting-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            .greeting-left-col {
                position: static;
                text-align: left;
                border-right: none;
                padding-right: 0;
                border-bottom: 1px solid #eee;
                padding-bottom: 25px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .greeting-logo-box img { margin-left: 0; }
            .greeting-main-title { margin-bottom: 0; font-size: 1.8rem; }
            .quote-watermark { display: none; }
            .greeting-body p { font-size: 1.05rem; }
            .greeting-body p:first-of-type { font-size: 1.15rem; }
        }

        /* Service Cards */
        .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
        @media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .tools-grid { grid-template-columns: 1fr; } }

        .q-card { background: var(--bg-white); padding: 50px 40px; border-radius: 24px; transition: var(--transition); border: 1px solid #f0f0f0; text-align: center; display: flex; flex-direction: column; align-items: center; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid transparent; }
        .q-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-top-color: var(--gold-primary); background: #fff; }
        .q-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 30px; transition: 0.3s; background: #fff; color: var(--gold-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
        .q-card:hover .q-icon { background: var(--gold-primary); color: #fff; }

        .q-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; color: var(--navy-deep); letter-spacing: -0.5px; }
        .q-card p { font-size: 1.05rem; color: #666; margin-bottom: 25px; line-height: 1.6; font-weight: 300; }
        .q-link { font-size: 1rem; font-weight: 700; color: var(--navy-deep); border-bottom: 2px solid #eee; padding-bottom: 5px; margin-top: auto; transition: 0.3s; }
        .q-card:hover .q-link { border-color: var(--gold-primary); color: var(--gold-primary); }

        /* History (Portfolio) */
        .history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
        @media (max-width: 1024px) { .history-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .history-grid { grid-template-columns: 1fr; } }
        .history-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-card); }
        .history-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .history-item:hover img { transform: scale(1.1); }
        .history-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; color: #fff; opacity: 0; transition: 0.3s; }
        .history-item:hover .history-overlay { opacity: 1; }

        .history-overlay h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
        .history-overlay p { font-size: 0.95rem; opacity: 0.9; font-weight: 300; }

        .portfolio-category-title {
            margin-bottom:24px; border-left:4px solid var(--gold-primary); padding-left:18px; font-size:1.6rem; font-weight:700; color: var(--navy-deep); margin-top: 60px;
        }
        .portfolio-category-title:first-of-type { margin-top: 0; }

        /* =========================================
           [UPDATED: CTA Section (Bright Background)]
           ========================================= */
        .cta-section {
            background: var(--bg-light); /* 밝은 배경 */
            color: var(--navy-deep);
            text-align: center;
            position: relative;
            overflow: hidden;
            border-top: 1px solid rgba(0,0,0,0.05);
        }
        .cta-box h3 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; color: var(--navy-deep); }
        .cta-box p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 40px; font-weight: 300; color: #555; }
        .cta-btn {
            display: inline-block; padding: 16px 45px; background: var(--navy-deep); color: #fff;
            border-radius: 6px; font-weight: 700; font-size: 1.1rem; transition: 0.3s; cursor: pointer; border:none;
        }
        .cta-btn:hover { background: var(--gold-primary); color: #fff; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); }

        /* Footer */
        footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }
        .footer-logo { font-size: 28px; font-weight: 800; color: #fff; display: block; margin-bottom: 24px; text-decoration: none; letter-spacing: 0.5px; }
        .footer-logo span { color: var(--gold-primary); }
        .footer-info { font-size: 0.95rem; line-height: 1.8; font-weight: 300; }

        /* =========================================
           [Modal Common]
           ========================================= */
        .modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
        .modal.active { display: flex; }
        .modal-content { background: #fff; width: 100%; max-width: 900px; max-height: 90vh; border-radius: 20px; overflow-y: auto; position: relative; animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
        @keyframes slideUp { from {transform: translateY(30px); opacity:0;} to {transform: translateY(0); opacity:1;} }
        .modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; color: #666; cursor: pointer; z-index: 10; transition: 0.3s; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f8f8f8; }
        .modal-close:hover { background: var(--navy-deep); color: #fff; }
        .modal-body { padding: 50px 40px; }

        /* Portfolio Modal Specifics */
        .pf-title { font-size: 2rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 40px; border-bottom: 3px solid var(--gold-primary); padding-bottom: 20px; letter-spacing: -1px; }
        .process-step { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-bottom: 40px; align-items: center; }
        .process-step:last-child { margin-bottom: 0; }
        .process-img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .process-info h4 { font-size: 1.35rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 12px; }
        .process-info p { font-size: 1.05rem; color: #555; line-height: 1.7; font-weight: 300; }

        /* [NEW] Inquiry Modal Specifics */
        .inq-title { font-size: 1.8rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 30px; text-align: left; }
        .inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
        .inq-full { grid-column: span 2; }
        .inq-group { display: flex; flex-direction: column; gap: 8px; }
        .inq-label { font-size: 0.95rem; font-weight: 700; color: #333; }
        .req-mark { color: var(--req-blue); margin-left: 2px; } /* 첨부 이미지의 파란색 별표 */

        .inq-input, .inq-select, .inq-textarea {
            width: 100%; padding: 14px 16px;
            background-color: var(--input-bg); /* 회색 배경 */
            border: 1px solid transparent;
            border-radius: 6px;
            font-size: 1rem; color: #333;
            transition: 0.2s; outline: none;
        }
        .inq-input:focus, .inq-select:focus, .inq-textarea:focus {
            background-color: #fff; border-color: var(--navy-deep);
        }
        .inq-input::placeholder, .inq-textarea::placeholder { color: #aaa; font-weight: 300; }
        .inq-textarea { resize: none; height: 150px; }

        .privacy-box { display: flex; align-items: center; gap: 10px; margin-top: 10px; margin-bottom: 30px; }
        .privacy-chk { width: 18px; height: 18px; accent-color: var(--navy-deep); cursor: pointer; }
        .privacy-label { font-size: 0.95rem; color: #555; cursor: pointer; }
        .privacy-link { font-weight: 700; text-decoration: underline; margin-left: 5px; cursor: pointer; }

        .btn-submit {
            width: 100%; padding: 18px; background: #222; /* 이미지의 검정 버튼 */
            color: #fff; font-size: 1.1rem; font-weight: 700; border: none; border-radius: 6px; cursor: pointer; transition: 0.3s;
        }
        .btn-submit:hover { background: var(--navy-deep); }

        @media (max-width: 768px) {
            .process-step { grid-template-columns: 1fr; gap: 15px; }
            .process-img { height: 200px; }
            .modal-body { padding: 30px 20px; }
            .pf-title { font-size: 1.6rem; }
            .inq-grid { grid-template-columns: 1fr; gap: 15px; }
            .inq-full { grid-column: span 1; }
        }

        /* Signature Area */
        .greeting-signature {
            margin-top: 60px;
            text-align: right;
            padding-top: 30px;
            border-top: 1px solid #f0f0f0;
        }

        .greeting-signature .sign-closing {
            font-size: 1rem;
            color: #777;
            margin-bottom: 8px;
            font-weight: 300;
        }

        .greeting-signature .sign-company {
            font-size: 2rem;
            font-weight: 800;
            color: var(--navy-deep);
            margin: 0;
            letter-spacing: -1px;
        }

        .greeting-signature .sign-company span {
            color: var(--gold-primary);
        }

        @media (max-width: 768px) {
            .greeting-signature {
                text-align: center;
                margin-top: 40px;
            }
            .greeting-signature .sign-company { font-size: 1.7rem; }
        }
