/* ========================================
   MAISON CODE - PREMIUM WEB DEVELOPMENT
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-elevated: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-tertiary: rgba(255, 255, 255, 0.4);
    --color-accent: #ffffff;
    --color-accent-subtle: rgba(255, 255, 255, 0.05);
    
    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
    
    /* Spacing */
    --container-padding: max(24px, 5vw);
    --section-padding: clamp(80px, 15vh, 160px);
    
    /* Typography */
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s var(--transition-smooth);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

.logo-maison {
    color: var(--color-text-primary);
}

.logo-code {
    color: var(--color-text-secondary);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link.nav-cta {
    color: var(--color-text-primary);
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all 0.3s var(--transition-smooth);
}

.nav-link.nav-cta:hover {
    background: var(--color-accent-subtle);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.lang-option {
    transition: color 0.3s var(--transition-smooth);
    cursor: pointer;
}

.lang-option.active {
    color: var(--color-text-primary);
}

.lang-divider {
    color: var(--color-text-tertiary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--container-padding) 140px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 32px;
    text-align: center; /* ← FIX: ensures block children inherit centering */
}

.hero-title .line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
    text-align: center; /* ← FIX: block elements need explicit text-align */
    width: 100%;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center; /* ← FIX */
    width: 100%;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.6s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.7s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-accent-subtle);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) 1.5s forwards;
    z-index: 5;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    position: relative;
    padding: var(--section-padding) 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.service-card {
    padding: 48px 40px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(26, 26, 26, 0.8);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.service-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ========================================
   ABOUT / FOUNDER SECTION
   ======================================== */

.about-founder {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.about-founder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.founder-image-wrapper {
    position: relative;
}

.founder-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid var(--color-border);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
    pointer-events: none;
}

.founder-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    color: var(--color-bg);
    font-size: 16px;
}

.badge-text {
    color: var(--color-bg);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.founder-text {
    max-width: 600px;
}

.founder-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.founder-name {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.founder-title {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.founder-description {
    margin-bottom: 40px;
}

.founder-description p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.founder-description p:last-child {
    margin-bottom: 0;
}

.founder-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.founder-cta {
    display: inline-flex;
}

/* ========================================
   WORK SECTION
   ======================================== */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.work-item {
    cursor: pointer;
    transition: transform 0.5s var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item:hover {
    transform: translateY(-12px);
}

.work-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    padding: 0 8px;
}

.work-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.work-category {
    color: var(--color-text-secondary);
    font-size: 15px;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s var(--transition-smooth);
}

.process-step:last-child {
    border-bottom: none;
}

.process-step:hover {
    padding-left: 20px;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    font-family: var(--font-display);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all 0.4s var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.testimonial-quote {
    font-size: 64px;
    font-family: Georgia, serif;
    color: var(--color-text-tertiary);
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.testimonial-author strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.testimonial-author span {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ========================================
   BOOKING SECTION
   ======================================== */

.booking {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.booking-text {
    max-width: 500px;
}

.booking-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    font-size: 16px;
}

.booking-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.booking-calendar {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
    position: relative;
}

.cal-trigger-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.cal-trigger-btn {
    transition: all 0.3s var(--transition-smooth);
}

.cal-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}

.cal-embed-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.cal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.cal-loading {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-tagline {
    color: var(--color-text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--color-text-secondary);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .booking-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .founder-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .founder-text {
        text-align: center;
        max-width: 100%;
    }

    .founder-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid,
    .work-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-number {
        font-size: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .founder-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .founder-badge {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
    }

    .badge-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .booking-calendar {
        min-height: 500px;
    }
}

/* ========================================
   SCROLL ANIMATIONS (Intersection Observer)
   ======================================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), 
                transform 0.8s var(--transition-smooth);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   360° PRODUCT VIEWER
   ======================================== */

.product-360 {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.viewer-360-container {
    max-width: 1200px;
    margin: 0 auto;
}

.viewer-360 {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.viewer-360:active {
    cursor: grabbing;
}

.viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.viewer-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated);
    z-index: 10;
    gap: 20px;
}

.viewer-loading.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition-smooth);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

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

.viewer-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.viewer-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.viewer-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.viewer-btn.active {
    background: var(--color-accent);
}

.viewer-btn.active svg {
    color: var(--color-bg);
}

.viewer-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s var(--transition-smooth);
}

.viewer-hint.hidden {
    opacity: 0;
}

.hint-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    animation: bounce 2s infinite;
    stroke: var(--color-text-primary);
    fill: none;
    stroke-width: 2;
}

.viewer-hint p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.viewer-info {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 32px;
    padding: 24px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.info-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-display);
}

.viewer-description {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.viewer-description p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.viewer-360.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    z-index: 9999;
}

@media (max-width: 768px) {
    .viewer-controls {
        bottom: 12px;
        right: 12px;
    }
    
    .viewer-btn {
        width: 40px;
        height: 40px;
    }
    
    .viewer-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .viewer-info {
        gap: 20px;
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .info-value {
        font-size: 20px;
    }
}

/* Canvas für 3D Viewer */
#canvas3D {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   MOBILE OPTIMIERUNGEN
   ======================================== */

@media (max-width: 768px) {
    .lang-toggle {
        padding: 8px 12px;
    }
    
    .lang-option {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .lang-divider {
        margin: 0 6px;
    }
    
    .lang-option {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 48px !important;
        height: 48px !important;
    }
    
    .back-to-top svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .lang-option {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .lang-option:active {
        transform: scale(0.95);
    }
    
    .back-to-top {
        -webkit-tap-highlight-color: transparent;
    }
    
    .back-to-top:active {
        transform: scale(0.9) !important;
    }
}

/* Auth Button */
.auth-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px);
}

.auth-btn svg {
    color: rgba(255,255,255,0.7);
}

.auth-btn:hover svg {
    color: rgba(255,255,255,1);
}
