:root {
    --primary-color: #000000;
    --accent-color: #333333;
    --bg-color: #f5f5f5;
    --text-color: #000000;
    --border-color: #000000;
    --light-gray: #666666;
}

/* Blur to Clear Animation */
@keyframes blurToClear {
    0% {
        filter: blur(8px);
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info-item {
    animation-fill-mode: both;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #000000;
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: 2px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    color: #000000;
}

.btn-print {
    background: #000000;
    color: white;
    border-color: #000000;
}

.btn-print:hover {
    background: #333333;
    transform: translateY(-2px);
}

.btn-pdf {
    background: #000000;
    color: white;
    border-color: #000000;
}

.btn-pdf:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* CV Content - Two Column Layout */
.cv-content {
    display: grid;
    grid-template-columns: 35% 65%;
    min-height: 1123px;
}

/* Sidebar Design - Black and White */
.sidebar {
    background: #ffffff;
    color: #000000;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 2px solid #000000;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000000;
}

/* Profile Section - No Image */
.profile-section {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #000000;
}

.sidebar h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: #000000;
    font-weight: 700;
}

.sidebar h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000;
    margin-bottom: 6px;
    font-weight: 600;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
    display: inline-block;
}

.profile-subtitle {
    font-size: 13px;
    color: #333333;
    margin-bottom: 15px;
    font-style: italic;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    font-size: 13px;
    color: #000000;
    font-weight: 600;
    margin-top: 10px;
}

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

.badge-icon svg {
    width: 100%;
    height: 100%;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333333;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000;
    margin-bottom: 18px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

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

.contact-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: #000000;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details .sidebar-link {
    font-size: 14px;
    font-weight: 600;
}

/* Info Items */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

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

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
    word-break: break-word;
}

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

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.social-link-item:hover {
    background: #f5f5f5;
    border-color: #000000;
    transform: translateX(5px);
}

.social-icon {
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke: #000000;
}

/* Legacy styles for compatibility */
.sidebar-value {
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
}

.sidebar-link {
    color: #000000;
    text-decoration: underline;
    transition: all 0.3s ease;
    word-break: break-all;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.6;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.sidebar-link:hover {
    color: #333333;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Main Content Design */
.main-content {
    padding: 40px;
    background: white;
}

.section {
    margin-bottom: 35px;
    page-break-inside: avoid;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #000000;
    border-bottom: 3px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 50px;
    height: 3px;
    background: #000000;
}

/* Career Objective */
.objective-text {
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    text-align: justify;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
}

/* Experience */
.experience-item {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.company {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
    font-style: italic;
}

.job-duration {
    font-size: 14px;
    color: #333333;
    margin-bottom: 12px;
    font-weight: 500;
}

.job-description {
    list-style: none;
    padding-left: 0;
}

.job-description li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #000000;
    font-size: 14px;
    line-height: 1.7;
}

.job-description li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    top: 2px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    padding: 15px 20px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.skill-item strong {
    color: #000000;
    font-weight: 700;
    font-size: 15px;
}

/* Education */
.education-item {
    margin-bottom: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.degree {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.institution {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 5px;
    font-style: italic;
}

.graduation-year {
    font-size: 15px;
    color: #333333;
    font-weight: 500;
}

/* Languages */
.languages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.language-name {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.language-level {
    font-size: 14px;
    color: #333333;
    font-style: italic;
}

/* Projects */
.project-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.project-tech {
    font-size: 14px;
    color: #333333;
    font-weight: 600;
    margin-bottom: 10px;
    font-style: italic;
}

.project-description {
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
}

/* Achievements */
.achievements-list {
    list-style: none;
    padding-left: 0;
}

.achievements-list li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
    position: relative;
    padding-left: 35px;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.achievements-list li::before {
    content: "■";
    position: absolute;
    left: 15px;
    color: #000000;
    font-weight: bold;
    font-size: 12px;
}

/* Publications */
.publications-section {
    margin-top: 40px;
}

.publication-item {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.publication-authors {
    font-size: 13px;
    color: #000000;
    margin-bottom: 6px;
    line-height: 1.6;
}

.publication-authors strong {
    color: #000000;
    font-weight: 700;
}

.publication-title {
    font-size: 14px;
    color: #000000;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.5;
}

.publication-venue {
    font-size: 12px;
    color: #333333;
    line-height: 1.5;
}

/* Portfolio */
.portfolio-item {
    margin-bottom: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid #000000;
    border: 1px solid #000000;
    border-left-width: 4px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.portfolio-description {
    font-size: 15px;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.8;
}

.portfolio-link {
    color: #000000;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.portfolio-link:hover {
    background: #f5f5f5;
    color: #000000;
    text-decoration: underline;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .action-buttons {
        display: none;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        border: none;
    }

    .cv-content {
        min-height: auto;
    }

    .sidebar {
        background: #ffffff !important;
        border-right: 2px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        page-break-inside: avoid;
        margin-bottom: 25px;
    }

    .sidebar {
        page-break-after: avoid;
    }

    .objective-text,
    .experience-item,
    .skill-item,
    .education-item,
    .portfolio-item,
    .project-item,
    .language-item,
    .achievements-list li {
        background: #f5f5f5 !important;
        border: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Ensure links are visible in print */
    a {
        color: #000000 !important;
        text-decoration: underline !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sidebar-link {
        color: #000000 !important;
        text-decoration: underline !important;
    }

    .portfolio-link {
        color: #000000 !important;
        text-decoration: underline !important;
        border: 1px solid #000000 !important;
        background: white !important;
    }

    @page {
        margin: 1cm;
        size: A4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .cv-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 2px solid #000000;
    }

    .main-content {
        padding: 30px 20px;
    }

    .action-buttons {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        justify-content: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

