/* 3D Carousel Features Styling - Mobile Only */
.features-3d-container {
    width: 100%;
    height: 400px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Hide 3D carousel on desktop/tablet */
@media (min-width: 768px) {
    .features-3d-container {
        display: none !important;
    }
}

/* Show 3D carousel only on mobile */
@media (max-width: 767px) {
    .features-3d-container {
        display: flex;
    }
}

#drag-container,
#spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(-10deg);
}

.feature-card-3d {
    transform-style: preserve-3d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,245,0.9) 100%);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card-3d:hover {
    box-shadow: 0 15px 40px var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.feature-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon-container-3d {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card-3d:hover .icon-container-3d {
    transform: rotate(360deg) scale(1.1);
    background: var(--primary-color);
}

.icon-container-3d i {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-card-3d:hover .feature-content h5 {
    color: var(--primary-color);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.feature-card-3d:hover .feature-content p {
    color: var(--primary-color);
}

.carousel-center-text {
    font-family: 'Poppins', sans-serif;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#ground {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    background: radial-gradient(
        center center,
        farthest-side,
        var(--primary-color),
        transparent
    );
    border-radius: 50%;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes spinRevert {
    from {
        transform: rotateY(360deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-3d-container {
        height: 300px;
        margin: 20px 0;
    }
    
    .feature-content {
        padding: 15px;
    }
    
    .icon-container-3d {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .icon-container-3d i {
        font-size: 1.2rem;
    }
    
    .feature-content h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
    
    .carousel-center-text {
        font-size: 1rem;
    }
    
    #ground {
        width: 200px;
        height: 200px;
    }
}
