/* ============================================================
   Design tokens — warm editorial dark theme
   ============================================================ */

:root {
    --bg: #11100e;
    --surface: #181613;
    --surface-strong: #1d1b17;
    --surface-hover: #211e1a;
    --border: rgba(236, 230, 220, 0.09);
    --border-strong: rgba(236, 230, 220, 0.18);
    --text: #ece6dc;
    --text-soft: #cfc8bc;
    --text-muted: #9a9285;
    --text-subtle: #6e675d;
    --accent: #d9773b;
    --accent-hover: #e58a52;
    --on-accent: #11100e;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    color-scheme: dark;
}

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

html{
    font-family: var(--font-body);
}

button, input, textarea{
    font-family: inherit;
}

a{
    text-decoration: none;
    color: var(--text);
}

img{
    object-fit: cover;
}

body{
    background: var(--bg);
    color: var(--text);
    padding-top: 120px;
}

/* Solid surface shared by cards and panels */
.project-card,
.job i,
.award div i,
.category__title i{
    background: var(--surface);
    border: 1px solid var(--border);
}

.btn{
    border: 1px solid var(--border-strong);
    background: rgba(236, 230, 220, 0.06);
    color: var(--text);
    cursor: pointer;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.btn:hover{
    color: var(--bg);
    background: var(--text);
    border-color: var(--text);
}

.btn--secondary{
    color: var(--on-accent);
    background: var(--accent);
    border: 1px solid transparent;
    font-weight: 600;
}

.btn--secondary:hover{
    color: var(--on-accent);
    background: var(--accent-hover);
    border-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid var(--border);
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
    padding: 12px 24px;
    background: var(--surface-strong);
    z-index: 1000;
    width: max-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav .logo img {
    width: 30px;
    height: 30px;
    filter: invert(1) hue-rotate(180deg); /* dark logo artwork on the dark nav */
}

nav .logo span {
    color: var(--text);
    font-weight: 500;
    font-size: 18px;
}

nav .nav-links {
    display: flex;
    gap: 24px;
}

nav .nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

nav > a:not(.logo) {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    color: var(--bg);
    background: var(--text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav > a:not(.logo):hover {
    background: var(--accent);
}

nav > a:not(.logo) i {
    font-size: 18px;
}


.footer__links{
    display: flex;
    gap: 20px;
}

.footer__links a{
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.footer__links a:hover{
    color: var(--text);
}


#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: calc(100vh - 75px);
    padding-top: 100px;
}

.section__pic-container {
    display: flex;
    flex-shrink: 0;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.profile-pic {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
    color: var(--text-muted);
}

.section__text__p1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#profile .btn {
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

#socials-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

#socials-container .icon {
    cursor: pointer;
    font-size: 2rem;
    color: var(--text);
    transition: all 0.3s ease;
}

#socials-container .icon:hover {
    color: var(--accent);
}


.about-section,
.experience-section {
    padding: 60px;
}

/* About: lead + bio on the left, facts list on the right */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    text-align: left;
}

.about-lead {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-bio p:not(.about-lead) {
    color: var(--text-soft);
    line-height: 1.7;
}

.about-facts {
    border-left: 1px solid var(--border);
    padding-left: 2.5rem;
}

.about-facts > div {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.about-facts > div:first-child {
    padding-top: 0;
}

.about-facts > div:last-child {
    border-bottom: none;
}

.about-facts dt,
.skill h5,
.contact__line dt {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-facts dt {
    color: var(--text-subtle);
}

.about-facts dd {
    margin-top: 0.35rem;
    color: var(--text);
    line-height: 1.5;
}

/* Experience: one hairline row per area, tools listed on the right */
.experience-list {
    max-width: 1000px;
    margin: 3rem auto 0;
    border-top: 1px solid var(--border);
}

.experience-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.experience-row:hover {
    background: rgba(236, 230, 220, 0.02);
}

.experience-row dt {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.experience-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    list-style: none;
}

.experience-row li {
    font-size: 1.05rem;
    color: var(--text-soft);
}

.experience-row li + li::before {
    content: "\00b7";
    margin: 0 0.75rem;
    color: var(--accent);
}


.skills{
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.skills__desc,
.skills__list{
    width: 50%;
}

.skills__desc{
    padding-right: 80px;
}

.skills__desc h3{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
}

.skills__desc p{
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.skills__list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.skill{
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.skill:nth-child(odd){
    border-right: 1px solid var(--border);
}

.skill:nth-child(even){
    padding-left: 1.5rem;
}

.skill h5{
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.skill p{
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.showcase{
    padding: 80px 60px 100px;
}

.showcase__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.showcase__header h3{
    font-size: 28px;
    font-weight: 500;
}

.showcase__header .btn{
    font-size: 13px;
    padding: 6px 16px;
}

.showcase_categories .category:first-child{
    margin-bottom: 100px;
}

.category__header{
    display: flex;
    align-items: center;
}

.category__title,
.category__desc{
    width: 50%;
    display: flex;
    align-items: center;
}

.category__title{
    gap: 12px;
}

.category__title h4{
    font-size: 22px;
    font-weight: 500;
}

.category__title i{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    color: var(--accent);
}

.category__desc{
    gap: 40px;
    justify-content: space-between;
}

.category__desc p{
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

.category__desc a{
    font-size: 22px;
}

.category__projects{
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.project-card{
    position: relative;
    width: 25%;
    height: 420px;
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.project-card__image{
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-position: top center;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.project-card__info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.project-card__info h5{
    font-size: 17px;
    font-weight: 500;
}

.project-card__info p{
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 500;
    white-space: nowrap;
}

.project-card__desc{
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.project-card .btn{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px 20px;
    border-radius: 14px 0 14px 0;
    border: none;
    color: var(--on-accent);
    background: var(--accent);
    font-weight: 600;
}

.project-card .btn:hover{
    background: var(--text);
}

.career{
    padding: 60px 60px 80px;
    display: flex;
    align-items: center;
    gap: 100px;
}

.career__jobs,
.career__awards{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.career h3{
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
}

.job,
.award{
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.job i,
.award div i{
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    color: var(--accent);
}

.award{
    justify-content: space-between;
}

.award > div{
    display: flex;
    align-items: center;
    gap: 20px;
}

.job__info h5,
.award__info h5{
    font-size: 15px;
    font-weight: 500;
}

.job__info p,
.award__info p{
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
}

.award a i{
    font-size: 24px;
}

.contact {
    padding: 120px 60px;
}

/* Contact: editorial call to action, direct links on the right */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
}

.contact__intro h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact__intro h2 em {
    font-style: italic;
}

.contact__intro p {
    max-width: 32ch;
    margin-top: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.contact__line {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.contact__line:last-child {
    border-bottom: 1px solid var(--border);
}

.contact__line dt {
    color: var(--text-subtle);
}

.contact__line dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact__line dd a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.contact__line dd a i {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.contact__line dd a:hover {
    color: var(--accent);
}

.contact__line dd a:hover i {
    transform: translate(3px, -3px);
}

.contact__copy {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__copy:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.footer{
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.footer__brand{
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.footer__brand a{
    font-weight: bold;
    font-size: 18px;
}

.footer__brand p{
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

@media screen and (max-width: 1230px) {

    #profile {
        gap: 2rem;
    }

    .section__pic-container {
        height: 300px;
        width: 300px;
    }

    .skills__desc{
        padding-right: 20px;
    }

    .skills__desc h3{
        font-size: 26px;
    }

    .category__title{
        width: 40%;
    }

    .category__desc{
        width: 60%;
    }

    .category__projects{
        flex-wrap: wrap;
    }

    .project-card{
        width: 48%;
    }

}

@media screen and (max-width: 992px) {

    .skills{
        flex-direction: column;
        padding: 60px 30px 80px;
    }

    .about-section,
    .experience-section {
        padding: 60px 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-facts {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
    }

    .skills__desc,
    .skills__list,
    .category__title,
    .category__desc,
    .career__jobs,
    .career__awards {
        width: 100%;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skills__desc{
        padding-right: 0;
    }

    .showcase{
        padding: 80px 30px 100px;
    }

    .category__header{
        flex-direction: column;
    }

    .category__title{
        margin-bottom: 20px;
    }

    .career{
        padding: 60px 30px 80px;
        flex-direction: column;
        gap: 60px;
    }

    .footer{
        padding: 20px 30px;
    }

}


@media screen and (max-width: 768px) {

    nav,
    nav .nav-links {
        gap: 16px;
    }

    nav > a:not(.logo) {
        display: none;
    }

    #profile {
        flex-direction: column;
        height: auto;
        padding: 120px 30px 40px;
        gap: 2rem;
    }

    .section__pic-container {
        height: 250px;
        width: 250px;
        margin: 0 auto;
    }

    .title {
        font-size: 2.5rem;
    }

    .experience-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem 0;
    }

    .section__text__p2 {
        font-size: 1.25rem;
    }

    .skills__list{
        grid-template-columns: 1fr;
    }

    .skill:nth-child(odd){
        border-right: none;
    }

    .skill:nth-child(even){
        padding-left: 0;
    }

    .showcase__header h3{
        font-size: 24px;
    }

    .category__title h4{
        font-size: 20px;
    }

    .project-card{
        width: 100%;
        height: auto;
        padding-bottom: 64px;
    }

    .project-card__image{
        height: 220px;
    }

    .career h3{
        font-size: 26px;
    }

    .contact {
        padding: 80px 16px;
    }

    .contact__line dd a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .footer{
        flex-direction: column-reverse;
        gap: 16px;
    }

}
