@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 기본 변수 및 재설정 */
:root {
    --primary-color: rgb(245, 163, 12);
    --secondary-color: #343434;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
    --accent-color: #2a2a2a;
    --gradient-start: #e09c00;
    --gradient-middle: #7850c1;
    --gradient-end: #3ff2ec;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* 이벤트 팝업 모달 */

.event-popup {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 500px;
    max-width: calc(100vw - 60px);
    min-height: 500px;
    height: auto;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.8),
                8px 8px 15px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-sizing: border-box;    
}

.event-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);    
    pointer-events: auto;    
}

/* 이벤트 팝업 배경 오버레이 */
.event-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2999;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.event-popup-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.event-popup-content {
    width: 100%;
    min-height: 500px;
    position: relative;
    background: linear-gradient(135deg, rgba(168, 216, 255, 0.2) 0%, rgba(208, 232, 255, 0.2) 50%, rgba(240, 248, 255, 0.2) 100%);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 1;
}

.event-popup-content::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    filter: blur(40px);
}

.event-popup-content::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    bottom: 30%;
    left: 15%;
    filter: blur(30px);
}

.event-popup-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow: hidden;
}

.event-popup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.event-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.event-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26, 77, 122, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.event-dots .dot:hover {
    background: rgba(26, 77, 122, 0.6);
    transform: scale(1.2);
}

.event-dots .dot.active {
    background: #1a4d7a;
}

.event-popup-footer {
    background: #000;
    display: flex;
    height: 50px;
    position: relative;
    z-index: 1;
}

.event-close-day,
.event-close {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.event-close {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
    color: white;
    font-weight: 600;
    border-radius: 0;
}

.event-close:hover {
    background: linear-gradient(135deg, #ff8c00 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 163, 12, 0.4);
}

.event-close:active {
    transform: translateY(0);
}

.event-close-day {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.event-close-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .event-popup {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 400px;
        height: auto;
        min-height: 350px;
        max-height: 85vh;
    }

    .event-popup.show {
        transform: translate(-50%, -50%) scale(1);
    }

    .event-popup-content {
        min-height: 350px;
        max-height: 85vh;
    }

    .event-popup-body {
        padding: 15px;
        min-height: 250px;
    }

    .event-popup-footer {
        height: 45px;
    }

    .event-close-day,
    .event-close {
        font-size: 12px;
        padding: 10px;
    }

    .event-dots {
        bottom: 50px;
    }
}

/* 카탈로그 버튼 */
.catalog-button {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.catalog-button:hover {
    background: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 맨 위로 가기 버튼 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: #ff8c00;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 카탈로그 모달 */
.catalog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 피처 모달 */
.feature-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feature-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.95);
}

.feature-modal-content {
    position: relative;
    margin: 1% auto;
    width: 85%;
    max-width: 1000px;
    max-height: 98vh;
    padding: 30px;
    background-color: transparent;
    border-radius: 15px;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.feature-modal.show .feature-modal-content {
    transform: scale(1);
    opacity: 1;
}

.feature-close {
    position: absolute;
    top: 15px;
    right: 0px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.feature-close:hover {
    color: var(--primary-color);
}

.feature-modal-image-container {
    width: 100%;
    max-height: calc(98vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
}

.feature-modal-image-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    display: block;
    border-radius: 5px;
    margin: 0 auto;
    object-fit: contain;
}

.feature-card {
    cursor: pointer;
}

.catalog-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.95);
}

.catalog-modal-content {
    position: relative;
    margin: 1% auto;
    width: 95%;
    max-width: 1400px;
    max-height: 98vh;
    padding: 30px;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.catalog-modal.show .catalog-modal-content {
    transform: scale(1);
    opacity: 1;
}

.catalog-modal h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

.catalog-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.catalog-close:hover {
    color: var(--primary-color);
}

.catalog-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    flex: 1;
    min-height: 0;
}

.catalog-image-container {
    width: 85%;
    max-height: calc(98vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    box-sizing: border-box;
}

.catalog-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.catalog-counter {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 22px;
    font-weight: 600;
}

.catalog-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    aspect-ratio: 1;
}

.catalog-nav:hover {
    background: #ff8c00;
    transform: scale(1.1);
}

.catalog-nav:active {
    transform: scale(0.95);
}

/* 로더 스타일 */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 250px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-value {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.loading-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
}

/* 레이아웃 */
.app-container {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* 내비게이션 바 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    z-index: 100;
    backdrop-filter: blur(5px);
    background-color: rgba(10, 10, 10, 0.7);
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    transition: color var(--transition-speed) ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 내비게이션 링크 호버 효과 */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 모바일 메뉴 토글 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 히어로 섹션 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 17, 203, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 86, 136, 0.6) 0%, transparent 50%);
    opacity: 0.7;
    z-index: 0;
}

.hero-text {
    z-index: 10;
    max-width: 600px;
}

/* 제품 탭 스타일 */
.product-tabs {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    width: auto;
    max-width: 90%;
    box-sizing: border-box;
}

.tab-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    color: white;
    text-shadow: 0 5px 15px var(--shadow-color);
}

.hero-text h1 span {
    color: white;
}

.hero-text p {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px var(--shadow-color);
}

/* 버튼 스타일 */
.cta-button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

/* 캔버스 컨테이너 */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #ffb9cc, #945bbd, #498daf, #d3726d, #ffb84d, var(--gradient-middle), #ffa723 );
    animation: gradientBackground 15s ease infinite;
    background-size: 400% 400%;
    overflow: hidden;
    will-change: background-position;
    transform: translateZ(0);
    box-sizing: border-box;    
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#product-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-ui {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
}

.canvas-ui > * {
    pointer-events: auto;
}

