/* 기본 스타일 */
body, html {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

/* 상단 고정 네비게이션 바 */
header, footer {
    background: linear-gradient(90deg, #333, #555); /* 어두운 회색 계열 그라데이션 */
    color: white;
    padding: calc(14px = 2px) 20px;
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 1000;
}
/* 헤더 설정 (상단 고정) */
header {
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 푸터 설정 (하단 고정) */
footer {
    bottom: 0;
    text-align: center;
}
/* 네비게이션 스타일 */
nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

/* 메뉴바 마우스 오버 효과 */
nav ul li a:hover {
    color: #ffcc00;
    transform: scale(1.1);
}
/* 메인 페이지 스타일 */
#main {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 배경 비디오 - 가로 화면 크기에 꽉 차도록 설정 */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 메인 페이지 텍스트 - 영상 위에 오버레이 */
.main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    padding: 20px;
    border-radius: 10px;
}

.main-text h2 {
    font-size: 2.5em;
    margin: 0;
}

.main-text p {
    font-size: 1.2em;
}

/* 포트폴리오 섹션 */
#portfolio {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('img/004.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

/* 포트폴리오 그리드 2×3 배열 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 80%;
}

/* 포트폴리오 아이템 */
.portfolio-item {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* 비디오 스타일 */
.portfolio-item video {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* 제목 및 설명 */
.portfolio-item h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.portfolio-item p {
    font-size: 1em;
    color: #666;
}

/* 모바일 반응형 (1×6 배열) */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, auto);
    }
}
/* 현장 스케치 섹션 */
#onsite {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('img/010.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

/* 현장 스케치 그리드 */
.onsite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 90%;
    max-width: 1200px;
}

/* 현장 스케치 아이템 */
.onsite-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

/* 현장 스케치 이미지 */
.onsite-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* 마우스 오버 또는 클릭 시 나타나는 제목 & 설명 */
.onsite-item .onsite-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* PC: 마우스 오버 시 정보 표시 */
.onsite-item:hover .onsite-info {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* 모바일 클릭 시 활성화 */
.onsite-item.active .onsite-info {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* 반응형 - 모바일에서는 1×3 정렬 */
@media screen and (max-width: 768px) {
    .onsite-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(9, auto);
    }
}

/* 문의하기 섹션 */
#contact {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('img/002.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}
/* 문의하기 박스 */
.contact-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 1000px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* "문의하기" 제목 스타일 */
.contact-box h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #333, #666);
    color: white;
    padding: 15px;
    border-radius: 10px;
}
/* 가격 책정 폼 */
.price-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;  /* 좌우 여백 동일하게 조정 */
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
}

/* 개별 박스 스타일 */
.price-box {
    background: rgba(255, 255, 255, 0.9);
    padding-right: 30px;
	padding-left: 10px;
	padding-bottom: 30px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

/* 마우스 오버 시 폼 확대 및 파스텔톤 배경 변경 */
.price-box:hover,
.price-box.active {
    transform: scale(1.1);
    background: #ffebcd; /* 파스텔톤 배경 (피치색) */
}

/* 제목 스타일 */
.price-box h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

/* 입력 필드 스타일 */
.price-box textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-size: 1em;
}
/* 연락처 정보 */
.contact-info {
    margin-top: 30px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* 연락처 개별 요소 */
.contact-info p {
    margin: 10px 0;
}

/* 반응형 (모바일 1열 정렬) */
@media screen and (max-width: 768px) {
    .price-form {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact-box {
        width: 95%;
    }

    .contact-box h2 {
        font-size: 1.8em;
    }
}

/* 모바일 클릭 시 활성화 */
@media screen and (max-width: 768px) {
    .price-box {
        cursor: pointer;
    }

    .price-box.active {
        transform: scale(1.2);
        background: #cfe2f3; /* 파스텔톤 블루 */
    }
}
/* 반응형 (모바일 1열 정렬) */
@media screen and (max-width: 768px) {
    .price-form {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 모바일 클릭 시 활성화 */
@media screen and (max-width: 768px) {
    .price-box {
        cursor: pointer;
    }

    .price-box.active {
        transform: scale(1.2);
        background: #cfe2f3; /* 파스텔톤 블루 */
    }
}

/* 푸터 스타일 */
footer {
    bottom: 0;
    text-align: center;
    padding: 15px;
}

/* 이메일 링크 */
footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* 위로 가기 버튼 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 204, 0, 0.8); /* 노란색 반투명 */
    color: #333;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* 기본적으로 숨김 */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* 마우스 오버 시 스타일 */
#back-to-top:hover {
    background: rgba(255, 170, 0, 1);
    transform: scale(1.1);
}

/* 반응형 (모바일) */
@media screen and (max-width: 768px) {
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

