/* ============================================================
   ANIMATIONS.CSS – AOS & Custom Animations
   ============================================================ */

/* ── Section entry animation ─────────────────────────────── */
[data-aos] {
    will-change: transform, opacity;
}

/* ── Glow pulse ──────────────────────────────────────────── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--border-blue); }
    50%       { box-shadow: 0 0 40px var(--primary-light); }
}

.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Shimmer effect ──────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-text {
    background: var(--grad-mixed);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

/* ── Float animation ─────────────────────────────────────── */
@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.float-anim { animation: float-up-down 4s ease-in-out infinite; }

/* ── Spin slow ────────────────────────────────────────────── */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Fade in up ───────────────────────────────────────────── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ── Gradient border animation ───────────────────────────── */
@keyframes border-anim {
    0%   { border-color: var(--border-blue); }
    50%  { border-color: var(--border-red); }
    100% { border-color: var(--border-blue); }
}

/* ── Process timeline ────────────────────────────────────── */
.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--grad-mixed);
    transform: translateX(-50%);
}

.pt-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.pt-left {
    flex-direction: row;
    justify-content: flex-end;
    padding-right: calc(50% + 3rem);
}

.pt-right {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: calc(50% + 3rem);
}

.pt-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--on-primary);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-body);
    z-index: 10;
    box-shadow: var(--shadow-blue);
}

.pt-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 450px;
    transition: all 0.3s ease;
}

.pt-content.ptc-red {
    border-color: var(--border-red);
}

.pt-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-blue);
}

.pt-content.ptc-red:hover {
    box-shadow: var(--shadow-red);
    border-color: var(--border-red);
}

.ptc-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.ptc-red .ptc-icon { color: var(--accent); }
.ptc-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.ptc-desc { color: var(--text-secondary); font-size: 0.95rem; margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .process-timeline::before { left: 20px; }

    .pt-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 4.5rem;
        padding-right: 1.5rem;
    }

    .pt-left, .pt-right {
        flex-direction: column;
        justify-content: flex-start;
        padding-left: 4.5rem;
        padding-right: 1.5rem;
    }

    .pt-number {
        left: 20px;
        top: 1.5rem;
        transform: translateX(-50%);
    }
}
