/* ── Reset & Tokens ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #08080f;
    --bg-card: rgba(14, 14, 28, 0.75);
    --bg-input: rgba(8, 8, 20, 0.6);
    --bg-elevated: rgba(20, 20, 42, 0.5);
    --border: rgba(90, 90, 180, 0.10);
    --border-hover: rgba(110, 110, 200, 0.22);
    --border-focus: rgba(124, 108, 255, 0.45);
    --text-1: #eaeaf2;
    --text-2: #9090b0;
    --text-3: #555578;
    --accent: #7c6cff;
    --accent-2: #9d8fff;
    --accent-glow: rgba(124, 108, 255, 0.25);
    --accent-subtle: rgba(124, 108, 255, 0.08);
    --success: #34d399;
    --success-glow: rgba(52, 211, 153, 0.2);
    --error: #f87171;
    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 5%, rgba(124, 108, 255, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 90%, rgba(52, 211, 153, 0.03), transparent 70%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ──────────────────────────────────────────────────────── */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    padding: 16px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #5b4cd4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 400;
}

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    align-items: start;
}

@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }
}

/* ── Panels ──────────────────────────────────────────────────────── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(24px);
    transition: border-color 0.2s var(--ease);
}

.panel:hover {
    border-color: var(--border-hover);
}

.panel-header {
    padding: 4px 4px 0;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-subtle);
    color: var(--accent-2);
}

.panel-body {
    padding: 16px;
}

/* ── Tabs ────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 2px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s var(--ease);
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.02);
}

.tab.active {
    color: var(--text-1);
    border-bottom-color: var(--accent);
    background: rgba(124, 108, 255, 0.04);
}

.tab-icon {
    font-size: 14px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── JD Textarea ─────────────────────────────────────────────────── */
#jd-tab textarea {
    width: 100%;
    height: 340px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#jd-tab textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#jd-tab textarea::placeholder {
    color: var(--text-3);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-count {
    font-size: 11px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    position: relative;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5b4cd4);
    color: #fff;
    box-shadow: 0 2px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-arrow {
    opacity: 0;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #22c55e);
    color: #000;
    box-shadow: 0 2px 16px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--success-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid rgba(124, 108, 255, 0.2);
}

.btn-outline:hover {
    background: var(--accent-subtle);
    border-color: rgba(124, 108, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-3);
}

.btn-ghost:hover {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

/* ── State Views ─────────────────────────────────────────────────── */
.state-view {
    display: none;
}

.state-view.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s var(--ease) forwards;
}

.empty-visual {
    margin-bottom: 16px;
}

.empty-page {
    width: 100px;
    height: 130px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(124, 108, 255, 0.12);
    animation: shimmer 2s ease infinite;
}

.empty-line.w100 {
    width: 100%;
}

.empty-line.w90 {
    width: 90%;
    animation-delay: 0.1s;
}

.empty-line.w80 {
    width: 80%;
    animation-delay: 0.2s;
}

.empty-line.w70 {
    width: 70%;
    animation-delay: 0.3s;
}

.empty-line.w60 {
    width: 60%;
    animation-delay: 0.4s;
}

.empty-text {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
}

.empty-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}

/* Progress */
.progress-container {
    width: 100%;
    padding: 8px 0;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    gap: 14px;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.progress-step.active,
.progress-step.complete {
    opacity: 1;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18px;
    flex-shrink: 0;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-3);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.progress-step.active .step-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulse-dot 1.5s ease infinite;
}

.progress-step.complete .step-dot {
    background: var(--success);
}

.step-line {
    width: 2px;
    height: 24px;
    background: var(--border);
    transition: background 0.4s ease;
}

.progress-step.complete .step-line {
    background: rgba(52, 211, 153, 0.4);
}

.step-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
}

