/* assets/parallax.css - Fixed Viewport Transitions */

/* Reset and full width setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Snap scrolling container */
.snap-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-top: 80px;
}

/* Fullscreen sections */
.fullscreen-section {
    width: 100% !important;
    height: calc(100vh - 80px) !important;
    min-height: calc(100vh - 80px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hero section */
.hero-section {
    height: calc(100vh - 80px) !important;
    min-height: calc(100vh - 80px) !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background-color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 80px) !important;
    color: white !important;
    text-align: center !important;
    padding: 2rem !important;
}

.hero-section .parallax-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 80px) !important;
    z-index: 1 !important;
}

.hero-section .parallax-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 80px) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    will-change: transform !important;
}

/* Industry Section */
.industry-section {
    background: #000000;
    height: calc(100vh - 80px) !important;
    min-height: calc(100vh - 80px) !important;
}

.industry-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Desktop content positioning - FIXED */
.industry-content-left {
    max-width: 600px;
    padding: 1rem 3rem;
    margin-right: auto;
    position: relative;
    z-index: 15;
    margin-top: 0;
}

.industry-content-right {
    max-width: 600px;
    padding: 1rem 3rem;
    margin-left: auto;
    position: relative;
    z-index: 15;
    margin-top: 0;
}

/* Phase indicator - Desktop */
.phase-indicator {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.phase-dots {
    display: flex;
    gap: 0.5rem;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.phase-dot.active {
    background: #00b4d8;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.phase-text {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 200px;
}

.industry-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.industry-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.industry-stats {
    display: flex;
    gap: 3rem;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
}

/* 3D Model Container - Desktop (ABSOLUTE - full screen background) */
.model-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.model-container canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

.scroll-hint-mouse {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
}

.scroll-hint-mouse::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-hint-arrow {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 1200px;
    padding: 0 2rem;
}

.centered-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: white;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
}

.contact-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    height: calc(100vh - 80px) !important;
    min-height: calc(100vh - 80px) !important;
}

.contact-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: fixed;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(190, 11, 11, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator-dot.active {
    background: white;
    transform: scale(1.5);
}

/* ===== RESPONSIVE BREAKPOINTS - FIXED ===== */
/* Tablet layout (between 769px and 1024px) - keep desktop layout but adjust */
@media (max-width: 1024px) and (min-width: 769px) {
    .industry-content-left,
    .industry-content-right {
        max-width: 500px;
        padding: 1rem 2rem;
    }
    
    .industry-title {
        font-size: 3rem;
    }
    
    .industry-description {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .phase-indicator {
        top: 0.8rem;
        right: 1rem;
    }
}

/* Mobile layout - 768px and below */
@media (max-width: 768px) {
    .snap-container {
        padding-top: 70px;
    }
    
    .fullscreen-section {
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .industry-section {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.5rem 0;
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
        width: 100% !important;
    }
    
    .industry-overlay {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
        height: 100%;
        width: 100%;
        display: flex;
    }
    
    /* Mobile: Model becomes RELATIVE and in the flow */
    .model-container {
        position: relative !important;
        width: 100% !important;
        height: 30vh !important;
        min-height: 160px !important;
        max-height: 40vh !important;
        z-index: 1 !important;
        pointer-events: none !important;
        flex-shrink: 0;
        margin: 0.3rem 0;
        top: auto !important;
        left: auto !important;
    }
    
    .model-container canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        position: relative !important;
    }
    
    .industry-content-left,
    .industry-content-right {
        padding: 0.5rem 1rem;
        max-width: 100%;
        margin: 0;
        text-align: center;
        position: relative;
        z-index: 15;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
    }
    
    .industry-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .industry-description {
        max-width: 100%;
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .industry-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 0.3rem;
        padding: 0.3rem 0;
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .phase-indicator {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.6rem;
        gap: 0.5rem;
        z-index: 30;
    }
    
    .phase-text {
        display: none;
    }
    
    .phase-dot {
        width: 6px;
        height: 6px;
    }
    
    .centered-content {
        padding: 1rem;
    }
    
    .scroll-indicator {
        right: 15px;
    }
    
    .scroll-indicator-dot {
        width: 8px;
        height: 8px;
    }
    
    .industry-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-section {
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    .hero-content {
        min-height: calc(100vh - 70px) !important;
    }
    
    .hero-section .parallax-container {
        min-height: calc(100vh - 70px) !important;
    }
    
    .hero-section .parallax-layer {
        min-height: calc(100vh - 70px) !important;
    }
    
    .contact-section {
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .snap-container {
        padding-top: 60px;
    }
    
    .fullscreen-section {
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .industry-title {
        font-size: 1.5rem;
    }
    
    .industry-content-left,
    .industry-content-right {
        padding: 0.25rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .industry-stats {
        gap: 1rem;
    }
    
    .model-container {
        height: 25vh !important;
        min-height: 120px !important;
        max-height: 35vh !important;
    }
    
    .phase-indicator {
        top: 0.3rem;
        right: 0.3rem;
        padding: 0.2rem 0.4rem;
    }
    
    .phase-dot {
        width: 5px;
        height: 5px;
    }
    
    .industry-description {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-section {
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .hero-content {
        min-height: calc(100vh - 60px) !important;
    }
    
    .hero-section .parallax-container {
        min-height: calc(100vh - 60px) !important;
    }
    
    .hero-section .parallax-layer {
        min-height: calc(100vh - 60px) !important;
    }
    
    .contact-section {
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
    }
}

/* Fixes */
#react-entry-point,
.dash-content,
.dash-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.dmc-button {
    margin: 0 auto;
}

.dash-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mantine-Container-root {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mantine-AppShell-main {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

#react-entry-point {
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.mantine-Group-root {
    width: 100%;
}

.mantine-AppShell-root {
    --app-shell-navbar-offset: 0px !important;
    --app-shell-navbar-width: 0px !important;
    padding: 0 !important;
}

.mantine-AppShell-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}