/* Hero paragraph – calm & professional animation */
.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 560px;
    margin: 1.2rem 0 2.2rem;
    color: #334155; /* slate text for white background */
    position: relative;

    /* Soft entrance */
    opacity: 0;
    transform: translateY(14px);
    animation: calmFadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Subtle underline accent (non-moving after load) */
.hero p::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    border-radius: 2px;
    opacity: 0;
    animation: underlineDraw 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

/* Animations */
@keyframes calmFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineDraw {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 72px;
        opacity: 1;
    }
}

/* Responsive polish */
@media (max-width: 768px) {
    .hero p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}
/* ===============================
   Featured Case – Wrapper
================================ */

.case-featured {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;

    /* soft entrance */
    opacity: 0;
    transform: translateY(16px);
    animation: caseReveal 0.8s ease-out forwards;
}

/* ===============================
   Case Title
================================ */

.case-featured h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.8rem;

    opacity: 0;
    transform: translateY(10px);
    animation: textFadeUp 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* ===============================
   Case Description
================================ */

.case-featured p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.5rem;

    opacity: 0;
    transform: translateY(10px);
    animation: textFadeUp 0.5s ease-out forwards;
    animation-delay: 0.35s;
}

/* ===============================
   Metrics List
================================ */

.case-featured li {
    position: relative;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.65rem;
    padding-left: 1.3rem;

    opacity: 0;
    transform: translateX(-8px);
    animation: listReveal 0.45s ease-out forwards;
}

/* staggered animation */
.case-featured li:nth-child(1) { animation-delay: 0.55s; }
.case-featured li:nth-child(2) { animation-delay: 0.7s; }
.case-featured li:nth-child(3) { animation-delay: 0.85s; }

/* custom bullet */
.case-featured li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #6366f1);
}

/* ===============================
   Animations
================================ */

@keyframes caseReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes listReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 768px) {
    .case-featured {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .case-featured h3 {
        font-size: 1.25rem;
    }
}