.control-hint {
    font-size: 14px;
    font-weight: 300;
    padding: 10px 20px;
    background-color: rgba(42, 42, 42, 0.95);
    border-radius: 20px;
    position: relative;
    z-index: 20;
    contain: layout style paint;
}

.model-controls {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 20;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
}

.model-controls button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 21;
    contain: layout style paint;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-controls button i {
    color: #333;
    font-size: 1.2em;
}

.model-controls button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 섹션 공통 스타일 */
.features-section,
.gallery-section,
/*.partners-section,*/
.contact-section {
    position: relative;
    z-index: 10;
    background-color: var(--background-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.features-section {
    padding: 100px 40px 80px;
}

.gallery-section,
/*.partners-section,*/
.contact-section {
    padding: 100px 40px;
}

.features-section h2,
.gallery-section h2,
/*.partners-section h2,*/
.contact-section h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

/* 비디오 섹션 */
.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.local-video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #000;
    border: none;
}

/* 피처 섹션 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 10px;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 163, 12, 0.4),
                0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-card:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(245, 163, 12, 0.5);
}

.feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.feature-card p {
    font-size: 15px;
    font-weight: 200;
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

/* 갤러리 섹션 - 슬라이더 */
.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide.active .gallery-slide-image {
    transform: scale(1.05);
}

.gallery-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active .gallery-slide-overlay {
    transform: translateY(0);
}

.gallery-slide-overlay span {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: block;
    text-align: center;
}

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.8;
}

.gallery-slider-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(245, 163, 12, 0.5);
}

.gallery-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-slider-prev {
    left: 0;
}

.gallery-slider-next {
    right: 0;
}

.gallery-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(245, 163, 12, 0.6);
}

.gallery-dot.active::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
}

/* 파트너 섹션 (현재 미사용)
.partners-section {
    text-align: center;
}

.partners-subtitle {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.partners-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.partners-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--accent-color);
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.partner-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(245, 163, 12, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.partner-item:hover .partner-logo {
    filter: brightness(1.2);
    transform: scale(1.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-logo {
    max-width: 320px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
    filter: brightness(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-name {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: calc(100% - 40px);
    pointer-events: none;
}

.partner-item:hover .partner-name {
    opacity: 1;
    bottom: 20px;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.1s;
}
*/

/* 연락처 섹션 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-value {
    font-weight: 400;
    font-size: 16px;
}

/* 연락처 폼 */
.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
}

.submit-button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    margin-top: 10px;
    align-self: flex-start;
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.form-feedback {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: opacity var(--transition-speed) ease;
}

.form-feedback.is-info {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.form-feedback.is-success {
    border-color: rgba(72, 187, 120, 0.6);
    background-color: rgba(72, 187, 120, 0.1);
    color: #7cf2b8;
}

.form-feedback.is-error {
    border-color: rgba(255, 88, 88, 0.6);
    background-color: rgba(255, 88, 88, 0.1);
    color: #ff9a9a;
}

.form-fallback {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.form-fallback a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.form-fallback a:hover {
    text-decoration: none;
}

/* 푸터 */
.footer {
    padding: 80px 40px 40px;
    background-color: var(--secondary-color);
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

/* 갤러리 이미지 커서 변경 */
.gallery-image {
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.gallery-image:hover {
    transform: scale(1.03);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .catalog-button {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        top: 80px;
        right: 20px;
        font-size: 18px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .catalog-modal-content {
        width: 98%;
        padding: 20px;
        margin: 1% auto;
    }

    .catalog-modal h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .catalog-image-container {
        width: 95%;
        padding: 20px;
    }

    .catalog-counter {
        font-size: 18px;
    }

    .catalog-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }

    .feature-modal-content {
        width: 98%;
        padding: 20px;
        margin: 1% auto;
    }

    .feature-modal-image-container {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .feature-modal-image-container img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .feature-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .video-section {
        padding: 20px 10px;
    }

    .local-video {
        border-radius: 5px;
    }

    .navbar {
        padding: 20px;
    }

    .logo img {
        height: 30px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: transform 0.5s ease, opacity 0.5s ease;
        transform: translateY(-100%);
        opacity: 0;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-section {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 20px;
        flex-direction: column;
    }

    .product-tabs {
        top: 80px;
        left: 10px;
        transform: none;
        gap: 6px;
        padding: 8px;
        max-width: calc(100% - 20px);
        flex-wrap: nowrap;
        margin-left: 0;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        margin-left: 0;
        margin-top: auto;
        margin-bottom: 120px;
        align-self: flex-start;
        max-width: 100%;
        position: relative;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .control-hint {
        display: none;
    }

    .canvas-ui {
        bottom: 20px;
        right: 20px;
    }

    .features-section,
    .gallery-section,
    /*.partners-section,*/
    .contact-section {
        padding: 80px 20px 40px;
    }

    /* 모바일에서는 1칸 그리드 */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section h2,
    .contact-section h2,
    .features-section h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .gallery-slider-container {
        padding: 0 50px;
    }

    .gallery-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-slide-overlay span {
        font-size: 18px;
    }

    .gallery-slider-dots {
        margin-top: 20px;
    }

    /* 파트너 섹션 반응형 (현재 미사용)
    .partners-section h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .partners-subtitle {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .partners-description {
        font-size: 16px;
        margin-bottom: 40px;
        text-align: center;
    }

    .partners-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-logo {
        max-width: 200px;
        max-height: 100px;
    }

    .partner-item {
        min-height: 180px;
    }
    */

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding-bottom: 30px;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-links {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
    }

    .footer-links a {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .footer-social {
        gap: 10px;
        justify-content: center;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 30px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.5;
    }
} 