/* Design tokens & Custom properties */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #e0e7ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 50px;
    -webkit-font-smoothing: antialiased;
}

/* Action Bar for Web View */
.action-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-bar-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-tag {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.view-tag i {
    color: var(--primary);
    font-size: 1.1rem;
}

.btn-print {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-print:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Main Resume Container */
.resume-container {
    max-width: 850px;
    margin: 80px auto 20px auto;
    background-color: var(--bg-card);
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Resume Header styling */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.header-main {
    flex: 1;
}

.candidate-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.candidate-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item i {
    width: 14px;
    text-align: center;
    color: var(--primary);
}

.links-row {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-page);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Two Column Layout */
.resume-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
}

/* Section styling */
.resume-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.section-title i {
    color: var(--primary);
    font-size: 1rem;
}

/* Project Cards */
.project-card {
    margin-bottom: 18px;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.project-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.project-links {
    font-size: 0.8rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-link:hover {
    text-decoration: underline;
}

.project-tech {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-style: italic;
}

.project-bullets {
    padding-left: 18px;
    font-size: 0.84rem;
    color: var(--text-main);
}

.project-bullets li {
    margin-bottom: 4px;
}

.project-bullets li:last-child {
    margin-bottom: 0;
}

/* Sidebar Section Styling */
.resume-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.skill-category {
    font-size: 0.82rem;
}

.skill-category strong {
    display: block;
    color: #0f172a;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.skill-category p {
    color: var(--text-muted);
}

/* Education styling */
.education-card {
    position: relative;
    padding-left: 12px;
    border-left: 2px solid var(--primary-light);
}

.degree {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.timeline {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 0;
}

.institute {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive (Screen only) */
@media (max-width: 768px) {
    .resume-container {
        margin: 70px 15px 20px 15px;
        padding: 25px;
    }
    
    .resume-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-contact {
        align-items: flex-start;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* PRINT OPTIMIZED CSS */
@media print {
    /* Hide non-printable web UI elements */
    .no-print, .action-bar, .btn-print {
        display: none !important;
    }

    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .resume-container {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
    }

    .resume-header {
        border-bottom: 2px solid #000000 !important;
        padding-bottom: 15px !important;
        margin-bottom: 20px !important;
    }

    .candidate-name {
        font-size: 2.2rem !important;
    }

    .candidate-title {
        color: #000000 !important;
    }

    .contact-item i {
        color: #000000 !important;
    }
    
    .link-pill {
        border: 1px solid #000000 !important;
        background-color: transparent !important;
        color: #000000 !important;
    }

    .section-title {
        border-bottom: 1.5px solid #000000 !important;
        color: #000000 !important;
    }

    .section-title i {
        color: #000000 !important;
    }

    .project-name {
        font-size: 1rem !important;
    }

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

    .timeline {
        background-color: #f1f5f9 !important;
        color: #000000 !important;
        border: 1px solid #cbd5e1 !important;
    }

    /* Keep layout side-by-side if supported, else standard block */
    .resume-content {
        display: grid !important;
        grid-template-columns: 1.75fr 1fr !important;
        gap: 14px !important;
    }

    .project-card {
        margin-bottom: 8px !important;
    }

    .project-tech {
        margin-bottom: 3px !important;
        font-size: 0.78rem !important;
    }

    .project-bullets li {
        margin-bottom: 2px !important;
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }

    .candidate-name {
        font-size: 1.75rem !important;
    }

    .candidate-title {
        font-size: 0.95rem !important;
    }

    .resume-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
        padding-bottom: 3px !important;
    }

    .skill-category {
        margin-bottom: 8px !important;
    }

    .skill-category p {
        font-size: 0.8rem !important;
    }

    /* Page margins adjustment */
    @page {
        size: A4;
        margin: 0.6cm 1cm 0.6cm 1cm;
    }
}


