.features-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.features-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.features-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: 3;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.feature-slide {
    position: absolute;
    width: 100%;
    height: 80vh;
    left: 0%;
    top: 10%;
    opacity: 0;
    transform: translateZ(-1000px);
    transition: all 1s ease-in-out;
    z-index: 4;
}

.feature-slide.active {
    opacity: 1;
    transform: translateY(0%);  /* Added translateY to move it up */
    z-index: 6;  /* Added z-index to ensure it's above others */
}

.feature-slide.next {
    opacity: 0.3;
    transform: translateZ(00px) translateX(60%) translateY(-60%);
    filter: blur(10px);
    scale: .5;
}

.feature-slide.prev {
    opacity: 0;
    transform: translateZ(-500px) translateX(-20%);
    filter: blur(4px);
}

.feature-image {
    width: 100%;
    height: 80%;
    object-fit: contain;
    /* border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    
    
}

.feature-content {
    position: absolute;
    bottom: 0%;  /* Changed from 10% to -20% */
    left: 0;
    width: 100%;
    padding: 1rem;
    color: white;
    text-align: center;
    opacity: 1;  /* Changed from 0 to 1 */
    z-index: 10;
}

.active .feature-content {
    transform: translateY(0);
    opacity: 1;
}

.feature-title {
    font-family: 'Zen Dots', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
    color: #888;
}

/* Hide content of inactive slides */
.feature-slide:not(.active) .feature-content {
    opacity: 0;
    visibility: hidden;
}


.nav-progress-container {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3rem; /* Adjust gap as needed */
}

.nav-arrow {
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-progress-bar {
    display: flex;
    gap: 0.5rem;
}

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

.progress-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-slide {
        width: 80%;
        left: 10%;
    }

        .feature-image {
        /* Make image take up more space */
        height: 85%;
        /* Ensure image stays within bounds */
        object-fit: contain;
        margin-top: 2rem;
        height: 70%;
        width: 150%;
        object-fit: fill;
        margin-top: 2rem;
        left: -25%;
        position: relative;
    }
}

/* Update these media queries in features.css */

@media (max-width: 768px) {
    .feature-slide {
        width: 90%;
        left: 5%;
        /* Change height to take up more vertical space */
        height: 75vh;  /* Increased from 50vh */
        /* Add padding to ensure content doesn't touch edges */
        padding: 1rem;
    }
    
    .feature-image {
        height: 60%;
        width: 150%;
        object-fit: fill;
        margin-top: 2rem;
        left: -25%;
        position: relative;
    }
    
    .feature-content {
        /* Position content at bottom */

        padding: 1rem;

    }

    .feature-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 0rem;
    }

    .feature-description {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        /* Ensure text is readable */
        color: rgba(255,255,255,0.8);
    }
}

/* Additional adjustments for smaller screens */
@media (max-width: 480px) {
    .feature-slide {
        /* Keep same proportions as tablet */
        height: 75vh;
        width: 95%;
        left: 2.5%;
    }
    
    .nav-progress-container {
        /* Move navigation closer to bottom */
        bottom: 2%;
        gap: 1.5rem;
    }

    .nav-arrow {
        /* Make arrows slightly smaller */
        width: 40px;
        height: 40px;
    }
}