/* Color Palette
   --bg-deep:    #0A0E17  Base background
   --bg-card:    #111827  Card surfaces
   --bg-mid:     #161D2E  Alternate sections
   --accent:     #00D4AA  Cyan-green accent
   --text-hi:    #E8EDF5  Primary text
   --text-mid:   #8B9BB4  Secondary text
   --text-lo:    #4A5568  Muted / labels
   --border:     #1E2A3A  Borders
*/
:root {
    --bg-deep:    #0A0E17;
    --bg-card:    #111827;
    --bg-mid:     #161D2E;
    --accent:     #00D4AA;
    --text-hi:    #E8EDF5;
    --text-mid:   #8B9BB4;
    --text-lo:    #4A5568;
    --border:     #1E2A3A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg-deep);
    color: var(--text-hi);
    line-height: 1.7;
}

/* ── NAV ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3rem;
    background: rgba(10,14,23,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
}
.nav-name::before { content: '> '; opacity: 0.5; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HEADER ── */
header {
    background: var(--bg-deep);
    padding: 5rem 3rem 4rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
}
.header-inner { max-width: 880px; margin: 0 auto; position: relative; }
.header-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
}
header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-hi);
    line-height: 1.05;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
header h1 span { color: var(--accent); }
header h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-mid);
    letter-spacing: 0.06em;
    margin-bottom: 1.8rem;
}
.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin-bottom: 1.8rem;
}
.header-contact a {
    color: var(--text-mid);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.header-contact a::before { content: '//'; color: var(--accent); font-size: 0.65rem; opacity: 0.7; }
.header-contact a:hover { color: var(--accent); }
header p.summary {
    font-size: 0.92rem;
    color: var(--text-mid);
    max-width: 620px;
    line-height: 1.9;
    border-left: 2px solid var(--accent);
    padding-left: 1.2rem;
}

/* ── SHARED ── */
section { padding: 3.5rem 3rem; }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}
h2.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 2.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

/* ── SKILLS ── */
.skills-section {
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}
.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    transition: border-color 0.2s;
}
.skill-item:hover { border-color: var(--accent); }
.skill-item strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}
.skill-item ul { margin-left: 1rem; }
.skill-item ul li {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 0.25rem;
}
.skill-item ul li::marker { color: var(--accent); font-size: 0.65rem; }

/* ── EXPERIENCE ── */
.work-experience { background: var(--bg-deep); }
.job {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1rem 3rem;
    margin-bottom: 2.8rem;
    padding-bottom: 2.8rem;
    border-bottom: 1px solid var(--border);
}
.job:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.job-left h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.45;
    margin-bottom: 0.3rem;
}
.job-left .company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-mid);
    margin-bottom: 0.2rem;
}
.job-left .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 600;
}
.job-right ul { margin-left: 1rem; }
.job-right ul li {
    font-size: 0.86rem;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.job-right ul li::marker { color: var(--accent); }

/* ── PROJECTS ── */
.projects { background: var(--bg-mid); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.2rem;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.4rem 1.6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0,212,170,0.08);
}
.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 0.15rem;
}
.project-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    opacity: 0.75;
}
.project-card ul { margin-left: 1rem; }
.project-card ul li {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}
.project-card ul li::marker { color: var(--accent); }

/* ── EDUCATION ── */
.education { background: var(--bg-deep); }
.school {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.school:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.school-left { display: flex; flex-direction: column; gap: 0.4rem; }
.degree-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--bg-deep);
    background: var(--accent);
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}
.degree-badge.in-progress {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.school-left .year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-lo);
}
.school-right h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 0.2rem;
}
.school-right p {
    font-size: 0.83rem;
    color: var(--text-mid);
    margin-bottom: 0.1rem;
}

/* ── CERTIFICATIONS ── */
.certs-section {
    background: var(--bg-mid);
    padding: 3.5rem 3rem;
    border-top: 1px solid var(--border);
}
.certs-list { display: flex; flex-direction: column; gap: 2rem; }
.cert-entry .cert-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 0.15rem;
}
.cert-entry .cert-issuer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.cert-entry ul { margin-left: 1rem; }
.cert-entry ul li {
    font-size: 0.86rem;
    color: var(--text-mid);
    margin-bottom: 0.35rem;
    line-height: 1.7;
}
.cert-entry ul li::marker { color: var(--accent); }

/* ── FOOTER ── */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2.5rem 2rem;
}
footer h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.65; }
footer > p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-lo);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    header, section, .certs-section { padding: 2.5rem 1.5rem; }
    header h1 { font-size: 2.3rem; }
    .job, .school { grid-template-columns: 1fr; gap: 0.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}
