:root {
    /* Dark grey theme (default) */
    --bg-primary: #1a1d23;
    --bg-secondary: #1f2229;
    --bg-card: #252932;
    --text-primary: #e8eaed;
    --text-secondary: #b8bcc4;
    --text-muted: #9095a0;
    --accent-primary: #06b6d4;
    --accent-secondary: #0891b2;
    --accent-hover: #22d3ee;
    --border-color: #363a44;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    
    /* Gradient colors */
    --gradient-start: #06b6d4;
    --gradient-mid: #0891b2;
    --gradient-end: #0e7490;
    
    /* Animation colors */
    --shape-1: rgba(6, 182, 212, 0.05);
    --shape-2: rgba(8, 145, 178, 0.04);
    --shape-3: rgba(14, 116, 144, 0.03);
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #fafbfc;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --accent-primary: #0891b2;
    --accent-secondary: #0e7490;
    --accent-hover: #06b6d4;
    --border-color: #d2d2d7;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    
    --shape-1: rgba(8, 145, 178, 0.08);
    --shape-2: rgba(14, 116, 144, 0.06);
    --shape-3: rgba(6, 182, 212, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--shadow);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.sun-icon {
    opacity: 0;
    transform: scale(0);
}

.moon-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: scale(0);
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--shape-1);
    top: -200px;
    right: -150px;
    animation: float-1 25s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--shape-2);
    bottom: -100px;
    left: -100px;
    animation: float-2 30s ease-in-out infinite;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--shape-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-3 20s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(150px, 200px) scale(1.2); }
    66% { transform: translate(-80px, 120px) scale(0.9); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-200px, 150px) rotate(180deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%); }
    33% { transform: translate(-40%, -60%); }
    66% { transform: translate(-60%, -40%); }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Hero Section - Redesigned */
.hero {
    min-height: auto;
    display: block;
    padding: 4rem 0 2rem;
    position: relative;
}

.hero > .container {
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent-primary);
}

.stat-card svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.stat-card div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.stat-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-contact {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Bio Section - Bento Grid */
.bio {
    padding: 3.5rem 0;
    background: var(--bg-secondary);
}

.bio .section-title {
    margin-bottom: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: start;
}

.bento-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--shadow);
    border-color: var(--accent-primary);
}

.bento-large {
    grid-column: span 7;
}

.bento-tech {
    grid-column: span 5;
}

.bento-software {
    grid-column: span 6;
    min-height: 340px;
}

.bento-robotics {
    grid-column: span 6;
    min-height: 340px;
}

.bento-toolbox {
    grid-column: span 7;
    min-height: 220px;
}

.bento-cred {
    grid-column: span 5;
    min-height: 220px;
}

.bento-clients {
    grid-column: span 7;
    min-height: 200px;
}

.bento-approach {
    grid-column: span 5;
    min-height: 200px;
}

.bento-icon {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
}

.bento-card p:last-child {
    margin-bottom: 0;
}

.bento-card ul {
    list-style: none;
    padding: 0;
}

.bento-card li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
}

.bento-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.bento-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    
    .bento-large,
    .bento-tech,
    .bento-software,
    .bento-robotics,
    .bento-toolbox,
    .bento-cred,
    .bento-clients,
    .bento-approach {
        grid-column: span 1;
        grid-row: span 1;
        min-height: unset;
    }
}

/* Experience Timeline */
.experience {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px var(--shadow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-role {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: inline-block;
}

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

.timeline-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
}

/* Highlights Section */
.highlights {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--accent-primary);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
}

.highlight-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Section - Featured + Grid */
.blog {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.blog-layout {
    display: grid;
    gap: 2rem;
}

.featured-blog-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--shadow-lg);
    border-color: var(--accent-primary);
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-blog-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2.5rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Show More Button */
.show-more-btn {
    grid-column: 1 / -1;
    margin: 2rem auto 0;
    padding: 1.25rem 2.5rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 10px;
    color: var(--bg);
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.show-more-btn:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.show-more-btn svg {
    transition: transform 0.3s ease;
}

.show-more-btn:hover svg {
    transform: translateY(3px);
}

.blog-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--accent-primary);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.75rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.read-more {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
}

