/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 모든 요소에 테두리를 포함한 크기 계산 */
}

.container {
    margin: 0 auto; /* 좌우 중앙 정렬 */
    padding: 0 10px; /* 화면이 좁을 때 최소 여백 */
    width: 100%;
    height: auto; /* 높이를 콘텐츠에 맞게 확장 */
    overflow: visible; /* 콘텐츠 넘침 방지 */
    position: relative; /* 위치 조정 */
}

body {
    margin: 0;
    padding: 0;
    padding-top: 100px; /* 네비게이션 바 높이만큼 본문 여백 추가 */
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, #f8f9ff, #f8f9ff);    
    overflow-x: hidden; /* 가로 스크롤 방지 */
    display: block; /* 콘텐츠가 늘어나도 적용 */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: auto; /* 높이를 콘텐츠에 맞게 확장 */
}

/* 네비게이션 바 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 로고 */
.navbar-left .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* 메뉴 링크 */
.menu-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end; /* 항상 오른쪽 정렬 */
    align-items: center; /* 세로축 중앙 정렬 */
    flex: 1;
}

.menu-links .nav-link {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px; /* 간격 추가 */
    transition: color 0.3s ease;
}

.menu-links .nav-link:hover {
    color: #000;
}

/* 연락 버튼 */
.contact-btn {
    background-color: #000;
    color: #fff;
    
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: #333;
    transform: scale(1.1);
}

/* 햄버거 버튼 (SVG 스타일) */
.menu-icon {
    display: none; /* PC 화면에서 숨기기 */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-svg {
    width: 30px; /* 삼선 크기 */
    height: 30px; /* 삼선 높이 */
    overflow: visible;
}

.hamburger-svg rect {
    fill: #333;
    transition: all 0.3s ease;
}

/* 햄버거 버튼 활성화 (X 표시) */
.menu-icon.active .line1 {
    transform: rotate(45deg) translate(7px, 20px); /* 첫 번째 선: 대각선 오른쪽 아래로 */
    transform-origin: center;
}

.menu-icon.active .line2 {
    opacity: 0; /* 두 번째 선 숨기기 */
}

.menu-icon.active .line3 {
    transform: rotate(-45deg) translate(7px, -20px); /* 세 번째 선: 대각선 왼쪽 위로 */
    transform-origin: center;
}

/* 드롭다운 메뉴 */
.dropdown-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: transparent; /* 불투명 배경 */
    backdrop-filter: blur(15px); /* 블러 효과 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; /* 수평 중앙 정렬 */
    z-index: 999;
    text-align: center; /* 텍스트 중앙 정렬 */
    transition: top 0.5s ease; /* 부드러운 애니메이션 */
    padding: 20px; /* 드롭다운 내부 패딩 */
    border-radius: 0 0 20px 20px; /* 아래쪽 모서리 둥글게 */
    overflow: hidden; /* 스크롤 방지 */
    padding: 0 20px; /* 내부 간격을 유지하면서 버튼이 넘치지 않도록 조정 */
}

/* 드롭다운 메뉴 활성화 */
.dropdown-menu.show {
    top: 60px; /* 네비게이션 바 바로 아래 */
}

/* 드롭다운 메뉴 링크 */
.dropdown-menu .nav-link {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.dropdown-menu .nav-link:hover {
    color: #000;
}

/* 드롭다운 메뉴 연락 버튼 */
.dropdown-menu .contact-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 15px;
    width: 100%; /* 버튼을 양쪽 끝까지 확장 */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    overflow: hidden; /* 스크롤 방지 */
    box-sizing: border-box; /* 패딩 포함 */
    border-radius: 20px;
    margin-bottom: 30px; /* 아래쪽 간격 추가 */
}

.dropdown-menu .contact-btn:hover {
    background-color: #555;
    transform: scale(1.01); /* 크기 살짝 확대 */
}

/* 초기 상태: 페이드인 애니메이션 */
.fade-in-up {
    opacity: 0; /* 투명하게 설정 */
    transform: translateY(30px); /* 아래로 30px 이동 */
    transition: opacity 1s ease, transform 1s ease; /* 1초 동안 애니메이션 */
}

/* 애니메이션 종료 후 상태 */
.fade-in-up.show {
    opacity: 1; /* 불투명하게 설정 */
    transform: translateY(0); /* 원래 위치로 이동 */
}

/* 기본 스타일 */
.flip-in-item {
    opacity: 0; /* 초기 상태 투명 */
    transform: rotateX(90deg); /* 시계처럼 뒤집힌 상태 */
    transform-origin: top; /* 플립 시작 지점 */
    transition: opacity 0.8s ease, transform 0.8s ease; /* 애니메이션 효과 */
}

/* 활성화된 상태 */
.flip-in-item.show {
    opacity: 1; /* 불투명해짐 */
    transform: rotateX(0); /* 정상 상태 */
}

