/* Import DM Sans font as specified in Figma */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* CSS Variables matching Figma design */
:root {
    --primary-bg: #171717;
    --secondary-bg: #212121;
    --card-bg: #212121;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3; /* Improved contrast from #535353 */
    --text-muted: #999999; /* Improved contrast from #4F4F4F */
    --accent-green: #27AE60;
    --border-color: #666666; /* Improved contrast from #4F4F4F */
    --border-light: #333333;
    --input-bg: #C4C4C4;
    --focus-color: #4A9EFF; /* High contrast focus indicator */
    --focus-outline: 2px solid var(--focus-color);
}

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

body {
    font-family: 'DM Sans', sans-serif !important;
    background-color: var(--primary-bg) !important;
    color: var(--text-primary) !important;
    line-height: 1.302;
    overflow-x: hidden;
}

/* Bootstrap overrides */
html {
    background-color: var(--primary-bg) !important;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    background-color: transparent !important;
}

/* Override Bootstrap's default text colors */
p, span, div, h1, h2, h3, h4, h5, h6 {
    color: inherit;
}

/* Override Bootstrap button styles */
.btn:not(.btn-primary):not(.btn-outline) {
    background-color: transparent;
    border-color: transparent;
}

/* Override Bootstrap navbar styles */
.navbar {
    background-color: transparent !important;
}

.navbar-brand {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--text-primary) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Navigation Header */
.portfolio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-bg);
    padding: 28px 0;
}

.navbar {
    background: transparent !important;
    padding: 0;
}

.navbar-brand {
    text-decoration: none;
    font-weight: 700;
    font-size: 36px;
    color: var(--text-primary);
}

.navbar-nav {
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 !important;
}

.nav-link:hover {
    color: var(--accent-green) !important;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    margin-left: 0;
    order: -1; /* Move hamburger to the left */
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    margin-left: auto;
    margin-right: auto;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-left: 0;
        margin-right: 0;
        flex-grow: 1;
        text-align: center;
    }
    
    .navbar-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .navbar-collapse {
        background: var(--primary-bg);
        border-top: 1px solid var(--border-light);
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .navbar-nav {
        gap: 0;
        margin-left: 0;
    }
    
    .navbar-nav .nav-item {
        padding: 8px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px !important;
        border-bottom: 1px solid var(--border-light);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.portfolio-main {
    padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.302;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 187px 0 0 0;
    position: relative;
}

.hero-content {
    max-width: 453px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 9px;
    line-height: 1.302;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #828282;
    margin-bottom: 58px;
    line-height: 1.302;
}

/* Hero Blog Content */
.hero-blog-content {
    max-width: 453px;
}

.hero-blog-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.302;
}

.hero-blog-excerpt {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-blog-actions {
    margin-top: 20px;
}

.hero-blog-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 11px;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 12px 27px;
    border-radius: 0;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.302;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-primary);
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid #F2F2F2;
}

.btn:hover {
    opacity: 0.8;
}

/* Hero Avatar */
.hero-avatar {
    position: absolute;
    right: 80px;
    top: 187px;
    width: 650px;
    height: 650px;
}

.avatar-container {
    position: relative;
    width: 650px;
    height: 650px;
}

.avatar-bg-outer {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(30, 29, 29, 0.2);
    border: 1px solid #202020;
}

.avatar-bg-inner {
    position: absolute;
    top: 26.56px;
    left: 26.56px;
    width: 596.89px;
    height: 596.89px;
    border-radius: 50%;
    background: #1E1D1D;
    border: 1px solid var(--border-color);
}

.avatar-image {
    position: absolute;
    top: 26.56px;
    left: 26.56px;
    width: 596.89px;
    height: 596.89px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* About Section */
.about-section {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 100px;
    text-align: center;
    line-height: 1.302;
}

.about-description {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.302;
    text-align: center;
    max-width: 745px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 162.66px;
}

.service-card {
    width: 349px;
    height: 241px;
    background: var(--card-bg);
    border: 1px solid #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34.86px 50px 50px 50px;
}

.service-card:nth-child(2) {
    border: 1px solid #000000;
}

.service-icon {
    width: 57px;
    height: 46.47px;
    margin-bottom: 29.67px;
    fill: var(--accent-green);
}

.service-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.302;
    margin-bottom: 0;
}

