/* 메인 페이지 스타일 */

/* 사이드바 스타일 */
.sidebar {
    position: absolute;
    width: 143px;
    height: 100%;
    left: 0;
    top: 0;
    background: #272727;
    z-index: 10;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 75px;
    height: auto;
    margin-bottom: 15px;
}

.logo-container {
    width: 220px;
    height: 170px;
    background-color: #272727;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .logo-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 9px;
    text-transform: uppercase;
    color: #B19777;
    margin-bottom: 5px;
}

.logo span {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #777777;
}

/* 소셜 미디어 링크 스타일 */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 24px;
    width: 100%;
    gap: 10px;
}

.vertical-divider {
    width: 1px;
    height: 70px;
    background: #373737;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #373737;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #FFFFFF;
    border-color: #555555;
}

/* 메인 네비게이션 스타일 */
.main-nav {
    position: absolute;
    right: 250px;
    top: 65px;
    z-index: 20;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-nav li a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 28px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: #B19777;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 화면 높이에 맞게 조정 */
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%; /* hero 섹션 높이와 일치 */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.5; /* 원하는 어둡기 정도로 조절 (0.3~0.7 사이 값 추천) */
    z-index: 2;
}

/* 히어로 코너 장식 */
.hero-corner {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 70px;
    height: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 21;
}

.hero-corner3 {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 70px;
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 21;
}

/* 슬라이더 */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

/* 슬라이드 배경 */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%; /* 슬라이더 높이와 일치 */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%; /* hero 섹션 높이와 일치 */
    background: #000000;
    opacity: 0.4;
    z-index: 2;
}

/* 컨텐츠 */
.hero-content {
    position: absolute;
    width: 631px;
    right: 405px;
    top: 350px;
    text-align: right;
    z-index: 10;
}

