/* Social Cards Section - Animated Service Cards */
/* Adapted from user provided code */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

.dm-social-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; Removed to fit in flow */
    background: #333;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.dm-social-container {
    position: relative;
    display: flex;
    padding: 80px 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
}

.dm-social-card {
    position: relative;
    width: 350px;
    height: 180px;
    background: #fff;
    transition: 0.5s;
    margin-bottom: 50px;
    /* spacing for expanding effect */
}

.dm-social-card:hover {
    height: 450px;
}

.dm-social-lines {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
}

.dm-social-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 120px;
    background: linear-gradient(transparent, #45f3ff, #45f3ff, #45f3ff, transparent);
    animation: dm-animate 4s linear infinite;
    animation-play-state: paused;
}

.dm-social-card:hover .dm-social-lines::before {
    animation-play-state: running;
}

@keyframes dm-animate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.dm-social-lines::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #292929;
}

.dm-social-imgBx {
    position: absolute;
    top: -60px;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translateX(-50%);
    background: #000;
    transition: 0.5s;
    z-index: 10;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dm-social-card:hover .dm-social-imgBx {
    top: 25px;
    width: 200px;
    height: 200px;
}

.dm-social-imgBx::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: linear-gradient(transparent, #ff3c7b, #ff3c7b, #ff3c7b, transparent);
    animation: dm-animate2 6s linear infinite;
    animation-play-state: paused;
}

@keyframes dm-animate2 {
    0% {
        transform: translate(-50%, -50%)rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%)rotate(360deg);
    }
}

.dm-social-imgBx::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #292929;
}

.dm-social-imgBx img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    z-index: 10;
    filter: invert(1);
    opacity: 0.5;
    transition: 0.5s;
}

.dm-social-card:hover .dm-social-imgBx img {
    opacity: 1;
}

.dm-social-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.dm-social-details {
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    transition: 0.5s;
    transform: translateY(145px);
}

.dm-social-card:hover .dm-social-details {
    transform: translateY(0px);
}

.dm-social-details h2 {
    font-size: 1.5em;
    font-weight: 500;
    color: #45f3ff;
    line-height: 1.2em;
}

.dm-social-details p {
    color: #fff;
    opacity: 0;
    transition: 0.5s;
}

.dm-social-card:hover .dm-social-details p,
.dm-social-card:hover .dm-social-details a {
    opacity: 1;
}

.dm-social-details a {
    display: inline-block;
    padding: 8px 15px;
    background: #45f3ff;
    color: #292929;
    margin-top: 10px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transition: 0.5s;
}