/* 전체 섹션 */
.project-overview {
    max-width: 1200px; /* 전체 콘텐츠 최대 너비 */
    margin: 0 auto;
    padding: 50px 20px; /* 좌우 여백과 상하 간격 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 왼쪽 정렬 */
    gap: 50px; /* 텍스트, 디테일, 이미지 간의 간격 */
}

/* 왼쪽 텍스트 */
.project-text {
    width: 100%; /* 화면 꽉 차게 */
    text-align: left;
}

.project-type {
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
    margin-bottom: 20px;
}

/* 중앙 정렬된 디테일 */
.project-details {
    display: flex;
    justify-content: center; /* 중앙 정렬 */
    align-items: center;
    gap: 60px; /* 항목 간 간격 */
    width: 100%; /* 부모 크기에 맞춤 */
    text-align: center; /* 각 항목 중앙 정렬 */
}

.detail-item h3 {
    font-size: 1.2rem; /* 제목 크기 증가 */
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detail-item p {
    font-size: 1.5rem; /* 내용 크기 증가 */
    font-weight: 600; /* 텍스트 두께 증가 */
    color: #333;
    margin: 0;
}

.detail-item p a {
    font-size: 1.5rem; /* 링크 텍스트 크기 증가 */
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.detail-item p a:hover {
    text-decoration: underline;
}

/* 이미지 섹션 */
.image-section {
    width: 100%; /* 화면에 꽉 차도록 설정 */
    padding: 40px 20px; /* 내부 여백 */
    background: linear-gradient(180deg, #f8f9ff, #fdeef4); /* 그라데이션 배경 */
    border-radius: 20px; /* 둥근 모서리 */
    margin: 50px 0; /* 섹션 간격 */
}

/* 이미지 컨테이너 */
.image-container {
    display: flex; /* 가로 방향 정렬 */
    flex-wrap: wrap; /* 줄바꿈 허용 */
    gap: 20px; /* 이미지 간 간격 */
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 세로 정렬 */
    width: 100%; /* 화면에 꽉 차도록 설정 */
    height: 60vh; /* 높이를 화면 높이의 60%로 설정 */
    border-radius: 50px;
    margin: 50px 0; /* 위아래 여백 추가 */
}

/* 이미지 스타일 */
.image-container img {
    width: 200px; /* 이미지 너비 고정 */
    height: auto; /* 비율 유지 */
    border-radius: 10px; /* 둥근 모서리 */
    object-fit: cover; /* 이미지 크기에 맞춤 */
    transition: transform 0.3s ease; /* hover 시 부드러운 확대 효과 */
}

/* 이미지 hover 효과 */
.image-container img:hover {
    transform: scale(1.1); /* 확대 효과 */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* 그림자 강조 */
}
/* 전체 섹션 스타일 */
.main-detail {
    width: 100%; /* 화면에 꽉 차게 */
    padding: 40px; /* 상하좌우 여백 */
    text-align: left; /* 왼쪽 정렬 */
    color: #000;
}

/* 제목 스타일 */
.main-detail-title {
    font-size: 3rem; /* 더 큰 폰트 크기 */
    font-weight: bold;
    margin-bottom: 40px; /* 아래 여백 */
    width: 100%;
}

/* 프로젝트 설명 */
.main-detail-overview {
    font-size: 1.5rem; /* 큰 설명 글자 크기 */
    line-height: 1.8;
    color: #555;
    margin-bottom: 60px; /* 아래 여백 */
    width: 100%;
}

/* 세부 정보 섹션 */
.main-detail-items {
    display: block; /* 각 항목을 아래로 배치 */
    width: 100%; /* 섹션 전체 폭 */
}

/* 세부 정보 개별 항목 */
.main-detail-item {
    margin-bottom: 40px; /* 항목 간 간격 */
}

/* 세부 항목 제목 */
.main-detail-item-title {
    font-size: 1.2rem; /* 항목 제목 크기 */
    font-weight: bold;
    margin-bottom: 10px; /* 제목과 내용 사이 간격 */
    color: #000;
    width: 100%;
}

/* 세부 항목 내용 */
.main-detail-item-content {
    font-size: 1.2rem; /* 항목 내용 크기 */
    line-height: 1.6;
    color: #555;
    width: 100%;
}

/* 전체 컨테이너 */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

/* 슬라이드 영역 */
.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* 각 슬라이드 */
.slide {
    flex: 0 0 calc(50% - 10px); /* 두 개 슬라이드 표시 */
    margin: 0 5px;
    overflow: hidden; /* 박스 안의 이미지가 깔끔하게 잘리도록 설정 */
    visibility: visible; /* 바깥쪽 슬라이드도 항상 보이도록 설정 */
}

/* 이미지 */
.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 그라데이션 박스 */
.gradient-box {
    background: linear-gradient(180deg, #fdeef4, #f8f9ff);
    border-radius: 40px;
    padding: 40px;
    padding-top: 40px; /* 위쪽 패딩 */
    padding-bottom: 100px; /* 아래쪽 패딩 */
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* 텍스트 스타일 */
.gradient-box h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.gradient-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* 화살표 버튼 */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Footer Section */
.footer-section {
    background-color: #ffffff;
    padding: 60px 20px;
    border-radius: 50px 50px 0 0;
    margin-left: calc(-50vw + 50%); /* 부모 중앙 정렬 기준으로 푸터를 확장 */
    margin-right: calc(-50vw + 50%); /* 우측으로 뷰포트 기준 확장 */
    width: 100vw; /* 뷰포트 전체 너비 */

    box-sizing: border-box; /* 패딩 포함 크기 계산 */

}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    text-decoration: none;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #05051d;
}

.footer-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: #555;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #05051d;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 90%; /* 모바일에서는 하나의 이미지만 보이도록 */
    }
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .menu-links {
        display: none; /* 메뉴 숨기기 */
    }

    .menu-icon {
        display: block; /* 모바일에서 햄버거 버튼 표시 */
    }
}

/* 반응형 디자인: 모바일 뷰 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem; /* 글자 크기 줄이기 */
        line-height: 1.4; /* 모바일에서 줄 간격 */
        margin-bottom: 15px; /* 아래 간격 줄이기 */
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        min-width: 100%;
    }
}

