/* AI-Inspired Personal Website Styles */

:root {
    /* AI/Tech Color Palette */
    --primary-bg: #0a0b0f;
    --secondary-bg: #1a1d29;
    --accent-bg: #2a2d3a;
    --card-bg: rgba(26, 29, 41, 0.8);
    --glass-bg: rgba(42, 45, 58, 0.1);
    
    /* Neural Network Colors */
    --neural-primary: #00d4ff;
    --neural-secondary: #7c3aed;
    --neural-accent: #f59e0b;
    --neural-glow: rgba(0, 212, 255, 0.3);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: var(--neural-primary);
    
    /* Interactive Colors */
    --btn-primary: linear-gradient(135deg, var(--neural-primary), var(--neural-secondary));
    --btn-secondary: rgba(255, 255, 255, 0.1);
    --btn-hover: rgba(0, 212, 255, 0.2);
    --btn-cta: linear-gradient(135deg, #ff6b35, #f7931e, #ffb347);
    --btn-cta-hover: linear-gradient(135deg, #ff5722, #e65100, #ff9800);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --card-padding: 2rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neural Network Background */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.neural-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--neural-primary), transparent),
        radial-gradient(2px 2px at 40% 70%, var(--neural-secondary), transparent),
        radial-gradient(1px 1px at 90% 40%, var(--neural-accent), transparent);
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: var(--btn-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.nav-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neural-primary);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, var(--neural-primary), var(--neural-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Code Editor Visual */
.code-editor {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.editor-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.editor-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.line-number {
    width: 30px;
    color: var(--text-muted);
    user-select: none;
}

.code-text {
    color: var(--text-primary);
}

.keyword { color: var(--neural-secondary); }
.variable { color: var(--neural-primary); }
.property { color: var(--neural-accent); }
.string { color: #10b981; }

/* Buttons */
.btn-primary {
    background: var(--btn-primary);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--neural-glow);
}

.btn-secondary {
    background: var(--btn-secondary);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-accent);
    padding: 1rem 2rem;
    border: 2px solid var(--neural-primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--neural-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon,
.btn-outline:hover .btn-icon {
    transform: translateX(3px);
}

/* CTA Button */
.btn-cta {
    background: var(--btn-cta);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-smooth);
}

.btn-cta:hover {
    background: var(--btn-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:active {
    transform: translateY(0);
}

/* CTA Navigation Button (smaller) */
.btn-cta-nav {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.btn-cta-nav:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.05));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neural-primary), var(--neural-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Contact CTA */
.contact-cta {
    margin: 2rem 0;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neural-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: var(--card-padding);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neural-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.1);
}

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--card-bg), rgba(124, 58, 237, 0.05));
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2rem;
}

.project-meta {
    flex: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.project-version {
    background: var(--neural-primary);
    color: var(--primary-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neural-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: var(--glass-bg);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.project-link:not(.secondary) {
    background: var(--neural-primary);
    color: var(--primary-bg);
}

.project-link.secondary {
    background: var(--btn-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.project-link:hover:not(.disabled) {
    transform: translateY(-1px);
}

.link-arrow {
    transition: transform var(--transition-fast);
}

.project-link:hover .link-arrow {
    transform: translateX(2px);
}

.projects-footer {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.contact-link:hover {
    transform: translateY(-2px);
    border-color: var(--neural-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-text small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog Styles */
.blog-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.blog-header .section-title {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neural-primary), var(--neural-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-posts {
    padding: 60px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--card-padding);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.1);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-card.featured .blog-card-header {
    grid-column: 1;
}

.blog-card.featured .blog-excerpt {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-card.featured .blog-tags,
.blog-card.featured .blog-read-more {
    grid-column: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-category {
    background: var(--btn-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.blog-title a:hover {
    color: var(--neural-primary);
}

.blog-card.featured .blog-title a {
    font-size: 2rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-read-more {
    color: var(--neural-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.blog-read-more:hover {
    gap: 0.75rem;
}

/* Blog Post Styles */
.blog-post {
    padding: 120px 0 100px;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neural-primary), var(--neural-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: var(--neural-primary);
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.blog-post-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 500;
}

.blog-post-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content strong {
    color: var(--text-primary);
}

.blog-post-content code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neural-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.blog-post-content blockquote {
    border-left: 3px solid var(--neural-primary);
    background: rgba(0, 212, 255, 0.05);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-cons-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.pros-cons-section h3 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.25rem !important;
}

.pros-cons-section.pros h3 {
    color: #10b981 !important;
}

.pros-cons-section.cons h3 {
    color: #ef4444 !important;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--neural-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neural-primary);
    border-radius: 1px;
}

/* Blog Images */
.blog-post-image {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.blog-hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-smooth);
}

.blog-hero-image:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.blog-preview-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.blog-preview-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-excerpt {
        grid-column: 1;
        grid-row: auto;
    }
    
    .blog-card.featured .blog-tags,
    .blog-card.featured .blog-read-more {
        grid-column: 1;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Blog Image Responsive Styles */
    .blog-post-image {
        margin: 2rem auto;
    }
    
    .blog-hero-image {
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
    
    .blog-card-image {
        border-radius: 8px;
        margin: 0.75rem 0;
    }
}

/* Terminal Visual */
.terminal {
    background: var(--primary-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.terminal-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 200px;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    animation: type 0.5s ease-in-out;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }

@keyframes type {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: var(--neural-primary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.terminal-line.output .success {
    color: #10b981;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .contact-methods {
        gap: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 0.8rem;
    }
    
    .nav-name {
        display: none;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-features {
        gap: 0.3rem;
    }
    
    .feature-tag, .tech-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply entrance animations on scroll */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.project-card {
    animation: fadeInUp 0.6s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --card-bg: rgba(26, 29, 41, 0.95);
        --text-secondary: #cbd5e1;
    }
    
    .project-card, .contact-link, .stat-item {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .neural-nodes {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}