* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.prose {
    color: #374151;
    max-width: 65ch;
}

.prose h1, .prose h2, .prose h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.prose h1 { 
    font-size: 2.25rem; 
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prose h2 { 
    font-size: 1.875rem; 
    color: #1e40af;
}

.prose h3 { 
    font-size: 1.5rem; 
    color: #3730a3;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #4b5563;
}

.prose code {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.prose pre {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f1f5f9;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

.prose img {
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.prose img:hover {
    transform: scale(1.02);
}

.prose a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.prose ul, .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.625rem;
}

.prose li {
    margin: 0.5rem 0;
    color: #4b5563;
}

/* Tailwind preflight tắt list-style — bật lại cho nội dung rich text (timeline, mô tả) */
.rich-lists.prose ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.35em !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
.rich-lists.prose ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.35em !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
.rich-lists.prose li {
    display: list-item !important;
    margin: 0.25rem 0 !important;
    color: #4b5563 !important;
}
.rich-lists.prose ul ul {
    list-style-type: circle !important;
    margin-top: 0.25rem !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mô tả trong card danh sách project — cuộn gọn, scrollbar mảnh */
.project-card-desc {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.project-card-desc::-webkit-scrollbar {
    width: 5px;
}
.project-card-desc::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}
.project-card-desc::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.project-card-desc::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}