@import url('common.css');

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFE5E4;
    min-height: 100vh;
    position: relative;
}

.naver-section .naver-title, .services-section .services-title{
    font-family: "Intel One Mono";
}

button, .service-card h3 {
    font-family: 'SUITE-Variable';

}

/* 헤더 스타일 */
.header {
    background-color: #FFE5E4;
    padding: 0px 40px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo-icon {
    cursor: pointer;
    width: 140px;
    height: 140px;
    background-image: url('../img/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-text {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-main {
    font-family: 'twayair';
    font-size: 70px;
    color: #4A0725;
    font-weight: normal;
    line-height: 1;
}

.logo-sub {
    font-family: 'twayair';
    font-size: 30px;
    color: #C30058;
    line-height: 1;
    text-align: right;
    letter-spacing: 6px;
}

/* 메인 컨텐츠 */
.main-content {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background-image: url('../img/home.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    position: relative;
    min-height: 1100px;
    border-bottom: #4A0725 solid 0.8px;
}

.simple-description {
    background-color: rgba(195, 0, 88, 0.6);
    padding: 15px;
    border-radius: 20px;
    margin: 20px 0;
    text-align: center;
}

.simple-description h3 {
    color: white;
    font-size: 28px;
    font-family: SUITE-Variable;
    letter-spacing: 2px;
}

.main-text-section {
    flex: 1;
    max-width: 600px;
    margin-top: 200px;
    position: relative;
    z-index: 5;
}


#main-title {
    font-family: 'Gowun Dodum';
    font-size: 70px;
    color: #4A0725;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: normal;
    position: absolute;
    top: 120px;
    left: 40px;
    z-index: 10;
    max-width: 1200px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

#naver-description {
    font-family: 'Bookk Myungjo';
    font-size: 25px;
    line-height: 1.8;
    text-align: left;
    color: black;
    margin-bottom: 30px;
}

.cta-button {
    background-color: rgba(195, 0, 88, 0.7);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(195, 0, 88, 0.3);
}

.cta-button:hover {
    background-color: rgba(195, 0, 88, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 0, 88, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(195, 0, 88, 0.3);
}

.main-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.main-image img {
    width: 100%;
    height: auto;
    max-width: 450px;
}

/* 서비스 섹션 */
.services-section {
    padding: 80px 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 60px 0;
    border-radius: 24px;
}

.services-title {
    text-align: left;
    font-size: 64px;
    color: #4A0725;
    margin-bottom: 20px;
    margin-left: 100px;
    font-weight: bold;
}

.services-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.service-card {
    background-color: rgba(195, 0, 88, 0.3);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    min-height: 250px;
    flex: 1;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background-color: rgba(195, 0, 88, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(195, 0, 88, 0.2);
}

.service-card h3 {
    font-size: 28px;
    color: #4A0725;
    margin-bottom: 40px;
    font-weight: bold;
}

.service-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-image: url('../img/arrow.png');
    width: 70px;  /* 화살표 크기 */
    height: 40px; /* 화살표 크기 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(5px);
}

.services-description {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
    font-family: 'BookkMyungjo';
    font-size: 30px;
}

.services-description p {
    font-size: 27px;
    color: #4A0725;
    margin-bottom: 15px;
}

.highlight {
    color: #C30058;
    font-weight: bold;
}

/* 푸터 */
.footer {
    padding: 70px 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 80px;
    border-top: #4A0725 solid 0.8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-icon {
    cursor: pointer;
    width: 80px;
    height: 70px;
    background-image: url('../img/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-logo-text {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-left: -10px;
}

.footer-logo-main {
    font-family: 'twayair';
    font-size: 48px;
    color: #4A0725;
    font-weight: normal;
    line-height: 1;
}

.footer-logo-sub {
    font-family: 'twayair';
    font-size: 20px;
    color: #C30058;
    line-height: 1;
    letter-spacing: 4px;
    text-align: right;
}

.footer-content {
    display: flex;
    gap: 80px;
    margin-left: 60px;
}

.footer-content > .footer-section:last-child {
    display: inline-grid;
}
.footer-content > .footer-section:last-child h4 {
    cursor: pointer;
    transition: all 0.3s ease;
}
.footer-content > .footer-section:last-child h4:hover {
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 24px;
    color: #4A0725;
    margin-bottom: 5px;
    font-family: "Intel One Mono";
}

.footer-section p {
    font-size: 18px;
    color: #4A0725;
    margin-bottom: 10px;
    line-height: 1.5;
    font-family: SUITE-Variable;
}

.footer-bottom {
    margin: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(74, 7, 37, 0.2);
    text-align: center;
    font-size: 16px;
    color: #4A0725;
}

/* 네이버 섹션 스타일 */
.naver-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    z-index: 3; /* main-title보다 낮게 */
}

.naver-title {
    font-size: 28px;
    color: black;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
}

.naver-button {
    background-color: white;
    color: black;
    border: solid black 1.4px;
    padding: 15px 130px;
    border-radius: 16px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.naver-button:hover {
    background-color: rgba(195, 0, 88, 0.6);
    color: white;
    border: solid rgba(195, 0, 88, 0.4) 1.4px;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(190, 185, 185);
}

/* 1050 이하 - 패드, 폴드 */
@media (max-width: 1050px) {
    #main-title{
        font-size: 60px;
    }

    .simple-description h3 {
        font-size: 26px;
    }

    #naver-description {
        font-size: 24px;
        word-spacing: -3px;
    }

    .naver-button {
        padding: 15px 100px;
    }

    .main-content {
        min-height: 900px;
    }

    .footer-logo-main {
        font-size: 40px;
    }

    .footer-logo-sub {
        font-size: 18px;
    }
}

/* 768 이하 - 모바일 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }

    .simple-description h3 {
        font-size: 27px;
    }

    .main-content {
        flex-direction: column;
        padding: 30px 20px;
        background-position: center bottom;
        background-size: 100%;
    }

    #main-title {
        font-size: 45px;
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 30px;
    }

    .simple-description h3 {
        font-size: 24px;
    }

    .main-text-section {
        margin-top: 0;
        order: 2;
    }

    .main-image {
        order: 3;
        margin-top: 20px;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 100%;
        width: 100%;
    }

    .services-title {
        font-size: 40px;
        margin-left: 0;
        text-align: center;
    }

    .footer {
        display: grid;
        place-items: center; /* 완전 중앙 정렬 */
        text-align: center;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* 480px 이하 - 작은 모바일 */
@media (max-width: 480px) {
    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-main {
        font-size: 60px;
    }

    .logo-sub {
        font-size: 24px;
        letter-spacing: 8px;
    }

    #main-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .simple-description h3 {
        font-size: 18px;
    }

    .naver-button {
        padding: 12px 90px;
        font-size: 16px;
    }

    #naver-description {
        font-size: 24px;
        word-spacing: 2px;
    }

    .main-content {
        flex-direction: column;
        padding: 30px 20px;
        background-position: left bottom;
        background-size: 160%;
        min-height: 700px;
    }

    .services-title {
        font-size: 28px;
        word-spacing: -6px;
    }

    .service-card {
        padding: 40px 30px;
        min-height: 200px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .services-description p {
        font-size: 18px;
    }

    .footer {
        display: grid;
        place-items: center; /* 완전 중앙 정렬 */
        gap: 30px;
        padding: 40px 20px;
        text-align: center;
    }

    .footer-logo,
    .footer-content,
    .footer-bottom {
        justify-self: center; /* 각 요소 중앙 정렬 */
    }

    .footer-content {
        display: grid;
        place-items: center;
        gap: 30px;
        width: 100%;
        margin: auto;
    }
}

/* 350px 이하 - 작은 모바일 */
@media (max-width: 350px) {
    #main-title {
        font-size: 22px;
    }

    .simple-description h3 {
        font-size: 16px;
    }

    #naver-description {
        font-size: 20px;
    }

    .naver-button {
        padding: 12px 60px;
    }

    .services-title {
         font-size: 24px;
        word-spacing: -10px;
    }

    .services-description p {
        font-size: 17px;
        letter-spacing: -0.5px;
    }
}