/* Professional Resume Styles - PDF-like appearance */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.5;
    color: #333;
    background-color: #f0f0f0;
    padding: 20px;
}

.resume-container {
    max-width: 8.5in;
    min-height: 11in;
    margin: 0 auto;
    background-color: white;
    padding: 0.75in 1in;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.resume-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.resume-header h1 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    font-size: 10px;
    color: #555;
}

.contact-info a {
    color: #555;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #999;
}

/* Section Styles */
.resume-section {
    margin-bottom: 20px;
}

.resume-section h2 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
}

.resume-section p {
    font-size: 10px;
    text-align: justify;
    margin-bottom: 10px;
}

/* Education Styles */
.education-item {
    margin-bottom: 12px;
}

.education-header,
.education-details {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.institution {
    font-weight: bold;
}

.degree {
    font-style: italic;
}

.location,
.date {
    text-align: right;
}

/* Skills Styles */
.skills-container {
    display: flex;
    gap: 40px;
}

.skill-category {
    flex: 1;
}

.skill-category h3 {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
    font-style: italic;
}

.skill-category ul {
    list-style: none;
    font-size: 10px;
}

.skill-category li {
    margin-bottom: 3px;
    padding-left: 15px;
    position: relative;
}

.skill-category li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Project Styles */
.project-item {
    margin-bottom: 15px;
}

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

.project-header h3 {
    font-size: 10px;
    font-weight: bold;
    display: inline;
}

.project-link {
    font-size: 9px;
    color: #666;
}

.project-item ul {
    list-style: none;
    font-size: 10px;
    padding-left: 0;
}

.project-item li {
    margin-bottom: 3px;
    padding-left: 15px;
    position: relative;
}

.project-item li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Experience Styles */
.experience-item {
    margin-bottom: 15px;
}

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

.job-title {
    font-weight: bold;
}

.company {
    font-style: italic;
}

.experience-item ul {
    list-style: none;
    font-size: 10px;
    padding-left: 0;
}

.experience-item li {
    margin-bottom: 3px;
    padding-left: 15px;
    position: relative;
    text-align: justify;
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* PDF Control Buttons */
.pdf-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.export-pdf-btn,
.print-pdf-btn {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.export-pdf-btn:hover,
.print-pdf-btn:hover {
    background-color: #34495e;
}

.export-pdf-btn:active,
.print-pdf-btn:active {
    transform: translateY(1px);
}

.print-pdf-btn {
    background-color: #27ae60;
}

.print-pdf-btn:hover {
    background-color: #229954;
}

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

    .resume-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
        page-break-after: auto !important; /* prevent trailing blank page */
    }

    .pdf-controls {
        display: none;
    }

    .resume-header {
        page-break-after: avoid;
    }

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

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

/* PDF export specific styles */
.resume-container {
    page-break-after: auto; /* avoid forcing an extra blank page */
}

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

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

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

    .resume-container {
        padding: 30px 20px;
    }

    .pdf-controls {
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 5px;
    }

    .export-pdf-btn,
    .print-pdf-btn {
        padding: 8px 15px;
        font-size: 10px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }

    .skills-container {
        flex-direction: column;
        gap: 15px;
    }

    .experience-header {
        flex-direction: column;
        gap: 3px;
    }

    .education-header,
    .education-details {
        flex-direction: column;
        gap: 2px;
    }

    .location,
    .date {
        text-align: left;
    }

    .project-header {
        flex-direction: column;
        gap: 3px;
    }
}
