/* landing_animations.css — styles for the three service panel art animations */

/* ── Hero entrance: hide before JS animates in (desktop only) ───── */
@media (min-width: 1001px) {
    #hero,
    #hero nav,
    .textual h1,
    .textual p,
    .textual a,
    #hero-illus-wrap {
        opacity: 0;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

/* ── Panel art base ─────────────────────────────────────────────── */
.panel-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* ── Resources orbit ───────────────────────────────────────────── */
/* #services #resources-art has specificity 200 — beats the general .panel-art override (111) */
#services #resources-art { width: 400px; height: 320px; }
#resources-orbit {
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    overflow: visible;
}
.res-file {
    position: absolute;
    left: 0; top: 0;
    width: 104px; height: 132px;
    margin: -66px 0 0 -52px;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    will-change: transform, opacity;
    padding-top: 4px;
}
.res-file::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 22px 22px 0;
    border-color: transparent;
}
.res-file .rf-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.res-file .rf-ico svg { width: 100%; height: 100%; }
.res-file .rf-ext { font-family: 'Josefin Slab', serif; font-weight: 700; font-size: 12px; letter-spacing: .04em; margin-bottom: 5px; }
.rf-pdf  { background: #fff8f7; } .rf-pdf::before  { border-right-color: #EB5757; } .rf-pdf  .rf-ext { color: #EB5757; }
.rf-py   { background: #f4f9ff; } .rf-py::before   { border-right-color: #3776ab; } .rf-py   .rf-ext { color: #3776ab; }
.rf-html { background: #fff7f4; } .rf-html::before { border-right-color: #e44d26; } .rf-html .rf-ext { color: #e44d26; }
.rf-quiz { background: #f0faff; } .rf-quiz::before { border-right-color: #019ad9; } .rf-quiz .rf-ext { color: #019ad9; }
.rf-docx { background: #f4f8ff; } .rf-docx::before { border-right-color: #2b579a; } .rf-docx .rf-ext { color: #2b579a; }
.rf-pptx { background: #fff6f3; } .rf-pptx::before { border-right-color: #d24726; } .rf-pptx .rf-ext { color: #d24726; }
.rf-xlsx { background: #f3faf5; } .rf-xlsx::before { border-right-color: #217346; } .rf-xlsx .rf-ext { color: #217346; }
.rf-sum  { background: #fff8f5; } .rf-sum::before  { border-right-color: #ff703e; } .rf-sum  .rf-ext { color: #ff703e; }

/* ── Assistants art ────────────────────────────────────────────── */
/* override "section > div { flex-flow: column; width: 50% }" which bleeds onto .panel-art */
#assistants-art {
    display: flex;
    flex-direction: row;  /* robot left, bubbles right */
    align-items: center;
    width: auto;
    overflow: visible;
}
.asst-robot-wrap {
    position: relative;
    width: 270px; height: 336px;
    flex: 0 0 270px;
    will-change: transform;
}
.asst-robot-shadow {
    position: absolute;
    bottom: 30px; left: 50%;
    width: 160px; height: 20px;
    border-radius: 50%;
    background: rgba(1,154,217,.2);
    filter: blur(8px);
    transform: translateX(-50%);
    z-index: -1;
}
.asst-robot-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transform-origin: center;
    will-change: transform;
    filter: drop-shadow(0 24px 24px rgba(1,154,217,.22));
}
.asst-bubbles {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    margin-left: -4px;
}
.asst-bubble {
    background: var(--primary-light);
    color: var(--text-dark);
    font-family: var(--font-text-secondary);
    font-size: 2rem;
    line-height: 1.5;
    padding: 13px 28px;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 8px 20px rgba(1,154,217,.14);
    white-space: nowrap;
    will-change: transform, opacity;
}
.asst-bubble.ab2 { margin-left: 40px; }
.asst-bubble.ab3 { margin-left: 14px; }
.asst-text { display: none; }
.asst-dots { display: inline-flex; gap: 5px; align-items: center; height: 1.5em; vertical-align: middle; }
.asst-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grey-blue);
    opacity: .45;
    animation: asst-typ 1s infinite;
}
.asst-dots span:nth-child(2) { animation-delay: .16s; }
.asst-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes asst-typ {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: .95; }
}

/* ── Notes art ─────────────────────────────────────────────────── */
#services #notes-art { position: relative; width: 340px; height: 430px; }
.notes-paper {
    position: absolute;
    width: 290px; height: 380px;
    border-radius: 6px 16px 16px 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
    overflow: hidden;
    will-change: transform;
    top: 25px; left: 25px;
}
.notes-before { background: #fffef0; border: 1px solid #e8e4c8; z-index: 2; transform: rotate(-4deg); }
.notes-ruled {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(transparent, transparent 31px, #c8dff0 31px, #c8dff0 32px);
    margin-top: 48px;
}
.notes-red-margin { position: absolute; top: 0; left: 44px; width: 2px; height: 100%; background: rgba(255,120,120,.4); }
.notes-holes {
    position: absolute; top: 0; left: 0;
    width: 44px; height: 100%;
    background: #fffef0;
    display: flex; flex-direction: column;
    justify-content: space-around; align-items: center;
    padding: 28px 0;
}
.notes-hole { width: 14px; height: 14px; border-radius: 50%; background: #e8e4c8; border: 1px solid #d4cfa8; }
.notes-title-hw { position: absolute; top: 12px; left: 52px; font-family: 'Patrick Hand', cursive; font-size: 14px; color: #334; opacity: .8; }
.notes-hw-lines { position: absolute; top: 48px; left: 52px; width: 220px; overflow: visible; }
.notes-scan-bar {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-saturated), rgba(1,154,217,.8), transparent);
    box-shadow: 0 0 12px 4px rgba(1,154,217,.5);
    z-index: 10; pointer-events: none; opacity: 0;
}
.notes-after {
    background: #fff;
    border: 1.5px solid var(--primary-light);
    z-index: 1;
    transform: rotate(1deg);
    opacity: 0;
    box-shadow: 0 20px 50px rgba(1,154,217,.18);
}
.notes-top-bar { height: 38px; background: var(--primary-saturated); display: flex; align-items: center; padding: 0 14px; gap: 7px; flex-shrink: 0; }
.ntb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.ntb-title { font-family: var(--font-accent); font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .06em; margin-left: 4px; }
.notes-doc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.nd-line { height: 7px; border-radius: 3px; background: var(--primary-light); transform-origin: left center; }
.nd-line-accent { background: rgba(255,112,62,.3); }
.nd-sec-label { height: 5px; width: 48px; border-radius: 3px; background: var(--grey-blue); opacity: .45; transform-origin: left center; }
.nd-chart-wrap { display: flex; flex-direction: column; gap: 3px; }
.nd-chart { display: flex; align-items: flex-end; gap: 6px; height: 52px; padding: 0 2px; }
.nd-bar { width: 22px; border-radius: 3px 3px 0 0; transform-origin: bottom center; }
.nd-chart-floor { height: 2px; background: var(--primary-light); border-radius: 1px; transform-origin: left center; }
.nd-code { background: #0e1e2a; border-radius: 7px; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; }
.nd-code-line { display: flex; gap: 6px; align-items: center; }
.nd-tok { height: 6px; border-radius: 3px; transform-origin: left center; }
.nd-kw  { background: #89cfe8; }
.nd-fn  { background: #ff703e; }
.nd-str { background: #a8d5a2; }
.nd-cm  { background: #4a6070; opacity: .7; }
.nd-num { background: #ffd580; }
.nd-diagram { display: flex; align-items: center; justify-content: center; height: 42px; }
.nd-box { height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nd-box-a { width: 62px; background: var(--primary-light); border: 1.5px solid var(--primary-saturated); }
.nd-box-b { width: 62px; background: rgba(255,112,62,.15); border: 1.5px solid var(--accent-light); }
.nd-box-c { width: 50px; background: rgba(11,61,89,.1); border: 1.5px solid #0b3d59; }
.nd-box-inner { height: 5px; border-radius: 2px; width: 34px; background: var(--grey-blue); }
.nd-arrow { color: var(--grey-blue); font-size: 13px; padding: 0 3px; opacity: .8; }
.notes-check {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary-saturated);
    display: flex; align-items: center; justify-content: center;
    z-index: 20; opacity: 0;
    box-shadow: 0 8px 24px rgba(1,154,217,.4);
}
.notes-check svg { width: 34px; height: 34px; }

/* ── Mobile: hide all panel arts ────────────────────────────────── */
@media (max-width: 1000px) {
    .panel-art { display: none !important; }
}