/* 반응형 스타일: 모바일 (화면 너비 768px 이하) */
@media (max-width: 768px) {
    /* 전체 섹션 */
    .project-overview {
        padding: 30px 10px; /* 패딩 줄이기 */
        gap: 30px; /* 콘텐츠 간격 줄이기 */
    }

    /* 왼쪽 텍스트 */
    .project-text {
        text-align: left; /* 텍스트 중앙 정렬 */
        padding: 30px 10px; /* 패딩 줄이기 */
    }

    .project-type {
        font-size: 0.8rem; /* 폰트 크기 줄이기 */
        text-align: left; /* 텍스트 중앙 정렬 */

    }

    .project-title {
        font-size: 2rem; /* 제목 크기 줄이기 */
        line-height: 1.4;
    }

    /* 중앙 정렬된 디테일 */
    .project-details {
        flex-direction: row; /* 세로 정렬 */
        gap: 20px; /* 항목 간 간격 줄이기 */
    }

    .detail-item h3 {
        font-size: 1rem; /* 제목 크기 줄이기 */
    }

    .detail-item p {
        font-size: 1rem; /* 내용 크기 줄이기 */
    }

    .detail-item p a {
        font-size: 1rem; /* 링크 텍스트 크기 줄이기 */
    }

    /* 이미지 섹션 */
    .image-section {
        padding: 20px 10px; /* 패딩 줄이기 */
    }

    .image-container {
        flex-direction: row; /* 세로 정렬 */
        gap: 20px; /* 이미지 간 간격 */
        height: auto; /* 높이 자동 조정 */
    }

    .image-container img {
        width: 100%; /* 이미지 너비 화면에 맞춤 */
        max-width: 400px; /* 최대 너비 제한 */
    }

    /* 본문 내용 */
    .main-detail {
        padding: 20px 10px; /* 패딩 줄이기 */
        text-align: left; /* 본문 텍스트 왼쪽 정렬 */
    }

    .main-detail-title {
        font-size: 2rem; /* 제목 크기 줄이기 */
        margin-bottom: 20px; /* 여백 줄이기 */
    }

    .main-detail-overview {
        font-size: 1rem; /* 본문 내용 크기 줄이기 */
        line-height: 1.5; /* 줄 간격 */
    }

    /* 세부 정보 섹션 */
    .main-detail-item {
        margin-bottom: 20px; /* 항목 간 간격 줄이기 */
    }

    .main-detail-item-title {
        font-size: 1rem; /* 세부 항목 제목 크기 줄이기 */
    }

    .main-detail-item-content {
        font-size: 0.9rem; /* 세부 항목 내용 크기 줄이기 */
        line-height: 1.4; /* 줄 간격 줄이기 */
    }

    /* 캐러셀 */
    .carousel-container {
        margin-top: 20px; /* 위쪽 간격 */
    }

    .slide {
        margin: 0 auto; /* 중앙 정렬 */
    }

    .gradient-box {
        padding: 20px; /* 내부 여백 줄이기 */
    }

    .gradient-box h3 {
        font-size: 1.2rem; /* 제목 크기 줄이기 */
    }

    .gradient-box p {
        font-size: 0.9rem; /* 본문 내용 크기 줄이기 */
        line-height: 1.4;
    }

    /* 화살표 버튼 */
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
