/* 3D Transform Effects */
.feature-card,
.section-card,
.workspace-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.section-card:hover,
.workspace-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* 3D Card Tilt Effect */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-3d:hover::before {
    opacity: 1;
}

/* Interactive 3D Layers */
.card-layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-layer {
    transform: translateZ(20px);
}

/* 3D Icon Float */
.feature-icon {
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.feature-card:hover .feature-icon {
    transform: translateZ(30px) scale(1.1) rotateY(10deg);
}

/* Parallax Effect */
.parallax-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.parallax-layer {
    transition: transform 0.3s ease;
}

.parallax-layer-1 { transform: translateZ(0px); }
.parallax-layer-2 { transform: translateZ(20px); }
.parallax-layer-3 { transform: translateZ(40px); }

/* Glass Morphism Enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.shine-effect:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Floating Animation */
@keyframes float-3d {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

.float-3d {
    animation: float-3d 3s ease-in-out infinite;
}

/* Depth Shadow */
.depth-shadow {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.05);
}

/* Interactive Button 3D */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.btn-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-10px);
    opacity: 0.5;
    filter: blur(10px);
}

.btn-3d:hover {
    transform: translateY(-5px) translateZ(10px);
}

.btn-3d:active {
    transform: translateY(-2px) translateZ(5px);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Glow Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow:
        0 0 20px rgba(37, 99, 235, 0.4),
        0 0 40px rgba(37, 99, 235, 0.2),
        0 0 60px rgba(37, 99, 235, 0.1);
}

/* Perspective Grid */
.perspective-grid {
    perspective: 1200px;
    display: grid;
}

.perspective-item {
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.perspective-item:hover {
    transform: rotateY(10deg) rotateX(-5deg) translateZ(20px);
}

/* Layered Cards */
.layered-card {
    position: relative;
}

.layered-card::before,
.layered-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: inherit;
    border-radius: inherit;
    opacity: 0.6;
    z-index: -1;
}

.layered-card::before {
    transform: translateZ(-20px) scale(0.95);
}

.layered-card::after {
    transform: translateZ(-40px) scale(0.9);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neumorphism Effect */
.neomorph {
    background: #e0e5ec;
    box-shadow:
        9px 9px 16px rgba(163, 177, 198, 0.6),
        -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.neomorph-inset {
    box-shadow:
        inset 6px 6px 10px rgba(163, 177, 198, 0.6),
        inset -6px -6px 10px rgba(255, 255, 255, 0.5);
}

/* Holographic Effect */
.holographic {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(200, 230, 255, 0.8),
        rgba(255, 200, 255, 0.8),
        rgba(255, 255, 200, 0.8)
    );
    background-size: 200% 200%;
    animation: holographic-shift 3s ease infinite;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Elevation Levels */
.elevation-1 { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.elevation-2 { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12); }
.elevation-3 { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14); }
.elevation-4 { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16); }
.elevation-5 { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18); }

/* Apply 3D effects to existing elements */
.feature-card,
.section-card,
.workspace-card {
    transform-style: preserve-3d;
}

.hero {
    perspective: 1000px;
}

.stats {
    transform-style: preserve-3d;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateZ(20px) scale(1.05);
}
