.tech-section {
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tech-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tech-card {
    background: rgba(31, 41, 55, 0.7);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    z-index: -1;
    transform: translateZ(-1px);
}

.tech-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.tech-card:hover::after {
    left: 100%;
    opacity: 1;
}

.tech-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon-container {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.1);
}

.tech-icon {
    font-size: 1.75rem;
    color: #10B981;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.2) rotateY(20deg);
    color: #34D399;
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #047857);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tech-card:hover .tech-title::after {
    width: 60px;
}

.tech-description {
    color: #D1D5DB;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

/* Floating particles */
.tech-particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.2);
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

/* Glow effect */
.tech-glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

/* Animated circuit lines */
.tech-circuit {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(1000px) rotateX(60deg);
    transform-origin: top;
    opacity: 0.2;
    z-index: 0;
}

/* Enhanced animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.animate-pulse-slow {
    animation: pulse 8s infinite ease-in-out;
}

.animate-pulse-slow.delay-1000 {
    animation-delay: 1s;
}

.animate-float-slow {
    animation: float 20s infinite ease-in-out;
}

.animate-float-slow-reverse {
    animation: float 20s infinite ease-in-out reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
}