.step-status {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.progress-step.active .step-status {
    color: var(--accent-2);
}

.progress-step.complete .step-label {
    color: var(--success);
}

.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(100, 100, 200, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.success-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.resume-preview-wrapper {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.resume-preview-wrapper iframe {
    width: 100%;
    height: 500px;
    border: none;
    background: #fff;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.error-text {
    color: var(--error);
    font-size: 13px;
    margin-bottom: 14px;
    text-align: center;
    max-width: 360px;
}

.footer {
    text-align: center;
    padding: 20px 0 12px;
}

.footer p {
    font-size: 11px;
    color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════════ */
/* ── METADATA VISUALIZATION ──────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════ */

#bg-tab {
    display: none;
    flex-direction: column;
}

#bg-tab.active {
    display: flex;
}

.meta-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.meta-viewer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.meta-viewer-actions {
    display: flex;
    gap: 4px;
}

.meta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* ── Cards: glassmorphism + gradient glow ── */
.meta-card {
    position: relative;
    background: rgba(12, 12, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    animation: cardIn 0.4s var(--ease) both;
}

.meta-card:nth-child(1) {
    animation-delay: 0s;
}

.meta-card:nth-child(2) {
    animation-delay: 0.05s;
}

.meta-card:nth-child(3) {
    animation-delay: 0.1s;
}

.meta-card:nth-child(4) {
    animation-delay: 0.15s;
}

.meta-card:nth-child(5) {
    animation-delay: 0.2s;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

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

/* Gradient glow border */
.meta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.meta-card:hover::before {
    background: linear-gradient(135deg, var(--card-accent, var(--accent)), transparent, var(--card-accent, var(--accent)));
    opacity: 0.5;
}

.meta-card.expanded::before {
    background: linear-gradient(135deg, var(--card-accent, var(--accent)), transparent 60%);
    opacity: 0.6;
}

.meta-card.expanded {
    grid-column: 1 / -1;
}

/* Per-section colors */
.meta-card[data-section="personal"] {
    --card-accent: #60a5fa;
}

.meta-card[data-section="education"] {
    --card-accent: #a78bfa;
}

.meta-card[data-section="skills"] {
    --card-accent: #fbbf24;
}

.meta-card[data-section="experience"] {
    --card-accent: #34d399;
}

.meta-card[data-section="projects"] {
    --card-accent: #f472b6;
}

/* Card header */
.meta-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.meta-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.meta-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.meta-card-info {
    flex: 1;
    min-width: 0;
}

.meta-card-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.2;
}

.meta-card-count {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* Mini progress bar */
.meta-card-bar {
    height: 2px;
    margin: 0 14px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.meta-card-bar-fill {
    height: 100%;
    border-radius: 1px;
    background: var(--card-accent, var(--accent));
    opacity: 0.5;
    transition: width 0.6s var(--ease);
}

.meta-card-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform 0.3s var(--ease), color 0.3s ease;
}

.meta-card.expanded .meta-card-chevron {
    transform: rotate(90deg);
    color: var(--card-accent, var(--accent-2));
}

/* Card body */
.meta-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.meta-card.expanded .meta-card-body {
    max-height: 600px;
    overflow-y: auto;
}

.meta-card.expanded .meta-card-body::-webkit-scrollbar {
    width: 4px;
}

.meta-card.expanded .meta-card-body::-webkit-scrollbar-thumb {
    background: rgba(124, 108, 255, 0.2);
    border-radius: 2px;
}

.meta-card-content {
    padding: 4px 14px 14px;
}

/* Tags */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.meta-tag {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.meta-tag:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-1);
}

/* Entries */
.meta-entry {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-entry:last-child {
    border-bottom: none;
}

.meta-entry-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-1);
}

.meta-entry-sub {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.meta-entry-desc {
    font-size: 11px;
    color: var(--text-2);
    margin-top: 5px;
    line-height: 1.5;
}

.meta-entry-bullets {
    margin: 5px 0 0 0;
    list-style: none;
    padding: 0;
}

.meta-entry-bullets li {
    font-size: 10.5px;
    color: var(--text-2);
    margin-bottom: 3px;
    line-height: 1.45;
    position: relative;
    padding-left: 12px;
}

.meta-entry-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--card-accent, var(--accent));
    opacity: 0.6;
}

.meta-entry-tech {
    margin-top: 6px;
}

/* Key-value */
.meta-kv {
    margin-top: 4px;
}

.meta-kv-row {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.meta-kv-row:last-child {
    border-bottom: none;
}

.meta-kv-label {
    color: var(--text-3);
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.meta-kv-value {
    color: var(--text-2);
    word-break: break-all;
}

.meta-kv-empty {
    color: rgba(255, 255, 255, 0.15);
    font-style: italic;
}

/* Skill groups */
.meta-skill-group {
    margin-top: 10px;
}

.meta-skill-group:first-child {
    margin-top: 4px;
}

.meta-skill-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* ── Chat Section ────────────────────────────────────────────────── */
.bg-chat-section {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
}

.bg-chat {
    max-height: 120px;
    overflow-y: auto;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 108, 255, 0.15) transparent;
}

.chat-welcome {
    text-align: center;
    padding: 8px;
}

.chat-welcome-sub {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.5;
}

.chat-msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    max-width: 95%;
    animation: fadeIn 0.25s ease;
}

.chat-msg.user {
    background: var(--accent-subtle);
    color: var(--text-1);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-msg.ai {
    background: var(--bg-elevated);
    color: var(--text-2);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-msg.ai.success {
    border-left: 3px solid var(--success);
}

.chat-msg.ai.error {
    border-left: 3px solid var(--error);
    color: var(--error);
}

.chat-msg .changes-summary {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-2);
    background: rgba(52, 211, 153, 0.06);
    padding: 6px 8px;
    border-radius: 5px;
}

.clarify-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.clarify-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    border-radius: 5px;
    background: var(--accent-subtle);
    border: 1px solid rgba(124, 108, 255, 0.15);
    color: var(--accent-2);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clarify-btn:hover {
    background: rgba(124, 108, 255, 0.15);
    border-color: rgba(124, 108, 255, 0.3);
}

.chat-thinking {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    align-self: flex-start;
}

.thinking-dots {
    display: flex;
    gap: 3px;
}

.thinking-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    animation: bounce 1.2s ease infinite;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.bg-input-area {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: flex-end;
}

.bg-input-area textarea {
    flex: 1;
    height: 36px;
    min-height: 36px;
    max-height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bg-input-area textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.bg-input-area textarea::placeholder {
    color: var(--text-3);
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }
}