/* 2. Expertise Section: Floating Glass Tiles (Restored) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px 0;
    perspective: 1000px;
}

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 28px;
    position: relative;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

/* Staggered positioning for depth - Disabled on mobile for even stacking */
@media (min-width: 993px) {
    .expertise-card:nth-child(1) {
        transform: translateY(0px);
    }

    .expertise-card:nth-child(2) {
        transform: translateY(20px);
    }

    .expertise-card:nth-child(3) {
        transform: translateY(40px);
    }

    .expertise-card:nth-child(4) {
        transform: translateY(10px);
    }

    .expertise-card:nth-child(5) {
        transform: translateY(30px);
    }
}

/* Glass reflection effect */
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Floating shadow */
.expertise-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(79, 25, 100, 0.4) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
}

.expertise-card:hover {
    transform: translateY(-25px) rotateX(5deg) scale(1.03);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 0, 222, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 40px rgba(79, 25, 100, 0.2);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover::after {
    opacity: 1;
    bottom: -30px;
}

.expertise-card .icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 222, 0.08);
    border: 1.5px solid rgba(255, 0, 222, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #975ab6;
    margin-bottom: 22px;
    position: relative;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.expertise-card .icon-box i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.expertise-card:hover .icon-box {
    background: rgba(255, 0, 222, 0.15);
    border-color: #975ab6;
    box-shadow:
        0 0 20px rgba(255, 0, 222, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateZ(40px);
}

.expertise-card:hover .icon-box i {
    transform: scale(1.1) rotateY(360deg);
    color: #975ab6;
    filter: drop-shadow(0 0 8px rgba(255, 0, 222, 0.6));
}

@media (max-width: 992px) {
    .expertise-card {
        padding: 25px 20px;
    }

    .expertise-card .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .expertise-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .expertise-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    transform: translateZ(10px);
}

.expertise-card:hover h3 {
    color: #975ab6;
    letter-spacing: 0.5px;
}

.expertise-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.expertise-card .link-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    align-self: flex-end;
    transition: all 0.4s ease;
    transform: translateZ(15px);
}

.expertise-card:hover .link-arrow {
    background: #975ab6;
    border-color: #975ab6;
    color: white;
    transform: translateZ(30px) translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 0, 222, 0.4);
}