@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: #111;
    background-color: #fff;
}

/* ── NAV ── */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 24px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.site-name {
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.site-name:hover {
    color: rgb(255, 233, 152);
}

.menu {
    display: flex;
    gap: 4px;
}

.home, .service, .about, .contact, .works, .title {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
}

.home::after, .service::after, .about::after, .contact::after, .works::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: rgb(255, 233, 152);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.home:hover::after, .service:hover::after, .about:hover::after,
.contact:hover::after, .works:hover::after {
    transform: scaleX(1);
}

/* ── HERO ── */
.top-main {
    position: relative;
    background-image: url("/css/4.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.top-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 55%,
        rgba(0,0,0,0.55) 100%
    );
}

.kk-design {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 96px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    animation: heroIn 1.2s ease forwards;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 60px 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.text1 {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    padding: 8px 0;
    letter-spacing: -0.02em;
}

.text2 {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    padding: 12px 0;
    line-height: 1.8;
}

.point {
    color: rgb(255, 233, 152);
    font-weight: 700;
}

/* ── CONTENT ── */
.main-content {
    padding: 0 160px;
}

.section-label {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111;
    padding: 10px 0;
}

.text3 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.3;
    padding: 10px 0;
    letter-spacing: -0.02em;
    color: #111;
}

.text4 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.9;
    color: #111;
    padding: 10px 0;
}

/* ── ABOUT ── */
.about-part {
    margin-top: 120px;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    transition: opacity 0.8s ease, transform 0.8s ease, margin 0.9s ease;
}

.about-text {
    flex: 1;
    padding-left: 28px;
    border-left: 4px solid rgb(255, 233, 152);
}

.about-part-img {
    width: 45%;
    max-width: 560px;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 10px 10px 0 rgb(255, 233, 152);
}

/* ── OUR WORKS ── */
.ourworks-part {
    margin-top: 120px;
    padding: 60px 0;
}

.line {
    border: none;
    height: 3px;
    background: linear-gradient(to right, rgb(255, 233, 152), #ccc, rgb(255, 233, 152));
    margin-bottom: 30px;
    border-radius: 2px;
}

.img-section {
    padding: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ourworks-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    display: block;
}

.ourworks-img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
    filter: brightness(1.06);
}

/* ── CATEGORY ── */
.category-part {
    margin-top: 120px;
    padding: 60px;
    background-color: #fefefe;
    border-radius: 16px;
    border: 1px solid #f8f8f8;
}

.category-item {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 30px;
}

.show-img {
    width: 42%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4/3;
    flex-shrink: 0;
    display: block;
}

.category-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    font-size: 26px;
    line-height: 1.7;
    color: #222;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid #f8f8f8;
    position: relative;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(255, 233, 152);
    font-weight: 700;
}

/* ── CUSTOM ── */
.custom-part {
    margin-top: 120px;
    padding: 80px 60px;
    text-align: center;
    background-color: #fefefe;
    border-radius: 16px;
}

/* ── PROCESS ── */
.process-part {
    margin-top: 120px;
    padding: 80px 60px;
    background-color: rgba(194, 194, 194, 0.35);
    border-radius: 16px;
    text-align: center;
}

.process-part .section-label {
    color: #111;
}

.process-part .text3 {
    color: #111;
}

.process-part .text4 {
    color: #111;
    margin-top: 30px;
}

.process-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 50px 0;
}

.process {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.process-num {
    width: 48px;
    height: 48px;
    background-color: rgb(255, 233, 152);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #111;
    flex-shrink: 0;
}

.process-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.6;
    display: block;
}

.process-label {
    font-size: 21px;
    font-weight: 500;
    color: #111;
    text-align: center;
}

.process-arrow {
    font-size: 22px;
    color: #111;
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-top: 54px;
    flex-shrink: 0;
}

/* ── SCROLL ANIMATIONS ── */
.about-part, .custom-part, .show-img {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-part {
    transition: opacity 0.8s ease, transform 0.8s ease, margin 0.9s ease;
}

.about-part.show, .custom-part.show, .show-img.show {
    opacity: 1;
    transform: translateY(0);
}

.about-part.show {
    margin-left: 180px;
    margin-right: 180px;
}

/* ── FOOTER ── */
.bottom-main {
    margin-top: 120px;
    background-color: rgba(194, 194, 194, 0.35);
    padding: 60px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 60px 30px 30px;
    border-radius: 12px;
    border-right: 1px solid rgba(194, 194, 194, 0.5);
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.footer-name {
    font-weight: 700;
    font-size: 26px;
    color: #111;
    letter-spacing: 0.05em;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 40px;
    align-content: start;
    text-align: left;
}

.text {
    font-size: 18px;
    line-height: 2.2;
    color: #111;
}

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

.text a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media screen and (max-width: 1200px) {
    .main-content {
        padding: 0 80px;
    }
}

@media screen and (max-width: 768px) {
    .top-main {
        justify-content: flex-start;
    }

    .top-bar {
        position: relative;
        background-color: #666;
        padding: 16px 20px;
        font-size: 18px;
        flex-direction: column;
        gap: 12px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home, .service, .about, .contact, .works {
        font-size: 12px;
        padding: 6px 10px;
    }

    .kk-design {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 44px;
        letter-spacing: 0.1em;
    }

    .main-text {
        padding: 40px 24px;
    }

    .text1 {
        font-size: 28px;
    }

    .text2 {
        font-size: 17px;
    }

    .main-content {
        padding: 0 24px;
    }

    .text3 {
        font-size: 30px;
    }

    .text4 {
        font-size: 20px;
    }

    .about-part {
        flex-direction: column;
        gap: 32px;
        margin-top: 60px;
    }

    .about-part.show {
        margin-left: 0;
        margin-right: 0;
    }

    .about-text {
        padding-left: 20px;
    }

    .about-part-img {
        width: 100%;
        height: 260px;
        box-shadow: 6px 6px 0 rgb(255, 233, 152);
    }

    .category-part {
        padding: 30px 20px;
    }

    .category-item {
        flex-direction: column;
    }

    .show-img {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .category-list li {
        font-size: 18px;
    }

    .custom-part {
        padding: 50px 24px;
    }

    .img-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ourworks-img {
        height: 180px;
    }

    .process-item {
        flex-wrap: wrap;
        gap: 20px;
        margin: 30px 0;
    }

    .process-arrow {
        display: none;
    }

    .process {
        flex: 0 0 calc(33.3% - 14px);
    }

    .process-part {
        padding: 50px 24px;
    }

    .bottom-main {
        flex-direction: column;
        padding: 40px 24px;
        gap: 30px;
    }

    .footer-brand {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(194, 194, 194, 0.5);
        padding-bottom: 30px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .footer-info {
        grid-template-columns: 1fr;
    }
}