/* Orthoplex Solutions Section */
.orthoplex-section {
    padding: 4rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.orthoplex-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.orthoplex-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.orthoplex-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.orthoplex-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.orthoplex-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

.service-card {
    padding: 1.75rem;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.orthoplex-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.orthoplex-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
    background: transparent;
    color: var(--accent);
}

.orthoplex-cta svg {
    transition: transform 0.3s ease;
}

.orthoplex-cta:hover svg {
    transform: translateX(6px);
}

.orthoplex-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.orthoplex-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.orthoplex-image:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-hover);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Blog Post Styles (for individual blog pages) */
.blog-post {
    min-height: 100vh;
    padding: 3.25rem 0 2.25rem;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1200;
}

[data-theme="light"] .reading-progress {
    background: rgba(0, 0, 0, 0.06);
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
    transition: width 0.08s linear;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--accent-hover);
}

/* Hero image with overlay title (homepage-like) */
.post-hero {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 34px var(--shadow-lg);
    margin-bottom: 1.75rem;
    background: var(--bg-card);
}

.post-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.02);
}

.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.78) 100%),
        radial-gradient(800px 500px at 20% 20%, rgba(6, 182, 212, 0.18), transparent 60%);
}

[data-theme="light"] .post-hero::after {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.48) 55%, rgba(0,0,0,0.62) 100%),
        radial-gradient(800px 500px at 20% 20%, rgba(8, 145, 178, 0.18), transparent 60%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.25rem 2rem;
}

.post-hero-content-inner {
    max-width: 980px;
}

.post-title {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 0.85rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.post-meta span + span::before {
    content: "•";
    margin-right: 0.9rem;
    opacity: 0.65;
}

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

.post-tag {
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
}

[data-theme="light"] .post-tag {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.12);
}

/* Two-column blog layout (maximize width) */
.post-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 1.75rem;
}

.post-sidebar {
    position: sticky;
    top: 1.25rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 14px var(--shadow);
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.sidebar-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.metric strong {
    color: var(--text-primary);
    font-weight: 800;
}

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

.sidebar-tag {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 650;
}

/* Article body (cleaner, tighter, homepage-like) */
.post-body {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.post-body h2 {
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-body h2:first-child {
    margin-top: 0;
}

.post-body h3 {
    font-size: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.35;
}

.post-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    max-width: 100%;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body ul,
.post-body ol {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.post-body li:last-child {
    margin-bottom: 0;
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Better spacing between different content types */
.post-body h2 + p,
.post-body h3 + p {
    margin-top: 0;
}

.post-body p + h2 {
    margin-top: 1.25rem;
}

.post-body p + h3 {
    margin-top: 0.85rem;
}

.post-body ul + p,
.post-body ol + p {
    margin-top: 0.5rem;
}

.post-body p + ul,
.post-body p + ol {
    margin-top: 0.15rem;
}

/* Author (clean + homepage-card-like) */
.author-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.author-image img {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.author-info h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
}

.author-bio {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
}

.author-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.author-link:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--shadow);
}

@media (max-width: 640px) {
    .post-hero {
        height: 300px;
        border-radius: 14px;
    }

    .post-hero-content {
        padding: 1.5rem 1.25rem;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-sidebar {
        position: static;
    }

    .post-body {
        padding: 1.5rem 1.25rem;
    }
    
    .post-body h2 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .post-body h3 {
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
    
    .post-body p,
    .post-body li {
        font-size: 0.9rem;
    }
}

@media (max-width: 980px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-sidebar {
        position: static;
    }
    
    .orthoplex-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .orthoplex-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .orthoplex-image {
        order: -1;
    }
}

@media (max-width: 640px) {
    .orthoplex-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

