/* Old-fashioned, minimal styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    background-color: #f0f0f0;
    padding: 20px;
    max-width: 850px;
    margin: 0 auto;
}

/* Print buttons - old fashioned with sharp edges */
.print-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.print-btn, .pdf-btn, .text-btn {
    padding: 8px 16px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: "Courier New", monospace;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.1s ease;
    display: block;
    width: 150px;
}

.print-btn:hover, .pdf-btn:hover, .text-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #000;
}

.print-btn:active, .pdf-btn:active, .text-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0 #000;
}

.pdf-btn {
    background: #f0f0f0;
}

.text-btn {
    background: #e0e0e0;
}

/* Add to your existing styles.css file */
.main-btn {
    padding: 8px 16px;
    border: 2px solid #000;
    background: #d0d0d0;
    color: #000;
    text-decoration: none;
    font-family: "Courier New", monospace;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.1s ease;
    display: block;
    width: 150px;
}

.main-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #000;
    background: #c0c0c0;
}

.main-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0 #000;
}

/* Update mobile styles for the new button */
@media (max-width: 768px) {
    .main-btn {
        width: auto;
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Resume content - direct on background */
.resume-content {
    background: none;
    padding: 20px 0;
    margin-top: 20px;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.contact-info {
    font-size: 16px;
    font-style: normal;
}

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

.section h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid #000;
    text-transform: uppercase;
}

ul {
    list-style-type: none;
    padding-left: 20px;
}

ul li {
    margin-bottom: 6px;
    position: relative;
}

ul li:before {
    content: "•";
    position: absolute;
    left: -15px;
    font-size: 16px;
}

.job, .project {
    margin-bottom: 15px;
}

.job-title, .project-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 15px;
}

.project-desc, .link-item, .reference {
    margin-bottom: 8px;
    padding-left: 5px;
}

a {
    color: #0000EE;
    text-decoration: underline;
}

a:hover {
    color: #551A8B;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer hr {
    border: none;
    border-top: 1px solid #000;
    margin-bottom: 10px;
}

/* Print styles - Centering the content */
@media print {
    @page {
        margin: 0.5in;
    }
    
    .print-buttons {
        display: none;
    }
    
    body {
        background: #fff;
        padding: 0;
        margin: 0;
        font-size: 12px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .resume-content {
        padding: 20px;
        max-width: 8.5in;
        width: 100%;
        margin: 0 auto;
        box-shadow: none;
        border: none;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .section {
        margin-bottom: 15px;
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .section h2 {
        page-break-after: avoid;
    }
    
    ul, ol {
        page-break-inside: avoid;
    }
    
    li {
        page-break-inside: avoid;
    }
    
    /* Ensure the content doesn't get cut off */
    .header, .section, .footer {
        page-break-inside: avoid;
    }
    
    /* Force page breaks if needed */
    .section:last-child {
        page-break-after: auto;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .print-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .print-btn, .pdf-btn, .text-btn {
        width: auto;
        padding: 6px 12px;
        font-size: 11px;
        min-width: 120px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .contact-info {
        font-size: 14px;
    }
    
    .resume-content {
        margin-top: 0;
    }
}