:root {
    --bg-color: #f0f2f5;
    --paper-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #2c3e50;
    --border-color: #000000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "EB Garamond", "Garamond", "Times New Roman", serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-color);
    margin: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.resume-container {
    background-color: var(--paper-color);
    max-width: 850px;
    width: 100%;
    padding: 70px 80px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 8px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    margin: 0 0 6px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.contact-info {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.contact-info a:hover {
    color: #004499;
}

.contact-info a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

h3 {
    font-size: 15px;
    text-transform: uppercase;
    margin: 30px 0 5px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin-bottom: 15px;
}

p {
    margin: 0 0 12px 0;
    font-size: 14.5px;
    text-align: justify;
}

.skills-list p {
    margin-bottom: 8px;
    text-align: left;
}

ul {
    margin: 8px 0 15px 0;
    padding-left: 24px;
    font-size: 14.5px;
}

li {
    margin-bottom: 6px;
    text-align: justify;
}

.job {
    margin-bottom: 24px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 15.5px;
}

.sub-section {
    margin-top: 12px;
}

.sub-section strong {
    font-size: 14.5px;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e83e8c;
    white-space: nowrap;
}

/* Download Button Styles */
.actions {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    animation: slideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

#downloadPdfBtn {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

#downloadPdfBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.35);
    background-color: #1a252f;
}

#downloadPdfBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
}

@media print {
    body {
        background-color: #fff;
        padding: 0;
        -webkit-print-color-adjust: exact;
    }
    .resume-container {
        box-shadow: none;
        padding: 0;
        animation: none;
        max-width: 100%;
    }
    .actions {
        display: none;
    }
    hr {
        border-top: 1.5px solid #000;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .resume-container {
        padding: 40px 30px;
    }
    .job-header {
        flex-direction: column;
        gap: 5px;
    }
    .actions {
        bottom: 20px;
        right: 20px;
    }
}
