* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff !important;
    overflow-x: hidden;
    background: #000 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000 !important;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-container.scrolled {
    padding: 0.25rem 0;
    border-bottom: 1px solid #444;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

.nav-container.scrolled .nav-content {
    padding: 0.5rem 2rem;
}

.nav-left {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-left a {
    text-decoration: none;
    color: #fff !important;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-left a:hover {
    opacity: 0.7;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.nav-center .logo {
    height: 2rem;
    width: auto;
    filter: invert(1);
    transition: all 0.3s ease;
}

.nav-container.scrolled .nav-center .logo {
    height: 1.5rem;
}

.nav-center h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-container.scrolled .nav-center h1 {
    font-size: 1.25rem;
}

.nav-right {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-right a {
    text-decoration: none;
    color: #fff !important;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-right a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000 !important;
    padding: 2rem;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #fff !important;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Technology Section */
.technology {
    padding: 5rem 0;
    background: #000 !important;
}

.technology h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff !important;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.tech-step {
    text-align: center;
    background: #111;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.tech-step-image {
    margin-bottom: 1.5rem;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
}

.tech-step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.tech-step:hover .tech-step-image img {
    transform: scale(1.05);
}

.tech-step-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff !important;
}

.tech-step-content p {
    color: #ccc !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Open Positions CTA */
.positions-cta {
    padding: 4rem 0;
    background: #000 !important;
    text-align: center;
}

.positions-cta h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff !important;
}

.cta-button {
    display: inline-block;
    background: #fff !important;
    color: #000 !important;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    opacity: 0.8;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background: #000 !important;
    border-top: 1px solid #333;
}

.team h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    padding: 1.5rem 0.5rem;
    border: none;
    border-radius: 0;
    background: #000 !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-image {
    width: 160px;
    height: 160px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff !important;
    text-align: center;
}

.team-member h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #ccc !important;
    text-align: center;
}

.team-member p {
    color: #ccc !important;
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
    max-width: 200px;
    font-size: 0.85rem;
}

/* News Section */
.news {
    padding: 4rem 0;
    background: #000 !important;
    border-top: 1px solid #333;
}

.news h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff !important;
}

.news h3 {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    color: #fff !important;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #000 !important;
    text-align: center;
    border-top: 1px solid #333;
}

.contact h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #fff !important;
}

.contact p {
    font-size: 1.1rem;
    color: #fff !important;
    margin-bottom: 2rem;
    font-weight: 400;
}

.contact-button {
    background: #fff !important;
    color: #000 !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    opacity: 0.8;
}

.contact-form-container {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}

.contact-form {
    background: #000 !important;
    padding: 2rem;
    border-radius: 0;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #fff !important;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #000 !important;
    color: #fff !important;
}

.form-group input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.send-button {
    background: #fff !important;
    color: #000 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.send-button:hover {
    opacity: 0.8;
}

.cancel-button {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #333;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-button:hover {
    background: #222 !important;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: #000 !important;
    color: #fff !important;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .tech-step-image {
        height: 180px;
    }
}

@media (max-width: 1000px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-step {
        padding: 1.5rem 1rem;
    }
    
    .tech-step-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-container.scrolled .nav-content {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-left {
        order: 2;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-center {
        order: 1;
    }
    
    .nav-right {
        order: 3;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .technology h2,
    .team h2,
    .news h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-step {
        padding: 1.25rem 0.75rem;
    }
    
    .tech-step-image {
        height: 140px;
    }
    
    .tech-step-content h3 {
        font-size: 1.1rem;
    }
    
    .tech-step-content p {
        font-size: 0.85rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        padding: 1.5rem 1rem;
    }
    
    .team-member-image {
        width: 150px;
        height: 150px;
    }
    
    .team-member h4 {
        font-size: 1.3rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-content {
        padding: 0.75rem;
    }
    
    .nav-container.scrolled .nav-content {
        padding: 0.5rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .nav-left a, .nav-right a {
        font-size: 0.9rem;
    }
    
    .nav-center h1 {
        font-size: 1.25rem;
    }
    
    .nav-container.scrolled .nav-center h1 {
        font-size: 1.1rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-step {
        padding: 1rem;
    }
    
    .tech-step-image {
        height: 120px;
    }
}

/* Demo Page Styles */
.demo-controls {
    padding: 2rem 0;
    background: #000 !important;
    border-bottom: 1px solid #333;
    margin-top: 80px;
}

.demo-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.demo-button {
    background: #111;
    color: #fff;
    border: 2px solid #333;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.demo-button:hover {
    background: #222;
    border-color: #555;
}

.demo-button.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.demo-section {
    padding: 3rem 0;
    background: #000 !important;
    min-height: 60vh;
}

/* Scan Section Styles */
.scan-content {
    max-width: 1000px;
    margin: 0 auto;
}

.template-examples {
    margin-bottom: 3rem;
}

.template-examples h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.example-item {
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-color: #333;
}

.example-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #222;
}

.example-item p {
    color: #fff;
    font-weight: 500;
    margin: 0;
}

.upload-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.upload-area {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #111;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #555;
    background: #222;
}

.upload-area.dragover {
    border-color: #fff;
    background: #222;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.upload-area p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.upload-button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.upload-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.uploaded-images {
    margin-top: 2rem;
    padding: 2rem;
    background: #111;
    border-radius: 12px;
}

.uploaded-images h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
}

.process-button {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.process-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* 3D Viewer Section Styles */
.viewer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.viewer-content h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.viewer-button {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.viewer-button:hover {
    background: #222;
    border-color: #555;
}

.viewer-container {
    width: 100%;
    height: 500px;
    background: #111;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    z-index: 10;
}

.viewer-instructions {
    margin-top: 1.5rem;
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
}

.viewer-instructions p {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.viewer-instructions ul {
    color: #fff;
    margin-left: 1rem;
}

.viewer-instructions li {
    margin-bottom: 0.3rem;
}

/* Active navigation link */
.nav-left a.active,
.nav-right a.active {
    opacity: 1;
    font-weight: 600;
}

/* Responsive Design for Demo Page */
@media (max-width: 768px) {
    .demo-controls {
        margin-top: 120px; /* Increase margin for mobile navigation */
        padding: 2.5rem 0;
    }
    
    .demo-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-button {
        width: 200px;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .viewer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .viewer-button {
        width: 200px;
    }
    
    .viewer-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .demo-controls {
        margin-top: 140px; /* Even more margin for smaller mobile screens */
        padding: 2rem 0;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .viewer-container {
        height: 300px;
    }
} 