/* ==================== VARIABLES ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
    padding: 0;
    margin: 0;
}

/* ==================== HEADER NAV ==================== */
.resume-nav-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-logo-text {
    color: var(--primary);
    transition: color 0.3s ease;
}

.nav-logo:hover .nav-logo-text {
    color: var(--primary-dark);
}

/* ==================== PAGE CONTROLS ==================== */
.page-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.btn-download,
.btn-compact,
.btn-back {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-download {
    background: var(--primary);
    color: var(--white);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-compact {
    background: var(--secondary);
    color: var(--white);
    display: inline-block;
}

.btn-compact:hover {
    background: #0ea572;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    display: inline-block;
}

.btn-back:hover {
    background: var(--light-gray);
}

/* ==================== RESUME CONTAINER ==================== */
.resume-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

/* ==================== HEADER ==================== */
.resume-header {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.resume-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.resume-header .title {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.contact-item {
    color: var(--gray);
}

/* ==================== SECTIONS ==================== */
.resume-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

/* ==================== EXECUTIVE SUMMARY ==================== */
.summary-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
    text-align: justify;
}

/* ==================== COMPETENCIES ==================== */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.competency-category {
    background: var(--light-gray);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.competency-category h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.competency-category ul {
    list-style: none;
    padding: 0;
}

.competency-category li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--dark);
}

.competency-category li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ==================== EXPERIENCE ==================== */
.experience-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.experience-entry:last-child {
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.position-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.tenure {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.location {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.role-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--dark);
}

.achievements li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.achievements strong {
    color: var(--primary);
    font-weight: 700;
}

/* ==================== EDUCATION ==================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.education-entry {
    background: var(--light-gray);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.education-entry h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.year {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

/* ==================== TECHNICAL PROFICIENCIES ==================== */
.tech-grid {
    display: grid;
    gap: 1rem;
}

.tech-category {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.tech-category h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tech-category p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark);
}

/* ==================== ACHIEVEMENTS SUMMARY ==================== */
.achievements-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.achievement-stat {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .resume-container {
        padding: 2rem 1.5rem;
    }

    .resume-header h1 {
        font-size: 2rem;
    }

    .resume-header .title {
        font-size: 1.1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tenure {
        align-self: flex-start;
    }

    .competencies-grid,
    .education-grid,
    .achievements-summary {
        grid-template-columns: 1fr;
    }

    .page-controls {
        flex-direction: column-reverse;
    }

    .btn-download,
    .btn-back {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .resume-header h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}
