.section {
    padding: 8rem 2rem;
    background: #000000;
    position: relative;
    perspective: 1200px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--foreground);
    letter-spacing: -0.05em;
}

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

.card {
    background: #0a0a0a;
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
    animation: cardGlow 2s ease-in-out infinite;
}

.card:hover {
    border-color: var(--foreground-muted);
    transform: translateY(-8px) rotateX(5deg) translateZ(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.iconWrapper {
    margin-bottom: 1.5rem;
    color: var(--foreground);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    display: inline-block;
}

.card:hover .iconWrapper {
    transform: translateZ(15px) rotateY(15deg) scale(1.1);
}

.cardTitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card:hover .cardTitle {
    transform: translateZ(10px);
}

.cardDesc {
    color: var(--foreground-muted);
    line-height: 1.7;
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card:hover .cardDesc {
    transform: translateZ(5px);
}

@keyframes cardGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}

