/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff6600;
    border: 2px solid #ff6600;
}

.btn-secondary:hover {
    background: #ff6600;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Logo Section */
.logo-section {
    background: transparent;
    position: relative;
    width: 100%;
    z-index: 1001;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 120px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent;
    border: none;
    outline: none;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    gap: 40px;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.admin-button-container {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ff6600;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Courier New', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(45deg, #ff6600, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #ff8800, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff8800, #ffaa00);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.admin-link {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%) !important;
    color: white !important;
    border-radius: 25px;
    padding: 10px 20px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: 'Courier New', 'Monaco', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
    white-space: nowrap;
}

.admin-link:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%) !important;
    transform: scale(1.1) !important;
}

.admin-link i {
    margin-right: 0.5rem;
    color: white !important;
}

.set-camera-btn {
    background: rgba(255, 102, 0, 0.1);
    border: 2px solid #ff6600;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 700;
    color: #ff6600;
    font-family: 'Courier New', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.set-camera-btn:hover {
    background-color: #ff6600;
    color: white;
    transform: scale(1.05);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.set-camera-btn i {
    margin-right: 0.5rem;
}

.unlock-camera-btn {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.unlock-camera-btn:hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.unlock-camera-btn i {
    margin-right: 0.5rem;
}

/* Responsive design for buttons */
@media (max-width: 768px) {
    .admin-button-container {
        flex-direction: column;
        gap: 0.5rem;
        right: 1rem;
    }
    
    
    .set-camera-btn,
    .unlock-camera-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .admin-link {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    background: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    margin-top: 2rem;
}

.hero-3d-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-text {
    flex: 0 0 auto;
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-3d {
    flex: 0 0 auto;
    width: 100%;
    max-width: 1400px;
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GLB Loading Indicator Styles - Simplified (only spinner, no background) */
.glb-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.glb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

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

/* GLB Loading Modal - Inside canvas container (no dark overlay) */
.glb-loading-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    pointer-events: none;
}

.glb-loading-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 320px;
    backdrop-filter: blur(10px);
}

/* Force hide Material Control on main page (index.html) */
body:not(.admin-body) #react-material-control {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Custom Modal System Styles */
.modal-system-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: none;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: all;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.custom-modal.active .custom-modal-content {
    transform: scale(1);
}

.custom-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-modal-title i {
    font-size: 1.5rem;
}

.custom-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-modal-body {
    padding: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.custom-modal-body p {
    margin: 0;
    color: #666;
}

.custom-modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.custom-modal-input:focus {
    outline: none;
    border-color: #667eea;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: #f9fafb;
}

.custom-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.custom-modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.custom-modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.custom-modal-btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.custom-modal-btn-secondary:hover {
    background: #d1d5db;
}

/* Modal type colors */
.custom-modal-header[data-type="success"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.custom-modal-header[data-type="warning"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.custom-modal-header[data-type="error"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

#model3d-container {
    display: block;
    width: 1400px;
    height: 1000px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    outline: none;
    border-radius: 0;
    padding: 0;
}

#model3d-container canvas {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -25px !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    clip-path: none !important;
    filter: none !important;
    transform: none !important;
    z-index: 1;
    image-rendering: auto !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

/* Additional global canvas styling to remove any browser defaults */
canvas {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.highlight {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Hide hero buttons on all screen sizes (desktop and mobile) */
.hero-buttons {
    display: none !important;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 400px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:first-child {
    grid-row: 1 / 3;
}

/* Services Section */
.services {
    padding: 40px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Why Us Section */
.why-us {
    padding: 40px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* GLB Meshes Section */
.glb-meshes {
    background: #f8f9fa;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.glb-meshes-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.glb-meshes h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.glb-meshes p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.mesh-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mesh-control {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mesh-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mesh-control h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    word-break: break-word;
}

.mesh-control-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mesh-control-row:last-child {
    margin-bottom: 0;
}

.mesh-control label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
}

.mesh-control input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mesh-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.mesh-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mesh-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mesh-control .value-display {
    font-size: 0.9rem;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.mesh-control .apply-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
}

/* Group control styles */
.group-control {
    border: 2px solid #ff6b35 !important;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%) !important;
    margin-bottom: 1rem !important;
}

.group-control h3 {
    color: #ff6b35 !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.group-control h3:hover {
    color: #e55a2b !important;
    transform: translateX(2px);
}

.group-control h3:hover .fa-edit {
    opacity: 1 !important;
    transform: scale(1.1);
}

.group-control h3 .fa-edit {
    transition: all 0.2s ease;
}

.group-control .delete-btn {
    background: #dc3545 !important;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
}

.group-control .delete-btn:hover {
    background: #c82333 !important;
}

/* Selection instructions */
.selection-instructions {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #1565c0;
}

.glass-indicator {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(41, 182, 246, 0.3);
}

/* Collapsible material boxes */
.material-content, .group-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.material-content.collapsed, .group-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.material-content.expanded, .group-content.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* Collapsible control boxes */
.mesh-control, .group-control {
    transition: all 0.3s ease;
    overflow: hidden;
}

.mesh-control.collapsed, .group-control.collapsed {
    max-height: 60px;
    overflow: hidden;
}

.mesh-control.expanded, .group-control.expanded {
    max-height: none;
    overflow: visible;
}

/* Chevron icons for collapsible boxes */
.fas.fa-chevron-down, .fas.fa-chevron-right {
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.fas.fa-chevron-down {
    transform: rotate(0deg);
}

.fas.fa-chevron-right {
    transform: rotate(-90deg);
}

/* Hover effects for collapsible headers */
.mesh-control h3:hover, .group-control h3:hover {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* Shadow Control Panel */
.shadow-control-panel {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.shadow-control-panel h3 {
    color: #3498db;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.shadow-control-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.shadow-control-row label {
    color: #ecf0f1;
    font-weight: 500;
    min-width: 120px;
}

.shadow-slider {
    flex: 1;
    min-width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #34495e;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.shadow-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
    transition: all 0.2s ease;
}

.shadow-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
}

.shadow-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
}

.shadow-value-display {
    background: #34495e;
    color: #ecf0f1;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    border: 1px solid #3498db;
}

.shadow-apply-btn, .shadow-reset-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shadow-apply-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.shadow-apply-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.shadow-reset-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.shadow-reset-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.selection-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
}

.selection-instructions ul {
    margin: 0;
    padding-left: 1.5rem;
}

.selection-instructions li {
    margin-bottom: 0.25rem;
}

.mesh-control .apply-btn:hover {
    background: #e55a2b;
}

.mesh-control .reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.mesh-control .reset-btn:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .mesh-controls {
        grid-template-columns: 1fr;
    }
    
    .mesh-control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .mesh-control input[type="range"] {
        width: 100%;
    }
}

/* CTA Section */
/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-grid {
    display: block;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-carousel-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    width: max-content;
    backface-visibility: hidden;
    perspective: 1000px;
}

.testimonials-carousel-track.paused {
    animation-play-state: paused;
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 0 0 350px;
    min-width: 0;
    width: 350px;
    max-width: 350px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes slideContinuous {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(var(--move-distance, -382px), 0, 0);
    }
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    flex-grow: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
}

.testimonial-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Testimonial Button */
.btn-testimonial {
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
}

.btn-testimonial i {
    font-size: 1.1rem;
}

/* Testimonial Modal */
.testimonial-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.testimonial-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.testimonial-modal-content {
    background-color: white;
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.2s ease;
}

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

.testimonial-modal-close {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    color: #aaa;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.testimonial-modal-close:hover {
    color: #ff6600;
}

.testimonial-modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #000;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Facebook Login Section */
.fb-login-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.fb-login-section p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
}

.btn-fb-login {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-fb-login:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-fb-login i {
    font-size: 0.95rem;
}

.fb-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.fb-user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1877f2;
}

.fb-user-info span {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

.btn-fb-logout {
    padding: 0.4rem 0.75rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-fb-logout:hover {
    background: #c82333;
    transform: translateY(-1px);
}

#testimonial-form .form-group {
    margin-bottom: 0.75rem;
}

#testimonial-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

#testimonial-form input[type="text"],
#testimonial-form input[type="email"],
#testimonial-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#testimonial-form input:focus,
#testimonial-form textarea:focus {
    outline: none;
    border-color: #ff6600;
}

#testimonial-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.3rem;
    flex-direction: row;
    justify-content: flex-start;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input .star-label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}

/* Selected stars - yellow */
.rating-input .star-label.star-selected {
    color: #ffd700 !important;
}

/* Hover effect - all stars from first to hovered */
.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: #ffd700;
    transform: scale(1.1);
}

/* Selected state - handled by JavaScript for better control */
/* JavaScript adds 'star-selected' class to selected stars */

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.btn-cancel,
.btn-submit {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #e9ecef;
    color: #666;
}

.btn-cancel:hover {
    background: #dee2e6;
}

.btn-submit {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Technology Section */
.technology {
    padding: 80px 0;
    background: white;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: #ff6600;
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.2);
    background: white;
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    border-radius: 16px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Override for tech icons with images */
.tech-icon-image {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tech-icon-image img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0;
    opacity: 1 !important;
    transition: none !important;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
}

.tech-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
}

.tech-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cta {
    padding: 30px 0;
    background: white;
    color: black;
    text-align: center;
}

.cta-content h2 {
    color: black;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.cta .btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e0841a 100%);
    transform: translateY(-2px);
}

/* Portfolio Styles */
.portfolio-hero {
    padding: 40px 0 30px;
    background: white;
    text-align: center;
}

.portfolio-header h1 {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 2.5rem;
}

.portfolio-header p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #333;
}


.portfolio-grid-section {
    padding: 30px 0;
    background: #fff;
}

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

/* Portfolio Section Headers */
.portfolio-section-header {
    text-align: center;
    margin: 2rem 0 1rem 0;
}

.portfolio-section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.portfolio-section-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-section-header {
    position: relative;
}

.refresh-videos-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6600;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.refresh-videos-btn:hover {
    background: #ff8800;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.refresh-videos-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.refresh-videos-btn i {
    transition: transform 0.3s ease;
}

.refresh-videos-btn:hover i {
    transform: rotate(180deg);
}

/* Video Grid */
.portfolio-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.portfolio-video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 16/9;
}

.portfolio-video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}


/* Responsive Video Grid */
@media (max-width: 768px) {
    .portfolio-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-video-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Mobile Responsive Styles for Portfolio */
@media (max-width: 768px) {
    /* Portfolio Hero - Compact */
    .portfolio-hero {
        padding: 30px 0 20px;
    }
    
    .portfolio-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-header p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    /* Portfolio Grid Section - Compact */
    .portfolio-grid-section {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Portfolio Grid - Responsive columns */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    /* Portfolio Section Headers - Compact */
    .portfolio-section-header {
        margin: 1.5rem 0 0.75rem 0;
        padding: 0 1rem;
    }
    
    .portfolio-section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .portfolio-section-header p {
        font-size: 0.9rem;
    }
    
    /* Refresh button - Smaller on mobile */
    .refresh-videos-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        right: 10px;
    }
    
    /* Video Grid - Already responsive */
    .portfolio-video-item {
        border-radius: 12px;
    }
    
    /* CTA Section - Compact */
    .cta {
        padding: 25px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    /* Video Modal - Mobile optimized */
    .video-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .video-modal-header {
        padding: 1rem 1.25rem;
    }
    
    .video-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .video-modal-footer {
        padding: 1rem 1.25rem;
    }
    
    .video-modal-footer p {
        font-size: 0.9rem;
    }
    
    /* Portfolio Items - Mobile */
    .portfolio-item {
        border-radius: 10px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra compact for small phones */
    .portfolio-hero {
        padding: 25px 0 15px;
    }
    
    .portfolio-header h1 {
        font-size: 1.75rem;
    }
    
    .portfolio-header p {
        font-size: 0.85rem;
    }
    
    .portfolio-grid-section {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .portfolio-section-header {
        margin: 1rem 0 0.5rem 0;
    }
    
    .portfolio-section-header h2 {
        font-size: 1.25rem;
    }
    
    .portfolio-section-header p {
        font-size: 0.85rem;
    }
    
    .refresh-videos-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        right: 5px;
    }
    
    .portfolio-video-item {
        border-radius: 10px;
    }
    
    .cta {
        padding: 20px 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
    }
    
    .video-modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
        border-radius: 10px;
    }
    
    .video-modal-header {
        padding: 0.75rem 1rem;
        border-radius: 10px 10px 0 0;
    }
    
    .video-modal-header h3 {
        font-size: 1rem;
    }
    
    .video-modal-footer {
        padding: 0.75rem 1rem;
        border-radius: 0 0 10px 10px;
    }
    
    .video-modal-footer p {
        font-size: 0.8rem;
    }
    
    /* Portfolio Items - Extra compact */
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-info h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    background-color: #000;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: videoModalSlideIn 0.3s ease-out;
}

@keyframes videoModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    border-radius: 15px 15px 0 0;
    color: white;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-modal-body {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    outline: none;
}

.video-modal-footer {
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    color: #ccc;
}

.video-modal-footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Video Modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .video-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .video-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .video-modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .video-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .video-modal-header h3 {
        font-size: 1rem;
    }
    
    .video-modal-footer {
        padding: 0.8rem 1rem;
    }
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-image:hover {
    opacity: 0.9;
}

.portfolio-like-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portfolio-like-container:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.portfolio-like-icon {
    color: #ff4444;
    font-size: 18px;
    transition: all 0.3s ease;
}

.portfolio-like-icon.liked {
    animation: heartBeat 0.6s ease;
    transform: scale(1.3);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(1.2);
    }
    75% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.portfolio-like-count {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 102, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h3 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}


.portfolio-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.1);
}

/* Quote Page Styles */
.quote-hero {
    padding: 60px 0 40px;
    background: white;
    text-align: center;
}

.quote-header h1 {
    margin-bottom: 1rem;
    color: #000;
}

.quote-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

.quote-form-section {
    padding: 80px 0;
    background: white;
}

.quote-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
    border: 2px solid #ff6600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.quote-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list i {
    color: #667eea;
    font-size: 0.9rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 20px;
    color: #ff6b35;
}

.contact-item strong {
    display: block;
    color: #333;
    font-size: 0.9rem;
}

.contact-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffaa00;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 1.5rem;
    background: #fff;
}

.modal-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        justify-content: flex-start;
        height: 80px;
        gap: 20px;
    }

    .nav-logo {
        flex: none;
        order: 1;
        justify-content: flex-start;
        margin-left: -194px !important;
        transform: translateX(-194px) !important;
        display: flex !important;
        z-index: 1000;
        position: relative;
    }
    
    .admin-button-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        order: 3;
        margin-top: 1rem;
    }

    .logo {
        height: 60px;
        max-width: 250px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        order: 3;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.4rem;
        letter-spacing: 3px;
        padding: 0.5rem 1rem;
        border: 2px solid transparent;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        border-color: #ff6600;
        background: rgba(255, 102, 0, 0.1);
        transform: scale(1.05);
    }

    .hamburger {
        order: 1;
    }

    /* Logo Section - Compact */
    .logo-section {
        padding: 15px 0;
    }

    .main-logo {
        height: 80px;
        max-width: 300px;
    }

    /* Hero Section - Compact */
    .hero {
        padding: 25px 0 15px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Hide 3D model canvas on mobile */
    .hero-3d {
        display: none !important;
    }

    #model3d-container {
        display: none !important;
    }

    #mesh-selection-display {
        display: none !important;
    }

    /* Hide Material Library on mobile */
    #material-library,
    .material-library {
        display: none !important;
    }

    .hero-text {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
    }

    /* Hide hero buttons on mobile */
    .hero-buttons {
        display: none !important;
    }

    .hero-gallery {
        height: 250px;
    }

    /* Quote Hero - Compact */
    .quote-hero {
        padding: 30px 0 20px;
    }

    .quote-header h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .quote-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* Quote Form Section - Compact */
    .quote-form-section {
        padding: 30px 0;
    }

    .quote-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .quote-form {
        padding: 1.5rem;
    }

    .quote-info {
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Services Section - Compact */
    .services {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .service-icon i {
        font-size: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* Features Section - Compact */
    .why-us {
        padding: 30px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    /* Testimonials - Mobile */
    .testimonials {
        padding: 40px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Technology - Mobile */
    .technology {
        padding: 40px 0;
    }

    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }

    .tech-item {
        padding: 1.5rem 1rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .tech-item h4 {
        font-size: 1rem;
    }

    .tech-item p {
        font-size: 0.8rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Footer - Compact */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* CTA - Compact */
    .cta {
        padding: 25px 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    /* Forms - Mobile optimized */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Typography - Compact */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Logo Section - Extra Compact */
    .logo-section {
        padding: 12px 0;
    }

    .main-logo {
        height: 60px;
        max-width: 250px;
    }

    /* Navbar - Extra Compact */
    .navbar {
        padding: 8px 0;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Hero Section - Extra Compact */
    .hero {
        padding: 25px 0 15px;
        min-height: auto;
    }

    .hero-content {
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    /* Hide 3D model canvas on small mobile */
    .hero-3d {
        display: none !important;
    }

    #model3d-container {
        display: none !important;
    }

    #mesh-selection-display {
        display: none !important;
    }

    /* Hide Material Library on small mobile */
    #material-library,
    .material-library {
        display: none !important;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: center;
        max-width: 100%;
    }

    /* Hide hero buttons on small mobile */
    .hero-buttons {
        display: none !important;
    }

    /* Hide Services section on small mobile */
    .services {
        display: none !important;
    }

    .hero-gallery {
        height: 200px;
    }

    /* Services & Features - Extra Compact */
    .services {
        padding: 25px 0;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 45px;
        height: 45px;
    }

    .service-icon i {
        font-size: 1.1rem;
    }

    .why-us {
        padding: 25px 0;
    }

    .feature-item {
        padding: 1.25rem 0.75rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }

    /* Testimonials - Small Mobile */
    .testimonials {
        padding: 30px 0;
    }

    .testimonials-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    /* Technology - Small Mobile */
    .technology {
        padding: 30px 0;
    }

    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .tech-item {
        padding: 1.25rem 0.75rem;
    }

    .tech-icon {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .tech-item h4 {
        font-size: 0.95rem;
    }

    .tech-item p {
        font-size: 0.75rem;
    }

    /* Quote Hero - Extra Compact */
    .portfolio-hero,
    .quote-hero {
        padding: 25px 0 15px;
    }

    .quote-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .quote-header p {
        font-size: 0.85rem;
    }

    /* Quote Form - Extra Compact */
    .quote-form-section {
        padding: 25px 0;
    }

    .quote-content {
        gap: 1.5rem;
        padding: 0 12px;
    }

    .quote-form {
        padding: 1.25rem;
    }

    .quote-info {
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    /* Buttons - Compact */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Services & Features - Extra Compact */
    .service-card,
    .info-card {
        padding: 1.25rem;
    }

    /* Footer - Extra Compact */
    .footer {
        padding: 25px 0 12px;
    }

    .footer-content {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.8rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Modal - Extra Compact */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 8px;
    }
    
    .modal-content img {
        max-height: 55vh;
    }
    
    .modal-info {
        padding: 0.75rem;
    }
    
    .modal-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .modal-info p {
        font-size: 0.85rem;
    }
    
    .close {
        top: 8px;
        right: 12px;
        font-size: 28px;
        width: 32px;
        height: 32px;
    }

    /* Forms - Extra Compact */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
        border-radius: 6px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group small {
        font-size: 0.8rem;
    }

    /* Typography - Extra Compact */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mesh Selection Display */
.mesh-selection-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mesh-selection-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mesh-selection-content i {
    color: #ff6b35;
    font-size: 16px;
}

#selected-mesh-name {
    color: #ffffff;
    font-weight: 600;
}

.clear-selection-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.clear-selection-btn:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4) !important;
}

.chat-toggle i {
    color: white;
    font-size: 24px;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.chat-header {
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fff5f0;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: #ffe6d6;
    color: #333;
    border-bottom-left-radius: 5px;
    border: 1px solid #ffd4b3;
}

.user-message .message-content {
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.admin-message .message-content {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    padding: 0 5px;
}

.chat-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #ffd4b3;
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    border: 1px solid #ffd4b3;
    border-radius: 25px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff5f0;
}

#chat-input:focus {
    border-color: #ff6600;
    background: white;
}

.chat-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* Admin Request Button */
.chat-admin-request {
    padding: 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.admin-request-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.admin-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.admin-request-btn:active {
    transform: translateY(0);
}

.admin-request-btn i {
    font-size: 1rem;
}

/* Admin Request Modal Styling */
#adminRequestModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.admin-request-content {
    background: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0.75rem 1.25rem;
}

.modal-body p {
    margin: 0 0 0.75rem 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 0.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 40px;
}

.modal-footer {
    padding: 0.4rem 1.25rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile responsiveness for admin request modal */
@media (max-width: 768px) {
    .admin-request-content {
        width: 95%;
        max-width: 350px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .modal-header {
        padding: 0.6rem 0.8rem;
    }
    
    .modal-body {
        padding: 0.6rem 0.8rem;
    }
    
    .modal-footer {
        padding: 0.3rem 0.8rem;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Admin Typing Inline Indicator */
.admin-typing-inline {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    color: #ff6600;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.3s ease-in-out;
    align-self: flex-start;
    max-width: 200px;
    position: relative;
    z-index: 10;
}

.admin-typing-text {
    font-size: 11px;
    opacity: 0.9;
}

.admin-typing-inline .typing-dots {
    display: flex;
    gap: 3px;
}

.admin-typing-inline .typing-dots span {
    width: 4px;
    height: 4px;
    background: #ff6600;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.admin-typing-inline .typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.admin-typing-inline .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.admin-typing-inline .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsiveness for chat */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 30px);
        max-width: 400px;
        height: 60vh;
        max-height: 500px;
        bottom: 80px;
        right: 15px;
        left: auto;
        position: fixed;
        z-index: 9999;
    }
    
    .chat-container.mobile-open {
        /* When keyboard is open, chat takes full viewport height */
        width: 100vw;
        max-width: 100vw;
        right: 0;
        left: 0;
        border-radius: 0;
    }
    
    .chat-widget {
        bottom: 15px;
        right: 15px;
        z-index: 10000;
    }
    
    .admin-typing-inline {
        font-size: 11px;
        padding: 6px 10px;
        max-width: 150px;
    }
    
    /* Ensure chat input is always visible at bottom when keyboard opens */
    .chat-input-container {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 100 !important;
        background: white !important;
        border-top: 1px solid #ffd4b3;
        padding: 15px 20px;
        flex-shrink: 0;
    }
    
    /* Adjust chat messages container to account for input container */
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        background: #fff5f0;
        /* Height will be calculated dynamically by JavaScript */
    }
    
    .chat-container.mobile-open .chat-messages {
        /* Messages take remaining space above input */
        max-height: none;
        height: auto;
    }
    
    /* Ensure input field is always visible and accessible */
    #chat-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-content span {
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.notification-close:hover {
    background: #f5f5f5;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta,
    .chat-widget {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Material Library Styles */
/* Material Library - Visible on main page in Hero section */
.material-library {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block;
}

/* Material Library Content - visible on main page */
.material-library-content {
    display: block;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
}

.material-library.dragging {
    transition: none;
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.material-library.locked {
    cursor: default;
}

.material-library.locked .material-library-header {
    cursor: default;
}

.material-library-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: move;
    user-select: none;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2a1500 0%, #ff6600 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 170, 0, 0.25);
    position: relative;
}

.material-library-header::before {
    display: none;
}

.material-library-header:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
}

.material-library.dragging .material-library-header {
    cursor: grabbing;
}

.material-library.locked .material-library-header {
    cursor: default;
}

.header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-buttons-secondary {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.material-library-header:hover .header-buttons-secondary {
    opacity: 1;
}

.material-library-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: center;
    width: 100%;
    letter-spacing: 0.3px;
}

.toggle-library-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toggle-library-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.reset-materials-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.reset-materials-btn:hover {
    background: rgba(255, 99, 99, 0.3);
    transform: scale(1.05);
}

.save-glb-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 170, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.save-text {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.8;
}

.save-glb-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.save-glb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.save-glb-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 170, 0, 0.6);
    transform: none;
}

.test-storage-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

.test-storage-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.force-persistence-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

.force-persistence-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.debug-meshes-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.debug-meshes-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.switch-glb-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.switch-glb-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.check-model-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.check-model-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.hybrid-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.hybrid-control-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.init-hybrid-btn {
    background: rgba(40, 167, 69, 0.6);
    border: 1px solid #28a745;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.init-hybrid-btn:hover {
    background: rgba(40, 167, 69, 0.8);
    border-color: #28a745;
    transform: translateY(-1px);
}

.test-hybrid-btn {
    background: rgba(255, 193, 7, 0.6);
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.test-hybrid-btn:hover {
    background: rgba(255, 193, 7, 0.8);
    border-color: #ffc107;
    transform: translateY(-1px);
}

.lock-position-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 170, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lock-text {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.8;
}

.bring-to-front-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

.bring-to-front-btn:hover {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.05);
}

.lock-position-btn:hover {
    background: rgba(255, 170, 0, 0.4);
    border-color: rgba(255, 170, 0, 0.8);
    transform: scale(1.1);
}

.lock-position-btn.locked {
    background: rgba(255, 170, 0, 0.6);
    border-color: #ffaa00;
    color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.lock-position-btn.locked:hover {
    background: rgba(255, 170, 0, 0.8);
    transform: scale(1.1);
}

.material-library-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background: rgba(60, 60, 60, 0.8);
}

.material-category {
    margin-bottom: 20px;
}

.material-category h4 {
    color: #ffaa00;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 170, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.material-item {
    background: rgba(80, 80, 80, 0.6);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    cursor: grab;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.material-item:hover {
    background: rgba(100, 100, 100, 0.8);
    border-color: rgba(255, 170, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.material-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.material-preview {
    width: 100%;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 0.25rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    aspect-ratio: 1;
}

.material-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.material-item span {
    color: #ffaa00;
    font-size: 11px;
    font-weight: 500;
    display: block;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Material Preview Colors */
.metallic-black { background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%); }
.metallic-silver { background: linear-gradient(135deg, #999999 0%, #b0b0b0 50%, #999999 100%); }
.metallic-red { background: linear-gradient(135deg, #8b0000 0%, #a00000 50%, #8b0000 100%); }
.metallic-blue { background: linear-gradient(135deg, #003366 0%, #004488 50%, #003366 100%); }
.pearl-white { background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 50%, #e8e8e8 100%); }
.matte-black { background: #2a2a2a; }

.brushed-aluminum { background: linear-gradient(90deg, #808080 0%, #a0a0a0 50%, #808080 100%); }
.polished-chrome { background: linear-gradient(135deg, #cccccc 0%, #e0e0e0 50%, #cccccc 100%); }
.stainless-steel { background: linear-gradient(135deg, #909090 0%, #b0b0b0 50%, #909090 100%); }
.carbon-fiber { background: repeating-linear-gradient(45deg, #1a1a1a 0%, #2a2a2a 10px, #1a1a1a 20px); }

.automotive-glass { background: linear-gradient(135deg, rgba(240, 240, 240, 0.6) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(240, 240, 240, 0.6) 100%); }
.headlight-glass { background: linear-gradient(135deg, rgba(255, 255, 200, 0.7) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 200, 0.7) 100%); }
.tinted-glass { background: linear-gradient(135deg, rgba(64, 64, 64, 0.8) 0%, rgba(96, 96, 96, 0.6) 50%, rgba(64, 64, 64, 0.8) 100%); }
.red-glass { background: linear-gradient(135deg, rgba(139, 0, 0, 0.7) 0%, rgba(160, 0, 0, 0.5) 50%, rgba(139, 0, 0, 0.7) 100%); }
.amber-glass { background: linear-gradient(135deg, rgba(255, 140, 0, 0.6) 0%, rgba(255, 165, 0, 0.4) 50%, rgba(255, 140, 0, 0.6) 100%); }

.tire-rubber { background: #1a1a1a; }
.weatherstrip { background: #2a2a2a; }

.leather-black { background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%); }
.leather-brown { background: linear-gradient(135deg, #8b4513 0%, #cd853f 50%, #8b4513 100%); }
.plastic-dashboard { background: #404040; }
.fabric-seat { background: linear-gradient(135deg, #666 0%, #888 50%, #666 100%); }

/* Drag and Drop States */
.material-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.model3d-container.drag-over {
    border: 2px dashed #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .material-library {
        width: 280px;
        left: 10px;
        top: 10px;
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .material-item {
        padding: 8px;
    }
    
    .material-preview {
        height: 30px;
    }
    
    .material-item span {
        font-size: 10px;
    }
}
