:root {
    /* Neon Theme Colors */
    --primary: #0ef;
    --primary-dark: #0af;
    --secondary: #f0f;
    --tertiary: #0ff;
    --accent: #f0e;
    --dark: #0a0b1a;
    --darker: #070818;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-800: #1e293b;
    --code-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.neon-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(14, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 255, 255, 0.05) 1px, transparent 1px);
    opacity: 0.4;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: var(--tertiary);
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.8);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    position: relative;
}

/* Navigation */
.navbar {
    background-color: rgba(10, 11, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(14, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(14, 255, 255, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(14, 255, 255, 0.5);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-300);
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.8);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.8);
}

/* Post Header */
.post-header {
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    background-color: var(--dark);
    border-bottom: 1px solid rgba(14, 255, 255, 0.2);
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 255, 255, 0.1), transparent 70%);
    z-index: 0;
}

.post-header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.post-category {
    display: inline-block;
    background: rgba(14, 255, 255, 0.1);
    border: 1px solid rgba(14, 255, 255, 0.3);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(14, 255, 255, 0.2);
    font-weight: 500;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(14, 255, 255, 0.5);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--gray-300);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item i {
    color: var(--primary);
}

.post-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(14, 255, 255, 0.2);
    position: relative;
    margin-top: 2rem;
}

.post-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    z-index: -1;
    border-radius: 0.6rem;
    opacity: 0.7;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray-200);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(14, 255, 255, 0.3);
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(14, 255, 255, 0.8);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    margin: 2rem 0 1rem;
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.2);
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--gray-200);
}

.article-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content li strong {
    color: var(--light);
    font-weight: 600;
}

.article-content pre {
    background: var(--code-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(14, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.article-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--primary);
    background: rgba(14, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    white-space: nowrap;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    white-space: pre;
    color: var(--gray-300);
    text-shadow: 0 0 5px rgba(14, 255, 255, 0.3);
}

/* Related Posts */
.related-posts {
    background-color: rgba(10, 11, 26, 0.5);
    padding: 4rem 0;
    border-top: 1px solid rgba(14, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 0, 255, 0.05), transparent 70%);
    z-index: 0;
}

.related-posts-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.related-posts-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(14, 255, 255, 0.5);
    position: relative;
    display: inline-block;
}

.related-posts-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(14, 255, 255, 0.8);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: rgba(10, 11, 26, 0.8);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(14, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(14, 255, 255, 0.3);
    border-color: rgba(14, 255, 255, 0.4);
}

.related-post-image {
    overflow: hidden;
    position: relative;
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    background: rgba(14, 255, 255, 0.1);
    border: 1px solid rgba(14, 255, 255, 0.3);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.related-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--light);
}

.related-post-title a {
    color: var(--light);
    transition: all 0.3s ease;
}

.related-post-title a:hover {
    color: var(--primary);
}

.related-post-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.related-post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-post-meta-item i {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: rgba(8, 9, 20, 0.9);
    border-top: 1px solid rgba(14, 255, 255, 0.2);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-title {
        font-size: 2.25rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.5);
}

.footer-info p {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 255, 255, 0.1);
    border: 1px solid rgba(14, 255, 255, 0.3);
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(14, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 255, 255, 0.3);
}

.quick-links h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.5);
}

.links-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.links-list a {
    color: var(--gray-300);
    transition: all 0.3s ease;
    display: inline-block;
}

.links-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(14, 255, 255, 0.5);
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(14, 255, 255, 0.1);
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    transition: text-shadow 0.3s ease;
}

.footer-bottom a:hover {
    text-shadow: 0 0 8px rgba(14, 255, 255, 0.8);
}
/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(14, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: glow 4s infinite;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}
.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(14, 255, 255, 0.5);
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(14, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(14, 255, 255, 0.2);
}

.footer-social-link:hover {
    background-color: rgba(14, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(14, 255, 255, 0.3);
    border: 1px solid rgba(14, 255, 255, 0.4);
    transform: translateY(-3px);
}

.footer-social-link i {
    color: var(--primary);
    transition: color 0.3s;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 10px rgba(14, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--gray-400);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(14, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
