/* Classic Black & White CV Portfolio - MUHAMMAD AZEEM */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #999999;
    --gray-lighter: #cccccc;
    --gray-lightest: #f5f5f5;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    position: relative;
}

/* MUHAMMAD AZEEM Watermark Background */
body::before {
    content: 'MUHAMMAD AZEEM';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 15px;
    font-family: 'Arial Black', sans-serif;
}

.cv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    position: relative;
    z-index: 1;
}

/* Header Section */
.cv-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--black);
    margin-bottom: 30px;
}

.cv-name {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 10px;
}

.cv-title {
    font-size: 16px;
    color: var(--gray-medium);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.contact-info span {
    color: var(--gray-dark);
}

.contact-info a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--black);
}

.contact-info a:hover {
    color: var(--gray-medium);
}

/* Section Styles */
.cv-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-lighter);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--black);
    display: inline-block;
}

/* Professional Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.highlight-card {
    border: 2px solid var(--black);
    padding: 20px 15px;
    text-align: center;
    background: var(--white);
    transition: all 0.3s;
}

.highlight-card:hover {
    background: var(--gray-lightest);
}

.highlight-card .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    display: block;
    margin-bottom: 5px;
}

.highlight-card .label {
    font-size: 11px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-card a {
    color: inherit;
    text-decoration: none;
}

/* CV Items (Education, Experience) */
.cv-item {
    margin-bottom: 20px;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.cv-item-date {
    font-size: 13px;
    color: var(--gray-medium);
    font-style: italic;
}

.cv-item-subtitle {
    font-size: 14px;
    color: var(--gray-medium);
    margin-bottom: 8px;
}

.cv-item-description {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.7;
}

.cv-item-description ul {
    margin-left: 20px;
    margin-top: 8px;
}

.cv-item-description li {
    margin-bottom: 4px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill-category h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 4px 0;
    color: var(--gray-dark);
    font-size: 13px;
    border-bottom: 1px dotted var(--gray-lighter);
}

/* Projects */
.project-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--gray-lighter);
    background: var(--white);
}

.project-item:hover {
    border-color: var(--black);
}

.project-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

.project-tech {
    font-size: 12px;
    color: var(--gray-medium);
    font-style: italic;
    margin-bottom: 8px;
}

.project-description {
    font-size: 13px;
    color: var(--gray-dark);
}

.project-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--black);
}

/* Certifications */
.cert-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted var(--gray-lighter);
    font-size: 14px;
}

.cert-name {
    font-weight: 600;
    color: var(--black);
}

.cert-status {
    color: var(--gray-medium);
    font-style: italic;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-card {
    padding: 15px;
    border: 1px solid var(--gray-lighter);
    text-align: center;
}

.contact-card i {
    font-size: 20px;
    color: var(--black);
    margin-bottom: 8px;
    display: block;
}

.contact-card p {
    color: var(--gray-dark);
    font-size: 13px;
}

.contact-card a {
    color: var(--black);
    text-decoration: none;
}

/* Footer */
.cv-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 3px solid var(--black);
    margin-top: 30px;
}

.footer-text {
    font-size: 13px;
    color: var(--gray-medium);
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--black);
    font-size: 18px;
}

.social-links a:hover {
    color: var(--gray-medium);
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    .cv-section {
        break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cv-container {
        padding: 20px;
    }
    .cv-name {
        font-size: 28px;
        letter-spacing: 3px;
    }
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    body::before {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .cv-name {
        font-size: 22px;
    }
    body::before {
        font-size: 35px;
    }
}
