/* Particle Animation */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle-container::before,
.particle-container::after {
    content: '';
    position: absolute;
    width: 0.3125rem;
    height: 0.3125rem;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0.625rem #10b981;
    animation: particle 8s infinite;
}

.particle-container::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-container::after {
    top: 60%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(3.125rem, -6.25rem) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 0.3;
    }
}

/* Tilt Card Animation */
.tilt-card {
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(62.5rem) rotateX(2deg) rotateY(-2deg);
}

/* Prose Styling for Markdown Content */
.prose {
    color: #e5e7eb;
    max-width: 100%;
}

.prose h2 {
    color: #10b981;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h3 {
    color: #34d399;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.prose h4 {
    color: #6ee7b7;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.6;
    color: #d1d5db;
}

.prose a {
    color: #10b981;
    text-decoration: underline;
    transition: color 0.2s;
}

.prose a:hover {
    color: #34d399;
}

.prose strong {
    color: #f3f4f6;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.6;
    color: #d1d5db;
}

.prose li::marker {
    color: #10b981;
}

.prose table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
    max-width: 100%;
}

.prose thead {
    background-color: rgba(16, 185, 129, 0.2);
}

.prose thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #10b981;
    border-bottom: 0.125rem solid rgba(16, 185, 129, 0.3);
}

.prose tbody tr {
    border-bottom: 0.0625rem solid rgba(16, 185, 129, 0.1);
}

.prose tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.05);
}

.prose tbody td {
    padding: 0.75rem 1rem;
    color: #d1d5db;
}

.prose blockquote {
    border-left: 0.25rem solid #10b981;
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    font-style: italic;
    color: #9ca3af;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 0.625rem 1.875rem rgba(16, 185, 129, 0.2);
}

.prose code {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: #18181b;
    border: 0.0625rem solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    padding: 1em;
    overflow-x: auto;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: #e5e7eb;
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 1.5em;
        margin-bottom: 0.75em;
    }
    
    .prose h3 {
        font-size: 1.25rem;
        margin-top: 1.25em;
        margin-bottom: 0.625em;
    }
    
    .prose h4 {
        font-size: 1.125rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose thead th,
    .prose tbody td {
        padding: 0.5rem 0.75rem;
    }
}
