/* SYNC and AutoRig Projects Side by Side Layout */
.projects-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 50px 0;
    max-width: 1500px;
}

/* Individual Project Containers */
.sync-project,
.autorig-project {
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Project Headers */
.sync-header,
.autorig-header {
    text-align: left;
    margin-bottom: 25px;
}

.sync-header h3,
.autorig-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 10px;
}

.sync-header p,
.autorig-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #000000;
    opacity: 0.8;
    max-width: 100%;
}

/* Project Content Layout */
.sync-content,
.autorig-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Video Containers */
.sync-video-container,
.autorig-video-container {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.sync-video,
.autorig-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background: #0a0a1a;
}

/* Descriptions */
.sync-description,
.autorig-description {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}

.sync-description p,
.autorig-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    margin: 0;
}

/* Video Placeholder Styles */
.video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.video-placeholder .play-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff4d8d;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.video-btn {
    background: rgba(255, 77, 141, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-btn:hover {
    background: rgba(255, 77, 141, 0.4);
    transform: translateY(-2px);
}

/* 3D Model Viewer Section */
.model-viewer-section {
    margin: 80px 0;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-viewer-header {
    text-align: center;
    margin-bottom: 40px;
}

.model-viewer-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.model-viewer-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #e2e2e2;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.model-viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #0a0a1a;
}

#modelCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff4d8d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
}

.model-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255, 77, 141, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 77, 141, 0.3);
}

.control-btn:hover {
    background: rgba(255, 77, 141, 0.4);
    transform: translateY(-2px);
}

.control-btn[data-active="true"] {
    background: rgba(255, 77, 141, 0.6);
}

.model-info-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-info-panel h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.model-info-panel p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e2e2;
    margin-bottom: 15px;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-tag {
    background: rgba(255, 77, 141, 0.2);
    color: #ff4d8d;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 77, 141, 0.3);
}

.model-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.model-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.model-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.model-thumbnail.active {
    border-color: #ff4d8d;
}

.model-thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-side-by-side {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sync-project,
    .autorig-project {
        padding: 25px;
    }
    
    .sync-header h3,
    .autorig-header h3 {
        font-size: 2.2rem;
    }
    
    .model-viewer-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .projects-side-by-side {
        gap: 20px;
    }
    
    .sync-project,
    .autorig-project {
        padding: 20px;
    }
    
    .sync-header h3,
    .autorig-header h3 {
        font-size: 2rem;
    }
    
    .sync-header p,
    .autorig-header p {
        font-size: 1rem;
    }
    
    .model-viewer-header h3 {
        font-size: 2rem;
    }
    
    .model-viewer-container {
        height: 350px;
    }
    
    .model-controls {
        gap: 10px;
    }
    
    .control-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .model-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .model-thumbnail img {
        height: 80px;
    }
    
    .video-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .video-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sync-header h3,
    .autorig-header h3 {
        font-size: 1.8rem;
    }
    
    .model-viewer-header h3 {
        font-size: 1.8rem;
    }
    
    .model-viewer-container {
        height: 300px;
    }
    
    .model-info-panel {
        padding: 20px;
    }
    
    .model-info-panel h4 {
        font-size: 1.3rem;
    }
    
    .video-placeholder {
        height: 200px;
        font-size: 1.2rem;
    }
    
    .video-placeholder .play-icon {
        font-size: 2.5rem;
    }
}