/* Light Theme with GPU + Bio Vibes */

:root {
    /* Light Theme Colors - Improved Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* GPU Theme Colors - Enhanced */
    --gpu-green: #10b981;
    --gpu-blue: #0ea5e9;
    --gpu-purple: #8b5cf6;
    --gpu-orange: #f97316;
    --gpu-red: #ef4444;

    /* Bio Theme Colors - Professional */
    --bio-dna: #22c55e;
    --bio-protein: #0891b2;
    --bio-cell: #2563eb;
    --bio-enzyme: #7c3aed;

    /* Accent Colors - Refined */
    --accent-primary: #2563eb;
    --accent-secondary: #0891b2;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;

    /* Borders and Shadows - More Subtle */
    --border-light: #e2e8f0;
    --border-primary: #cbd5e1;
    --shadow-light: rgba(15, 23, 42, 0.08);
    --shadow-medium: rgba(15, 23, 42, 0.12);
    --shadow-heavy: rgba(15, 23, 42, 0.20);
}

/* Override dark theme */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.terminal-bg {
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.03), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.03), transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.02), transparent 50%);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    background: linear-gradient(135deg, var(--gpu-blue), var(--bio-dna));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu a {
    color: var(--text-secondary);
}

.nav-menu a:hover {
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Hero Section */
.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.name {
    color: var(--text-primary);
}

.tagline {
    color: var(--text-secondary);
}

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

.description {
    color: var(--text-secondary);
}

/* Project Cards - Horizontal Layout */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-light);
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 200px;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-visual {
    background: linear-gradient(135deg,
        rgba(0, 255, 65, 0.05),
        rgba(0, 191, 255, 0.05),
        rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-icon {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* GPU Performance Bars in Project Visual */
.gpu-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 60%;
}

.gpu-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gpu-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 60px;
}

.gpu-bar-fill {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.gpu-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gpu-green), var(--gpu-blue));
    border-radius: 3px;
    animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
}

.gpu-bar-value {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    min-width: 40px;
}

/* Project card hover effects */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gpu-green), var(--gpu-blue), var(--bio-dna));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px var(--shadow-medium),
        0 0 30px rgba(0, 255, 65, 0.1);
    border-color: var(--gpu-green);
}

.project-card:hover .project-visual {
    background: linear-gradient(135deg,
        rgba(0, 255, 65, 0.1),
        rgba(0, 191, 255, 0.1),
        rgba(139, 92, 246, 0.1));
}

.project-card:hover .project-icon {
    opacity: 0.3;
    transform: translateY(-50%) scale(1.1);
}

/* Project content styling */
.project-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--gpu-blue);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Project stats */
.project-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-stats .stat {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 191, 255, 0.1));
    color: var(--gpu-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-stats .stat {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 191, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.2);
}

/* Tech tags */
.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--bio-cell);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Project links */
.project-links a {
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    background: transparent;
}

.project-links a:hover {
    background: var(--accent-primary);
    color: white;
}

/* Section Headers */
.section-header h2 {
    color: var(--text-primary);
}

.section-header h2::after {
    background: linear-gradient(90deg, var(--gpu-blue), var(--bio-dna));
}

