
/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
    --bg:       #ffffff;
    --fg:       #111111;
    --muted:    #4B4C54;
    --faint:    #9ca3af;
    --rule:     #e5e7eb;
    --hover-bg: #f9fafb;
    --accent:   #111111;
    --mono:     'IBM Plex Mono', monospace, sans-serif;
    --sans:     'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --w:        900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: 20px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-family: var(--mono);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ─────────────────────────────────────────
   LAYOUT SHELL
───────────────────────────────────────── */
.page {
    max-width: var(--w);
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* ─────────────────────────────────────────
   TOP NAV  (minimal — just links)
───────────────────────────────────────── */
.top-nav {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.top-nav a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.top-nav a:hover { color: var(--fg); }
.top-nav .active { color: var(--fg); font-weight: 500; }

/* ─────────────────────────────────────────
   HERO / INTRO
───────────────────────────────────────── */
.hero {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.hero-photo {
    width: 180px; height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--rule);
}
.hero-text {}
.hero-name {
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.hero-title {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #16a34a;
}
.hero-status .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #16a34a;
    animation: pulse-green 2.4s ease infinite;
}
@keyframes pulse-green {
    0%,100% { opacity:1; } 50% { opacity: 0.3; }
}

/* ─────────────────────────────────────────
   HERO SOCIAL
───────────────────────────────────────── */

.hero-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0.55rem 0 0.55rem;
}
.hero-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hero-social-link:hover {
    color: var(--fg);
    border-color: #d1d5db;
    background: var(--hover-bg);
}

/* ─────────────────────────────────────────
   ABOUT BLURB
───────────────────────────────────────── */
.about-blurb {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.about-blurb strong { color: var(--fg); font-weight: 500; }

/* ─────────────────────────────────────────
   RESUME LINKS ROW
───────────────────────────────────────── */

.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background-color:#C91F00;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 5px;
    transition: all 0.15s;
    font-family: var(--mono);
}
.resume-link:hover {
    color: var(--fg);
    border-color: #d1d5db;
}

/* ─────────────────────────────────────────
   SOCIAL LINKS ROW
───────────────────────────────────────── */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 5px;
    transition: all 0.15s;
    font-family: var(--mono);
}
.social-link:hover {
    color: var(--fg);
    border-color: #d1d5db;
    background: var(--hover-bg);
}
.social-link i { font-size: 0.7rem; }

/* ─────────────────────────────────────────
   SECTION
───────────────────────────────────────── */
.section { margin-bottom: 3rem; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
}

/* ─────────────────────────────────────────
   EXPERIENCE
───────────────────────────────────────── */
.exp-item { margin-bottom: 1.75rem; }
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}
.exp-role-company {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.exp-role {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fg);
}
.exp-company {
    font-size: 0.8rem;
    color: var(--muted);
}
.exp-period {
    font-size: 0.73rem;
    color: var(--faint);
    font-family: var(--mono);
    white-space: nowrap;
}
.exp-bullets {
    list-style: none;
    margin-top: 0.5rem;
}
.exp-bullets li {
    font-size: 0.8rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}
.exp-bullets li::before {
    content: '·';
    position: absolute; left: 0;
    color: black;
}
.exp-bullets li strong { color: var(--fg); font-weight: 500; }

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
.project-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--rule);
}
.project-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.project-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.project-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.project-name:hover { opacity: 0.7; }
.project-name .ext-icon {
    font-size: 0.6rem;
    color: var(--faint);
}
.project-meta {
        margin-bottom: 0.6rem;
        font-size: 0.8rem;
        line-height: 1.7;
        color: var(--muted);
        font-family: var(--mono);
    }
    .project-meta h6 {
        display: inline;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--fg);
        font-family: var(--mono);
    }
    .project-meta h6::after {
        content: ' ';
    }
    .project-meta p {
        display: inline;
        margin: 0;
    }

.project-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.65rem;
    line-height: 1.65;
}
.project-problem {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.65rem;
    line-height: 1.65;
}
.project-idea {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.65rem;
    line-height: 1.65;
}
.project-solution {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.65rem;
    line-height: 1.65;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.project-tech-inline {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-style: italic;   /* matches the italic in the screenshot */
    color: var(--muted);
    margin-left: auto;    /* pushes it to the far right */
    white-space: nowrap;
    flex-shrink: 0;
}
.tech-pill {
    font-family: var(--mono);
    font-size: 0.67rem;
    color: var(--muted);
    background: var(--hover-bg);
    border: 1px solid var(--rule);
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
}

/* ─────────────────────────────────────────
   EDUCATION
───────────────────────────────────────── */
.edu-item {
    margin-bottom: 1.5rem;
}
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}
.edu-degree {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg);
}
.edu-years {
    font-size: 0.73rem;
    color: var(--faint);
    font-family: var(--mono);
    white-space: nowrap;
}
.edu-school {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
}
.edu-note {
    font-size: 0.75rem;
    color: #16a34a;
    font-family: var(--mono);
}

/* ─────────────────────────────────────────
   CERTIFICATIONS
───────────────────────────────────────── */
.cert-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.cert-left {}
.cert-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.1rem;
}
.cert-issuer {
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
}

.section-title .cert-item {
    margin-bottom: 0rem;
}

/* ─────────────────────────────────────────
   SKILLS CAROUSEL
───────────────────────────────────────── */
.carousel-outer {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    margin: 0 -1.5rem;
}
.carousel-track {
    display: flex;
    width: max-content;
    animation: slide 32s linear infinite;
    align-items: center;
    padding: 0.5rem 0;
}
.carousel-outer:hover .carousel-track { animation-play-state: paused; }
.slide {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 0.6rem;
    opacity: 0.65;
    transition: opacity 0.2s, transform 0.2s;
    filter: grayscale(0.2);
}
.slide:hover { opacity: 1; transform: translateY(-2px); }
@keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.73rem;
    color: var(--faint);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: var(--mono);
}
.footer a { color: var(--faint); text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--fg); }
.footer-links { display: flex; gap: 1rem; }

/* ─────────────────────────────────────────
   REVEAL
───────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 640px) {
    .hero { gap: 1rem; }
    .hero-photo { width: 64px; height: 64px; }
    .exp-header, .project-top, .edu-header { flex-direction: column; gap: 0.1rem; }
    .exp-period, .edu-years { align-self: flex-start; }
}

/* ─────────────────────────────────────────
   SHARED TIMELINE PATTERN
───────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--rule);
}

.timeline > .tl-item {
    position: relative;
    margin-bottom: 1.75rem;
}
.timeline > .tl-item:last-child { margin-bottom: 0; }

.timeline > .tl-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 7px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--faint);
    transition: border-color 0.15s, background 0.15s;
}

.timeline > .tl-item:hover::before {
    border-color: var(--fg);
    background: var(--fg);
}
