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

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

.header {
    text-align: center;
    margin-bottom: 5rem;
}

.tagline {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--foreground-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--foreground);
    line-height: 1.1;
}

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

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

.card:hover {
    border-color: var(--foreground-muted);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cardGlow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

.cardHeader {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.iconWrapper {
    margin-bottom: 1.5rem;
    color: var(--foreground);
    display: inline-block;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card:hover .iconWrapper {
    transform: translateZ(10px) rotateY(5deg);
}

.cardTitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--foreground);
    line-height: 1.2;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

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

.cardDesc {
    color: var(--foreground-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

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

.cardButton {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--foreground);
    padding: 0.75rem 0;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.cardButton:hover {
    color: var(--foreground-muted);
    gap: 0.75rem;
    transform: translateX(5px) translateZ(10px);
}

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

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

    .header {
        margin-bottom: 3rem;
    }

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

    .card {
        padding: 2rem;
    }
}

