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

:root {
    --bg:        #111210;
    --surface:   #191a17;
    --surface2:  #1f2019;
    --accent:    #7E8C54;
    --accent2:   #9aaa67;
    --text:      #e2e0d6;
    --muted:     #7a7870;
    --border:    #2a2b26;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body), serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 5rem;
    background: rgba(17,18,16,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-head), serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

/* SECTIONS */
section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 0.9rem;
}

h2.sec-title {
    font-family: var(--font-head), serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 3.5rem;
}

.divider {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    border-top: 1px solid var(--border);
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
}

h1.hero-name {
    font-family: var(--font-head), serif;
        font-size: clamp(3.5rem, 8vw, 6.5rem);
        font-weight: 400;
        line-height: 1;
        color: var(--text);
        opacity: 0;
        animation: fadeUp 0.7s ease 0.4s forwards;
}

h1.hero-name em {
    font-style: italic;
    font-weight: 300;
    font-family: var(--font-body), serif;
    color: var(--muted);
    font-size: 0.62em;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 2rem;
    max-width: 460px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-cta {
    display: flex; align-items: center; gap: 1.5rem;
    margin-top: 2.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn {
    font-family: var(--font-body), serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

.btn:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

/* ABOUT */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; font-weight: 300; }
.about-text strong { color: var(--text); font-weight: 500; }

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

.about-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 1.4rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.about-card:hover { border-color: var(--accent); }

.about-card-num {
    font-family: var(--font-head), serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.about-card-label { font-size: 0.8rem; color: var(--muted); }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

.proj-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.25s, transform 0.2s;
}

.proj-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.proj-num {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent2);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.proj-title {
    font-family: var(--font-head), serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.proj-desc { font-size: 0.88rem; color: var(--muted); font-weight: 300; margin-bottom: 1.5rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tag {
    font-size: 0.73rem;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* SKILLS */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.skills-group h3 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 1.6rem;
}

.skill-item { margin-bottom: 1.2rem; }

.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.88rem; }
.skill-header span:last-child { color: var(--muted); font-size: 0.78rem; font-weight: 300; }

.skill-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }

.skill-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    border-radius: 2px;
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
    font-size: 0.82rem;
    padding: 0.38rem 0.9rem;
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.chip:hover { border-color: var(--accent); color: var(--text); }

/* EXPERIENCE */
.exp-list { display: flex; flex-direction: column; }

.exp-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; }

.exp-date { font-size: 0.8rem; color: var(--muted); padding-top: 0.2rem; }

.exp-role {
    font-family: var(--font-head), serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.exp-org { font-size: 0.85rem; color: var(--accent2); margin-bottom: 0.9rem; }

.exp-body { font-size: 0.88rem; color: var(--muted); font-weight: 300; }

.exp-body li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.35rem;
    list-style: none;
}

.exp-body li::before {
    content: '—';
    position: absolute; left: 0;
    color: var(--accent);
    font-size: 0.75em;
    top: 0.22em;
}

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.contact-heading {
    font-family: var(--font-head), serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.contact-heading span { color: var(--accent2); }
.contact-sub { font-size: 0.9rem; color: var(--muted); font-weight: 300; margin-bottom: 2rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.7rem; }

.clink {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    transition: all 0.2s;
}

.clink:hover { border-color: var(--accent); color: var(--text); }

.clink-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
    min-width: 56px;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }

.form-field label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-field input,
.form-field textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body), serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }

.form-field textarea { min-height: 110px; }

/* FOOTER */
footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

footer p { font-size: 0.82rem; color: var(--muted); font-weight: 300; }
footer span { color: var(--accent2); }

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .about-layout, .skills-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .exp-item { grid-template-columns: 1fr; gap: 0.4rem; }
}
