/* components\why-choose\why-choose.css */
.why-choose-3d {
    position: relative;
    padding: 100px 0;
    background-color: #f9fafb;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
    perspective: 2000px;
}

.why-choose-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.why-choose-header.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-choose-header.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--text-main, #111);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.why-choose-header p {
    font-size: 18px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
}

.tilt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.tilt-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 24px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out, opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform-origin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tilt-card.reveal {
    opacity: 0;
    transform: perspective(1000px) scale(0.6) rotateX(-20deg) translateZ(-200px);
}

.tilt-card.reveal.active {
    opacity: 1;
    transform: perspective(1000px) scale(1) rotateX(0) translateZ(0);
}

.tilt-card:nth-child(1) { transition-delay: 0.1s; }
.tilt-card:nth-child(2) { transition-delay: 0.2s; }
.tilt-card:nth-child(3) { transition-delay: 0.3s; }
.tilt-card:nth-child(4) { transition-delay: 0.4s; }

.tilt-content {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 4px 10px -2px rgba(0, 0, 0, 0.02);
    transform-style: preserve-3d;
    transform: translateZ(0);
    overflow: hidden;
}

.tilt-icon-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.15;
    transform: translateZ(10px); 
    transition: all 0.4s ease;
}

.tilt-card:hover .tilt-icon-bg {
    opacity: 0.25;
    transform: translateZ(20px) scale(1.1);
}

.icon-yellow { background: #ffd633; }
.icon-blue   { background: #3b82f6; }
.icon-pink   { background: #ec4899; }
.icon-green  { background: #10b981; }

.tilt-icon {
    font-size: 48px;
    color: var(--text-main, #111);
    margin-bottom: auto;
    margin-top: 10px;
    transform: translateZ(50px); 
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.tilt-card:nth-child(1) .tilt-icon { color: #b48e00; }
.tilt-card:nth-child(2) .tilt-icon { color: #2563eb; }
.tilt-card:nth-child(3) .tilt-icon { color: #db2777; }
.tilt-card:nth-child(4) .tilt-icon { color: #059669; }

.tilt-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--text-main, #111);
    transform: translateZ(30px);
    pointer-events: none;
}

.tilt-content p {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.5;
    margin: 0;
    transform: translateZ(20px);
    pointer-events: none;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 80%
    );
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    transform: translateZ(1px);
}

.tilt-card:hover .card-glare {
    opacity: 1;
}

.xp-float {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #ffd633;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 214, 51, 0.4);
    opacity: 0;
    transform: translateZ(60px) translateY(10px) rotate(10deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tilt-card:hover .xp-float {
    opacity: 1;
    transform: translateZ(80px) translateY(0) rotate(0deg);
}

@media (max-width: 1024px) {
    .why-choose-3d {
        padding: 60px 0;
    }
    
    .tilt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tilt-card {
        height: 320px;
    }
    
    .tilt-icon {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .tilt-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px auto 0;
    }
    
    .tilt-card {
        height: 300px;
        transform: none !important; 
    }
    
    .tilt-content {
        transform: none !important;
        padding: 24px;
    }
    
    .tilt-icon, 
    .tilt-content h3, 
    .tilt-content p,
    .tilt-icon-bg {
        transform: translateZ(0) !important;
    }
    
    .xp-float {
        opacity: 1;
        transform: none;
        top: 20px;
        right: 20px;
    }
}