.circuit-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg);
    transform-origin: top;
    opacity: 0.2;
}

.step-card {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #10b981, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#model-container {
    position: relative;
    overflow: hidden;
}

#model-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.impact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.btn {
    @apply py-3 px-6 rounded-lg font-medium transition-all duration-300 transform hover:scale-105;
}

.btn-primary {
    @apply bg-green-500 text-white hover:bg-green-600;
}

.btn-secondary {
    @apply bg-gray-700 text-white hover:bg-gray-600;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #model-container {
        height: 300px;
    }
    
    .step-card {
        padding: 1rem;
    }
}

/* Color variations for step cards */
.from-green-400\/20 {
    --tw-gradient-from: rgba(52, 211, 153, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(52, 211, 153, 0));
}

.to-green-600\/20 {
    --tw-gradient-to: rgba(5, 150, 105, 0.2);
}

.text-green-400 {
    --tw-text-opacity: 1;
    color: rgba(52, 211, 153, var(--tw-text-opacity));
}

.from-blue-400\/20 {
    --tw-gradient-from: rgba(96, 165, 250, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(96, 165, 250, 0));
}

.to-blue-600\/20 {
    --tw-gradient-to: rgba(37, 99, 235, 0.2);
}

.text-blue-400 {
    --tw-text-opacity: 1;
    color: rgba(96, 165, 250, var(--tw-text-opacity));
}

.from-yellow-400\/20 {
    --tw-gradient-from: rgba(251, 191, 36, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 191, 36, 0));
}

.to-yellow-600\/20 {
    --tw-gradient-to: rgba(217, 119, 6, 0.2);
}

.text-yellow-400 {
    --tw-text-opacity: 1;
    color: rgba(251, 191, 36, var(--tw-text-opacity));
}

.from-purple-400\/20 {
    --tw-gradient-from: rgba(167, 139, 250, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(167, 139, 250, 0));
}

.to-purple-600\/20 {
    --tw-gradient-to: rgba(124, 58, 237, 0.2);
}

.text-purple-400 {
    --tw-text-opacity: 1;
    color: rgba(167, 139, 250, var(--tw-text-opacity));
}

.from-red-400\/20 {
    --tw-gradient-from: rgba(248, 113, 113, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 113, 113, 0));
}

.to-red-600\/20 {
    --tw-gradient-to: rgba(220, 38, 38, 0.2);
}

.text-red-400 {
    --tw-text-opacity: 1;
    color: rgba(248, 113, 113, var(--tw-text-opacity));
}

.from-teal-400\/20 {
    --tw-gradient-from: rgba(45, 212, 191, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(45, 212, 191, 0));
}

.to-teal-600\/20 {
    --tw-gradient-to: rgba(13, 148, 136, 0.2);
}

.text-teal-400 {
    --tw-text-opacity: 1;
    color: rgba(45, 212, 191, var(--tw-text-opacity));
}
