/**
 * 3D Card Effects Styles
 * Styles for card 3D tilt effects like in the reference image
 */

/* Base 3D Card Setup */
.card-3d-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Card 3D Base Styles */
.testimonial-card,
.feature-card,
.service-card-enhanced,
.pricing-card,
.team-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    will-change: transform;
}

/* Shine Effect Overlay */
.card-3d-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Dark theme adjustments */
body.dark-theme .card-3d-shine {
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
}

/* Testimonial Cards 3D - Similar to reference image */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 119, 182, 0.1);
    overflow: hidden;
}

body.dark-theme .testimonial-card {
    background: #1a1a2e;
}

.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(0, 119, 182, 0.25);
}

/* Feature Cards 3D */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

body.dark-theme .feature-card {
    background: #1a1a2e;
}

/* Service Cards 3D */
.service-card-enhanced {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
}

body.dark-theme .service-card-enhanced {
    background: #1a1a2e;
}

/* Pricing Cards 3D */
.pricing-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
}

body.dark-theme .pricing-card {
    background: #1a1a2e;
}

.pricing-card.featured {
    background: var(--gradient-1);
}

/* Team Cards 3D */
.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

body.dark-theme .team-card {
    background: #1a1a2e;
}

/* 3D Depth Layers - Creates layered effect */
.card-3d-content {
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
}

.card-3d-icon {
    transform: translateZ(40px);
}

.card-3d-title {
    transform: translateZ(30px);
}

.card-3d-text {
    transform: translateZ(20px);
}

/* Hover state animations */
.testimonial-card:hover .card-3d-content,
.feature-card:hover .card-3d-content,
.service-card-enhanced:hover .card-3d-content,
.pricing-card:hover .card-3d-content,
.team-card:hover .card-3d-content {
    transform: translateZ(30px);
}

/* Glass morphism effect (optional) */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .card-glass {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stagger animation class */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax background effect */
.parallax-bg {
    transition: transform 0.3s ease-out;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Glow effect on hover */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.glow-on-hover:hover::before {
    opacity: 0.7;
}

/* Mobile optimizations - Disable 3D on smaller screens */
@media (max-width: 768px) {
    .testimonial-card,
    .feature-card,
    .service-card-enhanced,
    .pricing-card,
    .team-card {
        transform: none !important;
    }
    
    .card-3d-shine {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .feature-card,
    .service-card-enhanced,
    .pricing-card,
    .team-card {
        transform: none !important;
        transition: none !important;
    }
    
    .card-3d-shine,
    .animate-in,
    .float-animation {
        animation: none !important;
        transition: none !important;
    }
}
