/* Enhanced Blog System Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 122, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.blog-post-card.featured {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 122, 0, 0.02) 100%);
}

.blog-post-card.featured::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--secondary), #ff9533);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
    z-index: 2;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-custom);
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

.blog-date {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    flex-grow: 0;
}

.blog-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-custom);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-tag {
    background: rgba(255, 122, 0, 0.1);
    color: var(--secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(255, 122, 0, 0.2);
    transform: translateY(-1px);
}

/* Enhanced Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.article-modal .modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: none;
    margin: 2rem 0;
    border: 1px solid rgba(255, 122, 0, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-header {
    position: relative;
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px 24px 0 0;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-custom);
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-date {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-weight: 500;
}

.article-read-time {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: rgba(255, 122, 0, 0.1);
    color: var(--secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-content {
    padding: 3rem;
    line-height: 1.8;
    color: var(--gray-custom);
    font-size: 1.1rem;
}

.article-content .article-h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 3rem 0 1.5rem 0;
    line-height: 1.2;
}

.article-content .article-h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-content .article-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2rem 0 0.75rem 0;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content strong {
    color: var(--primary);
    font-weight: 700;
}

.article-content em {
    font-style: italic;
    color: var(--secondary);
}

.article-footer {
    padding: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 0 0 24px 24px;
}

.article-cta {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 122, 0, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 0, 0.1);
}

.article-cta h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Enhanced Filter Styles */
.filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 0, 0.1);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 122, 0, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-custom);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 122, 0, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .blog-post-card {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
    
    .blog-meta {
        gap: 0.5rem;
    }
    
    .featured-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .article-modal .modal-content {
        margin: 1rem 0;
        border-radius: 16px;
    }
    
    .article-header,
    .article-content,
    .article-footer {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content .article-h1 {
        font-size: 1.875rem;
    }
    
    .article-content .article-h2 {
        font-size: 1.5rem;
    }
    
    .article-content .article-h3 {
        font-size: 1.25rem;
    }
    
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Writing System Enhancement */
.writing-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 122, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-navigation {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 122, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
}

.article-nav-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-custom);
    font-size: 0.9rem;
}

.article-nav-item:hover {
    color: var(--secondary);
    transform: translateX(8px);
}

.article-nav-item.active {
    color: var(--secondary);
    font-weight: 600;
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
}

/* Professional Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 122, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portfolio-category:hover::before {
    transform: scaleX(1);
}

.portfolio-category:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.category-description {
    color: var(--gray-custom);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-count {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 122, 0, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Enhanced Call-to-Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
    border-radius: 24px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white, rgba(255, 122, 0, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary {
    background: linear-gradient(135deg, var(--secondary), #ff9533);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 122, 0, 0.5);
    background: linear-gradient(135deg, #ff9533, var(--secondary));
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
    transform: translateY(-3px);
}