/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Courier+New:wght@400;700&display=swap');

/* Code block styling */
pre {
    background-color: rgba(17, 24, 39, 0.7) !important;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(55, 65, 81, 0.5);
}

code {
    font-family: 'Courier New', monospace;
    background-color: transparent;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

/* Glass card effect */
.glass-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Blog post content styles */
.blog-post-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(209, 213, 219, 1);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid rgba(75, 85, 99, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(55, 65, 81, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(75, 85, 99, 0.8);
}
/* Dynamic noise canvas */
#noiseCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
    animation: colorPulse 15s infinite alternate;
}

@keyframes colorPulse {
    0% { opacity: 0.15; }
    100% { opacity: 0.25; }
}
/* Sophisticated glassy background with purple-cyan-blue scheme */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(123, 31, 162, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 188, 212, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(41, 98, 255, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 70% 20%, rgba(156, 39, 176, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 30% 60%, rgba(0, 229, 255, 0.2) 0%, transparent 40%),
        linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(26, 32, 44, 0.98) 100%);
    z-index: -2;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    animation: subtlePulse 24s infinite alternate;
}

@keyframes subtlePulse {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}
/* Enhanced glass card effect */
.glass-card {
    background: rgba(31, 41, 55, 0.25);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.36),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-image: 
        linear-gradient(
            to bottom right,
            rgba(123, 31, 162, 0.1),
            rgba(0, 188, 212, 0.1)
        );
}

.glass-card:hover {
    background: rgba(31, 41, 55, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 48px 0 rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(220%);
    -webkit-backdrop-filter: blur(24px) saturate(220%);
}
