:root {
    /* Colors */
    --color-primary: #0069d9;
    --color-primary-light: #007bff;
    --color-primary-dark: #0056b3;
    --color-secondary: #6c757d;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --color-gray-dark: #495057;
    --color-danger: #dc3545;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    /* Fonts */
    --font-family-base: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacer: 1rem;
    --spacer-2: calc(var(--spacer) * 1.5);
    --spacer-3: calc(var(--spacer) * 3);
    --spacer-4: calc(var(--spacer) * 4);
    --spacer-5: calc(var(--spacer) * 5);
    
    /* Border radius */
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-pill: 50rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-md: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    
    /* Transition */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-index */
    --zindex-dropdown: 1000;
    --zindex-sticky: 1020;
    --zindex-fixed: 1030;
    --zindex-modal-backdrop: 1040;
    --zindex-modal: 1050;
    --zindex-popover: 1060;
    --zindex-tooltip: 1070;
    --zindex-toast: 1080;
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacer);
    color: var(--color-dark);
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: calc(var(--spacer) * 0.5);
    color: inherit;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacer);
    display: inline-block;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: var(--spacer-3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Section Padding */
.section-py {
    padding: var(--spacer-5) 0;
    position: relative;
}

@media (max-width: 768px) {
    .section-py {
        padding: var(--spacer-3) 0;
    }
}

/* Background Colors */
.bg-light {
    background-color: var(--color-light) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

/* Buttons */
.btn {
    font-weight: var(--font-weight-medium);
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
    background-color: transparent;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navbar */
.navbar {
    padding: var(--spacer) 0;
    transition: var(--transition);
    z-index: var(--zindex-fixed);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--color-white) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-dark) !important;
}

.navbar.scrolled .navbar-brand img {
    filter: brightness(0);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: var(--spacer-2);
}

.navbar-brand img {
    height: auto;
    transition: var(--transition);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    color: var(--color-white) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--color-white);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover:not(.dropdown-toggle)::after,
.nav-link:focus:not(.dropdown-toggle)::after,
.nav-link.active:not(.dropdown-toggle)::after {
    transform: scaleX(1);
}

.navbar.scrolled .nav-link:not(.dropdown-toggle)::after {
    background-color: var(--color-primary);
}

/* 드롭다운 메뉴 스타일 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    border: none;
    padding: 0.5rem 0;
    z-index: var(--zindex-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar:not(.scrolled) .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar:not(.scrolled) .dropdown-item {
    color: var(--color-dark) !important;
}

.navbar:not(.scrolled) .dropdown-item:hover,
.navbar:not(.scrolled) .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-primary) !important;
}

.navbar.scrolled .dropdown-menu {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

/* 토글 버튼 색상 수정 */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    z-index: calc(var(--zindex-fixed) + 1);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Carousel */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    height: 100vh;
    width: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
    transition: transform 8s ease-in-out;
    will-change: transform;
}

.carousel-item.active .slide-image {
    transform: scale(1);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    width: 100%;
    padding: 0 15px;
    z-index: 1;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacer);
    line-height: 1.3;
    color: white;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.carousel-indicators {
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 1;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 100% 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0);
    transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}

.card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.card-text {
    color: var(--color-gray);
    margin-bottom: 1.25rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: transparent;
}

/* Image Cards */
.image-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 350px;
    width: 100%;
}

.image-card-sm {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    width: 100%;
}

.image-card img,
.image-card-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    will-change: transform;
}

.image-card:hover img,
.image-card-sm:hover img {
    transform: scale(1.05);
}

.image-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--color-white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.image-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 400px;
    width: 100%;
}

.testimonial-card-sm {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 190px;
    width: 100%;
}

.testimonial-card img,
.testimonial-card-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--color-white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.testimonial-text {
    margin-bottom: 1rem;
}

.testimonial-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.author-rating {
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 더 어두운 오버레이 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content .container {
    height: 100%;
}

.video-content .row {
    height: 100%;
}

.video-content .section-subtitle {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.video-content .section-title {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-content .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .video-content .section-title {
        font-size: 2rem;
    }
    
    .video-content .section-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .video-section {
        height: 80vh;
    }
    
    .video-content .section-title {
        font-size: 1.8rem;
    }
    
    .video-content .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .video-section {
        height: 70vh;
    }
    
    .video-content .section-title {
        font-size: 1.5rem;
    }
    
    .video-content .section-description {
        font-size: 0.9rem;
    }
}

/* Map */
.location-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    background-color: var(--color-gray-light);
}

/* Forms */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-light);
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-label {
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--color-danger);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--color-success);
}

.invalid-feedback {
    display: none;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback {
    display: block;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    margin-left: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
}

.footer a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: var(--spacer-2) 0;
}

/* Utility Classes */
.transition-all {
    transition: var(--transition);
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.rounded-3 {
    border-radius: var(--border-radius-lg) !important;
}

.text-center {
    text-align: center !important;
}

.mt-3 {
    margin-top: var(--spacer) !important;
}

.mb-3 {
    margin-bottom: var(--spacer) !important;
}

.mb-4 {
    margin-bottom: var(--spacer-2) !important;
}

.mb-5 {
    margin-bottom: var(--spacer-3) !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.section-content.visible {
    opacity: 1;
}

/* 접근성을 위한 스크린 리더 전용 클래스 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Alert Modal */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--zindex-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.alert-modal-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.alert-modal.show .alert-modal-content {
    transform: translateY(0);
}

.alert-modal p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .video-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-header {
        text-align: center;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .video-container {
        height: 300px;
    }
    
    .image-card {
        height: 300px;
    }
    
    .testimonial-card {
        height: 350px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}