/* ===================================
   TrueDepth Labs - Enhanced Design
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Discount Badge - Fixed Position */
.discount-badge {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    z-index: 1000;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(255, 107, 107, 0.7);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
}

.nav-logo {
    height: 40px;
    width: auto;
}

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

/* Currency Selector */
.currency-selector {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem;
    padding-right: 2.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.currency-selector:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.currency-selector:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.currency-selector option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}


.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-btn-primary {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
}

.nav-btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 200vh;
    /* Reduced for 90 frames */
    min-height: 100vh;
    background-color: #0a0a0a;
}

.hero.unpinned {
    height: 100vh;
}

.hero-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 2rem;
    z-index: 10;
    pointer-events: none;
}

/* Top Right: Logo + Company Name */
.hero-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    align-self: flex-end;
    margin-top: 4rem;
    /* Below nav bar */
}

.hero-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
}

.hero-company-name {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    margin: 0;
}

/* Bottom Left: Tagline + CTA */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 600px;
    align-self: flex-start;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-align: left;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #a0a0a0;
    text-align: left;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-360 {
    font-size: 1rem;
    font-weight: 300;
    color: #888888;
    text-align: left;
    margin: 0 0 1.5rem 0;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Keep all hero content visible throughout scroll animation */
.hero-content img {
    opacity: 1 !important;
    transition: none !important;
}

/* 3D Conversion Highlight */
.highlight-3d {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    display: inline-block;
    animation: glow-3d 3s ease-in-out infinite;
}

@keyframes glow-3d {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(0, 212, 255, 0.7);
    }
}

/* 8K Highlight */
.highlight-8k {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.7);
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    pointer-events: auto;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.cta-primary {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-primary:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.cta-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* Sections */
.section {
    position: relative;
    width: 100%;
    padding: 8rem 4rem;
    background-color: #0a0a0a;
}

.section:nth-child(even) {
    background-color: #0f0f0f;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.section-lead {
    font-size: 1.25rem;
    color: #a0a0a0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid #ffffff;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-badge {
    text-align: center;
    margin: 2rem 0;
}

.pricing-old {
    display: block;
    color: #666;
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-new {
    display: block;
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-table {
    max-width: 700px;
    margin: 3rem auto;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
}

.pricing-label {
    font-size: 1.125rem;
    color: #ffffff;
    font-weight: 500;
}

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

.price-old {
    color: #666;
    text-decoration: line-through;
    font-size: 0.95rem;
}

.price-new {
    color: #4caf50;
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-top: 2rem;
}

/* Pipeline Steps */
.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.pipeline-step {
    text-align: center;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 8px;
    transition: all 0.3s;
}

.pipeline-step:hover {
    transform: translateY(-5px);
    background: #222;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.pipeline-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.pipeline-step p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Format Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.format-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid #667eea;
}

.format-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.format-card ul {
    list-style: none;
    padding: 0;
}

.format-card li {
    padding: 0.75rem 0;
    color: #a0a0a0;
    border-bottom: 1px solid #2a2a2a;
}

.format-card li:last-child {
    border-bottom: none;
}

.format-card li::before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.experience-item {
    text-align: center;
}

.experience-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.experience-item p {
    font-size: 1.125rem;
    color: #a0a0a0;
}

/* Images */
.depth-transition-img,
.process-img,
.theatre-img,
.lab-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Lab Section */
.lab-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lab-text .section-heading {
    text-align: left;
    margin-bottom: 1.5rem;
}

.lab-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #a0a0a0;
}

/* Final CTA Section */
.cta-final {
    text-align: center;
    padding: 10rem 4rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 1.125rem;
    color: #a0a0a0;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #000000;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #666;
    margin: 0.5rem 0;
}

.footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 3rem;
    }

    .lab-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .lab-text .section-heading {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .discount-badge {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        top: 1rem;
        left: 1rem;
    }

    .nav {
        padding: 1.5rem 2rem;
    }

    .nav-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .currency-selector {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        padding-right: 2rem;
        background-size: 1rem;
    }


    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-content {
        align-items: center;
        padding: 0 2rem;
    }

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

    .hero-subtitle {
        text-align: center;
    }

    .section {
        padding: 4rem 2rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

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

    .pipeline-steps {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: #1a1a1a;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border-top: 3px solid #667eea;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    background: #222;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #a0a0a0;
    font-size: 1.125rem;
}

/* Loading Progress Bar */
#loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

.progress-container {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.progress-text {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.progress-percent {
    font-size: 2rem;
    color: #667eea;
    font-weight: 600;
}

/* Examples Section */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.example-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border-top: 3px solid #00d4ff;
    transition: all 0.3s;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    background: #222;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.example-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 8px;
}

.example-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.example-card p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}