body {
    background: linear-gradient(135deg, #e0e7ef 0%, #f4f4f4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
}

.card-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 3rem;
    text-align: center;
    max-width: 350px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

h1 {
    margin: 0.5rem 0 0.2rem 0;
    font-size: 2rem;
}

h2 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.links a {
    margin: 0 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

p a, p a:visited, p a:active, p a:focus {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
    outline: none;
    background: none;
    box-shadow: none;
    transition: color 0.2s;
}

p a:focus, p a:active {
    color: #0077b5;
    text-decoration: underline;
    outline: 2px solid #0077b5;
    background: none;
    box-shadow: none;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

section {
    margin-bottom: 1.2rem;
    text-align: left;
}

section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

section ul {
    list-style: disc inside;
    margin: 0 0 0 1rem;
    padding: 0;
    color: #444;
    font-size: 1rem;
}

section ul li {
    margin-bottom: 0.3rem;
}

.projects ul li a {
    color: #0077b5;
    text-decoration: underline;
    font-weight: 500;
}

.projects ul li a:hover {
    color: #005983;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.info-card {
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 320px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cv-container {
    display: flex;
    max-width: 950px;
    margin: 3rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1.5px solid #e3e8ee;
}

.cv-sidebar {
    background: linear-gradient(120deg, #f7f9fa 60%, #e3e8ee 100%);
    padding: 2.2rem 1.7rem;
    width: 290px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 2px solid #e3e8ee;
    box-shadow: 2px 0 12px 0 rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
}

.cv-sidebar .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.3rem;
    border: 3px solid #c7d0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.cv-sidebar h1 {
    font-size: 1.6rem;
    margin: 0.5rem 0 0.2rem 0;
    color: #1a2636;
    letter-spacing: 0.5px;
}

.cv-sidebar h2 {
    font-size: 1.13rem;
    color: #4b5a6a;
    font-weight: 400;
    margin: 0 0 1.2rem 0;
}

.cv-sidebar .contact-info {
    margin-bottom: 1.1rem;
    text-align: center;
    color: #3a4a5e;
    font-size: 1rem;
}

.cv-sidebar .links {
    margin-bottom: 1.3rem;
}

.cv-sidebar .links a {
    display: inline-block;
    margin: 0 0.3rem;
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    background: #e3e8ee;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.cv-sidebar .links a:hover {
    text-decoration: underline;
    background: #d0d8e8;
    color: #005983;
}

.cv-sidebar section {
    width: 100%;
    margin-bottom: 1.3rem;
    text-align: left;
    background: #f5f7fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 0.7rem 0.9rem 0.5rem 0.9rem;
}

.cv-sidebar section h3 {
    font-size: 1.08rem;
    color: #2a3a4a;
    margin-bottom: 0.4rem;
    border-left: 3px solid #0077b5;
    padding-left: 0.5rem;
    font-weight: 600;
}

.cv-sidebar section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}

.cv-sidebar .skills ul li, .cv-sidebar .languages ul li {
    background: #e3e8ee;
    color: #2a3a4a;
    border-radius: 5px;
    padding: 0.18rem 0.7rem;
    font-size: 0.97rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cv-main {
    flex: 1;
    padding: 2.5rem 2.7rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    background: #fafdff;
}

.cv-main section {
    margin-bottom: 0.7rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2rem 1.5rem 1rem 1.5rem;
    border-left: 4px solid #0077b5;
}

.cv-main h3 {
    font-size: 1.22rem;
    color: #1a2636;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.cv-main ul {
    list-style: disc inside;
    margin: 0 0 0 1rem;
    padding: 0;
    color: #444;
    font-size: 1rem;
}

.cv-main ul li {
    margin-bottom: 0.3rem;
}

.cv-main a {
    color: #0077b5;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.cv-main a:hover {
    color: #005983;
}

.technologies {
    margin-bottom: 1.5rem;
    padding: 1.2rem 2.5rem 1.2rem 2.5rem;
}
.cv-main section.technologies {
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    background: #f7fafd;
    border: 1.5px solid #e3e8ee;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.technologies .tech-group {
    margin-bottom: 1.5rem;
    padding: 0.7rem 2.5rem 0.7rem 2.5rem; /* Stronger left/right padding */
    border-bottom: 1px solid #e3e8ee;
}
.technologies .tech-group:last-child {
    border-bottom: none;
}
.technologies h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
}
.technologies h4 {
    margin-top: 0.7rem;
    margin-bottom: 0.4rem;
}
.tech-tags {
    margin-bottom: 0.2rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    margin: 0;
    padding: 0;
    width: 100%;
}
.tech-tags li {
    background: none;
    color: #1a2636;
    border-radius: 0;
    padding: 0;
    font-size: 0.97rem;
    font-weight: 500;
    box-shadow: none;
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-width: 0;
    max-width: 100%;
    flex: none;
    position: relative;
    justify-content: flex-start;
    word-break: break-word;
}
.tech-tags li:hover {
    background: none;
    color: #005983;
}

.technologies ul.tech-tags,
.technologies ul.tech-tags li,
.technologies .tech-group ul,
.technologies .tech-group ul li,
.technologies .os-tags,
.technologies .os-tags li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.technologies .tech-group,
.technologies .tech-group ul,
.technologies .tech-group ul li {
    box-sizing: border-box;
}
.technologies .tech-group ul.tech-tags {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.technologies .tech-group ul.tech-tags li {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}
.technologies .tech-group {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.language-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.language-list li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
}
.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    margin: 0;
    padding: 0;
    width: 100%;
}
.lang-tag {
    background: #e3e8ee;
    color: #1a2636;
    border-radius: 5px;
    padding: 0.18rem 0.8rem;
    font-size: 0.97rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-width: 0;
    max-width: 100%;
    flex: none;
    position: relative;
    justify-content: flex-start;
    word-break: break-word;
}
.lang-tag:hover {
    background: #d0d8e8;
    color: #005983;
}
.lang-level {
    color: #4b5a6a;
    font-size: 0.98em;
    margin-left: 0.3em;
}
.lang-cert, .lang-cert-id {
    display: inline-block;
    margin-left: 0.3em;
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
}
.lang-cert {
    background: #f7fafd;
    color: #0077b5;
    border-radius: 4px;
    padding: 0.08em 0.45em;
    font-size: 0.93em;
    font-weight: 500;
    border: 1px solid #e3e8ee;
}
.lang-cert-id {
    background: #fff;
    color: #4b5a6a;
    border-radius: 4px;
    padding: 0.08em 0.45em;
    font-size: 0.93em;
    font-weight: 400;
    border: 1px solid #e3e8ee;
    margin-top: 0.2em;
}
.lang-cert-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0.5em;
    margin-top: 0.1em;
    gap: 0.1em;
}
@media (max-width: 900px) {
    .cv-container {
        flex-direction: column;
        max-width: 98vw;
    }
    .cv-sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 2px solid #e3e8ee;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1.5rem 0.5rem;
    }
    .cv-sidebar section {
        width: 45%;
        min-width: 150px;
        margin: 0.5rem 1%;
    }
    .cv-main {
        padding: 1.5rem 1rem;
    }
    .technologies {
        padding: 1.2rem 1rem 1.2rem 1rem;
    }
    .cv-main section.technologies {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .cv-sidebar {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.2rem;
    }
    .cv-sidebar section {
        width: 100%;
        margin: 0.5rem 0;
    }
    .cv-main {
        padding: 1rem 0.2rem;
    }
}
