
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #eef2f4;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px;
}
.container {
    max-width: 960px;
    background-color: #fff;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    opacity: 0;
    animation: fadeInContainer 1s ease-out forwards;
}

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

.sidebar {
    width: 34%;
    background: linear-gradient(135deg, #1f2933, #31424a);
    color: #ecf0f1;
    padding: 35px 30px;
    box-sizing: border-box;
    position: relative;
}
.main-content {
    width: 66%;
    padding: 35px 40px;
    box-sizing: border-box;
}
.pdf-download-button {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    padding: 11px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.pdf-download-button:hover {
    background: #0b5f59;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.32);
    transform: translateY(-1px);
}
.pdf-download-button:focus-visible {
    outline: 3px solid rgba(54, 194, 180, 0.45);
    outline-offset: 3px;
}
.pdf-download-button:disabled {
    cursor: progress;
    opacity: 0.8;
}
.pdf-download-button.is-loading i {
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.photo-placeholder {
    width: 160px;
    height: 160px;
    background-color: #bdc3c7;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: block;
    border: 6px solid #ecf0f1;
    text-align: center;
    line-height: 148px;
    font-size: 13px;
    color: #7f8c8d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.photo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(236, 240, 241, 0.5);
}

h1, h2, h3 {
    margin: 0 0 15px 0;
    padding: 0;
}
h1 {
    font-size: 2.3em;
    color: #0f766e;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 600;
}
.subtitle {
    text-align: center;
    margin-top: -8px;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
    font-size: 1.08em;
}
 .main-content h2 {
    color: #0f766e;
    border-bottom: 3px solid #0f766e;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    animation: slideInUnderline 0.8s ease-out forwards;
}

@keyframes slideInUnderline {
    from { width: 0; }
    to { width: 100%; }
}

.sidebar h2 {
    color: #ecf0f1;
    border-bottom: 1px solid #7f8c8d;
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 18px;
    font-size: 1.4em;
    font-weight: 500;
}
.sidebar h3 {
    color: #bdc3c7;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 500;
}
p, li {
    margin-bottom: 12px;
    color: #555;
}
.sidebar p, .sidebar li {
    color: #ecf0f1;
    font-size: 0.98em;
}
.sidebar a {
    color: #9bdaf1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.sidebar a:hover {
    color: #ecf0f1;
}
.main-content a {
    color: #0f766e;
    text-decoration: none;
    transition: color 0.3s ease;
}
 .main-content a:hover {
    color: #0b5f59;
}
ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.sidebar ul li i.fa-solid {
    margin-right: 10px;
    color: #36c2b4;
    width: 18px;
    text-align: center;
}
.sidebar ul li::before {
    content: "";
}

.main-content ul li {
     margin-left: 25px;
     position: relative;
     padding-left: 5px;
}
 .main-content ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0f766e;
    position: absolute;
    left: -20px;
    top: 2px;
    transition: transform 0.2s ease-in-out;
}
.main-content ul li:hover::before {
    transform: translateX(3px);
}

.contact-info p {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    margin: 0 0 16px;
}
.contact-info h2 i {
    color: #36c2b4;
    margin-right: 10px;
}
.contact-info p > i {
    align-items: center;
    background-color: rgba(54, 194, 180, 0.12);
    border: 1px solid rgba(54, 194, 180, 0.22);
    border-radius: 8px;
    font-size: 1.1em;
    color: #36c2b4;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    margin-top: 1px;
    width: 32px;
}
.contact-info span {
    min-width: 0;
}
.contact-info strong {
    display: block;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #bdc3c7;
    font-weight: 500;
}
.contact-info a {
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
}

.section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInSection 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.pdf-exporting .container,
.pdf-exporting .section {
    opacity: 1;
    transform: none;
    animation: none;
}
/* Stagger section animations */
.main-content .section:nth-of-type(1) { animation-delay: 0.3s; }
.main-content .section:nth-of-type(2) { animation-delay: 0.4s; }
.main-content .section:nth-of-type(3) { animation-delay: 0.5s; }
.main-content .section:nth-of-type(4) { animation-delay: 0.6s; }
.main-content .section:nth-of-type(5) { animation-delay: 0.7s; }
.main-content .section:nth-of-type(6) { animation-delay: 0.8s; }
.main-content .section:nth-of-type(7) { animation-delay: 0.9s; }

.sidebar .section:nth-of-type(1) { animation-delay: 0.3s; }
.sidebar .section:nth-of-type(2) { animation-delay: 0.4s; }
.sidebar .section:nth-of-type(3) { animation-delay: 0.5s; }
.sidebar .section:nth-of-type(4) { animation-delay: 0.6s; }


.job-title {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}
.company-location {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 5px;
}
.project-title {
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    font-size: 1.05em;
}
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 6px;
}
.project-meta {
    color: #0f766e;
    font-size: 0.92em;
    font-weight: 600;
    margin-bottom: 6px;
}
.skills-list {
    padding-left: 0;
    list-style: none;
}
.skills-list li {
     background-color: rgba(54, 194, 180, 0.14);
     border-radius: 5px;
     padding: 6px 12px;
     margin-bottom: 8px;
     display: inline-flex;
     align-items: center;
     margin-right: 8px;
     font-size: 0.95em;
     color: #ffffff;
     border: 1px solid rgba(54, 194, 180, 0.28);
     transition: transform 0.2s ease, background-color 0.3s ease;
     cursor: default;
}
.skills-list li:hover {
    transform: translateY(-2px);
    background-color: rgba(54, 194, 180, 0.26);
}
.skills-list li i {
    margin-right: 8px;
    color: #36c2b4;
    font-size: 1.1em;
}
.skills-list li::before {
     content: "";
}

@media (max-width: 768px) {
    .pdf-download-button {
        top: auto;
        right: 14px;
        bottom: 14px;
        padding: 10px 14px;
        font-size: 0.95em;
    }
    .container {
        flex-direction: column;
        margin: 10px;
        max-width: 95%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .sidebar, .main-content {
        width: 100%;
    }
    .sidebar {
        padding: 25px 20px;
    }
    .main-content {
        padding: 25px 20px;
    }
    h1 {
        font-size: 2em;
    }
     .main-content h2 {
        font-size: 1.4em;
    }
     .sidebar h2 {
        font-size: 1.3em;
    }
    .photo-placeholder {
        width: 130px;
        height: 130px;
        line-height: 118px;
        border-width: 5px;
    }
    .skills-list li {
        font-size: 0.9em;
        padding: 5px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .container,
    .section {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .pdf-download-button {
        display: none;
    }
    body {
        background-color: #fff;
        display: block;
        padding: 0;
    }
    .container {
        max-width: none;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        animation: none;
    }
    .section {
        break-inside: avoid;
        opacity: 1;
        transform: none;
        animation: none;
    }
    .photo-placeholder:hover,
    .skills-list li:hover,
    .main-content ul li:hover::before {
        transform: none;
        box-shadow: none;
    }
    a {
        color: inherit;
    }
}
