/* ===================================
   Print-Optimized CV Styles
   =================================== */

/* Google Translate Styling */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
}

.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    font-size: 0 !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    font-size: 13px !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
    padding: 20px;
}

.cv-container {
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
    background: white;
    padding: 20mm;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header Section */
.cv-header {
    border-bottom: 3px solid #2563eb;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.header-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}

.profile-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
}

.header-text {
    flex: 1;
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 5px;
}

.location {
    font-size: 14px;
    color: #666;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-weight: 600;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Section Styles */
.cv-section {
    margin-bottom: 25px;
    page-break-inside: avoid;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary */
.summary {
    font-size: 13px;
    line-height: 1.7;
    text-align: justify;
    color: #333;
}

/* Experience */
.experience-item {
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.company {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.role {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 3px;
}

.exp-location {
    font-size: 12px;
    color: #666;
}

.duration {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.products-section {
    margin: 10px 0 15px 0;
    padding: 10px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    font-size: 11px;
}

.products-section strong {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: 12px;
}

.products-section .product-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.products-section .product-list li {
    margin-bottom: 4px;
    padding-left: 18px;
    position: relative;
}

.products-section .product-list li::before {
    content: '🔗';
    position: absolute;
    left: 0;
    font-size: 10px;
}

.products-section .product-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.products-section .product-list a:hover {
    text-decoration: underline;
}

.responsibilities {
    list-style: none;
    margin: 10px 0;
    padding-left: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

.responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.technologies {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    font-size: 11px;
}

.technologies strong {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 12px;
}

.tech-item {
    margin-bottom: 4px;
    line-height: 1.5;
}

.tech-item strong {
    display: inline;
    color: #2563eb;
    margin-bottom: 0;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    page-break-inside: avoid;
}

.skill-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.skill-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.skill-item p {
    font-size: 11px;
    line-height: 1.5;
    color: #666;
}

/* Technical Skills */
.technical-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.tech-category-section {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    page-break-inside: avoid;
}

.tech-category-title {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}

.tech-skills-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 11px;
}

.tech-skill-name {
    font-weight: 500;
    color: #1a1a1a;
}

.tech-skill-years {
    font-weight: 600;
    color: #2563eb;
    font-size: 10px;
    white-space: nowrap;
}

/* Education */
.education-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    page-break-inside: avoid;
}

.edu-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.edu-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.field {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 3px;
}

.institution {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 3px;
}

.edu-content .duration {
    font-size: 11px;
    color: #999;
    text-align: left;
}

/* Footer */
.cv-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    font-size: 11px;
    color: #999;
}

.print-date {
    margin-top: 5px;
    font-style: italic;
}

/* Print Controls */
.print-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.print-btn,
.back-btn,
.switch-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.print-btn {
    background: #2563eb;
    color: white;
}

.print-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.switch-btn {
    background: #7c3aed;
    color: white;
}

.switch-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.back-btn {
    background: white;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
}

.back-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

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

    .cv-container {
        max-width: 100%;
        box-shadow: none;
        padding: 15mm;
    }

    .no-print {
        display: none !important;
    }

    .cv-section {
        page-break-inside: avoid;
    }

    .experience-item,
    .skill-item,
    .education-item {
        page-break-inside: avoid;
    }

    /* Ensure proper page breaks */
    h3 {
        page-break-after: avoid;
    }

    /* Optimize for black and white printing */
    .cv-header {
        border-bottom-color: #000;
    }

    .profile-photo {
        border-color: #000;
    }

    .title,
    .role,
    .field,
    .responsibilities li::before,
    .tech-item strong {
        color: #000;
    }

    .technologies {
        background: #f5f5f5;
        border-left-color: #000;
    }

    /* Ensure links are visible when printed */
    a {
        color: #000;
        text-decoration: underline;
    }

    /* Remove shadows for cleaner print */
    /**
     * Printable CV Styles
     * Copyright (c) 2025 Kiran Badave
     * Licensed under the MIT License
     * https://github.com/kiran-badave/kiran-badave.github.io
     */
    
    * {
        box-shadow: none !important;
    }
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .cv-container {
        padding: 15px;
    }

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

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        margin-top: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .print-controls {
        position: static;
        margin: 20px auto;
        justify-content: center;
    }

    .exp-header {
        flex-direction: column;
    }

    .duration {
        text-align: left;
        margin-top: 5px;
    }
}

/* Ensure strong tags in responsibilities are visible */
.responsibilities li strong {
    font-weight: 700;
    color: #1a1a1a;
}
/* System Design & Architecture Section */
.system-design-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-design-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
}

.system-design-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
    font-size: 1.2em;
}

.system-design-list li strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Key Highlights Section */
.key-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-highlights-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
}

.key-highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

.key-highlights-list li strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Print styles for new sections */
@media print {
    .system-design-list li,
    .key-highlights-list li {
        page-break-inside: avoid;
    }
}

