/* ==========================================
   Scientific Code Craft - Terminal Elegance
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Spectral:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Syntax-inspired color palette */
    --syntax-green: #50fa7b;
    --syntax-cyan: #8be9fd;
    --syntax-orange: #ffb86c;
    --syntax-pink: #ff79c6;
    --syntax-purple: #bd93f9;
    --syntax-yellow: #f1fa8c;

    /* Base colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
    --accent: var(--syntax-green);

    /* Spacing */
    --space-unit: 1rem;
    --section-padding: calc(var(--space-unit) * 6);
}

body {
    font-family: 'Spectral', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

nav::before {
    content: '// Navigation';
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.code-bracket {
    color: var(--syntax-cyan);
    font-weight: 700;
    animation: bracketPulse 3s ease-in-out infinite;
}

@keyframes bracketPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2rem;
    background: var(--syntax-green);
    animation: cursorBlink 1.2s step-end infinite;
    margin-left: 0.25rem;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '> ';
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: all 0.3s ease;
    color: var(--syntax-green);
}

.nav-links a:hover {
    color: var(--syntax-green);
}

.nav-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    padding: calc(var(--section-padding) * 1.5) 0 var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--syntax-cyan) 20%,
        var(--syntax-purple) 40%,
        var(--syntax-pink) 60%,
        var(--syntax-orange) 80%,
        transparent
    );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    max-width: 900px;
    position: relative;
}

.hero-content::before {
    content: '/* Hero */';
    position: absolute;
    top: -2rem;
    left: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg,
        var(--text-primary) 0%,
        var(--syntax-cyan) 50%,
        var(--syntax-purple) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-family: 'Spectral', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--syntax-cyan);
    margin-bottom: 1.5rem;
    font-style: italic;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--syntax-green);
    text-decoration: none;
    border: 2px solid var(--syntax-green);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::after {
    content: '→';
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.4);
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

section::before {
    content: attr(data-section);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.about::before { content: '// section: about'; }
.blog::before { content: '// section: blog'; }
.experience::before { content: '// section: experience'; }
.contact::before { content: '// section: contact'; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: 'function ';
    color: var(--syntax-purple);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.section-title::after {
    content: '() {';
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--syntax-cyan);
    transition: all 0.3s ease;
}

.about-text p:hover {
    border-left-color: var(--syntax-green);
    padding-left: 2.5rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--syntax-cyan), var(--syntax-purple));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.blog-card:hover::before {
    transform: scaleY(1);
}

.blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 233, 253, 0.08) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--syntax-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--syntax-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--syntax-cyan);
}

.blog-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
}

.date {
    color: var(--syntax-green);
    font-weight: 600;
}

.read-time {
    color: var(--text-muted);
}

/* Experience Section */
.experience {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.profile-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--syntax-purple);
    position: relative;
    padding-left: 1.5rem;
}

.profile-section h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--syntax-green);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        var(--syntax-cyan) 0%,
        var(--syntax-purple) 50%,
        var(--syntax-pink) 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--syntax-green);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(80, 250, 123, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(80, 250, 123, 0.3);
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.company {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: var(--syntax-cyan);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Education */
.education-list {
    margin-bottom: 3rem;
}

.education-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--syntax-purple);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-left-color: var(--syntax-green);
    transform: translateX(8px);
}

.education-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.institution {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: var(--syntax-cyan);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.year {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Expertise Tags */
.expertise-tags {
    margin-bottom: 3rem;
}

.expertise-tags h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.tag {
    display: inline-block;
    padding: 0.625rem 1.125rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--syntax-green);
    background: var(--bg-primary);
    border: 1px solid var(--syntax-green);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--syntax-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.tag:hover::before {
    transform: scaleX(1);
}

.tag:hover {
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(80, 250, 123, 0.3);
}

/* Resume Download */
.resume-download {
    margin-top: 2rem;
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--syntax-purple);
    background: transparent;
    border: 2px solid var(--syntax-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--syntax-purple);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.button-secondary:hover::before {
    transform: translateY(0);
}

.button-secondary:hover {
    color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(189, 147, 249, 0.4);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 233, 253, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--syntax-cyan);
    color: var(--syntax-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.2);
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '// End of file';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.3;
}

footer::after {
    content: '}';
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.3;
}

.footer-content p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: calc(var(--space-unit) * 4);
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    nav::before {
        display: none;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: calc(var(--section-padding) * 1.2) 0 var(--section-padding);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-links {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }

    section::before {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .logo {
        font-size: 1.125rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-text p {
        padding-left: 1rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--syntax-cyan);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--syntax-cyan);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--syntax-cyan);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--syntax-green);
}

/* Loading Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(80, 250, 123, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(80, 250, 123, 0.6);
    }
}

/* Code Block Styling (if you add code examples later) */
code, pre {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    color: var(--syntax-pink);
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    line-height: 1.6;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

/* ==========================================
   Blog Post Single Page Styles
   ========================================== */

.blog-post {
    padding: calc(var(--section-padding) * 1.5) 0;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1.5rem 0 2rem;
    color: var(--text-primary);
}

.post-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0 auto 2rem;
    max-width: 800px;
    text-align: left;
    padding-left: 1.5rem;
    border-left: 3px solid var(--syntax-cyan);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem auto 3rem;
    max-width: 800px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--syntax-cyan);
    padding-left: 1.5rem;
    border-left: 4px solid var(--syntax-cyan);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--syntax-purple);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content a {
    color: var(--syntax-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--syntax-cyan);
    color: var(--syntax-green);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--syntax-purple);
    font-style: italic;
    color: var(--text-secondary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.post-navigation {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.prev-post,
.next-post {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
    border-color: var(--syntax-cyan);
    color: var(--syntax-cyan);
    transform: translateY(-4px);
}

.next-post {
    text-align: right;
}

/* Single page template */
.single-page {
    padding: calc(var(--section-padding) * 1.5) 0;
}

.single-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.8;
}

/* Giscus Comments */
.giscus-container {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
}

.giscus-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-bracket {
    color: var(--syntax-cyan);
    font-weight: 700;
}

.comment-label {
    color: var(--syntax-green);
}

/* Giscus theme integration */
.giscus,
.giscus-frame {
    width: 100%;
}

@media (max-width: 768px) {
    .giscus-container {
        margin: 3rem auto 0;
        padding: 1.5rem;
    }

    .giscus-header {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .giscus-container {
        padding: 1rem;
    }
}
