/* ═══════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════ */
:root {
    --bg:          #0F1419;
    --bg-surface:  #161C24;
    --bg-card:     #1C242F;
    --accent:      #00D9FF;
    --accent-dim:  #0099bb;
    --text:        #E8EAF0;
    --text-muted:  #8892A0;
    --border:      #2A3442;
    --radius:      6px;
    --radius-lg:   10px;
    --gap:         1.5rem;
    --timeline-gutter: 2rem;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

ul { list-style: none; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 2rem var(--gap);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--gap);
    max-width: 1100px;
    margin: 0 auto;
}

.header-name-block h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: border-color 0.15s;
}
a.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════ */
.resume-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem var(--gap);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section {}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   SUMMARY
═══════════════════════════════════════════════ */
.summary-body {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════ */
.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-group {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.skill-group-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.skill-group-name::-webkit-details-marker { display: none; }
.skill-group[open] .skill-group-name { color: var(--text); }

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 1rem 0.75rem;
}

.skill-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
}
.skill-pill--expert   { border-color: var(--accent); color: var(--accent); }
.skill-pill--advanced { border-color: #5588aa; color: #99ccdd; }
.skill-pill--proficient { border-color: #3a4a5a; color: #8899aa; }

/* ═══════════════════════════════════════════════
   EXPERIENCE / TIMELINE
═══════════════════════════════════════════════ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border);
    padding-left: var(--timeline-gutter);
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--timeline-gutter) - 5px);
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.timeline-summary {
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    list-style: none;
}
.timeline-summary::-webkit-details-marker { display: none; }

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.75rem;
}

.job-role {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.job-company {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}

.job-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
}

.timeline-body {
    padding: 0 1.1rem 1rem;
    border-top: 1px solid var(--border);
}

.job-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   BULLET LISTS (shared)
═══════════════════════════════════════════════ */
.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.55;
}
.bullet-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 0.22rem;
}

/* ═══════════════════════════════════════════════
   EARLY CAREER
═══════════════════════════════════════════════ */
.early-career-parent > .timeline-summary .job-role {
    color: var(--text-muted);
    font-style: italic;
}

.early-career-block {
    margin: 0.75rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.early-career-summary {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.early-career-summary::-webkit-details-marker { display: none; }
.early-career-summary strong { color: var(--text); font-size: 0.9rem; }

.early-jobs-inline {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.early-career-block .bullet-list {
    padding: 0.5rem 1rem 0.75rem;
}

/* ═══════════════════════════════════════════════
   PROJECTS GRID
═══════════════════════════════════════════════ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .project-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}
.project-card:hover { border-color: var(--accent-dim); }

.project-card-face {
    padding: 0.85rem 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.project-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.project-name a { color: var(--accent); }

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tech-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-dates {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.project-bullets {
    border-top: 1px solid var(--border);
}

.project-bullets > summary {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    color: var(--accent-dim);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.project-bullets > summary::-webkit-details-marker { display: none; }
.project-bullets[open] > summary { color: var(--accent); }

.project-bullets .bullet-list {
    padding: 0.3rem 1rem 0.75rem;
}

/* ═══════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 560px) {
    .edu-grid { grid-template-columns: 1fr; }
}

.edu-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.edu-institution {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.edu-field {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-dates {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.edu-notes {
    font-size: 0.78rem;
    color: var(--accent-dim);
    font-style: italic;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE HEADER
═══════════════════════════════════════════════ */
@media (max-width: 700px) {
    .site-header { flex-direction: column; padding: 1.5rem 1rem; }
    .header-name-block h1 { font-size: 1.6rem; }
    .job-meta { margin-left: 0; }
    .resume-main { padding: 1.25rem 1rem; }
    .timeline { padding-left: 1.25rem; }
}
