/* assets/parallax.css */

/* 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;
}

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

/* Hero section specific */
.hero-section {
    background-color: #000;
}

/* Carousel section specific */
.carousel-section {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

/* Features section specific */
.features-section {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

/* Test section specific */
.test-section {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

/* Parallax container */
.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.layer-back {
    z-index: 1;
    opacity: 0.8;
}

.layer-mid {
    z-index: 2;
    opacity: 0.9;
}

.layer-front {
    z-index: 3;
}

/* Hero content - properly centered */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.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 container - FIXED */
.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 */
.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;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Parallax text section */
.parallax-text-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

/* Parallax cards */
.parallax-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.parallax-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parallax-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.parallax-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.parallax-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* Carousel styling */
#carousel-drag-free {
    width: 100%;
    margin: 2rem 0;
}

/* Fix for carousel slides */
.dmc-carousel-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dmc-carousel-slide > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll indicator */
.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);
}

/* Parallax classes for JavaScript */
.parallax-bg {
    will-change: transform;
}

.parallax-mid {
    will-change: transform;
}

.fade-scale-on-scroll {
    will-change: opacity, transform;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.4;
    transform: scale(0.95);
}

.mouse-parallax {
    will-change: transform;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .parallax-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .centered-content {
        padding: 1rem;
    }
    
    .scroll-indicator {
        right: 15px;
    }
    
    .parallax-text-section {
        padding: 0 1rem;
    }
}

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

/* Ensure buttons are centered */
.dmc-button {
    margin: 0 auto;
}

/* Loading component centering */
.dash-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}