/* CV Page Styles */

/* Remove borders from left sidebar */
.left-sidebar-nav {
    border-right: none !important;
}

.sidebar-header {
    border-bottom: none !important;
}

/* Left menu item styles - match right menu */
.left-sidebar-nav .sidebar-content {
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
}

.left-sidebar-nav .sidebar-logo {
    margin-bottom: 24px;
    padding-left: 8px;
    margin-left: 80px;
}

.left-sidebar-nav .sidebar-logo img {
    height: 20px !important;
    width: auto !important;
}

.left-sidebar-nav .nav-section-list {
    margin-left: 80px !important;
}

.left-sidebar-nav .nav-item {
    display: inline-flex !important;
    padding: 6px 8px !important;
    border-radius: 9999px !important;
    border-left: none !important;
    margin-left: 0;
}

.left-sidebar-nav .nav-item:hover {
    background: #F5F5F5 !important;
}

.left-sidebar-nav .nav-item.active {
    color: #000000 !important;
    font-weight: 500 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-left: none !important;
    padding-left: 10px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body background */
body {
    background: #ffffff;
}

/* Main content with proper spacing */
.main-content {
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-left: 280px;
    padding-right: 280px;
    max-width: calc(1200px + 280px + 280px);
    padding-bottom: 104px;
    min-height: 100vh;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: 0;
        max-width: none;
    }
}

/* Medium-style article container */
.medium-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

/* Article Header */
.article-header {
    margin-bottom: 56px;
}

.article-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: #1F2937;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-badge:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

.contact-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.contact-badge .badge-text {
    display: inline-block;
    color: #1F2937;
}

.contact-section-badges {
    margin-top: 24px;
}

.contact-lead {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    margin-top: 16px;
    margin-bottom: 20px;
}

#contact .article-contact-badges {
    margin-top: 0;
}

.contact-badge:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.article-title {
    font-family: 'Inria Serif', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    padding-bottom: 48px;
    letter-spacing: -0.02em;
    text-align: left;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.publish-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

/* Article Content */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    text-align: left;
}

.article-content p,
.article-content li {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px;
    text-align: left;
    line-height: 1.7;
    font-style: normal !important;
    color: #374151;
    margin-bottom: 20px;
}

.article-section {
    margin-bottom: 48px;
}

.about-avatar {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    margin-bottom: 32px;
    display: block;
    background-color: #E5E7EB;
    object-fit: cover;
}

.article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    margin-top: 64px;
    margin-bottom: 24px;
    text-align: left;
    letter-spacing: -0.015em;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: -0.01em;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin: 0 0 28px 0;
    padding: 0;
    list-style: none;
}

.article-content ul li {
    margin-bottom: 14px;
    line-height: 1.7;
    padding-left: 0;
    list-style: none;
}

.article-content ul li::before {
    content: "✦";
    padding: 0 4px;
    color: #1F2937;
    display: inline-block;
}

/* Job item styling */
.job-item {
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(20px);
}

.job-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.job-item:last-child {
    margin-bottom: 0;
}

.lead-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 32px;
    text-align: left;
    font-weight: 500;
}

.article-content a:not(.contact-badge) {
    color: #2563EB;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
    font-weight: 500;
}

.article-content a:not(.contact-badge):hover {
    border-bottom-color: #2563EB;
}

/* Strong elements styling */
.article-content strong {
    font-weight: 600;
    color: #1F2937;
}

/* Job item specific styling */
.job-item p:first-of-type {
    margin-bottom: 16px;
    font-weight: 500;
    color: #1F2937;
}

.job-item .job-meta {
    font-size: 14px !important;
    color: #6B7280 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.job-item p:not(:first-of-type) {
    margin-bottom: 14px;
    color: #4B5563;
}

.job-item h3 {
    margin-bottom: 12px;
}

/* Dividers */
.divider-1, .divider-2, .divider-3, .divider-4, .divider-5, .divider-6, .divider-7, .divider-8 {
    height: 1px;
    margin: 64px 0;
    border: none;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-1::before,
.divider-2::before,
.divider-3::before,
.divider-4::before,
.divider-5::before,
.divider-6::before,
.divider-7::before,
.divider-8::before {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.divider-1::after,
.divider-2::after,
.divider-3::after,
.divider-4::after,
.divider-5::after,
.divider-6::after,
.divider-7::after,
.divider-8::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.divider-symbol {
    padding: 0 4px;
    color: rgba(0, 0, 0, 0.3);
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

/* Mobile responsiveness for article */
@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .article-contact-badges {
        gap: 10px;
    }
    
    .contact-badge {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-content h2 {
        font-size: 26px;
        margin-top: 48px;
        margin-bottom: 20px;
    }
    
    .article-content h2:first-of-type {
        margin-top: 0;
    }
    
    .article-content h3 {
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 14px;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.65;
    }
    
    .about-avatar {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 32px;
        margin-bottom: 28px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 18px;
    }
    
    .article-section {
        margin-bottom: 40px;
    }
    
    .job-item {
        margin-bottom: 48px;
    }
    
    .article-content ul {
        margin: 0 0 24px 0;
    }
    
    .article-content ul li {
        margin-bottom: 12px;
        padding-left: 0;
    }
    
    .divider-1, .divider-2, .divider-3, .divider-4, .divider-5, .divider-6, .divider-7, .divider-8 {
        margin: 48px 0;
        height: 1.5px;
    }
    
    .job-item {
        padding: 20px;
    }
    
    .lead-paragraph {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .job-item {
        margin-bottom: 48px;
    }
    
    .job-item p:first-of-type {
        margin-bottom: 16px;
    }
    
    .job-item p:not(:first-of-type) {
        margin-bottom: 10px;
    }
    
    /* Contact section mobile */
    #contact {
        margin-top: 24px;
    }
    
    #contact h2 {
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }
    
    #contact p {
        margin-bottom: 6px !important;
    }
    
    #contact p:first-of-type {
        margin-bottom: 12px !important;
    }
    
}

/* Contact section specific styling */
#contact {
    margin-top: 32px;
}

#contact h2 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

#contact p {
    margin-bottom: 8px !important;
}

#contact p:first-of-type {
    margin-bottom: 16px !important;
}

/* Skills section specific styling */
#skills p {
    color: #4B5563 !important;
}

/* Improve focus states for accessibility */
.contact-badge:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scroll padding for anchor links */
.article-section[id] {
    scroll-margin-top: 100px;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animate content on scroll */
.article-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.article-section p,
.article-section h2,
.article-section h3,
.article-section ul,
.about-avatar {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-section.fade-in p,
.article-section.fade-in h2,
.article-section.fade-in h3,
.article-section.fade-in ul,
.article-section.fade-in .about-avatar {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for list items */
.article-section.fade-in ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.article-section.fade-in ul li:nth-child(2) {
    transition-delay: 0.2s;
}

.article-section.fade-in ul li:nth-child(3) {
    transition-delay: 0.3s;
}

.article-section.fade-in ul li:nth-child(4) {
    transition-delay: 0.4s;
}

.article-section.fade-in ul li:nth-child(5) {
    transition-delay: 0.5s;
}


