/* =================================
   3D EFFECTS & ANIMATIONS
   ================================= */

/* 3D Journey Timeline */
.journey-3d {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(11, 17, 29, 0.95) 0%, rgba(9, 14, 24, 0.98) 100%);
    position: relative;
    overflow: hidden;
    perspective: 2000px;
}

.journey-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.journey-node {
    position: relative;
    transform-style: preserve-3d;
}

.node-card {
    width: 300px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 181, 255, 0.3);
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.node-card:hover {
    border-color: rgba(78, 181, 255, 0.8);
    box-shadow: 0 30px 80px rgba(78, 181, 255, 0.3);
}

.node-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
    transition: all 0.4s ease;
}

.node-card:hover .node-icon {
    transform: translateZ(60px) scale(1.2) rotateY(-10deg);
    color: var(--accent-color);
}

.node-card h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.node-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    transform: translateZ(10px);
}

.journey-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(78, 181, 255, 0.3), rgba(125, 226, 209, 0.3));
    position: relative;
}

.journey-connector::before {
    content: '';
    position: absolute;
    right: -8px;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 8px solid rgba(125, 226, 209, 0.5);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* 3D Isometric Business Cards */
.business-3d {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.03);
    perspective: 1500px;
    position: relative;
    overflow: hidden;
}

.business-isometric {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.iso-card {
    perspective: 1000px;
    height: 280px;
}

.iso-front {
    width: 100%;
    height: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(78, 181, 255, 0.1) 0%, rgba(125, 226, 209, 0.1) 100%);
    border: 2px solid rgba(78, 181, 255, 0.3);
    border-radius: 20px;
    transform-style: preserve-3d;
    transform: rotateX(2deg) rotateY(-2deg);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.iso-card:hover .iso-front {
    border-color: rgba(78, 181, 255, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(78, 181, 255, 0.2) inset;
}

.iso-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transform: translateZ(40px);
    transition: all 0.4s ease;
}

.iso-card:hover .iso-icon {
    transform: translateZ(60px) scale(1.2);
    color: var(--accent-color);
}

.iso-front h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.iso-front p {
    color: rgba(255, 255, 255, 0.8);
    transform: translateZ(10px);
}

/* Rotating Cube Showcase */
.business-visual-3d {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    perspective: 2000px;
}

.rotating-cube {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(78, 181, 255, 0.5);
    background: rgba(11, 17, 29, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.cube-face.front  { transform: translateZ(200px); }
.cube-face.back   { transform: translateZ(-200px) rotateY(180deg); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(200px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(200px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(200px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(200px); }

/* Floating Stats with 3D Depth */
.stats-floating {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.floating-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    perspective: 1500px;
}

.float-stat {
    perspective: 1000px;
}

.stat-cube {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(78, 181, 255, 0.08) 0%, rgba(125, 226, 209, 0.08) 100%);
    border: 2px solid rgba(78, 181, 255, 0.2);
    border-radius: 20px;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.float-stat[data-float="1"] .stat-cube {  }
.float-stat[data-float="2"] .stat-cube {  }
.float-stat[data-float="3"] .stat-cube {  }
.float-stat[data-float="4"] .stat-cube {  }

@keyframes float1 {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-20px) translateZ(30px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-25px) translateZ(35px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-18px) translateZ(28px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-22px) translateZ(32px); }
}

.float-stat:hover .stat-cube {
    transform: translateZ(50px) scale(1.05);
    border-color: rgba(78, 181, 255, 0.6);
}

.stat-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    transform: translateZ(40px);
    text-shadow: 0 0 30px rgba(78, 181, 255, 0.5);
}

.stat-suffix {
    display: inline-block;
    font-size: 2rem;
    color: var(--accent-color);
    margin-left: 0.3rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    transform: translateZ(20px);
}

.stat-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(78, 181, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    filter: blur(20px);
}

.float-stat:hover .stat-glow {
    opacity: 1;
}

/* 3D Flip Cards */
.why-choose-3d {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(9, 14, 24, 0.98) 0%, rgba(11, 17, 29, 0.95) 100%);
    perspective: 2000px;
}

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.flip-card {
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(78, 181, 255, 0.1) 0%, rgba(125, 226, 209, 0.1) 100%);
    border: 2px solid rgba(78, 181, 255, 0.3);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(78, 181, 255, 0.15) 0%, rgba(125, 226, 209, 0.15) 100%);
    border: 2px solid rgba(78, 181, 255, 0.5);
    transform: rotateY(180deg);
}

.flip-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.flip-card-front h3 {
    font-size: 1.8rem;
    color: var(--white);
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.flip-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(125, 226, 209, 0.5);
}

/* 3D Testimonials Carousel */
.testimonials-3d {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
    perspective: 2000px;
}

.testimonial-carousel-3d {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card-3d {
    min-width: 400px;
    perspective: 1000px;
}

.testimonial-inner {
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(78, 181, 255, 0.08) 0%, rgba(125, 226, 209, 0.08) 100%);
    border: 2px solid rgba(78, 181, 255, 0.3);
    border-radius: 24px;
    transform-style: preserve-3d;
    transform: rotateY(-5deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card-3d:hover .testimonial-inner {
    transform: rotateY(0deg) translateZ(30px);
    border-color: rgba(78, 181, 255, 0.6);
    box-shadow: 0 30px 80px rgba(78, 181, 255, 0.3);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 3rem;
    color: var(--primary-color);
}

.author-info strong {
    display: block;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.carousel-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(78, 181, 255, 0.1);
    border: 2px solid rgba(78, 181, 255, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.nav-btn:hover {
    background: rgba(78, 181, 255, 0.2);
    border-color: rgba(78, 181, 255, 0.6);
    transform: translateZ(10px) scale(1.1);
}

/* Responsive 3D Effects */
@media (max-width: 768px) {
    .journey-timeline {
        flex-direction: column;
        gap: 3rem;
    }
    
    .journey-connector {
        transform: rotate(90deg);
        width: 40px;
    }
    
    .node-card {
        width: 100%;
        max-width: 350px;
    }
    
    .business-isometric {
        grid-template-columns: 1fr;
    }
    
    .rotating-cube {
        width: 280px;
        height: 280px;
    }
    
    .cube-face {
        width: 280px;
        height: 280px;
    }
    
    .cube-face.front  { transform: translateZ(140px); }
    .cube-face.back   { transform: translateZ(-140px) rotateY(180deg); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(140px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(140px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(140px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(140px); }
    
    .flip-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card-3d {
        min-width: 90%;
    }
}