.section-header p {
    color: var(--text-secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.stat-item::before {
    background: linear-gradient(90deg, var(--gpu-green), var(--bio-dna));
}

.stat-item:hover {
    border-color: var(--gpu-blue);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.stat-value {
    color: var(--gpu-blue);
}

.stat-item:hover .stat-value {
    color: var(--gpu-green);
}

/* Education */
.education {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.education::before {
    background: linear-gradient(90deg, var(--bio-dna), var(--gpu-blue));
}

.education h3 {
    color: var(--accent-primary);
}

.edu-item h4 {
    color: var(--gpu-blue);
}

.edu-item p {
    color: var(--text-secondary);
}

/* Skills Section - Enhanced with Themes */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--bg-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-badges img {
    height: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-badges img:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Legacy skill tags support (in case any remain) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-width: 80px;
}

.skill-tag.primary {
    background: linear-gradient(135deg, var(--gpu-blue), var(--bio-dna));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.skill-tag.secondary {
    background: rgba(0, 191, 255, 0.1);
    color: var(--gpu-blue);
    border-color: rgba(0, 191, 255, 0.2);
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.skill-tag.primary:hover {
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.4);
}

.skill-tag.secondary:hover {
    background: var(--gpu-blue);
    color: white;
    border-color: var(--gpu-blue);
}

/* Themed Categories */
.gpu-themed::before {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05), rgba(0, 191, 255, 0.05));
}

.gpu-themed:hover {
    background: rgba(0, 191, 255, 0.02);
    border-color: var(--gpu-blue);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.gpu-themed:hover::before {
    opacity: 1;
}

.gpu-themed:hover h3 {
    color: var(--gpu-blue);
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.bio-themed::before {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05), rgba(34, 197, 94, 0.05));
}

.bio-themed:hover {
    background: rgba(74, 222, 128, 0.02);
    border-color: var(--bio-dna);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.bio-themed:hover::before {
    opacity: 1;
}

.bio-themed:hover h3 {
    color: var(--bio-dna);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.neural-themed::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
}

.neural-themed:hover {
    background: rgba(139, 92, 246, 0.02);
    border-color: var(--gpu-purple);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.neural-themed:hover::before {
    opacity: 1;
}

.neural-themed:hover h3 {
    color: var(--gpu-purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.acceleration-themed::before {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(251, 146, 60, 0.05));
}

.acceleration-themed:hover {
    background: rgba(255, 107, 53, 0.02);
    border-color: var(--gpu-orange);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.acceleration-themed:hover::before {
    opacity: 1;
}

.acceleration-themed:hover h3 {
    color: var(--gpu-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.ops-themed::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(14, 165, 233, 0.05));
}

.ops-themed:hover {
    background: rgba(6, 182, 212, 0.02);
    border-color: var(--bio-protein);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.ops-themed:hover::before {
    opacity: 1;
}

.ops-themed:hover h3 {
    color: var(--bio-protein);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}


.tools-themed::before {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.05), rgba(75, 85, 99, 0.05));
}

.tools-themed:hover {
    background: rgba(107, 114, 128, 0.02);
    border-color: #6b7280;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.tools-themed:hover::before {
    opacity: 1;
}

.tools-themed:hover h3 {
    color: #6b7280;
    text-shadow: 0 0 20px rgba(107, 114, 128, 0.3);
}

/* Staggered animation on load */
.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }

/* Experience */
.exp-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.exp-item::before {
    background: linear-gradient(180deg, var(--bio-dna), var(--gpu-blue));
}

.exp-item:hover {
    border-color: var(--gpu-blue);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.exp-header h3 {
    color: var(--gpu-blue);
}

.exp-company {
    color: var(--text-primary);
}

.exp-location, .exp-duration {
    color: var(--text-secondary);
}

.exp-achievements li {
    color: var(--text-primary);
}

.exp-achievements li::before {
    color: var(--gpu-blue);
}

/* Contact */
.contact-method {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.contact-method:hover {
    border-color: var(--gpu-blue);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.contact-method h3 {
    color: var(--gpu-blue);
}

.contact-method a {
    color: var(--accent-primary);
}

.contact-method a:hover {
    color: var(--gpu-blue);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.footer-quote p {
    color: var(--gpu-blue);
}

.footer-quote span {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--gpu-blue);
    background: rgba(0, 191, 255, 0.05);
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gpu-blue), var(--bio-dna));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bio-dna), var(--gpu-blue));
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gpu-blue);
    border: 1px solid var(--gpu-blue);
}

.btn-secondary:hover {
    background: var(--gpu-blue);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

/* Code Window */
.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.code-window:hover {
    border-color: var(--gpu-blue);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.window-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.code-content {
    background: var(--bg-primary);
}

.line-number {
    color: var(--text-muted);
}

.keyword { color: var(--gpu-purple); }
.module { color: var(--gpu-blue); }
.function { color: var(--bio-dna); }
.string { color: var(--gpu-orange); }
.comment { color: var(--text-muted); }

/* Floating Cards */
.floating-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.floating-card:hover {
    border-color: var(--gpu-blue);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.floating-card .highlight {
    color: var(--gpu-blue);
}

/* Theme Toggle - Much Better Design */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    outline: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background: rgba(0, 191, 255, 0.1);
}

.theme-switch-track {
    width: 52px;
    height: 26px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 13px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.theme-icon {
    font-size: 0.7rem;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: #f59e0b;
}

.moon-icon {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    color: #8b5cf6;
}

/* Dark theme toggle state */
body.dark-theme .theme-switch-track {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .theme-switch-thumb {
    transform: translateX(23px);
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(139, 92, 246, 0.3);
}

body.dark-theme .sun-icon {
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
}

body.dark-theme .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-switch:hover .theme-switch-thumb {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-theme .theme-switch:hover .theme-switch-thumb {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 92, 246, 0.4);
}

/* Active state animation */
.theme-switch:active .theme-switch-thumb {
    transform: scale(0.95);
}

body.dark-theme .theme-switch:active .theme-switch-thumb {
    transform: translateX(23px) scale(0.95);
}

/* Override dark theme to maintain horizontal project cards */
body.dark-theme .project-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 200px;
    padding: 0;
}

body.dark-theme .project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.dark-theme .project-visual {
    background: linear-gradient(135deg,
        rgba(0, 255, 65, 0.05),
        rgba(0, 191, 255, 0.05),
        rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.dark-theme .project-visual .project-icon {
    font-size: 4rem;
    opacity: 0.15;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
}

body.dark-theme .gpu-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 60%;
}

body.dark-theme .gpu-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.dark-theme .gpu-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 60px;
}

body.dark-theme .gpu-bar-fill {
    flex: 1;
    height: 6px;
    background: var(--border-subtle);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

body.dark-theme .gpu-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--bio-green), var(--neural-blue));
    border-radius: 3px;
    animation: fillProgress 2s ease-out forwards;
}

body.dark-theme .gpu-bar-value {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 600;
    min-width: 40px;
}

/* Override dark theme skills to match light theme layout */
body.dark-theme .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

body.dark-theme .skill-category {
    background: var(--bg-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

body.dark-theme .skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-theme .skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-theme .skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

body.dark-theme .skill-badges img {
    height: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1) contrast(1.1);
}

body.dark-theme .skill-badges img:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    filter: brightness(1.2) contrast(1.2);
}

/* Legacy dark theme skill tags support */
body.dark-theme .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

body.dark-theme .skill-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-width: 80px;
    display: inline-block;
}

body.dark-theme .skill-tag.primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--bio-green));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

body.dark-theme .skill-tag.secondary {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.2);
}

