/* Sticky Layout Styles for 3D Model */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent layout shift */
    overflow-x: hidden;
}

/* Main container to handle the layout */
.content-wrapper {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    min-height: 100vh;
}

/* Sticky 3D Model Container - Left Side */
.sticky-model-container {
    position: sticky;
    top: 2rem;
    width: 50%;
    flex-shrink: 0;
    height: fit-content;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Subtle movement effect for the first part of scroll */
.sticky-model-container.scrolling {
    transform: translateY(var(--scroll-offset, 0px));
}

/* Content Container - Right Side */
.content-container {
    width: 50%;
    flex: 1;
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
    }
    
    .sticky-model-container {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .content-container {
        width: 100%;
        min-height: auto;
    }
}

/* Smooth transitions for better UX */
.sticky-model-container,
.content-container {
    transition: all 0.3s ease-in-out;
}

/* Ensure proper spacing */
.sticky-model-container > div {
    margin-bottom: 2rem;
}

/* Prevent any potential layout shifts */
.sticky-model-container * {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