.service-highlight {
    position: absolute;
    bottom: -5px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: var(--accent-green);
}

/* Software Releases Section */
.software-releases-section {
    padding: 100px 0;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.release-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.release-card:hover {
    transform: translateY(-5px);
}

.release-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.release-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.release-version {
    font-size: 14px;
    color: var(--accent-green);
    margin-left: 10px;
}

.release-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.release-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.release-links .btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* Latest Blog Post Section */
.latest-blog-section {
    padding: 80px 0;
    background: var(--secondary-bg);
}

.latest-blog-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-light);
}

.latest-blog-image {
    flex: 0 0 300px;
}

.latest-blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.latest-blog-content {
    flex: 1;
}

.latest-blog-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.302;
}

.latest-blog-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.latest-blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Latest Software Section */
.latest-software-section {
    padding: 100px 0;
}

.software-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.software-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.software-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.software-card-content {
    padding: 25px;
}

.software-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.software-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.302;
}

.software-card-version {
    font-size: 12px;
    color: var(--accent-green);
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.software-card-version.loading {
    color: var(--text-muted);
    background: rgba(153, 153, 153, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

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

.software-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.software-card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

/* Page Layout Styles */
.software-page,
.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.302;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    max-width: calc(3 * 350px + 2 * 30px); /* 3 cards + 2 gaps = 1110px */
    gap: 30px;
    margin: 0 auto;
    justify-content: center;
}

/* Software Card Actions */
.software-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.software-card-meta {
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Software Detail Page */
.software-detail-page {
    padding-top: 120px;
    min-height: 100vh;
}

.software-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.software-detail-hero {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.software-detail-header {
    margin-bottom: 40px;
}

.software-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.software-version {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-green);
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 25px;
}

.software-version.loading {
    color: var(--text-muted);
    background: rgba(153, 153, 153, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

.software-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.software-description p {
    margin-bottom: 15px;
}

.software-thumbnail {
    text-align: center;
    margin-bottom: 30px;
}

.software-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.software-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.software-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
}

.software-info h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-info h3::before {
    content: "✨";
    font-size: 20px;
}

.info-item {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
}

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

.software-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.software-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.software-features-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.software-features {
    margin: 20px 0;
}

.software-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.software-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.software-features li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.software-metadata {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.software-actions-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.software-actions-panel h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.software-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.software-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.software-actions .btn-primary {
    background: var(--accent-green);
    color: var(--text-primary);
    border: 2px solid var(--accent-green);
}

.software-actions .btn-primary:hover {
    background: #1e8449;
    border-color: #1e8449;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.software-actions .btn-outline-primary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.software-actions .btn-outline-primary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.2);
}

.software-actions .btn-dark {
    background: #24292e;
    color: var(--text-primary);
    border: 2px solid #24292e;
}

.software-actions .btn-dark:hover {
    background: #1a1e22;
    border-color: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.software-actions .btn-info {
    background: #17a2b8;
    color: var(--text-primary);
    border: 2px solid #17a2b8;
}

.software-actions .btn-info:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.software-actions .btn-secondary {
    background: #6c757d;
    color: var(--text-primary);
    border: 2px solid #6c757d;
}

.software-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.software-detail-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.software-detail-footer .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.software-detail-footer .btn:hover {
    transform: translateY(-2px);
}

/* Software Detail Responsive */
@media (max-width: 992px) {
    .software-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .software-actions-panel {
        position: static;
        order: -1;
    }
    
    .software-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .software-detail-hero {
        padding: 30px 20px;
    }
    
    .software-info,
    .software-actions-panel {
        padding: 25px 20px;
    }
    
    .software-title {
        font-size: 32px;
    }
    
    .software-description {
        font-size: 16px;
    }
    
    .software-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .software-detail-page {
        padding-top: 100px;
    }
    
    .software-title {
        font-size: 28px;
    }
    
    .software-detail-hero {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .software-info,
    .software-actions-panel {
        padding: 20px 15px;
    }
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h2,
.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.contact-form {
    max-width: 753px;
    margin: 50px auto 0;
}

.form-row {
    display: flex;
    gap: 37px;
    margin-bottom: 75px;
}

.form-group {
    flex: 1;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.302;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 0;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 100px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    max-width: 174px;
}

.contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
}

.contact-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.302;
}

.contact-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.302;
}

/* Footer */
.footer {
    padding: 50px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.302;
}

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

.linkedin-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--text-primary);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-avatar {
        right: 40px;
    }
}

@media (max-width: 992px) {
    .hero-avatar {
        position: static;
        margin: 50px auto 0;
        width: 400px;
        height: 400px;
    }
    
    .avatar-container {
        width: 400px;
        height: 400px;
    }
    
    .avatar-bg-outer {
        width: 400px;
        height: 400px;
    }
    
    .avatar-bg-inner {
        width: 347px;
        height: 347px;
        top: 26px;
        left: 26px;
    }
    
    .avatar-image {
        top: 26px;
        left: 26px;
        width: 347px;
        height: 347px;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .contact-info {
        gap: 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .service-card {
        width: 100%;
        max-width: 349px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .latest-blog-card {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    
    .latest-blog-image {
        flex: none;
        width: 100%;
    }
    
    .latest-blog-title {
        font-size: 24px;
    }
    
    .software-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-blog-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-avatar {
        width: 300px;
        height: 300px;
    }
    
    .avatar-container {
        width: 300px;
        height: 300px;
    }
    
    .avatar-bg-outer {
        width: 300px;
        height: 300px;
    }
    
    .avatar-bg-inner {
        width: 247px;
        height: 247px;
        top: 26px;
        left: 26px;
    }
    
    .avatar-image {
        top: 26px;
        left: 26px;
        width: 247px;
        height: 247px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Accessibility Improvements */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-green);
    color: var(--text-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Enhanced focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.btn:focus,
.nav-link:focus,
.navbar-brand:focus,
.navbar-toggler:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Ensure focus is visible on dark backgrounds */
.btn:focus {
    box-shadow: 0 0 0 2px var(--primary-bg), 0 0 0 4px var(--focus-color);
}

.nav-link:focus {
    color: var(--focus-color) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #FFFFFF;
        --text-muted: #CCCCCC;
        --border-color: #FFFFFF;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .software-card:hover,
    .blog-card:hover,
    .release-card:hover {
        transform: none;
    }
    
    .software-card:hover .software-card-image img {
        transform: none;
    }
}

/* Smooth Scrolling - only if motion is not reduced */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e8449;
}

/* ===== MODERN BLOG STYLES ===== */

/* Blog Page Layout */
.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.title-sub {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Search Header */
.blog-search-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.search-section {
    margin-bottom: 25px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 48px;
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.search-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.search-coming-soon {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-coming-soon i {
    color: var(--accent-green);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.view-toggle {
    display: flex;
    background: var(--primary-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-btn:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.view-btn.active {
    color: var(--text-primary);
    background: var(--accent-green);
}

.clear-filters-btn {
    padding: 8px 16px;
    background: var(--border-color);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-filters-btn:hover {
    background: var(--accent-green);
}

.results-summary {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.results-count {
    font-size: 16px;
    color: var(--text-primary);
}

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

/* Blog Content Layout */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.blog-main-content {
    min-width: 0; /* Prevent grid overflow */
}

.blog-sidebar-wrapper {
    position: sticky;
    top: 140px;
}

/* Featured Posts Section */
.featured-posts-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-green);
    font-size: 24px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.featured-post-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.featured-post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-green);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-post-content {
    padding: 30px;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.featured-post-meta time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-badge {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: var(--accent-green);
}

.featured-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--text-primary);
    gap: 12px;
}

/* Blog Posts Container */
.blog-posts-container {
    margin-bottom: 40px;
}

.blog-posts-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-posts-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Blog Card Styles */
.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-card-grid {
    display: flex;
    flex-direction: column;
}

.blog-card-list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.blog-card-list .blog-card-image {
    flex: 0 0 200px;
}

.blog-card-list .blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-date {
    font-size: 14px;
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    flex-grow: 1;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--accent-green);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-pill {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.tag-more {
    background: rgba(153, 153, 153, 0.1);
    color: var(--text-muted);
    border-color: rgba(153, 153, 153, 0.2);
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--text-primary);
    gap: 12px;
}

.engagement-metrics {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.metric {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 20px 24px;
    margin: 0;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--accent-green);
    font-size: 16px;
}

.widget-content {
    padding: 20px 24px;
}

.widget-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Categories Widget */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    border-bottom: 1px solid var(--border-light);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--accent-green);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Tags Cloud Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-cloud-item:hover {
    background: var(--accent-green);
    color: var(--text-primary);
}

.tag-size-1 { font-size: 11px; }
.tag-size-2 { font-size: 12px; }
.tag-size-3 { font-size: 13px; }
.tag-size-4 { font-size: 14px; font-weight: 600; }
.tag-size-5 { font-size: 15px; font-weight: 700; }

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 10px;
}

/* Archive Widget */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-item {
    border-bottom: 1px solid var(--border-light);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-link:hover {
    color: var(--accent-green);
}

.archive-date {
    font-weight: 500;
}

.archive-count {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.recent-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--accent-green);
}

.recent-post-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.recent-post-category {
    color: var(--accent-green);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--accent-green) 0%, #1e8449 100%);
    color: var(--text-primary);
}

.newsletter-widget .widget-title {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.newsletter-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Social Links Widget */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--border-light);
    transform: translateX(4px);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.social-link.github:hover {
    border-color: #333;
    color: #333;
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-link.rss:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.social-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===== BLOG DETAIL PAGE ===== */

.blog-detail-page {
    padding-top: 120px;
    min-height: 100vh;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    margin-left: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-green);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* Reading Progress */
.reading-progress-container {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
}

.reading-progress-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 20px 8px;
}

.reading-progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.reading-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 20px;
}

/* Blog Detail Header */
.blog-detail-header {
    margin-bottom: 40px;
}

.blog-featured-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.blog-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-meta-info {
    margin-bottom: 30px;
}

.meta-primary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.publish-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-muted);
}

.meta-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.author-title {
    font-size: 14px;
    color: var(--text-muted);
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-detail-excerpt {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-link {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(39, 174, 96, 0.2);
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--accent-green);
    color: var(--text-primary);
}

.article-share {
    margin-bottom: 30px;
}

/* Table of Contents */
.table-of-contents {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-light);
}

.toc-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.toc-nav {
    padding: 20px 24px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-level-1 { margin-left: 0; }
.toc-level-2 { margin-left: 20px; }
.toc-level-3 { margin-left: 40px; }
.toc-level-4 { margin-left: 60px; }
.toc-level-5 { margin-left: 80px; }
.toc-level-6 { margin-left: 100px; }

.toc-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.toc-link:hover {
    color: var(--accent-green);
}

/* Blog Detail Content */
.blog-detail-content {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
}

.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4,
.blog-detail-content h5,
.blog-detail-content h6 {
    color: var(--text-primary);
    margin: 40px 0 20px;
    font-weight: 700;
}

.blog-detail-content h1 { font-size: 36px; }
.blog-detail-content h2 { font-size: 32px; }
.blog-detail-content h3 { font-size: 28px; }
.blog-detail-content h4 { font-size: 24px; }
.blog-detail-content h5 { font-size: 20px; }
.blog-detail-content h6 { font-size: 18px; }

.blog-detail-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-detail-content li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--accent-green);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--card-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-detail-content code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--accent-green);
}

.blog-detail-content pre {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

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

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-detail-content a {
    color: var(--accent-green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-detail-content a:hover {
    color: var(--text-primary);
}

/* Blog Detail Footer */
.blog-detail-footer {
    max-width: 800px;
    margin: 0 auto;
}

.article-updated {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-share {
    text-align: center;
    margin-bottom: 50px;
}

.footer-share h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Author Bio */
.author-bio {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-bio-avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-bio-title {
    font-size: 16px;
    color: var(--accent-green);
    margin-bottom: 16px;
    font-weight: 600;
}

.author-bio-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.author-social .social-link {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
    align-items: stretch;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-height: 80px;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.back-to-blog {
    grid-column: 1;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    font-weight: 600;
}

.prev-post {
    grid-column: 2;
    text-align: left;
}

.next-post {
    grid-column: 3;
    text-align: right;
}

.nav-direction {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Related Posts */
.related-posts {
    margin-bottom: 50px;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-title i {
    color: var(--accent-green);
    font-size: 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.related-post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.related-post-meta .category {
    color: var(--accent-green);
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--accent-green);
}

.related-post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.related-post-content .reading-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Comments Section */
.comments-section {
    margin-bottom: 50px;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title i {
    color: var(--accent-green);
    font-size: 24px;
}

.comments-placeholder {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.comments-coming-soon {
    color: var(--text-secondary);
}

.comments-coming-soon i {
    font-size: 48px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.comments-coming-soon h4 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.comments-coming-soon p {
    font-size: 16px;
    line-height: 1.5;
}

/* Social Share Component */
.social-share-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.social-share-container.floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 60px;
    padding: 16px 8px;
}

.social-share-header {
    margin-bottom: 20px;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.floating .social-share-buttons {
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.floating .share-btn {
    min-width: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.floating .share-text {
    display: none;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.reddit {
    background: #ff4500;
    color: white;
}

.share-btn.email {
    background: var(--border-color);
    color: var(--text-primary);
}

.share-btn.copy-link {
    background: var(--accent-green);
    color: var(--text-primary);
}

.share-btn.print {
    background: var(--border-color);
    color: var(--text-primary);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: auto;
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-green);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Not Found Page */
.not-found {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.not-found-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.not-found h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.not-found p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.not-found-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Blog */
@media (max-width: 1200px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar-wrapper {
        position: static;
        order: -1;
    }
    
    .title-main {
        font-size: 36px;
    }
    
    .title-sub {
        font-size: 20px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-detail-title {
        font-size: 36px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .back-to-blog {
        grid-column: 1;
        order: 3;
    }
    
    .prev-post {
        grid-column: 1;
        order: 1;
    }
    
    .next-post {
        grid-column: 1;
        order: 2;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 20px;
    }
    
    .blog-search-header {
        padding: 20px;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .blog-posts-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .blog-card-list {
        flex-direction: column;
    }
    
    .blog-card-list .blog-card-image {
        flex: none;
        height: 200px;
    }
    
    .blog-featured-image {
        height: 250px;
    }
    
    .blog-detail-title {
        font-size: 28px;
    }
    
    .blog-detail-excerpt {
        font-size: 18px;
    }
    
    .blog-detail-content {
        font-size: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 576px) {
    .blog-page {
        padding-top: 100px;
    }
    
    .blog-detail-page {
        padding-top: 100px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .title-sub {
        font-size: 18px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .blog-detail-title {
        font-size: 24px;
    }
    
    .blog-detail-content h1 { font-size: 28px; }
    .blog-detail-content h2 { font-size: 24px; }
    .blog-detail-content h3 { font-size: 20px; }
    .blog-detail-content h4 { font-size: 18px; }
    .blog-detail-content h5 { font-size: 16px; }
    .blog-detail-content h6 { font-size: 14px; }
    
    .author-bio {
        padding: 24px 16px;
    }
    
    .social-share-container.floating {
        position: static;
        transform: none;
        width: auto;
        padding: 16px;
    }
    
    .floating .social-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .floating .share-btn {
        width: auto;
        height: auto;
        padding: 8px 12px;
        border-radius: 8px;
        min-width: 80px;
    }
    
    .floating .share-text {
        display: inline;
    }
}
