/* Resume page styles */

.resume-page {
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(0, 33, 71, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 33, 71, 0.7) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: -1px -1px;
}

.resume-page h1,
.resume-page h2,
.resume-page .serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.resume-container {
    min-height: calc(100vh - 5rem);
    padding-top: calc(var(--nav-height) + 2rem);
}

.resume-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ===== Header card ===== */
.resume-header {
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.resume-name {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.resume-contact {
    text-align: center;
    margin-bottom: 1.5rem;
}

.resume-contact p {
    color: rgba(255, 255, 255, 0.75);
}

.resume-contact a {
    color: var(--orbit-red);
    text-decoration: underline;
    transition: color 0.2s;
}

.resume-contact a:hover { color: #f87171; }

.resume-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== Section cards ===== */
.resume-card {
    background: rgba(0, 33, 71, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resume-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* ===== Core competencies ===== */
.resume-competencies {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) { .resume-competencies { grid-template-columns: repeat(2, 1fr); } }

.resume-competencies ul {
    list-style: none;
    padding: 0;
}

.resume-competencies li {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0;
}

/* ===== Experience entries ===== */
.resume-role {
    margin-bottom: 2rem;
}

.resume-role:last-child { margin-bottom: 0; }

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

.resume-role h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.resume-role-company {
    color: rgba(255, 255, 255, 0.6);
}

.resume-role ul {
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.resume-role li {
    margin-bottom: 0.5rem;
}

/* ===== Additional experience ===== */
.resume-additional h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.resume-additional-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resume-additional-item {
    display: flex;
    justify-content: space-between;
}

.resume-additional-item strong {
    font-weight: 600;
}

/* ===== Education ===== */
.resume-education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resume-education-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.resume-education-list p {
    color: rgba(255, 255, 255, 0.75);
}

.resume-education-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.resume-education-list a:hover { color: var(--carolina-blue); }

.resume-morehead a:hover { color: #facc15; }

/* ===== Publications ===== */
.resume-publications ul {
    list-style: none;
    padding: 0;
}

.resume-publications li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.resume-publications strong {
    font-weight: 600;
}

.resume-publications a {
    color: var(--orbit-red);
    text-decoration: underline;
    transition: color 0.2s;
}

.resume-publications a:hover { color: #f87171; }

/* ===== Tech projects grid ===== */
.resume-tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) { .resume-tech-grid { grid-template-columns: repeat(2, 1fr); } }

.resume-tech-grid h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.resume-tech-grid ul {
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1.25rem;
}

.resume-tech-grid li {
    margin-bottom: 0.5rem;
}

.resume-tech-grid a {
    color: var(--orbit-red);
    text-decoration: underline;
    transition: color 0.2s;
}

.resume-tech-grid a:hover { color: #f87171; }

/* ===== Affiliations grid ===== */
.resume-affiliations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) { .resume-affiliations { grid-template-columns: repeat(2, 1fr); } }

.resume-affiliations h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.resume-affiliations ul {
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1.25rem;
}

.resume-affiliations li {
    margin-bottom: 0.5rem;
}

.resume-affiliations a {
    color: var(--orbit-red);
    text-decoration: underline;
    transition: color 0.2s;
}

.resume-affiliations a:hover { color: #f87171; }

/* ===== JMJ modal ===== */
.jmj-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.jmj-modal-overlay.is-open {
    display: flex;
}

.jmj-modal-box {
    background: linear-gradient(to bottom, #1a1a2e, #0f0f1a);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 24rem;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.jmj-modal-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #facc15;
    margin-bottom: 0.25rem;
    font-family: Georgia, serif;
}

.jmj-modal-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.jmj-modal-cross {
    font-size: 1.125rem;
    color: rgba(234, 179, 8, 0.6);
    margin-bottom: 1rem;
}

.jmj-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.jmj-modal-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.jmj-modal-input:focus { outline: none; border-color: #facc15; }

.jmj-modal-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #ca8a04, #eab308);
    color: #000;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.jmj-modal-submit:hover {
    background: linear-gradient(to right, #eab308, #facc15);
}

.jmj-modal-cancel {
    margin-top: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    cursor: pointer;
}

.jmj-modal-cancel:hover { color: rgba(255, 255, 255, 0.75); }
