:root {
    --primary-color: #4a90e2;
    --text-color: #333333;
    --background-color: rgba(255, 255, 255, 0.9);
    --card-background: rgba(255, 255, 255, 0.9);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
}

body {
    position: relative;
    background-color: #000; /* 비디오가 로드되지 않았을 때를 대비한 배경색 */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 어두운 오버레이 */
}

.section {
    position: relative;
    z-index: 1; /* 비디오 위에 콘텐츠가 보이도록 */
}

body::before {
    content: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gnb {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.gnb .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.gnb ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.gnb ul li {
    margin-left: 2rem;
}

.gnb ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.gnb ul li a.special {
    color: #2d69b1 !important; /* Ensures the text color is applied */
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.section {
    position: relative;
    padding: 6rem 0;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--text-color);
    background-color: var(--card-background);
    padding: 4rem; /* 패딩을 2rem에서 3rem으로 증가 */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 1200px; /* 최대 너비 설정 */
    margin: 0 auto; /* 가운데 정렬 */
    width: 90%; /* 모바일 화면에서의 반응형 너비 */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    width: 45%;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

#tracking-form {
    display: flex;
}

#tracking-form input {
    flex-grow: 1;
    margin-right: 0.5rem;
}

#quote-button {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3a7bd5;
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.mission, .vision {
    flex: 1;
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.mission i, .vision i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission h3, .vision h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mission p, .vision p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-card {
    background-color: var(--card-background);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.location-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.map-container {
    margin-bottom: 0.6rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#google-map {
    width: 100%;
    height: 450px;
    border: none;
}

.location-details-card {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 0.6rem;
    text-align: center; /* 텍스트 중앙 정렬 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 수직 중앙 정렬 */
    min-height: 60px; /* 카드의 최소 높이 설정 (필요에 따라 조정) */
}

#location-details, #location-contact {
    margin: 0;
    line-height: 1.5; /* 줄 간격 조정 */
    text-align: center; /* 모든 텍스트 중앙 정렬 */
}

#location-details {
    font-weight: bold;
    margin-bottom: 0.5rem; /* 주소와 전화번호 사이 간격 */
}

#location-contact {
    font-weight: normal; /* 전화번호는 굵지 않게 */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer .container {
    max-width: 800px; /* 푸터 내용의 최대 너비 제한 */
}

footer p {
    margin: 0 0 0.5rem 0;
}

footer .copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 1460px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mission-vision {
        flex-direction: column;
    }

    .mission, .vision {
        margin-bottom: 2rem;
    }

    .gnb .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gnb ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .gnb ul li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--background-color);
        padding: 1rem 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .feature-card {
        width: 100%;
        margin-bottom: 1rem;
    }
    .map-container {
        height: 300px;
    }
    .locations-grid {
        flex-direction: column;
    }

    .location-card {
        margin-bottom: 1rem;
    }

    #google-map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .location-details-card {
        padding: 1rem 0.5rem; /* 좌우 패딩 줄임 */
        min-height: 100px; /* 모바일에서 카드 높이 조정 */
    }

    #location-details, #location-contact {
        font-size: 0.9rem; /* 글자 크기 줄임 */
    }
}