/* ====================================================
   DIGITAL MARKETING & CREATIVE STYLESHEET (digital-marketing.css)
   PT. Mitra Cerdas Nusantara — Interactive & Scroll Animation Engine
   ==================================================== */

.digital-marketing-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.website-hero-card .layanan-title-center {
    color: #ffffff !important;
}

.website-hero-card .layanan-desc-center {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ====================================================
   1. HERO FLOATING & SHIMMER ANIMATION
   ==================================================== */
@keyframes heroFloatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroGlowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

.website-hero-img-wrapper {
    position: relative;
}

.website-hero-img-wrapper::before {
    content: "";
    position: absolute;
    inset: -15px;
    z-index: 0;
    background: radial-gradient(circle, rgba(216, 18, 81, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: heroGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.website-hero-img-wrapper img {
    position: relative;
    z-index: 1;
    animation: heroFloatAnim 5s ease-in-out infinite;
}

/* ====================================================
   2. CARD HOVER MOTION & ICON POP
   ==================================================== */
.layanan-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.layanan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.layanan-card-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease, color 0.35s ease;
}

.layanan-card:hover .layanan-card-icon {
    transform: scale(1.05);
}

/* ====================================================
   3. SCROLL REVEAL ANIMATIONS ENGINE
   ==================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays for Grid Cards */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.48s; }
.reveal-delay-6 { transition-delay: 0.58s; }

/* ====================================================
   4. WORKFLOW STEP CARD ANIMATIONS
   ==================================================== */
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(216, 18, 81, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(216, 18, 81, 0);
    }
}

.layanan-card-icon[style*="background-color: #D81251"] {
    animation: stepPulse 3s infinite;
}

/* ====================================================
   5. RESPONSIVE BREAKPOINTS
   ==================================================== */
@media (max-width: 768px) {
    .layanan-why-5-top,
    .layanan-why-5-bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Accessibility: Support for users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .website-hero-img-wrapper img,
    .website-hero-img-wrapper::before,
    .layanan-card-icon[style*="background-color: #D81251"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}
