/* ==================== RESET & BASE STYLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    font-weight: 600;
    color: #2d2d2d;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

p {
    font-weight: 700;
}

/* ==================== CONTAINERS ==================== */
.header-container {
    max-width: 8.5in;
    margin: 0 auto;
}

.content-container {
    max-width: 8.5in;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px;
}

/* ==================== ROW / COL GRID SYSTEM ==================== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    width: 100%;
}

.col-full {
    flex: 1 1 100%;
}

.col-half {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
}

/* ==================== BLACK HEADER SECTION ==================== */
.cv-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 28px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.cv-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.header-content {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* Name styling */
.name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Title */
.title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #bbbbbb;
}

/* Horizontal separator line — hidden */
.header-separator {
    display: none;
}

/* Contact bar */
.contact-info {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 24px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 0;
}

.contact-item {
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #d0d0d0;
    white-space: nowrap;
}

.contact-item .icon {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    display: inline-block;
}

.contact-item a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==================== MAIN CONTENT ==================== */
.cv-content {
    padding: 22px 28px;
}

/* ==================== SECTION STYLES ==================== */
.section {
    margin-bottom: 20px;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a1a1a;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

/* ==================== PROFILE SECTION ==================== */
.profile-text {
    text-align: justify;
    line-height: 1.6;
    font-weight: 700;
    color: #333;
}

/* ==================== EMPLOYMENT HISTORY ==================== */
.job {
    margin-bottom: 18px;
}

.job-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1a1a1a;
}

.job-date {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #0b0b0b;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.job-responsibilities {
    list-style-type: disc;
    margin-left: 20px;
}

.job-responsibilities li {
    margin-bottom: 5px;
    line-height: 1.55;
    font-weight: 600;
    color: #333;
}

/* ==================== EDUCATION & COURSES ==================== */
.education-item {
    margin-bottom: 10px;
    line-height: 1.5;
}

.education-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1a1a1a;
}

.education-detail {
    font-size: 11pt;
    font-weight: 700;
    color: #333;
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.skill-item {
    font-size: 9.5pt;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
}

.skill-item strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* ==================== PROJECTS SECTION ==================== */
.project {
    margin-bottom: 18px;
}

.project-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.project-details {
    list-style-type: disc;
    margin-left: 20px;
}

.project-details li {
    margin-bottom: 5px;
    line-height: 1.55;
    font-weight: 600;
    color: #333;
}

/* ==================== DOWNLOAD BUTTON ==================== */
.download-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 32px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background-color: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #333;
}

/* ==================== PRINT / PDF STYLES ==================== */
@media print {
    .download-btn {
        display: none !important;
    }

    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .header-container,
    .content-container {
        max-width: 100%;
        box-shadow: none;
    }

    .cv-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Let content flow naturally — no forced page breaks */
    .section,
    .job,
    .project,
    .row-2col {
        page-break-inside: auto;
    }

    /* Ensure links are clickable in PDF */
    a {
        color: inherit;
        text-decoration: none;
    }

    @page {
        margin: 0.3in;
        size: A4;
    }
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
    .header-container,
    .content-container {
        max-width: 100%;
    }

    .cv-content {
        padding: 18px 16px;
    }

    .cv-header {
        padding: 24px 16px 0;
    }

    .name {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .title {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .contact-info {
        flex-direction: column;
        gap: 6px;
    }

    .row-2col {
        flex-direction: column;
    }

    .col-half {
        flex: 1 1 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
