* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    perspective: 1200px;
}

.tilt-section {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.tilt-section > p {
    color: #94a3b8;
    margin-bottom: 3rem;
}

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

.tilt-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 2.4rem 2rem;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    will-change: transform;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.card-inner {
    transform: translateZ(40px);
    color: #e2e8f0;
    position: relative;
    z-index: 2;
}

.tilt-icon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.tilt-card:nth-child(2) .tilt-icon {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.tilt-card:nth-child(3) .tilt-icon {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.card-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.card-inner p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--gx, 50%) var(--gy, 0%),
        rgba(255, 255, 255, 0.28),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.tilt-card:hover .glare {
    opacity: 1;
}

@media (max-width: 620px) {
    .cards {
        grid-template-columns: 1fr;
    }
}