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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #525252;
    padding: 20px;
    line-height: 1.6;
    position: relative;
}

.download-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.terminal-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.download-btn:hover {
    background-color: #2980b9;
}

.terminal-btn:hover {
    background-color: #2980b9;
}

@media print {
    .download-btn {
        display: none;
    }

    .terminal-btn {
        display: none;
    }
}

.page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    margin: 0 auto 20px auto;
    padding: 15mm;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    page-break-after: always;
}

.page:last-child {
    page-break-after: auto;
}

/* Header Section */
.header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c3e50;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
}

.name {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.role {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 10px;
}

.intro {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

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

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

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:first-child {
    margin-top: 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 13px;
}

.about-item {
    display: flex;
}

.about-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
}

.about-value {
    color: #555;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 13px;
}

.skill-item {
    display: flex;
    gap: 10px;
}

.skill-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
}

.skill-value {
    color: #555;
    flex: 1;
}

/* Experience & Education Items */
.timeline-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #3498db;
}

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

.timeline-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.timeline-timeline {
    color: #7f8c8d;
    font-size: 12px;
    white-space: nowrap;
}

.timeline-organization {
    color: #34495e;
    font-size: 13px;
    margin-bottom: 3px;
}

.timeline-location {
    color: #7f8c8d;
    font-size: 12px;
}

.timeline-link {
    color: #3498db;
    font-size: 12px;
    text-decoration: none;
}

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

/* Projects */
.project-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.project-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.project-description {
    color: #555;
    font-size: 12px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.project-tech {
    color: #7f8c8d;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 5px;
}

.project-link {
    color: #3498db;
    font-size: 12px;
    text-decoration: none;
}

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

    .page {
        margin: 0;
        box-shadow: none;
        width: 210mm;
        min-height: 297mm;
        page-break-inside: avoid;
    }

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

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

/* Mobile view - just zoom out */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .page {
        width: 100%;
        min-width: 210mm;
        transform-origin: top left;
    }
}