/* ============================================
   Model Headquarters Style - Dark Theme
   본사 방식: 좌측 큰 이미지 + 우측 설명 + 하단 썸네일
   ============================================ */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav .logo img {
    height: 9px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

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

.nav-menu a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Model Banner (Hero with Car Background) */
.model-banner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 24px;
    border: 1px solid #ffffff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.banner-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 300;
}

/* Model Detail Wrapper */
.model-detail-wrapper {
    background: #000000;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* TL9 Section Order: Floor → Seat → Steering */
#floor {
    order: 1;
}

#seat {
    order: 2;
}

#steering {
    order: 3;
}

/* Detail Section */
.detail-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section:last-child {
    border-bottom: none;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

/* Detail Grid: 70% + 30% */
.detail-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    margin-bottom: 40px;
}

/* Main Image Area (Left 70%) */
.main-image-area {
    position: relative;
}

.main-image-container {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Description Area (Right 30%) */
.description-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.4;
}

.section-desc {
    color: #cccccc;
    line-height: 1.9;
    font-size: 1.05rem;
}

.section-desc p {
    margin-bottom: 16px;
}

.section-desc p:last-child {
    margin-bottom: 0;
}

/* Thumbnail Gallery (Bottom) */
.thumbnail-gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.thumbnail-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    flex: 1;
}

/* Hide scrollbar */
.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 3px;
}

.thumbnail {
    min-width: 150px;
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.thumbnail:hover {
    border-color: #ffffff;
    transform: translateY(-4px);
}

.thumbnail:hover img {
    filter: brightness(1.1);
}

.thumbnail.active {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
}

/* Gallery Navigation Buttons */
.gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    background: #1a1a1a;
}

.cta-btn.secondary {
    background: #ffeb00;
    color: #3c1e1e;
}

.cta-btn.secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 235, 0, 0.4);
}

.cta-btn.tertiary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-btn.tertiary:hover {
    background: #ffffff;
    color: #000000;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffffff;
    opacity: 0.7;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 65% 35%;
        gap: 30px;
    }

    .banner-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .thumbnail {
        min-width: 120px;
        width: 120px;
        height: 80px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .nav .logo img {
        height: 8px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .detail-section {
        padding: 50px 0;
    }

    .container-wide {
        padding: 0 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .description-area {
        padding: 0;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .section-label {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .thumbnail {
        min-width: 100px;
        width: 100px;
        height: 70px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .banner-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .thumbnail {
        min-width: 80px;
        width: 80px;
        height: 55px;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* Footer Logo */
.footer-logo {
    height: 9px;
    width: auto;
}