@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

/* A4: 210mm × 297mm */
@page {
    size: A4;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e8e8e8;
    padding: 24px 20px;
}

.CV {
    width: 210mm;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 36px 44px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 2px solid #111;
    margin-bottom: 24px;
}

.info h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.info .title {
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info p {
    font-size: 12.5px;
    color: #666;
    margin: 3px 0;
    font-weight: 400;
}

.email-link {
    color: #666;
    text-decoration: none;
}
.email-link:hover { text-decoration: underline; }

.links {
    margin-top: 8px;
}
.links a {
    text-decoration: none;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 500;
}
.links a:hover { text-decoration: underline; }

.photo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Sections */
section {
    margin-bottom: 20px;
}

.section-heading {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #111;
}

section p {
    font-size: 13px;
    color: #444;
    line-height: 1.65;
}

/* Skills */
.skills-box {
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    overflow: hidden;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.skills-table td {
    padding: 8px 13px;
    vertical-align: top;
    color: #444;
}

.skills-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

.category {
    width: 110px;
    font-weight: 600;
    font-size: 11.5px;
    color: #111;
    background: #f7f7f7;
    border-right: 1px solid #eee;
}

/* Education */
.education-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edu-left {
    max-width: 64%;
    font-size: 13px;
    color: #444;
    line-height: 1.55;
}
.edu-left strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    margin-bottom: 1px;
}

.edu-right {
    text-align: right;
    font-size: 12px;
    color: #777;
    line-height: 1.55;
}

/* Projects */
.project-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-item p strong a {
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}
.project-item p strong a:hover { text-decoration: underline; }

/* Certifications */
.project-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* Print */
@media print {
    body { background: white; padding: 0; }
    .CV {
        box-shadow: none;
        width: 210mm;
        padding: 24px 36px;
    }
}