.heading-1 {
    width: 617px;
    height: 130px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 65px;
    display: flex;
    align-items: center;
    text-align: right;
    letter-spacing: 15px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.body-text {
    width: 436px;
    margin-top: 20px;
    margin-left: auto;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 18px;
    line-height: 32px;
    text-align: right;
    color: #FFFFFF;
}

.cta-button {
    display: inline-flex;
    padding: 12px 25px;
    margin-top: 30px;
    border: 1px solid #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* 슬라이더 컨트롤 */
.slider-controls {
    position: absolute;
    left: 235px;
    bottom: 100px; /* 위치 상향 조정 */
    display: flex;
    z-index: 20;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 텍스트 애니메이션 */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide.active .heading-1.animate-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
    font-size: 30px;
}

.slide.active .body-text.animate-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .cta-button.animate-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* About 섹션 스타일 */
.about-section {
    position: relative;
    width: 1140px;
    height: auto;
    margin: 100px auto 0;
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-section .container {
    position: relative;
    width: 550px;
    margin-left: 15px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 50px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.section-title span {
    color: #B19777;
    margin-left: 15px;
}

.about-text p {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
    margin-bottom: 20px;
}

.about-image {
    position: relative;
    width: 505px;
    height: 345px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    transition: transform 0.4s ease;  부드러운 변화를 위한 트랜지션 추가 */
}

.about-image:hover img {
    transform: scale(1); /* 호버 시 이미지 크기를 95%로 줄임 */
}

.image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #323232;
    padding: 20px 40px;
    text-align: center;
    z-index: 2; /* 캡션이 이미지 위에 표시되도록 z-index 설정 */
}

.image-caption span {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* 페이지 전체 세로 선 */
.page-border:before,
.page-border:after,
.page-border .line-left,
.page-border .line-right {
    content: "";
    position: fixed;
    width: 1px;
    height: 100vh;
    background-color: #323232;
    top: 0;
    z-index: -10;
}

.page-border:before {
    left: calc(50% - 570px); /* 첫 번째 세로 선 */
}

.page-border:after {
    left: calc(50% - 190px); /* 두 번째 세로 선 */
}

.page-border .line-left {
    left: calc(50% + 190px); /* 세 번째 세로 선 */
}

.page-border .line-right {
    left: calc(50% + 570px); /* 네 번째 세로 선 */
}

/* Projects 섹션 스타일 */
.projects-section {
    position: relative;
    width: 1140px;
    margin: 100px auto;
    padding: 100px 0;
}

.section-title-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.section-title-center h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 50px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
}

.section-title-center h2 span {
    color: #B19777;
    margin-left: 15px;
}

/* 프로젝트 그리드 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 75px;
    margin-bottom: 60px;
}

/* 프로젝트 아이템 */
.project-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 90px 90px;
}

.project-image {
    width: 455px;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item:hover .project-image img {
    transform: scale(0.95);
}

.project-info {
    position: absolute;
    bottom: 89px;
    left: 9.17%;
    background: #272727;
    padding: 20px;
    width: 200px;
    height: 100px;
    z-index: 1;
}

.project-category {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 23px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #B19777;
    display: block;
    margin-bottom: 10px;
}

.project-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* 더 로드 버튼 */
.load-more-button {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-load-more {
    background: #B19777;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000000;
    padding: 12px 30px;
    border: 1px solid #B19777;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: transparent;
    color: #B19777;
}

/* Services 섹션 스타일 */
.services-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 1140px;
    max-width: 1140px;
    gap: 20px;
    padding: 10px 10px 40px;
}

.service-item {
    width: 360px;
    height: 329px;
    padding: 60px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.service-content {
    position: relative;
    width: 300px;
    height: 209px;
}

.service-icon {
    position: absolute;
    width: 60px;
    height: 42px;
    top: calc(50% - 42px/2 - 83.5px);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.7) sepia(1) saturate(1.5) hue-rotate(30deg); /* 금색으로 변환 */
}

.service-title {
    position: absolute;
    top: 62px;
    left: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.service-description {
    position: absolute;
    width: 299px;
    top: 124px;
    left: 0;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
}

.service-divider {
    position: absolute;
    width: 50px;
    height: 1px;
    left: 0;
    bottom: 107px;
    background: rgba(255, 255, 255, 0.1);
}

.service-number {
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 40px;
    color: rgba(255, 255, 255, 0.1);
}

/* Contact Us 섹션 스타일 */
.contact-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    width: 1140px;
    max-width: 1140px;
    padding: 40px 10px;
}

.contact-info-column {
    width: 350px;
    position: relative;
}

.contact-subtitle {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #B19777;
    margin-bottom: 20px;
}

.contact-text {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
    margin-bottom: 20px;
}

.contact-detail {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-label {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #B19777;
    margin-right: 5px;
}

.contact-link {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #B19777;
}

/* Contact Us 섹션 스타일 */
.contact-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    width: 1140px;
    max-width: 1140px;
    padding: 40px 10px;
}

.contact-info-column {
    width: 350px;
    position: relative;
}

.contact-subtitle {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #B19777;
    margin-bottom: 20px;
}

.contact-text {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
    margin-bottom: 20px;
}

.contact-detail {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-label {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #B19777;
    margin-right: 5px;
}

.contact-link {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #B19777;
}

/* 문의 양식 스타일 */
.contact-form-column {
    width: 360px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 8px 13px 3px;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 15px;
    line-height: 20px;
    color: #ffffff;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777777;
}

.contact-form textarea {
    height: 80px;
    resize: none;
}

.submit-button {
    background: #B19777;
    border: 1px solid #B19777;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000000;
    padding: 12px 30px;
    cursor: pointer;
    width: 120px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: transparent;
    color: #B19777;
}

/* 반응형 미디어 쿼리 - 인덱스 페이지 */

/* 태블릿 (768px) */
@media screen and (max-width: 768px) {
    /* 페이지 테두리 제거 */
    .page-border:before,
    .page-border:after,
    .page-border .line-left,
    .page-border .line-right {
        display: none;
    }
    
    /* 사이드바 조정 */
    .sidebar {
        width: 100%;
        height: 80px;
        position: relative;
        display: none; /* 모바일에서는 사이드바 숨김 */
    }
    
    /* 히어로 섹션 */
    .hero {
        height: 80vh;
    }
    
    .hero-content {
        width: 100%;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 30px;
        text-align: center;
    }
    
    .heading-1 {
        width: 100%;
        font-size: 36px;
        line-height: 48px;
        letter-spacing: 8px;
        text-align: center;
        justify-content: center;
        height: auto;
    }
    
    .body-text {
        width: 100%;
        margin-left: 0;
        text-align: center;
        font-size: 16px;
        line-height: 28px;
    }
    
    .slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }
    
    /* 코너 장식 삭제 */
    .hero-corner, .hero-corner3 {
        display: none;
    }
    
    /* About 섹션 */
    .about-section {
        width: 100%;
        padding: 60px 20px;
        flex-direction: column;
    }
    
    .about-section .container {
        width: 100%;
        margin-left: 0;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 32px;
        letter-spacing: 8px;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    /* Services 섹션 */
    .services-section {
        padding: 60px 20px;
    }
    
    .services-container {
        width: 100%;
        gap: 40px;
    }
    
    .service-item {
        width: 100%;
        max-width: 360px;
        padding: 40px 20px;
    }
    
    .service-content {
        width: 100%;
    }
    
    .service-description {
        width: 100%;
    }
    
    /* Contact 섹션 */
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-container {
        width: 100%;
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info-column, .contact-form-column {
        width: 100%;
    }
}

/* 모바일 (480px) */
@media screen and (max-width: 480px) {
    /* 히어로 섹션 */
    .hero {
        height: 70vh;
    }
    
    .heading-1 {
        font-size: 28px;
        line-height: 38px;
        letter-spacing: 6px;
    }
    
    .body-text {
        font-size: 14px;
        line-height: 24px;
        margin-top: 15px;
    }
    
    /* About 섹션 */
    .section-title {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 24px;
    }
    
    .image-caption {
        padding: 15px 30px;
    }
    
    /* Services 섹션 */
    .section-title-center h2 {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .service-title {
        font-size: 14px;
        letter-spacing: 4px;
    }
    
    .service-description {
        font-size: 14px;
        line-height: 24px;
    }
    
    .btn-load-more {
        font-size: 14px;
        padding: 10px 25px;
    }
    
    /* Contact 섹션 */
    .contact-subtitle {
        font-size: 15px;
    }
    
    .contact-text, .contact-label, .contact-link {
        font-size: 14px;
        line-height: 24px;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* 작은 모바일 (320px) */
@media screen and (max-width: 320px) {
    /* 히어로 섹션 */
    .heading-1 {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 4px;
    }
    
    .body-text {
        font-size: 13px;
        line-height: 22px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    /* About 섹션 */
    .section-title {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .about-text p {
        font-size: 13px;
        line-height: 22px;
    }
    
    .image-caption {
        padding: 12px 20px;
    }
    
    .image-caption span {
        font-size: 11px;
        letter-spacing: 3px;
    }
    
    /* Services 섹션 */
    .section-title-center h2 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .service-title {
        font-size: 13px;
        letter-spacing: 3px;
    }
    
    .service-description {
        font-size: 13px;
        line-height: 22px;
    }
    
    /* Contact 섹션 */
    .contact-subtitle, .contact-text, .contact-label, .contact-link {
        font-size: 13px;
        line-height: 22px;
    }
}