/* 3D Elements and Illustrations */

/* 3D Tech/Business Hero Illustration */
.hero-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.3;
}

.hero-3d-shape {
    position: absolute;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 8s ease-in-out infinite;
}

.hero-3d-shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.hero-3d-shape-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    transform: rotate(-30deg);
    animation-delay: -2s;
}

.hero-3d-shape-3 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 20%;
    transform: rotate(60deg);
    animation-delay: -4s;
}

/* 3D Service Icons */
.service-icon-3d {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.service-icon-3d::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 25px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.6s;
    z-index: -1;
}

.service-card:hover .service-icon-3d {
    transform: rotateY(15deg) rotateX(5deg) translateZ(20px) scale(1.1);
}

.service-card:hover .service-icon-3d::before {
    opacity: 0.6;
}

/* 3D Country Maps */
.country-map-3d {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.country-map-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: var(--radius-lg);
    transform: translateZ(-30px);
    filter: blur(30px);
}

.country-map-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* 3D Building Illustrations */
.building-3d {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.building-block {
    width: 60px;
    background: var(--gradient-primary);
    border-radius: 8px 8px 0 0;
    box-shadow: 
        0 -10px 20px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.building-block-1 {
    height: 80%;
    animation: buildingPulse 3s ease-in-out infinite;
}

.building-block-2 {
    height: 100%;
    animation: buildingPulse 3s ease-in-out infinite 0.3s;
}

.building-block-3 {
    height: 70%;
    animation: buildingPulse 3s ease-in-out infinite 0.6s;
}

.building-block-4 {
    height: 90%;
    animation: buildingPulse 3s ease-in-out infinite 0.9s;
}

@keyframes buildingPulse {
    0%, 100% {
        transform: translateZ(0) scaleY(1);
    }
    50% {
        transform: translateZ(10px) scaleY(1.05);
    }
}

/* 3D Workflow Diagram */
.workflow-3d {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    transform-style: preserve-3d;
}

.workflow-step-3d {
    position: relative;
    flex: 1;
    text-align: center;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-step-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%) translateZ(-10px);
    opacity: 0.5;
}

.workflow-step-3d:last-child::before {
    display: none;
}

.workflow-circle-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-step-3d:hover .workflow-circle-3d {
    transform: translateZ(30px) scale(1.15);
    box-shadow: 
        0 20px 50px rgba(0, 102, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 3D Industry Icons */
.industry-icon-3d {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--gradient-primary);
    border-radius: 24px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 15px 40px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
}

.industry-icon-3d::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 30px;
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.6s;
    z-index: -1;
}

.industry-card:hover .industry-icon-3d {
    transform: rotateY(20deg) rotateX(10deg) translateZ(30px) scale(1.15);
}

.industry-card:hover .industry-icon-3d::after {
    opacity: 0.7;
}

/* 3D Floating Particles */
.particles-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateZ(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateZ(100px) scale(1);
        opacity: 0;
    }
}

/* 3D Card Hover Effects */
.card-3d-hover {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d-hover:hover {
    transform: rotateY(5deg) rotateX(-5deg) translateZ(20px);
}

/* 3D Button Effects */
.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d:hover {
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 
        0 15px 40px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-3d:active {
    transform: translateY(-1px) translateZ(5px);
}

/* Responsive 3D Adjustments */
@media (max-width: 768px) {
    .hero-3d-container {
        display: none;
    }
    
    .service-icon-3d {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .workflow-circle-3d {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .industry-icon-3d {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}

