/* ===== 변수 ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== 기본 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 2.0rem;
}

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ===== 헤더 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: 70px;
}

.nav__logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #B8956A;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== 히어로 섹션 ===== */
.hero {
    margin-top: 70px;
    padding: 0;
    background: #ffffff;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero__title {
    font-size: clamp(2.5rem, 12vw, 18rem) !important;
    font-weight: 900 !important;
    color: #000000;
    line-height: 0.9 !important;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
    width: 100%;
    padding: 0 4rem;
    text-transform: uppercase;
    display: inline-block;
}

.hero__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: wordFadeIn 0.8s ease-out forwards;
    margin-right: 0.1em;
}

.hero__word--1 {
    animation-delay: 0.1s;
}

.hero__word--2 {
    animation-delay: 0.3s;
}

.hero__word--3 {
    animation-delay: 0.5s;
    color: #B8956A;
}

.hero__word--4 {
    animation-delay: 0.7s;
}

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

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards, bounce 2s infinite 2.5s;
    cursor: pointer;
}

.hero__scroll:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero__illustration::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.hero__illustration::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

/* ===== 버튼 ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
    text-align: center;
}

/* ===== 서비스 섹션 ===== */
.services {
    background-color: var(--bg-light);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.services__wrapper {
    /* 기존: display: grid; grid-template-columns: 2fr 0.8fr; */
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;  /* 텍스트 : 이미지 비율 재조정 */
    gap: 4rem;                            /* 너무 멀면 줄여도 됨 (6rem → 4rem) */
    align-items: center;
    max-width: 1500px;                    /* 살짝 넓혀서 이미지 공간 확보 */
    margin: 0 auto;
    padding: 0 2.5rem;                    /* 좌우 여백도 약간 줄임 */
}

.services__content {
    text-align: left;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.services__content.animate {
    opacity: 1;
    transform: translateX(0);
}

.services__image {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 이미지 오른쪽 정렬 (원하는 느낌) */
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
    /* width: 150%;  ← **이거 삭제!** */
}

.services__image.animate {
    opacity: 1;
    transform: translateX(0);
}

.services__img {
    width: 100%;          /* 그리드 셀(이미지 영역)을 꽉 채우도록 */
    max-width: 100%;
    height: auto;
    max-height: 600px;    /* 필요 없으면 이 줄도 지워도 됨 */
    border-radius: 20px;  /* 레퍼런스처럼 둥글게 */
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    display: block;
}

.services__header {
    margin-bottom: 3rem;
}

.services__label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.services__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.services__text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.services__text:last-of-type {
    margin-bottom: 0;
}

.services__text strong {
    font-weight: 700;
    color: var(--text-color);
}

.services__underline {
    border-bottom: 3px solid #fbbf24;
    padding-bottom: 2px;
    font-weight: 500;
}

.services__divider {
    width: 3px;
    height: 60px;
    background-color: #fbbf24;
    margin: 2rem 0;
}

.services__highlight-text {
    color: #84cc16;
    font-weight: 600;
}

.services__button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.875rem 2rem;
    background-color: #1e293b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.services__button:hover {
    background-color: #334155;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== 소개 섹션 ===== */
.about {
    background-color: #ffffff;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.about__content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 이미지:텍스트 = 좁게:넓게 */
    gap: 4rem;
    align-items: center;
}

.about__image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about__name {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.about__name.animate {
    opacity: 1;
    transform: translateX(0);
}

.about__illustration {
    width: 100%;
    /* height: 500px;  ← 이거 제거! */
    border-radius: 20px;
    max-width: 550px;
    position: relative;
    overflow: hidden;
    background: none; /* 배경 없애고 싶으면 */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.about__illustration.animate {
    opacity: 1;
    transform: translateX(0);
}


.about__img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;  /* 또는 object-fit: cover; (원하면) */
    display: block;
}


.about__text {
    padding: 2rem 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.about__text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat__item {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat__label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.feature__item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===== 연락처 섹션 ===== */
.contact {
    background-color: var(--bg-light);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.contact__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
}

.contact__info {
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}

.contact__title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.contact__title .contact__title-en {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-left: 10px;
    letter-spacing: 2px;
}

.contact__description {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #B8956A;
    line-height: 1.6;
}

.contact__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.contact__phone {
    margin: 0;
    font-size: 28px;
    color: #000;
    font-weight: 700;
}

.contact__phone strong {
    color: #000;
    margin-right: 10px;
    font-weight: 700;
}

.contact__map {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
    position: relative;
}

.contact__iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== 푸터 ===== */
.footer {
    background-color: #ffffff;
    color: var(--text-color);
    padding: 2rem 0 2rem;
}

.footer__content {
    text-align: center;
}

.footer__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer__info {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.footer__address {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav__menu.show {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero__title {
        font-size: clamp(1.8rem, 10vw, 12rem);
        padding: 0 2rem;
        line-height: 0.9;
    }

    .section__title {
        font-size: 2rem;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat__number {
        font-size: 2rem;
    }

    .contact__content {
        padding: 0 1.5rem;
    }

    .contact__title {
        font-size: 28px;
    }

    .contact__title .contact__title-en {
        font-size: 16px;
    }

    .contact__description {
        font-size: 20px;
    }

    .contact__phone {
        font-size: 22px;
    }

    .contact__map {
        margin-top: 30px;
    }

    .contact__iframe {
        height: 320px;
    }

    .services__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services__content {
        padding: 0 1.5rem;
    }

    .services__image {
        padding: 0 1.5rem;
    }

    .services__title {
        font-size: 2rem;
    }

    .services__text {
        font-size: 1rem;
    }

    .contact__content {
        padding: 0 1rem;
    }

    .contact__title {
        font-size: 24px;
    }

    .contact__title .contact__title-en {
        font-size: 14px;
    }

    .contact__description {
        font-size: 18px;
    }

    .contact__phone {
        font-size: 20px;
    }

    .contact__map {
        margin-top: 25px;
    }

    .contact__iframe {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 0;
    }

    .hero__title {
        font-size: clamp(3rem, 18vw, 14rem);
        padding: 0 1rem;
        line-height: 0.9;
    }

    .hero__scroll {
        bottom: 30px;
        width: 45px;
        height: 45px;
    }

    .hero__scroll svg {
        width: 20px;
        height: 20px;
    }

    .services__wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .services__content {
        padding: 0;
    }

    .services__image {
        padding: 0;
    }

    .services__header {
        margin-bottom: 2rem;
    }

    .services__label {
        font-size: 0.75rem;
    }

    .services__title {
        font-size: 2rem;
    }

    .services__text {
        font-size: 1rem;
        line-height: 2;
        margin-bottom: 1.5rem;
    }

    .services__divider {
        height: 50px;
        margin: 1.5rem 0;
    }

    .services__img {
        max-height: 400px;
        border-radius: 15px;
    }

    .services__button {
        margin-top: 2rem;
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .about__text {
        padding: 0;
    }

    .about__illustration {
        max-width: 100%;
        margin: 0 auto;
    }

    .about__img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about__name {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .about__description {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .stat__number {
        font-size: 1.75rem;
    }

    .stat__label {
        font-size: 0.8rem;
    }

    .about__features {
        gap: 0.875rem;
    }

    .feature__item {
        font-size: 0.95rem;
    }

    .feature__item svg {
        width: 20px;
        height: 20px;
    }

    .contact__content {
        padding: 0 1rem;
    }

    .contact__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .contact__title .contact__title-en {
        font-size: 16px;
        margin-left: 8px;
        letter-spacing: 1.5px;
    }

    .contact__description {
        font-size: 20px;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .contact__phone {
        font-size: 24px;
    }

    .contact__map {
        margin-top: 40px;
    }

    .contact__iframe {
        height: 350px;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 0;
    }

    .nav__logo h1 {
        font-size: 1.25rem;
    }

    .footer__title {
        font-size: 1.5rem;
    }

    .footer__info,
    .footer__address {
        font-size: 0.875rem;
    }

    .footer__copyright {
        font-size: 0.8rem;
    }
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service__card,
.about__content,
.contact__content {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 스크롤바 스타일 ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

