/* ================================================
   CREDENTIALS SHOWCASE - 3D ROTATABLE CAROUSEL
   ================================================ */

.credentials-showcase {
    padding: 8rem 0;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.credentials-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1), transparent 70%);
    pointer-events: none;
}

.credentials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Carousel Wrapper */
.credential-carousel-wrapper {
    position: relative;
    margin: 4rem 0;
    perspective: 2000px;
    min-height: 500px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Container */
.credential-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Credential Cards */
.credential-card {
    position: absolute;
    width: 340px;
    height: 420px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    background: linear-gradient(145deg, #1E293B, #0F172A);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, 
        rgba(124, 58, 237, 0.1), 
        rgba(124, 58, 237, 0.05), 
        rgba(91, 33, 182, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credential-card:hover::before {
    opacity: 1;
}

/* Card Types - Different Colors */
.credential-card.foundation {
    border-color: rgba(251, 191, 36, 0.4);
}

.credential-card.foundation .card-icon {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.credential-card.certification {
    border-color: rgba(59, 130, 246, 0.4);
}

.credential-card.certification .card-icon {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.credential-card.technique {
    border-color: rgba(16, 185, 129, 0.4);
}

.credential-card.technique .card-icon {
    background: linear-gradient(135deg, #10B981, #059669);
}

.credential-card.regenerative {
    border-color: rgba(239, 68, 68, 0.4);
}

.credential-card.regenerative .card-icon {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.credential-card.training {
    border-color: rgba(139, 92, 246, 0.4);
}

.credential-card.training .card-icon {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.credential-card.holistic {
    border-color: rgba(236, 72, 153, 0.4);
}

.credential-card.holistic .card-icon {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}

/* Card Ribbon */
.card-ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.card-ribbon::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 0;
    border-color: #5b21b6 transparent transparent transparent;
}

/* Card Icon */
.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.credential-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.credential-card .institution {
    font-size: 1rem;
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.honor-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #0F172A;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.credential-card .credential-desc {
    font-size: 0.95rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-top: auto;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(124, 58, 237, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #7c3aed;
    border-color: #a78bfa;
    transform: scale(1.3);
}

/* Credentials Summary */
.credentials-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.summary-stat {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.summary-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.stat-number-large {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-large {
    font-size: 1.1rem;
    color: #CBD5E1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .credentials-showcase {
        padding: 4rem 0;
    }
    
    .credential-carousel-wrapper {
        min-height: 480px;
    }
    
    .credential-card {
        width: 300px;
        height: 440px;
        padding: 2rem 1.5rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .credential-card h3 {
        font-size: 1.3rem;
    }
    
    .stat-number-large {
        font-size: 3rem;
    }
    
    .credentials-summary {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .credential-card {
        width: 280px;
        height: 460px;
    }
    
    .carousel-dots {
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}