@import url('third-section.css');
@import url('footer.css');

/* 전체 사이트 기본 스타일 */
:root {
    --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
    --header-height: 90px;
}

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

body {
    font-family: Roboto, var(--default-font-family), serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* 헤더 스타일 */
header {
    background-color: #000000;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    height: var(--header-height);
}

.logo {
    max-width: 80px;
}

.logo img {
    width: 100%; /* 이미지가 컨테이너에 맞게 조정됨 */
    height: auto; /* 비율 유지 */
    max-height: 50px; /* 최대 높이 설정 */
}

.header-list {
    display: flex;
    gap: 30px;
    cursor: pointer;
    padding-right: 70px;
}

.lang-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrapper,
.wrapper * {
    box-sizing: border-box;
}
.wrapper {
    height: 80px;
    position: relative;
}

/* 메인 섹션 스타일 */
.section-1 {
    padding: 80px 40px;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 페이드 인/아웃 전환 */
    z-index: 1;
}
.bg-layer.visible {
    opacity: 1;
}

.bg-layer-1 {
    opacity: 1;  /* 첫 화면엔 이 레이어가 보임 */
}

.section-content {
    position: relative;
    z-index: 2;
    /* 텍스트 컬러, 여백 등 원하는 스타일 추가 */
    padding: 40px;
    color: #ffffff;
}

.closest-to-the-brand {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-1 .container {
    max-width: 600px;
    margin-bottom: 40px;
}

.div {
    font-size: 20px;
    line-height: 1.5;
}

.div2 {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #ffffff;
    cursor: pointer;
}

/* 서비스 섹션 스타일 */
.services-section {
    position: relative;
    width: 100%;
    overflow: visible;
    height: 100vh;
    padding-top: 60px;
}

/* 메인 컨테이너 스타일 */
.main-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background: #000000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 60px;
}

.we-make-it {
    display: block;
    position: relative;
    height: 54px;
    margin: 0 0 10px 95px;
    color: #ffffff;
    font-family: Roboto, var(--default-font-family), serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 54px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.58px;
    width: 100%;
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 50%;
    margin: 0 0 40px 95px;
    z-index: 1;
}

.product-development {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    height: 48px;
    color: #f0f0f0;
    font-family: Roboto, var(--default-font-family), serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    text-overflow: initial;
    letter-spacing: 0.38px;
    z-index: 2;
    overflow: hidden;
}

.service-section-image {
    position: absolute;
    width: 40%;
    height: 625px;
    top: 135px;
    right: 0;
    z-index: 12;
    background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-04-26/QGTGKdLwzz.png) no-repeat center;
    background-size: contain;
}

/* 서비스 목록 컨테이너 */
.services-list {
    position: relative;
    width: 60%;
    margin-left: 95px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 40px;
    z-index: 5;
}

/* 공통 서비스 텍스트 스타일 */
.brand-consulting,
.research-development,
.product-efficiency,
.quality-control,
.distribution {
    position: relative;
    color: #ffffff;
    font-family: Roboto, var(--default-font-family), serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 50px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 4;
}

/* 개별 마진으로 위치 조정 */
.brand-consulting {
    margin-left: 100px;
}

.research-development {
    margin-left: 0;
}

.product-efficiency {
    margin-left: 30px;
}

.quality-control {
    margin-left: 50px;
}

.distribution {
    margin-left: 150px;
}

/* 애니메이션 원 스타일 */
.animated-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 150px;
    left: calc(50% - 300px);
    z-index: 3;
}

.circle-outline {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 9;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: 50% 305px;
    animation: rotateCounterClockwise 15s linear infinite;
}

.dot:nth-child(2) { animation-delay: 0s; }
.dot:nth-child(3) { animation-delay: -1.25s; }
.dot:nth-child(4) { animation-delay: -2.5s; }
.dot:nth-child(5) { animation-delay: -3.75s; }
.dot:nth-child(6) { animation-delay: -5s; }
.dot:nth-child(7) { animation-delay: -6.25s; }
.dot:nth-child(8) { animation-delay: -7.5s; }
.dot:nth-child(9) { animation-delay: -8.75s; }
.dot:nth-child(10) { animation-delay: -10s; }
.dot:nth-child(11) { animation-delay: -11.25s; }
.dot:nth-child(12) { animation-delay: -12.5s; }
.dot:nth-child(13) { animation-delay: -13.75s; }

/* 반시계 방향 회전 애니메이션 */
@keyframes rotateCounterClockwise {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(-360deg);
    }
}

/* 모바일에 가까운 반응형 스타일만 유지 */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    header {
        padding: 15px 20px;
    }

    .main-container {
        display: block;
    }

    .services-container {
        width: 90%;
        margin-left: 20px;
    }

    .services-list {
        width: 100%;
        margin-left: 20px;
        gap: 30px;
    }

    .section-1 {
        padding: 40px 20px;
    }

    .closest-to-the-brand {
        font-size: 48px;
    }

    .div {
        font-size: 18px;
    }

    .when-you-need-us {
        font-size: 36px;
        margin-left: 20px;
        margin-top: 40px;
    }

    .product-development {
        font-size: 18px;
    }

    .service-section-image {
        display: none;
    }

    .animated-circle {
        display: none;
    }

    .brand-consulting,
    .research-development,
    .product-efficiency,
    .quality-control,
    .distribution {
        margin-left: 0;
        font-size: 32px;
        line-height: normal;
    }
}

/* 매우 작은 화면을 위한 추가 스타일 */
@media (max-width: 480px) {
    .when-you-need-us {
        font-size: 28px;
    }

    .brand-consulting,
    .research-development,
    .product-efficiency,
    .quality-control,
    .distribution {
        font-size: 24px;
        margin-top: 15px;
    }
}