:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    font-size: 14.5px;
    padding: 2rem 1rem;
}

.resume-container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Header*/
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--primary);
    letter-spacing: -0.02rem;
    line-height: 1.15;
}

.headline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact-info {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

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

.contact-info a:hover,
.item-header a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* GPC-F */
.badge-box {
    flex-shrink: 0;
    text-align: center;
}

.badge-box img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

/* Sections */
section {
    margin-bottom: 1.4rem;
}

h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-list {
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.skills-list li strong {
    color: var(--primary);
}

/* Two-column list for certs*/
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.35rem 1.5rem;
    padding-left: 1.15rem;
}

/* Experience and Projects*/
.item {
    margin-bottom: 1rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.98rem;
}

.item-org {
    font-weight: 500;
    color: var(--text)
}

.item-date {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

ul.bullets {
    padding-left: 1.15rem;
    margin-top: 0.3rem;
}

ul.bullets li {
    margin-bottom: 0.25rem;
}

/* Print btn (hidden when printing */
.print-bar {
    max-width: 850px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: flex-end;
}

.print-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.print-btn:hover {
    background: var(--accent);
}

@media (max-width: 640px) {
    .resume-container {
        padding: 1.5rem;
    }
    
    header {
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
        font-size: 10.5pt;
    }
    .print-bar {
        display: none;
    }
    .resume-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    a {
        border: none !important;
    }
}