/* =====================================================
   CARD 7 - SOCIAL MEDIA CREATIVE DESIGN
===================================================== */


/* =====================================================
   Hero Animation
===================================================== */

.card7-hero-content {
    opacity: 0;
    transform: translateX(-50px);
    animation: card7HeroLeft 0.9s ease forwards;
}

.card7-hero-image {
    opacity: 0;
    transform: translateX(50px);
    animation: card7HeroRight 0.9s ease 0.2s forwards;
}


@keyframes card7HeroLeft {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes card7HeroRight {

    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================================
   Scroll Animation
===================================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   Detail Cards
===================================================== */

.detail-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 1.5rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Top glow line */

.detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;

    background: linear-gradient(90deg,
            transparent,
            rgba(34, 211, 238, 0.7),
            transparent);

    opacity: 0;
    transition: opacity 0.3s ease;
}


.detail-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 103, 214, 0.7);

    background: rgba(15, 23, 42, 0.9);

    box-shadow:
        0 18px 45px rgba(0, 103, 214, 0.12),
        0 0 30px rgba(0, 103, 214, 0.08);
}


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


/* =====================================================
   Detail Card Content
===================================================== */

.detail-card h3 {
    margin-top: 1.25rem;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}


.detail-card p {
    margin-top: 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.75;
}


/* =====================================================
   Icon Box
===================================================== */

.icon-box {
    display: flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    border-radius: 0.75rem;

    background: linear-gradient(135deg,
            #0067D6,
            #22d3ee);

    color: #ffffff;

    box-shadow:
        0 8px 25px rgba(0, 103, 214, 0.18);
}


.icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
}


/* =====================================================
   Mobile Menu
===================================================== */

#mobile-menu {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* =====================================================
   Tablet
===================================================== */

@media (max-width: 1023px) {

    .card7-hero-content {
        transform: translateY(35px);
        animation-name: card7HeroMobile;
    }

    .card7-hero-image {
        transform: translateY(35px);
        animation-name: card7HeroMobile;
    }

}


/* =====================================================
   Mobile Hero Animation
===================================================== */

@keyframes card7HeroMobile {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   Mobile
===================================================== */

@media (max-width: 767px) {

    /*
       Hide hero visual on mobile to keep the page
       compact and prevent visual clutter.
    */

    .card7-hero-image {
        display: none;
    }


    .detail-card {
        padding: 1.25rem;
    }


    .detail-card h3 {
        font-size: 1.05rem;
    }


    .detail-card p {
        font-size: 0.85rem;
        line-height: 1.7;
    }


    .icon-box {
        width: 2.75rem;
        height: 2.75rem;
    }


    .icon-box svg {
        width: 1.35rem;
        height: 1.35rem;
    }

}


/* =====================================================
   Reduced Motion Accessibility
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .card7-hero-content,
    .card7-hero-image,
    .scroll-animate,
    .detail-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

}