:root {
    --bg: #f5f4f0;
    --bg-alt: #ffffff;
    --fg: #0f172a;
    --muted: #6b7280;
    --accent: #111827;
    --accent-soft: #e6dfd1;
    --border: #e2e1db;
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
    --radius-md: 12px;
    --radius-lg: 18px;
    --max-width: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f9f7f1 0, #f5f4f0 40%, #ece7dd 100%);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    min-height: 100vh;
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 244, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-name {
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-tagline {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.88rem;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.18s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    background: #fdfbf7;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease,
        transform 0.1s ease, box-shadow 0.1s ease;
}

.nav-cta:hover {
    background: #f1ece1;
    border-color: #cfc7b7;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

/* LAYOUT */
.page {
    max-width: var(--max-width);
    margin: 2.4rem auto 3.2rem;
    padding: 0 1.5rem;
}

.section {
    margin-bottom: 3.2rem;
}

.section-header {
    margin-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.section-title {
    font-size: 1.7rem;
    margin: 0;
    letter-spacing: -0.03em;
}

.section-caption {
    font-size: 0.86rem;
    color: var(--muted);
    max-width: 22rem;
}

.section-intro {
    font-size: 0.94rem;
    color: #4b5563;
    max-width: 38rem;
    margin: 0.3rem 0 0;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2.4rem;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d8d0c1;
    background: #f4eee4;
    font-size: 0.78rem;
    color: #1f2937;
    margin-bottom: 0.9rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #16a34a;
}

.hero-title {
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    margin: 0 0 0.4rem;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--muted);
    margin: 0 0 1.1rem;
}

.hero-copy {
    font-size: 0.96rem;
    color: #111827;
    max-width: 35rem;
    margin-bottom: 1.4rem;
}

.hero-copy strong {
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease,
        transform 0.1s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.42);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--fg);
}

.btn-ghost:hover {
    background: #f3efe7;
    border-color: #cec7b9;
    transform: translateY(-1px);
}

.hero-note {
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-pane {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.2rem;
    font-size: 0.86rem;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.meta-value {
    font-size: 0.9rem;
}

.meta-link a {
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.6);
    padding-bottom: 1px;
}

.meta-link a:hover {
    border-color: #111827;
}

.hero-highlight {
    padding-top: 0.8rem;
    border-top: 1px dashed #ddd6c5;
    font-size: 0.83rem;
    color: #4b5563;
}

.hero-highlight strong {
    font-weight: 600;
}

/* TWO-COLUMN BODY SECTIONS */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.8fr);
    gap: 2.6rem;
}

/* ABOUT */
.about-text p {
    margin: 0 0 0.6rem;
    font-size: 0.94rem;
    color: #374151;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    font-size: 0.85rem;
}

.pill-box {
    background: #f8f5ef;
    border-radius: var(--radius-md);
    border: 1px solid #e0d7c7;
    padding: 0.7rem 0.8rem;
}

.pill-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.pill-value {
    font-size: 0.9rem;
    color: #111827;
}

/* SKILLS */
.skills-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    font-size: 0.88rem;
}

.skills-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
}

.skills-list li {
    margin-bottom: 0.22rem;
}

.skills-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--muted);
}

/* EXPERIENCE */
.timeline {
    position: relative;
    padding-left: 1.3rem;
    border-left: 1px solid #e0ded5;
}

.timeline-item {
    margin-bottom: 1.4rem;
    position: relative;
    padding-left: 0.3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.35rem;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
}

.timeline-present::before {
    content: "";
    position: absolute;
    /* left: -1.35rem; */
    left: 0;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background:#16a34a;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
}

.timeline-item .present_role::before{
    color: #16a34a;
    background: #16a34a;
}


.present_role{
    background-color: #16a34a;
}

.timeline-role {
    font-size: 0.94rem;
    font-weight: 600;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.timeline-body {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.2rem;
}

.timeline-tags {
    font-size: 0.78rem;
    color: #6b7280;
}

/* PROJECTS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.1rem 1.2rem 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: border-color 0.14s ease, box-shadow 0.14s ease,
        transform 0.1s ease, background 0.12s ease;
}

.card:hover {
    border-color: #d0c7b6;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    background: #fdfbf7;
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.2rem;
}

.card-title {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.card-type {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.card-sub {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.card-list {
    margin: 0 0 0.6rem;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: #374151;
}

.card-list li {
    margin-bottom: 0.18rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.chip-link {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    background: #f7f5f0;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease,
        transform 0.1s ease;
}

.chip-link:hover {
    background: #ebe5da;
    border-color: #cfc5b3;
    transform: translateY(-1px);
}

/* PROCESS */
.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.process-step {
    background: #f8f5ef;
    border-radius: var(--radius-md);
    border: 1px solid #e0d7c7;
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
}

.process-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.process-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* CONTACT */
.contact-body {
    font-size: 0.94rem;
    color: #374151;
}

.contact-body p {
    margin: 0 0 0.6rem;
}

.contact-list {
    margin-top: 0.7rem;
    font-size: 0.9rem;
}

.contact-list p {
    margin: 0.2rem 0;
}

.contact-list strong {
    font-weight: 600;
}

.contact-list a {
    border-bottom: 1px solid rgba(156, 163, 175, 0.7);
    padding-bottom: 1px;
}

.contact-list a:hover {
    border-color: #111827;
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.4rem 1.5rem 2.1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

.footer span {
    color: #6b7280;
}

#footer , hr{
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 920px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .page {
        padding-inline: 1.1rem;
        margin-top: 2rem;
    }

    .nav-inner {
        padding-inline: 1.1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }
}