/* 3D Carousel Styles for Desktop */

/* Hide on mobile */
@media (max-width: 991px) {
    .carousel-section {
        display: none;
    }
}

/* Section Container */
.carousel-section {
    padding: 80px 20px;
    position: relative;
    background: linear-gradient(180deg, #f8f9ff 0%, #f2f5ff 50%, #ecf1ff 100%);
}

.carousel-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.carousel-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.carousel-section .section-subtitle {
    color: #6366f1;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.carousel-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    display: block;
}

.carousel-section .section-description {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 3D Carousel Container */
.carousel-3d-wrapper {
    position: relative;
    height: 450px;
    perspective: 1000px;
    margin-bottom: 40px;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* Card Pair */
.card-pair {
    position: absolute;
    width: 700px;
    height: 380px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-style: preserve-3d;
}

/* Individual Card */
.diff-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Card Header */
.diff-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.diff-card .card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.diff-card .icon-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.diff-card .icon-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.diff-card .icon-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.diff-card .icon-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.diff-card .icon-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.diff-card .icon-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.diff-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Comparison Container */
.comparison-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-box {
    padding: 12px;
    border-radius: 10px;
    position: relative;
}

.comparison-box.traditional {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
}

.comparison-box.neuraflake {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 3px solid #10b981;
}

.comparison-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header i {
    margin-right: 5px;
    font-size: 12px;
}

.traditional .comparison-header {
    color: #ef4444;
}

.neuraflake .comparison-header {
    color: #10b981;
}

.comparison-text {
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
    margin: 0;
}

/* Carousel Positioning - Simple approach */
.card-pair {
    display: none;
    opacity: 0;
}

.card-pair.active {
    display: grid;
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(0);
}

.card-pair.prev {
    display: grid;
    opacity: 0.6;
    transform: translate(-80%, -50%) translateZ(-200px) rotateY(20deg) scale(0.8);
}

.card-pair.next {
    display: grid;
    opacity: 0.6;
    transform: translate(-20%, -50%) translateZ(-200px) rotateY(-20deg) scale(0.8);
}

/* Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-nav .nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.carousel-nav .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.carousel-nav .nav-btn:active {
    transform: translateY(0);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 32px;
    border-radius: 6px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.stat-1 { background: linear-gradient(135deg, #00cdac 0%, #02e0be 100%); }
.stat-2 { background: linear-gradient(135deg, #fc4d4a 0%, #ff6b68 100%); }
.stat-3 { background: linear-gradient(135deg, #a868fb 0%, #c084fc 100%); }

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-1 .stat-number { color: #00cdac; }
.stat-2 .stat-number { color: #fc4d4a; }
.stat-3 .stat-number { color: #a868fb; }

.stat-label {
    font-size: 16px;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .card-pair {
        width: 600px;
        height: 360px;
    }

    .diff-card {
        padding: 20px;
    }

    .card-pair.prev {
        transform: translate(-75%, -50%) translateZ(-150px) rotateY(15deg) scale(0.75);
    }

    .card-pair.next {
        transform: translate(-25%, -50%) translateZ(-150px) rotateY(-15deg) scale(0.75);
    }
}