body.dark-theme .skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

body.dark-theme .skill-tag.primary:hover {
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.4);
}

body.dark-theme .skill-tag.secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
}

/* Dark theme skill category hover effects */
body.dark-theme .gpu-themed:hover {
    background: rgba(0, 255, 255, 0.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .gpu-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 65, 0.05));
}

body.dark-theme .gpu-themed:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body.dark-theme .bio-themed:hover {
    background: rgba(0, 255, 65, 0.02);
    border-color: var(--bio-green);
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .bio-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05), rgba(34, 197, 94, 0.05));
}

body.dark-theme .bio-themed:hover h3 {
    color: var(--bio-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

body.dark-theme .neural-themed:hover {
    background: rgba(139, 92, 246, 0.02);
    border-color: var(--neural-purple);
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .neural-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
}

body.dark-theme .neural-themed:hover h3 {
    color: var(--neural-purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

body.dark-theme .acceleration-themed:hover {
    background: rgba(255, 107, 53, 0.02);
    border-color: var(--gpu-orange);
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .acceleration-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(251, 146, 60, 0.05));
}

body.dark-theme .acceleration-themed:hover h3 {
    color: var(--gpu-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body.dark-theme .ops-themed:hover {
    background: rgba(0, 255, 255, 0.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .ops-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(14, 165, 233, 0.05));
}

body.dark-theme .ops-themed:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}


body.dark-theme .tools-themed:hover {
    background: rgba(156, 163, 175, 0.02);
    border-color: #9ca3af;
    box-shadow: 0 8px 25px var(--shadow-light);
}

body.dark-theme .tools-themed:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.05), rgba(75, 85, 99, 0.05));
}

body.dark-theme .tools-themed:hover h3 {
    color: #9ca3af;
    text-shadow: 0 0 20px rgba(156, 163, 175, 0.3);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .project-card,
    body.dark-theme .project-card {
        grid-template-columns: 1fr;
    }

    .project-visual,
    body.dark-theme .project-visual {
        min-height: 120px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        margin-left: 0.5rem;
    }

    .theme-switch-track {
        width: 50px;
        height: 25px;
    }

    .theme-switch-thumb {
        width: 21px;
        height: 21px;
    }

    body.dark-theme .theme-switch-thumb {
        transform: translateX(25px);
    }

    body.dark-theme .theme-switch:hover .theme-switch-thumb {
        transform: translateX(25px) scale(1.1);
    }
}

/* Blog Light Theme - Same as Portfolio */
.blog-main {
    background: var(--bg-primary) !important;
    min-height: 100vh;
    margin-top: 100px;
}

.blog-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.terminal-window {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    position: relative;
    overflow: hidden;
}

body.dark-theme .terminal-window {
    background: rgba(33, 38, 45, 0.4) !important;
    border: 1px solid #374151 !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}


.terminal-header {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .terminal-header {
    background: rgba(33, 38, 45, 0.8) !important;
    color: #71717a !important;
    border-bottom: 1px solid #374151 !important;
    border-radius: 8px 8px 0 0;
}

.terminal-body {
    background: var(--bg-card);
    padding: 2.5rem;
}

body.dark-theme .terminal-body {
    background: rgba(13, 17, 23, 0.6) !important;
}

.terminal-line .prompt {
    color: #00ff41;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.terminal-line .command {
    color: #00bfff;
    font-weight: 600;
}

.terminal-output h1 {
    background: linear-gradient(135deg, #00bfff, #00ff41, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.2);
}

.terminal-output p {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gpu-blue), var(--bio-dna), var(--gpu-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.post-card h2 {
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: #1a202c;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.post-card h2 a:hover {
    background: linear-gradient(135deg, #00bfff, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-date {
    color: #00bfff;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.tag {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 255, 65, 0.05));
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #00bfff, #00ff41);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.post-excerpt p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.post-stats {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 191, 255, 0.05);
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    transform: translateY(-8px) !important;
    box-shadow:
        0 20px 40px var(--shadow-medium),
        0 0 30px rgba(0, 191, 255, 0.1) !important;
    border-color: var(--gpu-blue) !important;
}

body.dark-theme .sidebar-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: #00ff41 !important;
}

/* Blog Navbar - Same as Portfolio */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-theme .navbar {
    background: rgba(10, 11, 13, 0.95) !important;
    border-bottom: 1px solid #374151 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.nav-brand {
    background: linear-gradient(135deg, var(--gpu-blue), var(--bio-dna));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

body.dark-theme .nav-brand {
    background: none !important;
    -webkit-text-fill-color: #e4e4e7 !important;
    color: #e4e4e7 !important;
}

.nav-menu a {
    color: var(--text-secondary);
}

body.dark-theme .nav-menu a {
    color: #a1a1aa !important;
}

.nav-menu a:hover {
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.05);
}

body.dark-theme .nav-menu a:hover {
    color: #e4e4e7 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-menu .active {
    color: var(--accent-success);
}

body.dark-theme .nav-menu .active {
    color: #00ff41 !important;
}

.nav-menu .active::after {
    color: var(--text-muted);
}

body.dark-theme .nav-menu .active::after {
    color: #71717a !important;
}

/* Terminal Text - Portfolio Style */
.terminal-line .prompt {
    color: var(--gpu-green);
    font-weight: 700;
}

.terminal-line .command {
    color: var(--gpu-blue);
    font-weight: 600;
}

.terminal-output h1 {
    color: var(--accent-success);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.2;
}

.terminal-output p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

body.dark-theme .terminal-line .prompt {
    color: #00ff41 !important;
}

body.dark-theme .terminal-line .command {
    color: #00bfff !important;
}

body.dark-theme .terminal-output h1 {
    color: #00ff41 !important;
}

body.dark-theme .terminal-output p {
    color: #71717a !important;
}

/* Blog Content - Portfolio Typography */
.post-header h2 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-header h2 a:hover {
    color: var(--gpu-blue);
}

.blog-post:hover .post-header h2 a {
    color: var(--gpu-blue);
}

.post-excerpt p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--gpu-blue);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

.sidebar-section h3 {
    color: var(--gpu-blue);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

body.dark-theme .post-header h2 a {
    color: #00ff41 !important;
}

body.dark-theme .post-header h2 a:hover {
    color: #00bfff !important;
}

body.dark-theme .post-excerpt p {
    color: #e4e4e7 !important;
}

body.dark-theme .post-date {
    color: #71717a !important;
}

body.dark-theme .tag {
    background: rgba(0, 191, 255, 0.1) !important;
    color: #00bfff !important;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
}

body.dark-theme .tag:hover {
    background: rgba(0, 191, 255, 0.2) !important;
}

body.dark-theme .sidebar-section h3 {
    color: #00bfff !important;
}

body.dark-theme .footer {
    background: #1a1b1e !important;
    border-top: 1px solid #374151 !important;
}

.sidebar-section h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-section h3 .prompt {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    margin: 0;
    transition: all 0.3s ease;
}

.blog-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), rgba(0, 255, 65, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 255, 65, 0.05));
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00bfff, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Search styles */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid rgba(0, 191, 255, 0.1);
    border-radius: 12px;
    color: #1a202c;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.1);
    background: #ffffff;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 10px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 255, 65, 0.05));
    color: #00bfff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #00bfff, #00ff41);
    color: white;
    border-color: #00bfff;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

/* Light Mode Terminal/Blog Variable Overrides */
:root {
    --terminal-bg: #ffffff;
    --terminal-text: #1a202c;
    --terminal-gray: #718096;
    --terminal-green: #059669;
    --terminal-blue: #0369a1;
    --terminal-yellow: #d97706;
    --terminal-border: #e2e8f0;
}

/* Light Mode Blog Post Styles */
.blog-post {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    position: relative;
    overflow: hidden;
}

body.dark-theme .blog-post {
    background: rgba(33, 38, 45, 0.4) !important;
    border: 1px solid #374151 !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gpu-blue), var(--bio-dna));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

body.dark-theme .blog-post::before {
    background: linear-gradient(90deg, #00bfff, #00ff41);
    opacity: 0;
    transform: none;
    transition: opacity 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-8px) !important;
    box-shadow:
        0 20px 40px var(--shadow-medium),
        0 0 30px rgba(0, 255, 65, 0.1) !important;
    border-color: var(--gpu-green) !important;
}

.blog-post:hover::before {
    transform: scaleX(1);
}

body.dark-theme .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: #00bfff !important;
}

body.dark-theme .blog-post:hover::before {
    opacity: 1;
}

.blog-post:hover::before {
    opacity: 1;
}

.post-header h2 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-header h2 a:hover {
    color: var(--accent-primary);
}

.post-excerpt p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tag {
    background: rgba(3, 105, 161, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(3, 105, 161, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(3, 105, 161, 0.2);
    transform: translateY(-1px);
}

.post-stats {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Light Mode Sidebar Styles */
.sidebar-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-theme .sidebar-section {
    background: rgba(33, 38, 45, 0.4) !important;
    border: 1px solid #374151 !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.sidebar-section h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.tag-cloud .tag {
    cursor: pointer;
}

/* Blog Stats - Portfolio Style */
.blog-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

.blog-stats .stat-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
    border-left: 3px solid var(--gpu-blue) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px var(--shadow-light) !important;
}

.blog-stats .stat-item:hover {
    transform: translateY(-2px) !important;
    border-left-color: var(--gpu-green) !important;
    box-shadow: 0 4px 12px var(--shadow-medium) !important;
}

.blog-stats .stat-number {
    color: var(--gpu-blue) !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

.blog-stats .stat-item:hover .stat-number {
    color: var(--gpu-green) !important;
}

.blog-stats .stat-label {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: var(--bio-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Light Mode Footer Styles */
.footer-nav a {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    border-color: var(--accent-primary);
    background: rgba(3, 105, 161, 0.1);
}

/* Active nav link styling for blog */
.nav-menu .active {
    color: var(--accent-primary);
    position: relative;
}

.nav-menu .active::after {
    content: " [active]";
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Light Mode Post Content Styles */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.post-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-content h2 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    color: var(--bio-green);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

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

.post-content pre {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--bio-green);
    background: rgba(5, 150, 105, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.post-content blockquote {
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(3, 105, 161, 0.05);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 8px 8px 0;
}

.post-content ul, .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    max-width: 45%;
}

.post-nav-link:hover {
    color: var(--accent-primary);
}

.post-nav-link .nav-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-nav-link .nav-title {
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Responsive adjustments for blog */
@media (max-width: 968px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Skills responsive */
    .skills-grid,
    body.dark-theme .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .skill-category,
    body.dark-theme .skill-category {
        padding: 2rem;
    }

    .skill-icon,
    body.dark-theme .skill-icon {
        font-size: 2.5rem;
    }

    .skill-category h3,
    body.dark-theme .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .skill-tag,
    body.dark-theme .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* Individual Blog Post Pages - Force Dark Mode Only */
body.dark-theme {
    background: #0a0b0d !important;
    color: #e4e4e7 !important;
}

/* Hide theme toggle on individual post pages */
body.dark-theme .theme-toggle {
    display: none !important;
}

/* Ensure individual post pages stay dark */
body.dark-theme * {
    color: inherit;
}