/* Custom CSS for 3D model viewer */
.model-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.model-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Base styles for all model-viewer elements */
model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background-color: transparent;
    /* Improve texture rendering */
    --model-color: unset;
    --poster-image: transparent;
    --progress-mask: transparent;
    --progress-bar-color: var(--primary, #6244C5);
    --progress-bar-height: 10px;
}

/* Specific styles for the hero section model-viewer */
.model-container model-viewer.hero-model {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Styles for model showcase sections */
.model-showcase-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.model-showcase-container model-viewer {
    position: relative !important;
    display: block;
    min-height: 500px;
    z-index: 10;
}

/* Progress bar styles */
.progress-bar {
    display: block;
    width: 33%;
    height: 10px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    bottom: 30px;
    left: 0;
    transition: opacity 0.3s;
}

.progress-bar.hide {
    opacity: 0;
    visibility: hidden;
}

.update-bar {
    background-color: var(--primary, #6244C5);
    width: 0%;
    height: 100%;
    border-radius: 5px;
    float: left;
    transition: width 0.3s;
}
