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

:root {
    --text-main: #111;
    --text-muted: #444;
    --accent: #000;
    --bg: #fff;
    --border: #ddd;
}

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

body {
    background-color: #f5f5f5;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.resume-container {
    max-width: 850px;
    margin: 2rem auto;
    background: var(--bg);
    padding: 3rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

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

.name {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.contact-info span {
    display: flex;
    align-items: center;
}

/* SECTIONS */
section {
    margin-bottom: 1.8rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.summary {
    font-size: 0.95rem;
}

/* EXPERIENCE & PROJECTS */
.item {
    margin-bottom: 1.25rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-sub {
    display: flex;
    justify-content: space-between;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

ul {
    list-style-type: disc;
    margin-left: 1.25rem;
}

li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skill-category {
    font-size: 0.9rem;
}

.skill-category strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* BUTTONS */
.no-print {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.25rem;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-back { background: #666; }

@media print {
    body { background: white; }
    .resume-container { 
        margin: 0; 
        padding: 0; 
        box-shadow: none;
        max-width: 100%;
    }
    .no-print { display: none; }
    @page {
        margin: 1.5cm;
    }
}

@media (max-width: 600px) {
    .resume-container { padding: 1.5rem; margin: 0; }
    .contact-info { flex-direction: column; gap: 0.5rem; align-items: center; }
    .item-header, .item-sub { flex-direction: column; }
    .skills-grid { grid-template-columns: 1fr; }
    .no-print { position: relative; top: 0; right: 0; padding: 1rem; flex-direction: row; justify-content: center; background: #fff; border-bottom: 1px solid #ddd; }
}
